Q.Solve the following differential equation: (x+y)dxdy=1
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →Concept understanding — Integrating Factor Method
Integrating Factor Method
Some first-order differential equations refuse to separate — you cannot get all the y's on one side and all the x's on the other. The integrating factor method is the standard trick for a special (and very common) family of these: the linear first-order equation. The idea is beautifully simple: multiply the whole equation by one cleverly chosen function, and the messy left-hand side collapses into a single derivative that we can integrate directly.
The Standard Form
An equation is linear of first order if it can be written as
dxdy+Py=Q
where P and Q are functions of x alone (or constants). Notice y and dxdy appear only to the first power, and never multiplied together — that is what "linear" means here.
Always rearrange into this exact shape first. The coefficient of dxdy must be 1 before you read off P and Q.
The Integrating Factor
The magic multiplier is
I.F.=e∫Pdx.
Why this one? Multiply the equation by e∫Pdx:
e∫Pdxdxdy+Pe∫Pdxy=Qe∫Pdx.
By the product rule, the left-hand side is exactly dxd(y⋅e∫Pdx), because the derivative of e∫Pdx is Pe∫Pdx. So the equation becomes
dxd(y⋅I.F.)=Q⋅I.F.
The left side is now a single derivative — that is the whole point of choosing this factor.
The Solution
Integrate both sides with respect to x:
y⋅I.F.=∫(Q⋅I.F.)dx+C.
This is the general solution. In words: (solution) × (integrating factor) = integral of (Q × integrating factor), plus a constant.
A Quick Illustration
For dxdy+x1y=x, we read P=x1, Q=x. Then ∫Pdx=logx, so I.F.=elogx=x. The solution is
y⋅x=∫x⋅xdx+C=3x3+C.
--- …
The equation is not linear in y, but it is linear in x if we treat x as a function of y.
Flip the derivative: (x+y)dxdy=1⟹dydx=x+y, i.e. dydx−x=y.
Integrating factor: μ=e∫(−1)dy=e−y. …
Treat x as a function of y: the equation becomes linear, giving x=Cey−y−1.
Spotting the trick
Written as dxdy=x+y1 the equation is neither separable nor linear in y. But dydx=dy/dx1, so flipping the derivative turns it linear in x.
Set up
(x+y)dxdy=1⟹dydx=x+y⟹dydx−x=y.
This is dydx+P(y)x=Q(y) with P=−1, Q=y.
Integrating factor
μ(y)=e∫(−1)dy=e−y.
Multiply and integrate
dyd(xe−y)=ye−y.
By parts (u=y, dv=e−ydy),
∫ye−ydy=−ye−y−e−y+C.
So xe−y=−ye−y−e−y+C. …
Method: Flip to dydx when the equation is linear in x
If an equation is not linear in y but dydx turns out linear in x, treat x as the dependent variable.
Steps
Step 1: Test linearity both ways.
Try to write dxdy+Py=Q. If y appears non-linearly but the reciprocal dydx=dy/dx1 is linear in x, switch.
Step 2: Write the linear-in-x form.
dydx+P(y)x=Q(y). …
Common Mistakes
Mistake 1: Trying to force the equation to be linear in y.
Why it's wrong: dxdy=x+y1 is not linear in y; flipping to dydx=x+y makes it linear in x. Correct approach: recognise linearity in x(y) and switch.
Mistake 2: Getting the integrating factor wrong from P=−1.
Why it's wrong: ∫(−1)dy=−y, so I.F. =e−y, not ey. Correct approach: exponentiate −y. …
- JEE Main 2026Set 2026-01-21-s24 marksMCQQ.Let y = y(x) be the solution of the differential equation sec x (dy/dx) − 2y = 2 + 3 sin x, x ∈ (−π/2, π/2), y(0) = −7/4. Then y(π/6) is equal to : (A) −3√2 − 7 (B) −3√3 − 7 (C) −5/4 (D) −5/2
›Reveal solutionSolution
After converting to standard linear form and solving, the constant of integration turns out to be exactly zero, leaving the clean closed form y=−47−23sinx, giving y(π/6)=−25.
The equation isn't linear as written (it has secx multiplying dy/dx), but multiplying through by cosx fixes that.
- Multiply by cosx: dxdy−2cosxy=(2+3sinx)cosx.
- Integrating factor: e∫−2cosxdx=e−2sinx.
- dxd[ye−2sinx]=(2+3sinx)cosxe−2sinx. Substitute u=sinx, du=cosxdx: RHS integral becomes ∫(2+3u)e−2udu=e−2u(−47−23u) (via integration by parts). …
- JEE Main 2026Set 2026-04-04-s24 marksMCQQ.Let y = y(x) be the solution of the differential equation: dy/dx + [6x^2 + (3x^2 + 2x^3 + 4)e^{−2x}] / [(x^3 + 2)(2 + e^{−2x})] · y = 2 + e^{−2x}, x ∈ (−1, 2), satisfying y(0) = 3/2. If y(1) = α(2 + e^{−2}), then α is equal to: (A) 13/8 (B) 6/13 (C) 12/13 (D) 13/12
›Reveal solutionSolution
The messy P(x) splits into two clean logarithmic pieces, giving IF=(x³+2)/(2+e^{−2x}); after integrating and applying y(0)=3/2, α works out to 13/12.
The trick in this problem is recognizing that the complicated P(x) decomposes into a sum of two simple rational-in-each-piece terms.
- Decompose the numerator: 6x² + (3x²+2x³+4)e^{−2x} = 3x²(2+e^{−2x}) + 2(x³+2)e^{−2x} (check: 3x²×2+3x²e^{−2x} + 2x³e^{−2x}+4e^{−2x} = 6x²+3x²e^{−2x}+2x³e^{−2x}+4e^{−2x}, matching the original numerator).
- So P(x) = 3x²/(x³+2) + 2e^{−2x}/(2+e^{−2x}).
- Integrate each piece: ∫3x²/(x³+2)dx = ln(x³+2). For the second, let u=2+e^{−2x}, du=−2e^{−2x}dx: ∫2e^{−2x}/(2+e^{−2x})dx = −ln(2+e^{−2x}).
- So ∫P dx = ln(x³+2) − ln(2+e^{−2x}) = ln[(x³+2)/(2+e^{−2x})].
Integrating factor IF = e^{∫P dx}
- IF = (x³+2)/(2+e^{−2x}). …
- JEE Main 2026Set 2026-04-05-s24 marksQ.Let y = y(x) be the solution of the differential equation (tan x)^(1/2) dy = (sec^3 x - (tan x)^(3/2) y) dx, 0 < x < π/2, y(π/4) = 6√2/5. If y(π/3) = (4/5) α, then α^4 equals __________.
›Reveal solutionSolution
Rewriting the equation as a linear ODE in y, solving with integrating factor secx, and fitting the initial condition gives y=cosx[2tanx+52(tanx)5/2], leading to α4=48.
Whenever a differential equation can be rearranged into the form dxdy+P(x)y=Q(x), the integrating factor e∫Pdx is the reliable way through — no need to guess a substitution.
- Starting from (tanx)1/2dy=[sec3x−(tanx)3/2y]dx, divide by (tanx)1/2dx:
dxdy=sec3x(tanx)−1/2−tanx⋅y ⟹ dxdy+tanx⋅y=sec3x(tanx)−1/2.
- The integrating factor is e∫tanxdx=elnsecx=secx, so
dxd(ysecx)=secx⋅sec3x(tanx)−1/2=sec4x(tanx)−1/2.
- Substitute t=tanx, dt=sec2xdx, and write sec4xdx=sec2x⋅(sec2xdx)=(1+t2)dt:
∫(1+t2)t−1/2dt=∫(t−1/2+t3/2)dt=2t1/2+52t5/2+C.
- So ysecx=2tanx+52(tanx)5/2+C, i.e.
y=cosx[2tanx+52(tanx)5/2+C].
Watch outDon't drop the constant C before checking the initial condition — it isn't automatically zero.
- At x=π/4, tanx=1, cosx=21: y(4π)=21[2+52+C]=22.4+C. …
- JEE Main 2023Set 2023-04-15-s14 marksMCQQ.Let x=x(y) be the solution of the differential equation 2(y+2)\log_e(y+2),dx + (x+4-2\log_e(y+2)),dy = 0,\ y>-1 with x(e^4-2)=1. Then x(e^9-2) is equal to (A) \frac{4}{9} (B) \frac{32}{9} (C) \frac{10}{3} (D) 3
›Reveal solutionSolution
Rewrite as a linear ODE in x(y), then the substitution u=loge(y+2) collapses everything to an elementary integral.
- From the equation, dydx+2(y+2)loge(y+2)x=(y+2)loge(y+2)loge(y+2)−2.
- Let u=loge(y+2), so y+2dy=du; integrating factor =exp(∫2udu)=u1/2.
- Then dyd(xu1/2)=u1/2u−2 (in u), so xu1/2=∫(u1/2−2u−1/2)du=32u3/2−4u1/2+C. …
- JEE Main 2023Set 2023-01-25-s24 marksMCQQ.Let y = y(t) be a solution of the differential equation dy/dt + \alpha y = \gamma e^{-\beta t}, where \alpha > 0, \beta > 0 and \gamma > 0. Then \lim_{t \to \infty} y(t) (A) is 0 (B) does not exist (C) is 1 (D) is -1
›Reveal solutionSolution
Solve the first-order linear ODE with an integrating factor; every term in the general solution contains a decaying exponential since both \alpha and \beta are positive.
- The integrating factor is e^{\alpha t}, giving \frac{d}{dt}(ye^{\alpha t})=\gamma e^{(\alpha-\beta)t}.
- If \alpha\ne\beta: integrating gives ye^{\alpha t} = \frac{\gamma}{\alpha-\beta}e^{(\alpha-\beta)t}+C, so y=\frac{\gamma}{\alpha-\beta}e^{-\beta t}+Ce^{-\alpha t}.
- If \alpha=\beta: the RHS becomes \gamma, so ye^{\alpha t}=\gamma t+C, giving y=\gamma t e^{-\alpha t}+Ce^{-\alpha t}. …
- JEE Main 2021Set 2021-09-01-s14 marksMCQQ.If y = y(x) is the solution curve of the differential equation x²dy + (y − 1/x) dx = 0; x > 0 and y(1) = 1, then y(1/2) is equal to: (A) 3/2 − 1/√e (B) 3 + 1/√e (C) 3 + e (D) 3 − e
›Reveal solutionSolution
Solve the linear ODE with integrating factor e−1/x, apply the initial condition, then evaluate at x=1/2.
- x2dy+(y−1/x)dx=0⇒dxdy+x2y=x31.
- Integrating factor μ=e∫x−2dx=e−1/x.
- dxd(ye−1/x)=x3e−1/x.
- Substituting u=−1/x, the RHS integrates to e−1/x(1+1/x)+C. …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.