We have the differential equation
cosxdxdy−ysinx=6x,0<x<2π.
First we rewrite it in the standard linear form. Dividing every term by cosx gives
dxdy−ytanx=6xsecx.
A first-order linear equation of the form dxdy+P(x)y=Q(x) is solved by multiplying with the integrating factor μ(x)=e∫P(x)dx.
Here P(x)=−tanx, so
μ(x)=e∫−tanxdx=e−ln∣secx∣=eln∣cosx∣=cosx.
Multiplying the whole differential equation by cosx (the integrating factor) we obtain
cosxdxdy−ysinx=6x,
which is exactly the left-hand side of our original equation, confirming that cosx is indeed the correct integrating factor.
By construction, the left side is now the derivative of the product ycosx, because
dxd(ycosx)=cosxdxdy−ysinx.
So we can rewrite the equation as
dxd(ycosx)=6x.
Integrating both sides with respect to x, we get
ycosx=∫6xdx=3x2+C,
where C is the constant of integration.
We are given the initial condition y(3π)=0. Substituting x=3π and y=0 in the integrated result:
0⋅cos(3π)=3(3π)2+C,
0=93π2+C=3π2+C.
Hence
C=−3π2.
Substituting C back, the particular solution becomes
ycosx=3x2−3π2,
so
y(x)=cosx3x2−3π2.
Now we must find y(6π). Putting x=6π:
Numerator:
3(6π)2−3π2=3⋅36π2−3π2=12π2−3π2=π2(121−124)=−123π2=−4π2.
Denominator:
cos(6π)=23.
Therefore
y(6π)=23−4π2=−4π2⋅32=−23π2.
Hence, the correct answer is Option D.