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

← All study notes

How an Integrating Factor Turns a Hard Equation Into an Easy One

Recognise homogeneous first order equations and solve them with y = vx, solve linear equations dy/dx + Py = Q using an integrating factor, handle the dx/dy + P1x = Q1 form, and find particular solutions from given conditions.

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

Many first order equations, such as dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x} or dydx+y=x\dfrac{dy}{dx} + y = x, refuse to split into an xx side and a yy side. Two classic methods handle them: a substitution for homogeneous equations and an integrating factor for linear ones.

This part covers homogeneous equations, linear equations in yy and in xx, and particular solutions.

How do you recognise a homogeneous differential equation and solve it with y = vx?

A first order equation dydx=F(x,y)\dfrac{dy}{dx} = F(x, y) is homogeneous when F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y), so FF depends only on yx\dfrac{y}{x}; substituting y=vxy = vx turns it into a separable equation in vv and xx.

The method:


- Put y=vxy = vx, so dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}
- Substitute, separate vv and xx, and integrate
- Replace vv by yx\dfrac{y}{x}

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

Since λx+λyλx=x+yx\dfrac{\lambda x + \lambda y}{\lambda x} = \dfrac{x + y}{x}, the equation is homogeneous. With y=vxy = vx:

v+xdvdx=1+v⇒xdvdx=1⇒dv=dxxv + x\frac{dv}{dx} = 1 + v \Rightarrow x\frac{dv}{dx} = 1 \Rightarrow dv = \frac{dx}{x}

v=log⁡∣x∣+C⇒y=xlog⁡∣x∣+Cxv = \log|x| + C \Rightarrow y = x\log|x| + Cx

When x=vyx = vy is better. If the equation is given as dxdy=G(x,y)\dfrac{dx}{dy} = G(x, y) with GG homogeneous, substitute x=vyx = vy instead.

An everyday example. Enlarging a photograph keeps its shape because every length scales by the same factor — a homogeneous equation is unchanged in the same way when xx and yy are scaled together.

The substance. Homogeneous here means unchanged under scaling of xx and yy, which is a different idea from a homogeneous polynomial.

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

Multiply dydx+Py=Q\dfrac{dy}{dx} + Py = Q by the integrating factor e∫P dxe^{\int P\,dx}, which turns the left side into the derivative of y⋅IFy \cdot \text{IF}, and integrate to get y⋅IF=∫Q⋅IF dx+Cy \cdot \text{IF} = \int Q \cdot \text{IF}\,dx + C.

Why it works.
With IF=e∫P dx\text{IF} = e^{\int P\,dx}, the derivative of IF\text{IF} is P⋅IFP \cdot \text{IF}, so

ddx(y⋅IF)=IFdydx+P⋅IF⋅y=Q⋅IF\frac{d}{dx}(y \cdot \text{IF}) = \text{IF}\frac{dy}{dx} + P \cdot \text{IF} \cdot y = Q \cdot \text{IF}

Worked example 1. Solve dydx+y=x\dfrac{dy}{dx} + y = x. Here P=1P = 1, Q=xQ = x and IF=ex\text{IF} = e^x:

yex=∫xex dx=xex−ex+C⇒y=x−1+Ce−xy e^x = \int x e^x\,dx = x e^x - e^x + C \Rightarrow y = x - 1 + Ce^{-x}

Worked example 2. Solve xdydx+2y=x2x\dfrac{dy}{dx} + 2y = x^2 for x>0x > 0. In standard form, dydx+2xy=x\dfrac{dy}{dx} + \dfrac{2}{x}y = x:

IF=e∫2x dx=e2log⁡x=x2\text{IF} = e^{\int \frac{2}{x}\,dx} = e^{2\log x} = x^2

yx2=∫x3 dx=x44+C⇒y=x24+Cx2y x^2 = \int x^3\,dx = \frac{x^4}{4} + C \Rightarrow y = \frac{x^2}{4} + \frac{C}{x^2}

An everyday example. A water tank filling from a tap while a leak drains it in proportion to the water inside follows a linear equation of exactly this type.

The substance. Put the equation in standard form first — the coefficient of dydx\dfrac{dy}{dx} must be 11 before you read off PP.

How do you solve linear equations of the form dx/dy + P1x = Q1?

When an equation is linear in xx with yy as the independent variable, use the integrating factor e∫P1 dye^{\int P_1\,dy} and integrate with respect to yy: x⋅IF=∫Q1⋅IF dy+Cx \cdot \text{IF} = \int Q_1 \cdot \text{IF}\,dy + C.

When to switch.
If dydx\dfrac{dy}{dx} is not linear in yy but dxdy\dfrac{dx}{dy} is linear in xx, treat xx as the unknown.

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

P1=−1y,IF=e−∫dyy=e−log⁡y=1yP_1 = -\frac{1}{y}, \qquad \text{IF} = e^{-\int \frac{dy}{y}} = e^{-\log y} = \frac{1}{y}

