Free Mathematics Class 12 ICSE notes · practise this chapter with an AI quiz

← All study notes

How an Integrating Factor Turns a Linear Differential Equation Into One Integral

Solve homogeneous first-order differential equations with the substitution y = vx, solve linear equations dy/dx + Py = Q with an integrating factor, and handle the analogous form dx/dy + Px = Q.

What if the variables in a differential equation cannot be separated?

Many first-order equations refuse to separate — x and y stay tangled together. Two common types still have reliable methods: homogeneous equations, solved with the substitution y=vxy = vx, and linear equations, solved with an integrating factor.

This part covers homogeneous equations, linear equations in y, and linear equations in x.

How do you solve a homogeneous differential equation of the first order and first degree?

An equation dydx=F(x,y)\dfrac{dy}{dx} = F(x, y) is homogeneous when F can be written as a function of yx\dfrac{y}{x} alone; substituting y=vxy = vx, so that dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}, makes the variables separable.

Test for homogeneity.
F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y) for every non-zero λ\lambda.

Worked example. Solve dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x} for x>0x > 0.

- Put y=vxy = vx: v+xdvdx=1+vv + x\dfrac{dv}{dx} = 1 + v
- So xdvdx=1x\dfrac{dv}{dx} = 1, giving dv=dxxdv = \dfrac{dx}{x}
- Integrating: v=log⁡x+Cv = \log x + C, so y=xlog⁡x+Cxy = x\log x + Cx

Check. If y=xlog⁡x+Cxy = x\log x + Cx, then dydx=log⁡x+1+C=yx+1=x+yx\dfrac{dy}{dx} = \log x + 1 + C = \dfrac{y}{x} + 1 = \dfrac{x + y}{x}.

Worked example 2. Solve dydx=x2+y22xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy}. With y=vxy = vx: xdvdx=1+v22v−v=1−v22vx\dfrac{dv}{dx} = \dfrac{1 + v^2}{2v} - v = \dfrac{1 - v^2}{2v}, so 2v dv1−v2=dxx\dfrac{2v\,dv}{1 - v^2} = \dfrac{dx}{x}. Integrating gives −log⁡∣1−v2∣=log⁡∣x∣+C-\log|1 - v^2| = \log|x| + C, which simplifies to x2−y2=Cxx^2 - y^2 = Cx.

An everyday example. Enlarging a photo on a phone screen keeps every shape's proportions, just as a homogeneous equation keeps its form when x and y are scaled together.

The substance. Homogeneous means every term has the same total degree — x2+y2x^2 + y^2 and 2xy2xy both have degree 2, but x2+yx^2 + y does not.

How do you solve a linear differential equation dy/dx + Py = Q using an integrating factor?

For dydx+Py=Q\dfrac{dy}{dx} + Py = Q, where P and Q are functions of x, multiply through by the integrating factor I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}, which turns the left side into the derivative of y×I.F.y \times \text{I.F.}, so the solution is y×I.F.=∫Q×I.F. dx+Cy \times \text{I.F.} = \int Q \times \text{I.F.}\,dx + C.

Worked example.
Solve dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2 for x>0x > 0.

- P=1xP = \dfrac{1}{x}, so I.F.=elog⁡x=x\text{I.F.} = e^{\log x} = x
- yx=∫x3 dx=x44+Cyx = \int x^3\,dx = \dfrac{x^4}{4} + C
- y=x34+Cxy = \dfrac{x^3}{4} + \dfrac{C}{x}

Worked example 2 (particular solution). Solve dydx+2y=4\dfrac{dy}{dx} + 2y = 4 with y(0)=0y(0) = 0. Here I.F.=e2x\text{I.F.} = e^{2x}, so ye2x=2e2x+Cye^{2x} = 2e^{2x} + C and y=2+Ce−2xy = 2 + Ce^{-2x}. The condition gives C=−2C = -2, so y=2−2e−2xy = 2 - 2e^{-2x}, which is about 1.73 at x=1x = 1.

An everyday example. A water tank filling at a steady rate while leaking in proportion to its level obeys dydt+ky=Q\dfrac{dy}{dt} + ky = Q — the level rises and settles at Qk\dfrac{Q}{k}, like the value 2 in the second example.

The substance. Write the equation in standard form first — for xdydx+y=x3x\dfrac{dy}{dx} + y = x^3, divide by x before reading off P.

