Answer on Question#40384 – Math – Differential Calculus
Solve the differential equation:
ysin(2x)dx=(1+y2+cos(2x))dy.
Solution:
We have
ysin(2x)dx−(1+y2+cos(2x))dy=0,M(x,y)dx+N(x,y)dy=0,
where
M(x,y)=ysin(2x),N(x,y)=−(1+y2+cos(2x)).
Thus
∂y∂M=sin(2x),∂x∂N=2sin(2x).
Because ∂y∂M=∂x∂N then we can try to find an integrating factor m(x,y).
We get
−M(x,y)∂y∂M−∂x∂N=−ysin(2x)sin(2x)−2sin(2x)=−ysin(2x)−sin(2x)=y1.
Because
−M(x,y)∂y∂M−∂x∂N
is the function of variable y only then we have next differential equation
m(y)1dydm=−M(x,y)∂y∂M−∂x∂N,m(y)dm=ydy,∫m(y)dm=∫ydy,lnm(y)=lny,m(y)=y
Thus we get next differential equation
(ysin(2x)dx−(1+y2+cos(2x))dy)⋅m(y)=0,y2sin(2x)dx−(y+y3+ycos(2x))dy=0,M1(x,y)dx+N1(x,y)dy=0,
where
M1(x,y)=y2sin(2x),N1(x,y)=−(y+y3+ycos(2x)).
Thus
∂y∂M1=2ysin(2x),∂x∂N1=2ysin(2x).
Because ∂y∂M=∂x∂N then we get differential equation in exact differentials. Thus we have
u(x,y)=∫M1(x,y)dx=∫y2sin(2x)dx=−2y2cos(2x)+φ(y).
To find function φ(y) we get next equation
∂y∂(−2y2cos(2x)+φ(y))=−(y+y3+ycos(2x)),−ycos(2x)+dydφ=−y−y3−ycos(2x),dydφ=−y−y3,φ(y)=∫(−y−y3)dy=−2y2−4y4+c.
So
u(x,y)=−2y2cos(2x)−2y2−4y4+c.
Thus the general solution of the differential equation is
−2y2cos(2x)−2y2−4y4+c=0,−2y2cos(2x)−2y2−4y4=−c,2y2(1+cos(2x))+4y4=c,2y2(1+cos(2x))+y4=C
where C=4c
Answer:
2y2(1+cos(2x))+y4=C