x⋅1y=∫2y⋅1y dy=2y+C⇒x=2y2+Cyx \cdot \frac{1}{y} = \int 2y \cdot \frac{1}{y}\,dy = 2y + C \Rightarrow x = 2y^2 + Cy

Recognising the form. An equation like y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0 rearranges to dxdy−xy=2y\dfrac{dx}{dy} - \dfrac{x}{y} = 2y, the example above.

An everyday example. Reading a train timetable by station instead of by clock time swaps which quantity is treated as the input — just as this form treats yy as the independent variable.

The substance. Neither form is harder — the real skill is spotting which variable the equation is linear in.

How do you find particular solutions of homogeneous and linear equations from given conditions?

Solve the equation completely, substitute the given values of xx and yy to find the constant, and rewrite the solution with that constant.

Worked example 1 — linear.
Solve dydx+y=x\dfrac{dy}{dx} + y = x with y(0)=1y(0) = 1. From y=x−1+Ce−xy = x - 1 + Ce^{-x}:

1=0−1+C⇒C=2y=x−1+2e−x1 = 0 - 1 + C \Rightarrow C = 2 \qquad y = x - 1 + 2e^{-x}

Check. dydx=1−2e−x\dfrac{dy}{dx} = 1 - 2e^{-x}, so dydx+y=1−2e−x+x−1+2e−x=x\dfrac{dy}{dx} + y = 1 - 2e^{-x} + x - 1 + 2e^{-x} = x.

Worked example 2 — homogeneous. Solve dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x} with y=0y = 0 when x=1x = 1. From y=xlog⁡∣x∣+Cxy = x\log|x| + Cx:

0=1⋅0+C⇒C=0y=xlog⁡x for x>00 = 1 \cdot 0 + C \Rightarrow C = 0 \qquad y = x\log x \text{ for } x > 0

An everyday example. A tank's filling law describes every possible starting level, but knowing it held 500500 litres at noon fixes one exact curve — the particular solution.

The substance. Find the constant only after integrating completely — substituting too early loses the constant's effect.
Exam tip

What earns full marks on homogeneous and linear differential equations?

State the type first — homogeneous or linear — and write the substitution or integrating factor on a separate line.

- Homogeneous test: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)
- Substitution: y=vxy = vx with dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}, or x=vyx = vy
- Linear in yy: IF=e∫P dx\text{IF} = e^{\int P\,dx} and y⋅IF=∫Q⋅IF dx+Cy \cdot \text{IF} = \int Q \cdot \text{IF}\,dx + C
- Linear in xx: IF=e∫P1 dy\text{IF} = e^{\int P_1\,dy} and x⋅IF=∫Q1⋅IF dy+Cx \cdot \text{IF} = \int Q_1 \cdot \text{IF}\,dy + C
- Particular solution: substitute the given values after integrating

The trap. Adding the constant after dividing by the integrating factor. Write +C+ C at the integration step, then divide every term, including CC, by the IF.
Did you know

How does a parachute reach a steady falling speed?

As a parachutist falls, gravity pulls down while air resistance pushes up, and the resistance grows with speed. The velocity follows a linear differential equation of the form dvdt+kv=g\dfrac{dv}{dt} + kv = g.

Solving it with the integrating factor ekte^{kt}, starting from rest, gives v=gk(1−e−kt)v = \dfrac{g}{k}\left(1 - e^{-kt}\right), which rises quickly at first and then levels off.

That levelling-off value, gk\dfrac{g}{k}, is the terminal velocity — the steady speed a parachute is designed to keep low enough for a safe landing.
Exam relevance

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

Homogeneous and linear equations are the core solving methods in the JEE Main unit Differential Equations.

What gets asked. Identifying homogeneous equations and solving them with y=vxy = vx, linear equations needing an integrating factor, equations that are linear in xx, and finding yy at a given point from an initial condition. JEE Advanced often disguises these types, for instance as equations reducible to linear form or as conditions on a curve's tangent.

Question types. Numerical-value questions on yy at a point, and multiple-choice questions on the form of the solution.

The trap that costs marks. Reading off PP before making the coefficient of dydx\dfrac{dy}{dx} equal to 11.
Key takeaways

What must you be able to do from this part?

- Homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y); substitute y=vxy = vx; dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x} gives y=xlog⁡∣x∣+Cxy = x\log|x| + Cx
- Linear in yy: IF=e∫P dx\text{IF} = e^{\int P\,dx}; dydx+y=x\dfrac{dy}{dx} + y = x gives y=x−1+Ce−xy = x - 1 + Ce^{-x}
- Linear in xx: IF=e∫P1 dy\text{IF} = e^{\int P_1\,dy}; dxdy−xy=2y\dfrac{dx}{dy} - \dfrac{x}{y} = 2y gives x=2y2+Cyx = 2y^2 + Cy
- Particular solutions: substitute conditions after integrating; y(0)=1y(0) = 1 gives y=x−1+2e−xy = x - 1 + 2e^{-x}

Solve dydx+2y=4\dfrac{dy}{dx} + 2y = 4 with y(0)=0y(0) = 0, and find the value that yy approaches as xx grows large.

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