How do you solve a linear differential equation of the form dx/dy + Px = Q?

When an equation is linear in x rather than y, write it as dxdy+Px=Q\dfrac{dx}{dy} + Px = Q with P and Q functions of y, use I.F.=e∫P dy\text{I.F.} = e^{\int P\,dy}, and the solution is x×I.F.=∫Q×I.F. dy+Cx \times \text{I.F.} = \int Q \times \text{I.F.}\,dy + C.

Spotting the form.
dydx=y2x+y2\dfrac{dy}{dx} = \dfrac{y}{2x + y^2} is not linear in y, but flipping it gives dxdy=2xy+y\dfrac{dx}{dy} = \dfrac{2x}{y} + y, which is linear in x.

Worked example. Solve dxdy−2xy=y\dfrac{dx}{dy} - \dfrac{2x}{y} = y for y>0y > 0.

- P=−2yP = -\dfrac{2}{y}, so I.F.=e−2log⁡y=1y2\text{I.F.} = e^{-2\log y} = \dfrac{1}{y^2}
- xy2=∫y×1y2 dy=log⁡y+C\dfrac{x}{y^2} = \int y \times \dfrac{1}{y^2}\,dy = \log y + C
- x=y2log⁡y+Cy2x = y^2\log y + Cy^2

Check. Differentiating with respect to y gives dxdy=2ylog⁡y+y+2Cy\dfrac{dx}{dy} = 2y\log y + y + 2Cy, which equals 2xy+y\dfrac{2x}{y} + y.

An everyday example. Working out delivery time as a function of distance, instead of distance as a function of time, swaps the roles of the variables — just as flipping dydx\dfrac{dy}{dx} to dxdy\dfrac{dx}{dy} does.

The substance. Flipping the derivative is worth trying when y appears squared or inside a function but x appears only to the first power — the equation may then be linear in x.
Exam tip

What earns full marks on homogeneous and linear differential equations?

State the type in words — 'homogeneous' or 'linear in y' — and write P, Q and the integrating factor on separate lines before solving.

- Homogeneous: substitute y=vxy = vx and dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}
- Linear in y: I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}, then y×I.F.=∫Q×I.F. dx+Cy \times \text{I.F.} = \int Q \times \text{I.F.}\,dx + C
- Linear in x: I.F.=e∫P dy\text{I.F.} = e^{\int P\,dy}
- Replace v by yx\dfrac{y}{x} at the end

The trap. Reading P before putting the equation in standard form. The coefficient of dydx\dfrac{dy}{dx} must be 1 first.
Did you know

How does a capacitor in a phone charger charge up?

When a capacitor charges through a resistor, the voltage across it obeys a linear differential equation, RCdVdt+V=V0RC\dfrac{dV}{dt} + V = V_0, of exactly the type solved with an integrating factor.

The solution, V=V0(1−e−t/RC)V = V_0\left(1 - e^{-t/RC}\right), rises quickly at first and then levels off, never quite reaching V0V_0. After a time of 5RC it is within 1 per cent of full charge.

The same equation describes how a thermometer settles to room temperature and how a medicine drip builds up to a steady level in the blood.
Exam relevance

How are homogeneous and linear differential equations tested in JEE Main?

Differential Equations is a recurring JEE Main chapter, and linear equations with an integrating factor are a staple of it.

What gets asked. Solving linear equations and finding y at a given point, homogeneous equations reduced with y=vxy = vx, and equations that become linear after flipping to dxdy\dfrac{dx}{dy} or a substitution.

Question types. Mostly numerical-value questions.

The trap that costs marks. Using the wrong sign of P in e∫P dxe^{\int P\,dx}
— P must be read after moving every y-term to the left side.
Key takeaways

What must you be able to do from this part?

- Homogeneous equations: F(x,y)F(x, y) depends only on yx\dfrac{y}{x}; substitute y=vxy = vx and separate
- Linear in y: I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx} and y×I.F.=∫Q×I.F. dx+Cy \times \text{I.F.} = \int Q \times \text{I.F.}\,dx + C
- Linear in x: the same method with the roles of x and y swapped

Can you solve dydx−y=ex\dfrac{dy}{dx} - y = e^x with y(0)=1y(0) = 1?

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Differential Equations — Part 2Create a free account
← Back to all articles