Concept:For a linear differential equation
dxdy+Py=Q, the integrating factor is
I.F.=e∫Pdx.
Given that
tanx is the integrating factor, we can determine
P by comparing and differentiating.
Explanation:The integrating factor is given as
tanx, so we write:
e∫Pdx=tanxTaking natural logarithm on both sides:
∫Pdx=log(tanx)Differentiate both sides with respect to
x:
P=dxd[log(tanx)]Using the derivative rule
dxdlogf(x)=f(x)f′(x), we get:
P=tanxsec2xSimplify step by step:
P=cos2x1×sinxcosxP=sinxcosx1Using the identity
sin2x=2sinxcosx, we obtain:
P=sin2x2=2csc2xThus, the correct value of
P is
2csc2x.
Answer:Option D:
2csc2x