Q.Solve the differential equation (xe−2x−xy)dydx=1 (x=0).
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-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 key idea is to rewrite the equation in the standard linear form dxdy+P(x)y=Q(x) and solve using an integrating factor.
Step 1: Invert the given equation.
Since dydx=1/dxdy, we have
dxdy=xe−2x−xy.
Step 2: Rearrange into linear form.
dxdy+x1y=xe−2x.
Here P(x)=x1 and Q(x)=xe−2x.
Step 3: Find the integrating factor.
μ(x)=e∫x1dx=e2x.
Step 4: Multiply through and integrate. …
Inverting dydx turns this into a linear ODE in y(x) with integrating factor e2x. The solution is y=e−2x(2x+C).
Since the bracket times dydx equals 1, take reciprocals to make x the independent variable:
dxdy=xe−2x−xy.
Rearrange into linear form:
dxdy+x1y=xe−2x,P(x)=x1,Q(x)=xe−2x.
Integrating factor:
μ=e∫x−1/2dx=e2x.
Multiplying through, the left side is an exact derivative and the right side simplifies: …
Method: Invert dydx to expose a linear equation
When the equation is written with dydx but is really linear in y(x), take reciprocals first.
Steps
Step 1: Take reciprocals.
Since dxdy=dx/dy1, rewrite the equation with dxdy.
Step 2: Arrange into standard linear form.
Collect to dxdy+P(x)y=Q(x); here P=x1.
Step 3: Integrating factor. …
Common Mistakes
Mistake 1: Not inverting dydx to reach linear form.
Why it's wrong: as written the equation hides a linear equation in y(x); taking reciprocals gives dxdy+x1y=xe−2x. Correct approach: use dxdy=1/dydx.
Mistake 2: Getting the I.F. wrong from P=x1.
Why it's wrong: ∫x−1/2dx=2x, so I.F. =e2x; a missing factor 2 breaks the cancellation. Correct approach: integrate the power correctly. …
Showing the 12 most recent of 13 on this concept.
- COMEDK 2026Set 2026-A1 markMCQQ.Let the population of a species of birds surviving at a time ' t ' be governed by the differential equation dtdp−p=−100. If p(0)=50, then p(−loge2) is equal to (A) 100 (B) 90 (C) 75 (D) 40
›Reveal solutionSolution
This is a first-order linear ODE solved using an integrating factor. The solution is p(t)=100−50et, and evaluating at t=−log2 gives p=75, so the correct option is (C).
We start with the differential equation
dtdp−p=−100
and the initial condition p(0)=50. The goal is to find p(−log2).
Concept & Intuition
This is a first-order linear ordinary differential equation of the form dtdp+P(t)p=Q(t). Here P(t)=−1 (constant) and Q(t)=−100 (constant). The standard method is to multiply both sides by an integrating factor μ(t)=e∫Pdt, which turns the left side into a perfect derivative. Then we integrate and apply the initial condition.
Step-by-step solution
- Find the integrating factor Since P(t)=−1,
μ(t)=e∫(−1)dt=e−t.
- Multiply the ODE by μ(t)
e−tdtdp−e−tp=−100e−t.
The left side is exactly dtd(pe−t) because
dtd(pe−t)=e−tdtdp−pe−t.
- Rewrite and integrate
dtd(pe−t)=−100e−t.
Integrate both sides with respect to t:
pe−t=∫−100e−tdt=100e−t+C,
where C is the constant of integration.
- Solve for p(t) Multiply through by et:
p(t)=100+Cet.
- Apply the initial condition p(0)=50
50=100+Ce0⇒50=100+C⇒C=−50.
So the particular solution is
p(t)=100−50et.… - COMEDK 2026Set 2026-M1 markMCQQ.
[!FORMULA] The solution of dy=cosx(2−ycosecx)dx where y=2 when x=4π is
(A) y=sinx+21cosecx (B) y=tan(2x)+cot(2x) (C) ysinx=21cos2x (D) y=21secx+2cos(2x)›Reveal solutionSolution
This is a first‑order linear differential equation. Rewriting it in standard form and using an integrating factor yields the solution y=sinx+21cscx, which matches option (A).
We start with
dy=cosx(2−ycscx)dx.
Dividing through by dx (treating it as a differential equation in y and x) gives
dxdy=cosx(2−ycscx)=2cosx−ycosxcscx.
Since cosxcscx=cotx, this becomes
dxdy=2cosx−ycotx.
Rearranging into standard linear form dxdy+P(x)y=Q(x):
dxdy+(cotx)y=2cosx.
Why this approach works:
A first‑order linear ODE is solved by multiplying through by an integrating factor μ(x)=e∫Pdx. This turns the left side into the derivative of μ(x)y, which we can then integrate directly.
- Find the integrating factor
μ(x)=e∫cotxdx=elog∣sinx∣=sinx.
(We take sinx>0 for the interval containing x=π/4.)
- Multiply the ODE by μ(x)
sinxdxdy+(sinxcotx)y=2sinxcosx.
Since sinxcotx=cosx, the left side is exactly dxd(ysinx). The right side simplifies: 2sinxcosx=sin2x.
So we have
dxd(ysinx)=sin2x.
- Integrate both sides
ysinx=∫sin2xdx=−21cos2x+C.
- Use the initial condition Given y=2 when x=4π:
2⋅sin4π=−21cos2π+C.
sin4π=22, so left side = 2⋅22=1. …
- KCET 2026Set UNKNOWN1 markMCQQ.Integrating factor of the differential equation (1−x2)dxdy−xy=1 is (A) 1−x2 (B) 21log(1−x2) (C) 1−x2x (D) 1−x2
›Reveal solutionSolution
Convert (1−x2)dxdy−xy=1 into the standard linear form dxdy+Py=Q, then compute the integrating factor e∫Pdx.
Step 1 — Write in standard linear form
Divide throughout by (1−x2):
dxdy−1−x2xy=1−x21.
Comparing with dxdy+Py=Q, we identify
P=−1−x2x.
Step 2 — Integrate P
∫Pdx=∫(−1−x2x)dx.
Let u=1−x2, so du=−2xdx, i.e. xdx=−21du. Then …
- COMEDK 2025Set 2025-A1 markMCQQ.Integrating factor of the differential equation dxdy+y=xx3+y is (A) exx (B) ex (C) xex (D) xex
›Reveal solutionSolution
Rearranging to standard linear form gives P(x)=1−x1, so the integrating factor is xex.
Rewrite the right-hand side:
dxdy+y=xx3+y=x2+xy.
Bring the y-terms together:
dxdy+y−xy=x2⟹dxdy+(1−x1)y=x2. …
- COMEDK 2025Set 2025-E1 markMCQQ.Solve the following differential equation cos2xdxdy+y=tanx, given that y(0)=1. Hence find y(4π) (A) 2 (B) e2 (C) e (D) 1
›Reveal solutionSolution
Rewrite as a linear ODE with integrating factor etanx: y=tanx−1+2e−tanx, so y(4π)=e2.
Divide the equation cos2xdxdy+y=tanx by cos2x:
dxdy+sec2xy=tanxsec2x
This is linear with integrating factor
μ=e∫sec2xdx=etanx
Then
dxd(yetanx)=tanxsec2xetanx
Put t=tanx, dt=sec2xdx:
yetanx=∫tetdt=et(t−1)+C=etanx(tanx−1)+C
Hence
y=tanx−1+Ce−tanx …
- COMEDK 2025Set 2025-M1 markMCQQ.The solution of (x+logy)dy+ydx=0 when y(0)=1 is (A) y(x−1+logy)+1=0 (B) xy+ylogy+1=0 (C) xy=ylogy−y−1 (D) y(x+1+logy)−1=0
›Reveal solutionSolution
Treat as a linear ODE in x with respect to y; the integrating factor is y, giving y(x−1+logy)+1=0 — option (A).
Write the equation with x as the dependent variable of y:
ydx+(x+logy)dy=0⇒dydx+y1x=−ylogy.
This is linear in x. Integrating factor:
μ=e∫y1dy=elogy=y.
Multiply through:
dyd(xy)=−logy.
Integrate, using ∫logydy=ylogy−y:
xy=−(ylogy−y)+C=−ylogy+y+C. …
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] Integrating factor of the differential equation dxdy+y=xx3+y is
(A) exx (B) ex (C) xex (D) xex›Reveal solutionSolution
Collecting the y-terms puts the equation in standard linear form with P(x)=1−x1, giving integrating factor xex — option (C).
Reduce to standard linear form
The standard first-order linear form is dxdy+P(x)y=Q(x), with integrating factor I.F.=e∫Pdx.
Starting from dxdy+y=xx3+y, multiply through by x:
xdxdy+xy=x3+y.
Move the y on the right to the left:
xdxdy+(x−1)y=x3.
Divide by x:
dxdy+xx−1y=x2,P(x)=xx−1=1−x1.
Compute the integrating factor …
- COMEDK 2024Set 2024-E1 markMCQQ.
[!FORMULA] The general solution of the differential equation (1+tany)(dx−dy)+2xdy=0 is
(A) y(sinx+cosx)=sinx+cex (B) y(sinx+cosx)=sinx+ce−x (C) x(siny+cosy)=siny+cey (D) x(siny+cosy)=siny+ce−y›Reveal solutionSolution
This is a first-order linear ODE in disguise. By rewriting the equation in terms of x as a function of y, we can apply the integrating factor method. The solution matches option (D).
We start with
(1+tany)(dx−dy)+2xdy=0.
The presence of both dx and dy suggests we can treat x as a function of y (or vice versa). Since the options involve x multiplied by trigonometric functions of y, it’s natural to solve for x in terms of y.
Why this approach works:
If we rearrange to isolate dydx, the equation becomes linear in x:
dydx+P(y)x=Q(y).
Then we use the standard integrating factor μ(y)=e∫Pdy.
- Rewrite the equation Expand the given expression:
(1+tany)dx−(1+tany)dy+2xdy=0.
Group the dx and dy terms:
(1+tany)dx+[2x−(1+tany)]dy=0.
- Divide by dy to get dydx Assuming dy=0,
(1+tany)dydx+2x−(1+tany)=0.
So
(1+tany)dydx+2x=1+tany.
- Make it linear in x Divide through by 1+tany (valid where tany=−1):
dydx+1+tany2x=1.
This is a first-order linear ODE:
dydx+P(y)x=Q(y),P(y)=1+tany2,Q(y)=1.
- Find the integrating factor
μ(y)=e∫Pdy=e∫1+tany2dy.
We need ∫1+tanydy. Use the identity tany=cosysiny:
1+tany1=1+cosysiny1=cosy+sinycosy.
So
∫1+tany2dy=2∫cosy+sinycosydy.
- Evaluate the integral A standard trick: Write
cosy=21[(cosy+siny)+(cosy−siny)].
Then
cosy+sinycosy=21+21⋅cosy+sinycosy−siny.
The second term’s integral is easy because the numerator is the derivative of the denominator (up to sign):
dyd(cosy+siny)=−siny+cosy=cosy−siny.
Thus
∫cosy+sinycosy−sinydy=log∣cosy+siny∣+C.
Therefore
2∫cosy+sinycosydy=2(2y+21log∣cosy+siny∣)=y+log∣cosy+siny∣.
So the integrating factor is
μ(y)=ey+log∣cosy+siny∣=ey⋅∣cosy+siny∣.
We can drop the absolute value (absorb sign into constant later) and take
μ(y)=ey(cosy+siny).
- Apply the integrating factor Multiply the ODE by μ(y):
ey(cosy+siny)dydx+ey(cosy+siny)⋅1+tany2x=ey(cosy+siny).
But note:
1+tany2=cosy+siny2cosy,
so the left side becomes
ey(cosy+siny)dydx+2eycosyx.
Observe that
dyd[ey(cosy+siny)x]=ey(cosy+siny)dydx+x⋅dyd[ey(cosy+siny)].
Compute the derivative:
dyd[ey(cosy+siny)]=ey(cosy+siny)+ey(−siny+cosy)=ey(2cosy). …
- COMEDK 2024Set 2024-M1 markMCQQ.The particular solution of the differential equation cosxdxdy+y=sinx at y(0)=1 (A) y(secx+tanx)=secx+tanx−x+1 (B) y(secx+tanx)=secx+tanx−x (C) y(secx+tanx)=secx+tanx+x (D) y(secx+tanx)=secx+tanx−x+2
›Reveal solutionSolution
Solve the linear ODE with integrating factor secx+tanx; applying y(0)=1 gives C=0, so y(secx+tanx)=secx+tanx−x (option B).
Rewrite the equation in standard linear form by dividing through by cosx:
dxdy+ysecx=tanx
The integrating factor is
IF=e∫secxdx=elog∣secx+tanx∣=secx+tanx
Multiplying through:
dxd[y(secx+tanx)]=tanx(secx+tanx)=secxtanx+tan2x
Using tan2x=sec2x−1:
dxd[y(secx+tanx)]=secxtanx+sec2x−1
Integrating both sides:
y(secx+tanx)=secx+tanx−x+C …
- COMEDK 2023Set 2023-E1 markMCQQ.The general solution of the differential equation (1+y2)dx=(tan−1y−x)dy (A) x=tan−1y−1+cetan−1y (B) x=tan−1y−1+ce−tan−1y (C) x=tan−1y+cetan−1y (D) x=ctan−1y+e−tan−1y
›Reveal solutionSolution
This is linear in x with integrating factor etan−1y; solving gives x=tan−1y−1+ce−tan−1y.
Rewrite (1+y2)dx=(tan−1y−x)dy as
dydx+1+y2x=1+y2tan−1y.
Integrating factor: μ=e∫1+y2dy=etan−1y. Then
xetan−1y=∫1+y2tan−1yetan−1ydy.
Put t=tan−1y, dt=1+y2dy: …
- COMEDK 2023Set 2023-E1 markMCQQ.The solution of the differential equation dxdy+ycosx=21sin2x (A) yesinx=esinx(sinx+1)+c (B) yesinx=esinx(sinx−1)+c (C) yesin2x=esin2x(sinx−1)+c (D) yecosx=esinx(cosx−1)+c
›Reveal solutionSolution
Back-substitute t = sin x: y e^(sin x) = e^(sin x) (sin x - 1) + c.
Concept: linear first-order ODE, dy/dx + P(x) y = Q(x), solved by the integrating factor e^(integral P dx).
Here P = cos x, Q = (1/2) sin 2x = sin x cos x.
IF = e^(integral cos x dx) = e^(sin x).
Solution: y * e^(sin x) = integral [ sin x cos x * e^(sin x) ] dx.
Put t = sin x, dt = cos x dx: …
- COMEDK 2021Set 20211 markMCQQ.The solution of the differential equation (1+y2)+(x−etan−1y)dxdy=0 is (A) 2xetan−1y=e2tan−1y+C (B) xetan−1y=tan−1y+C (C) xe2tan−1y=etan−1y+C (D) (x−2)=Ce−tan−1y
›Reveal solutionSolution
Hence x e^(arctan y) = (1/2) e^(2 arctan y) + C', i.e. 2x e^(arctan y) = e^(2 arctan y) + C.
Concept: treat x as the dependent variable and y as the independent variable; it becomes a linear first-order ODE in x.
(1 + y^2) + (x - e^(arctan y)) dy/dx = 0
=> (1 + y^2) dx/dy + x - e^(arctan y) = 0
=> dx/dy + x/(1 + y^2) = e^(arctan y)/(1 + y^2).
Integrating factor: IF = exp( integral dy/(1 + y^2) ) = e^(arctan y).
Multiply through:
d/dy [ x e^(arctan y) ] = e^(2 arctan y)/(1 + y^2).
Integrate the RHS with t = arctan y, dt = dy/(1 + y^2): …
🎓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.