Q.dxdy+xy=sinx
Concept understanding — Linear First-Order ODE / Integrating Factor
A first-order differential equation is linear if it can be written as
dxdy+Py=Q,
where P and Q are functions of x only (or constants) — crucially, there is no product of y with dxdy, and y and its derivative occur only to the first power. (The mirror form dydx+Px=Q, with P,Q functions of y only, is used when the equation is more naturally linear in x.)
Derivation of the integrating factor. Consider first the associated homogeneous equation dxdy+Py=0. Separating variables and integrating gives ye∫Pdx=C. Differentiating ye∫Pdx using the product rule shows
dxd(ye∫Pdx)=e∫Pdx(dxdy+Py)=Qe∫Pdx
whenever y satisfies the original (non-homogeneous) equation — the left side collapses to an exact derivative. The quantity
I.F.=e∫Pdx
is called the integrating factor.
Solution formula. Multiplying the linear equation through by the integrating factor and integrating both sides with respect to x gives the closed-form general solution
y⋅I.F.=∫Q⋅I.F.dx+C,i.e.ye∫Pdx=∫Qe∫Pdxdx+C.
For the x-dependent-variable mirror form, the analogous solution is xe∫Pdy=∫Qe∫Pdydy+C.
Working steps.
- Rearrange the equation so the coefficient of the highest derivative (dxdy, or dydx) is exactly 1 — this fixes what P and Q actually are.
- Compute ∫Pdx and exponentiate to get the integrating factor. This integral very often simplifies via a logarithm identity, e.g. eklnf(x)=f(x)k or elnsecx=secx — recognising these collapses the integrating factor to something simple.
- Multiply the whole equation by the integrating factor; the left side is now dxd(y⋅I.F.) by construction.
- Integrate both sides with respect to x and add the constant of integration +C — this is where the general solution's one arbitrary constant enters.
- If an initial condition is given, substitute it to solve for C.
P=1/x⇒I.F.=x; then xy=∫xsinxdx, done by parts.
xy=sinx−xcosx+C
P=x1 gives the simple I.F. =x; the resulting integral needs integration by parts.
Step 1. Identify P,Q. y′+xy=sinx⇒P=x1, Q=sinx.
Step 2. Integrating factor. ∫Pdx=lnx⇒I.F.=x.
Step 3. Apply the solution formula. xy=∫xsinxdx+C.
Step 4. Integrate by parts (u=x, dv=sinxdx⇒du=dx, v=−cosx). ∫xsinxdx=−xcosx+∫cosxdx=−xcosx+sinx.
Step 5. Combine. xy=sinx−xcosx+C.
xy=sinx−xcosx+C
- CBSE 2022Set ANNUAL1 markMCQQ.The solution of dxdy+p(x)y=0 is :(a) x=ce−∫pdy(b) y=ce∫pdx(c) x=ce∫pdy(d) y=ce−∫pdx
›Reveal solutionSolution
Separating variables in dxdy+p(x)y=0 and integrating gives y=ce−∫pdx.
- Start with dxdy+p(x)y=0, i.e. dxdy=−p(x)y.
- Separating variables: ydy=−p(x)dx (assuming y=0).
- Integrating both sides: ∫ydy=−∫p(x)dx+k, i.e. ln∣y∣=−∫p(x)dx+k.
- Exponentiating: y=eke−∫p(x)dx.
- Writing c=ek as an arbitrary constant, y=ce−∫pdx.
✓Final answery=ce−∫pdx — option (d).
- CBSE 2022Set ANNUAL1 markMCQQ.If sinx is the integrating factor of the linear differential equation dxdy+Py=Q, then P is :(a) tanx(b) logsinx(c) cotx(d) cosx
›Reveal solutionSolution
Since the integrating factor e∫Pdx equals sinx, differentiating lnsinx gives P=cotx.
- For the linear equation dxdy+Py=Q, the integrating factor is I.F.=e∫Pdx.
- We are told I.F.=sinx, so e∫Pdx=sinx.
- Taking natural logarithms of both sides: ∫Pdx=ln(sinx).
- Differentiating both sides with respect to x: P=dxd(lnsinx)=sinxcosx.
- This simplifies to P=cotx.
✓Final answerP=cotx — option (c).
- CBSE 2018Set ANNUAL1 markMCQQ.If cosx is an integrating factor of the differential equation dxdy+Py=Q then P=(a) tanx(b) −cotx(c) −tanx(d) cotx
›Reveal solutionSolution
Since the integrating factor is e∫Pdx and this is given as cosx, differentiating ln(cosx) recovers P=−tanx.
- For a linear first-order equation dxdy+Py=Q, the integrating factor (I.F.) is I.F.=e∫Pdx.
- We are told I.F.=cosx, so e∫Pdx=cosx.
- Taking natural logs of both sides: ∫Pdx=ln(cosx).
- Differentiate both sides with respect to x to recover P: P=dxd[ln(cosx)]=cosx1⋅(−sinx)=−tanx.
✓Final answerP=−tanx — option (c).
- CBSE 2017Set ANNUAL1 markMCQQ.Solution of dydx+mx=0, where m<0 is :(a) x=cemy(b) x=ce−my(c) x=my+c(d) x=c
›Reveal solutionSolution
Separating variables in dydx+mx=0 gives the general solution x=ce−my.
- Rewrite the equation: dydx=−mx.
- Separate variables: xdx=−mdy.
- Integrate both sides: lnx=−my+k, where k is a constant of integration.
- Exponentiate: x=e−my+k=ce−my, where c=ek is an arbitrary constant.
- (The given condition m<0 tells us the exponent −my actually grows with y, but it does not change the functional form of the solution.)
✓Final answerThe general solution is x=ce−my — option (b).
- CBSE 2017Set ANNUAL1 markMCQQ.The integrating factor of the differential equation dxdy−ytanx=cosx is :(a) secx(b) cosx(c) etanx(d) cotx
›Reveal solutionSolution
Identify the equation as first-order linear dxdy+Py=Q with P=−tanx, then compute I.F.=e∫Pdx, using ∫tanxdx=ln∣secx∣ and simplifying e−ln∣secx∣=cosx.
- Given: dxdy−ytanx=cosx.
- This is in the standard linear form dxdy+Py=Q, with P=−tanx and Q=cosx.
- The integrating factor is I.F.=e∫Pdx=e∫(−tanx)dx=e−∫tanxdx.
- Using the standard integral ∫tanxdx=ln∣secx∣=−ln∣cosx∣: I.F.=e−(−ln∣cosx∣)=eln∣cosx∣=cosx
- So the integrating factor is cosx, matching option (b).
✓Final answerThe integrating factor is cosx.
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.