The given differential equation is
dxdy+2ytanx=sinx;y=0 when x=3π
(It is the standard form of a linear differential equation.)
Comparing with
dxdy+Py=Q,
we have
P=2tanx,Q=sinx
Integrating Factor
∫Pdx=2∫tanxdx=2logsecx=log(secx)2(∵nlogm=logmn)
I.F.=e∫Pdx=elog(secx)2=(secx)2=sec2x
General Solution
y(I.F.)=∫Q(I.F.)dx+c
⇒ysec2x=∫sinxsec2xdx+c
=∫cos2xsinxdx+c=∫cosx⋅cosxsinxdx+c
or
ysec2x=∫tanxsecxdx+c=secx+c
⇒cos2xy=cosx1+c
Multiplying by L.C.M. =cos2x,
y=cosx+ccos2x(i)
To Find c
Given
y=0 when x=3π
From (i),
0=cos3π+ccos23π
⇒0=21+c(21)2
⇒0=21+4c
⇒4c=−21⇒c=−2
Particular Solution
Putting c=−2 in (i),
y=cosx−2cos2x
which is the required particular solution.