To solve the given differential equation:
(sinycos2y−xsec2y)dy=(tany)dx,we start by rewriting it in the standard linear form:
dydx+sinycosyx=cos3y.Recognizing this as a linear differential equation in
x, we determine the integrating fac
Compute the Integrating Factor (IF):
IF=e∫sinycosy1dy.Solve the Integral:
∫sinycosy1dy=2∫csc2ydy.Solving this integral gives:
e∫csc2ydy=elog∣csc2y−cot2y∣=csc2y−cot2y.Thus, the integrating factor simplifies to:
IF=sin2y1−cos2y=2sinycosy2sin2y=tany.Apply the Integrating Factor:
Multiply the entire linear differential equation by this integrating factor:
x×tany=∫cos3y×tanydyIntegrate the Right-Hand Side:
Substitute
cos2y=1−sin2y. Then:
∫cos3ytanydy=∫cos2ysinydy.Perform the integration:
=−3cos3y+C.Resulting General Solution:
Therefore, the general solution to the differential equation is:
3xtany+cos3y=C.