We first separate all the terms to find the equations that have to be integrated to find y(x):
dxdy=1+2y2ycosx⟹∫(y1+2y2)dy=∫cosxdx
∫(y1+2y)dy=∫cosxdx⟹lny+y2=sinx+C
After that, we use y(0)=1 as the boundary condition to find C and the particular solution:
lny+y2=sinx+C⟹ln(1)+(1)2−sin(0)=C⟹C=1
In conclusion, the particular solution for the DE is sinx=lny+y2−1.
Reference:
- Zill, D. G. (2016). Differential equations with boundary-value problems. Cengage Learning.
Comments