PYQ Vault

CBSE Class 12 Maths · Differential Equations

Linear Differential Equations

Equations of the form dy/dx + Py = Q: the standard form, the integrating factor, the general and particular solutions, and equations that are linear in x, written as dx/dy + P₁x = Q₁.

Why this matters

67 questions, thirty-eight of them from board papers in every year from 2022 to 2026. Sixteen of the thirty-eight are one-mark MCQs, and fourteen of those ask only for the integrating factor (2023 to 2026). The written questions ask for general and particular solutions of dy/dx + Py = Q (every year), and for equations that are linear in x rather than y, such as y dx = (x + 2y²) dy or (tan⁻¹y − x) dy = (1 + y²) dx (2024 to 2026). The textbook adds Exercise 9.5, Examples 14 to 18, Miscellaneous Example 22 and Miscellaneous Questions 10, 11, 14 and 15.

Concept 1 of 4: The standard form and the integrating factor

A linear equation has y and dy/dx only to the first power, never multiplied together. Multiplying it by the right function of x, the integrating factor, turns the left side into the derivative of a single product, which can then be integrated.

Definition

  • A first order linear differential equation has the form dydx+Py=Q\dfrac{dy}{dx} + Py = Q, where P and Q are constants or functions of x only.
  • Make the coefficient of dydx\dfrac{dy}{dx} equal to 1 first: divide through by it, then read off P.
  • Integrating factor: I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}. Use elog⁡f(x)=f(x)e^{\log f(x)} = f(x).
  • Multiplying by the I.F. makes the left side ddx(y⋅I.F.)\dfrac{d}{dx}\left(y \cdot \text{I.F.}\right).
  • Common factors: P=1xP = \dfrac{1}{x} gives x; P=−1xP = -\dfrac{1}{x} gives 1x\dfrac{1}{x}; P=2xP = \dfrac{2}{x} gives x2x^2; P=tan⁡xP = \tan x gives sec⁡x\sec x; P=cot⁡xP = \cot x gives sin⁡x\sin x; P=2x1+x2P = \dfrac{2x}{1 + x^2} gives 1+x21 + x^2; P=1xlog⁡xP = \dfrac{1}{x\log x} gives log⁡x\log x.
  • If the question writes dxdy\dfrac{dx}{dy}, turn it the right way up first, then see which variable the equation is linear in.

Integrating factor

I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}

Worked example

Find the integrating factor of xdydx+3y=x2x\dfrac{dy}{dx} + 3y = x^2, x>0x > 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/2/1 · Q12Easy

Example 1 · Differential Equations · Linear Differential Equations

The integrating factor of the differential equation 2xdydx−y=32x\dfrac{dy}{dx} - y = 3 is

Reading P before dividing

In xdydx−y=x3x\dfrac{dy}{dx} - y = x^3, P is not −1-1. Divide by x first: P=−1xP = -\dfrac{1}{x}, so the I.F. is 1x\dfrac{1}{x}, not e−xe^{-x}.

Giving the integral of P as the I.F.

For P=tan⁡xP = \tan x, ∫P dx=log⁡sec⁡x\displaystyle\int P\,dx = \log \sec x, but the integrating factor is its exponential, sec⁡x\sec x.

Turning a minus log into a minus sign

e−log⁡x=elog⁡x−1=1xe^{-\log x} = e^{\log x^{-1}} = \dfrac{1}{x}, not −x-x.

Concept 2 of 4: Solving dy/dx + Py = Q

Once the left side is the derivative of y times the integrating factor, integrate both sides with respect to x. The constant is added at that step, before you divide by the integrating factor.

Definition

  • Step 1: write the equation as dydx+Py=Q\dfrac{dy}{dx} + Py = Q.
  • Step 2: find I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}.
  • Step 3: write the solution y⋅I.F.=∫Q⋅I.F. dx+Cy \cdot \text{I.F.} = \displaystyle\int Q \cdot \text{I.F.}\,dx + C.
  • Step 4: do the integral (often by parts or by a substitution), and divide by the I.F. if y is wanted on its own.
  • The constant C goes in before dividing, so it ends up multiplied by 1I.F.\dfrac{1}{\text{I.F.}}.

Solution of a linear equation

y⋅I.F.=∫Q⋅I.F. dx+Cy \cdot \text{I.F.} = \int Q \cdot \text{I.F.}\,dx + C

Worked example

Find the general solution of dydx+y=x\dfrac{dy}{dx} + y = x.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/1/3 · 29 (a)Moderate

Example 2 · Differential Equations · Linear Differential Equations

Find the general solution of the differential equation : dydx−2yx=sin⁡1x\frac{dy}{dx} - \frac{2y}{x} = \sin \frac{1}{x}.

Adding C after dividing

From y ex=(x−1)ex+Cy\,e^{x} = (x - 1)e^{x} + C the answer is y=x−1+Ce−xy = x - 1 + Ce^{-x}, not y=x−1+Cy = x - 1 + C.

Integrating Q without the I.F.

The right side is ∫Q⋅I.F. dx\displaystyle\int Q \cdot \text{I.F.}\,dx. Writing ∫Q dx\displaystyle\int Q\,dx alone gives a function that does not satisfy the equation.

Concept 3 of 4: Particular solutions and curves from a slope

As with any first order equation, solve in general first, then let the given condition fix C. Word problems about a curve give the slope in words: turn that sentence into dy/dx, and the point on the curve into the condition.

Definition

  • Find the general solution y⋅I.F.=∫Q⋅I.F. dx+Cy \cdot \text{I.F.} = \displaystyle\int Q \cdot \text{I.F.}\,dx + C.
  • Put in the condition (y(x0)=y0y(x_0) = y_0, or 'passes through (x0,y0)(x_0, y_0)') and solve for C.
  • Write the particular solution with that value of C.
  • 'The slope at (x,y)(x, y) equals the sum of the coordinates' means dydx=x+y\dfrac{dy}{dx} = x + y, which is linear: dydx−y=x\dfrac{dy}{dx} - y = x.
  • 'The sum of the coordinates exceeds the slope by 5' means x+y=dydx+5x + y = \dfrac{dy}{dx} + 5.

Fixing C in a linear solution

y0⋅I.F.(x0)=[∫Q⋅I.F. dx]x=x0+Cy_0 \cdot \text{I.F.}(x_0) = \left[\int Q \cdot \text{I.F.}\,dx\right]_{x = x_0} + C

Worked example

Find the particular solution of dydx+yx=3x\dfrac{dy}{dx} + \dfrac{y}{x} = 3x, given that y=2y = 2 when x=1x = 1.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/5/1 · 29 (a)Moderate

Example 3 · Differential Equations · Linear Differential Equations

Find the particular solution of the differential equation dydx−2xy=3x2 ex2\dfrac{\mathrm{d}y}{\mathrm{d}x} - 2x\mathrm{y} = 3x^2\, \mathrm{e}^{x^2} ; y(0)=5\mathrm{y}(0) = 5.

Using the condition before integrating

Put the given point into y⋅I.F.=∫Q⋅I.F. dx+Cy \cdot \text{I.F.} = \displaystyle\int Q \cdot \text{I.F.}\,dx + C, after the integral is done. Earlier, there is no C to find.

A wrong value of the integrating factor at the point

At x=0x = 0, e0=1e^{0} = 1; at x=π2x = \dfrac{\pi}{2}, sin⁡x=1\sin x = 1 and cos⁡x=0\cos x = 0. Work out every term at the point before solving for C.

Turning 'exceeds' round

'The sum of the coordinates exceeds the slope by 5' is x+y=dydx+5x + y = \dfrac{dy}{dx} + 5, not dydx=x+y+5\dfrac{dy}{dx} = x + y + 5.

Concept 4 of 4: Linear in x: dx/dy + P₁x = Q₁

Some equations are not linear in y, because y sits inside a square, an inverse tangent or an exponential, but x appears only to the first power. Then swap the roles: make x the dependent variable and y the independent one, and use the same method with dy in place of dx.

Definition

  • Spot it: y appears in a non-linear way (y2y^2, tan⁡−1y\tan^{-1}y, eye^{y}) while x appears only to the first power.
  • Write the equation as dxdy+P1x=Q1\dfrac{dx}{dy} + P_1x = Q_1, where P1P_1 and Q1Q_1 are constants or functions of y only.
  • I.F.=e∫P1 dy\text{I.F.} = e^{\int P_1\,dy}.
  • The solution is x⋅I.F.=∫Q1⋅I.F. dy+Cx \cdot \text{I.F.} = \displaystyle\int Q_1 \cdot \text{I.F.}\,dy + C.
  • For Rdxdy+Px=QR\dfrac{dx}{dy} + Px = Q with P, Q, R functions of y, divide by R first: the I.F. is e∫PR dye^{\int \frac{P}{R}\,dy}.

Solution when x is the dependent variable

x⋅e∫P1 dy=∫Q1 e∫P1 dy dy+Cx \cdot e^{\int P_1\,dy} = \int Q_1\,e^{\int P_1\,dy}\,dy + C

Worked example

Solve dydx=1x+ey\dfrac{dy}{dx} = \dfrac{1}{x + e^{y}}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/5/2 · Q28Hard

Example 4 · Differential Equations · Linear Differential Equations

Solve the differential equation y dx+(x−y3) dy=0y\,dx + (x - y^3)\,dy = 0.

Forcing the dy/dx form

(x+2y2)dydx=y(x + 2y^2)\dfrac{dy}{dx} = y is not linear in y, because of the y2y^2. It is linear in x: dxdy−1yx=2y\dfrac{dx}{dy} - \dfrac{1}{y}x = 2y.

Integrating with respect to the wrong variable

In dxdy+P1x=Q1\dfrac{dx}{dy} + P_1x = Q_1, both the I.F. and the right side are integrals with respect to y. Writing e∫P1 dxe^{\int P_1\,dx} is a common slip.

Writing y · I.F. on the left

When x is the dependent variable the solution is x⋅I.F.=…x \cdot \text{I.F.} = \ldots. Writing y⋅I.F.y \cdot \text{I.F.} is the wrong form.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • The standard form and the integrating factor

    Integrating factor

    I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}
  • Solving dy/dx + Py = Q

    Solution of a linear equation

    y⋅I.F.=∫Q⋅I.F. dx+Cy \cdot \text{I.F.} = \int Q \cdot \text{I.F.}\,dx + C
  • Particular solutions and curves from a slope

    Fixing C in a linear solution

    y0⋅I.F.(x0)=[∫Q⋅I.F. dx]x=x0+Cy_0 \cdot \text{I.F.}(x_0) = \left[\int Q \cdot \text{I.F.}\,dx\right]_{x = x_0} + C
  • Linear in x: dx/dy + P₁x = Q₁

    Solution when x is the dependent variable

    x⋅e∫P1 dy=∫Q1 e∫P1 dy dy+Cx \cdot e^{\int P_1\,dy} = \int Q_1\,e^{\int P_1\,dy}\,dy + C

Watch out for (11)

Test yourself on Differential Equations

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.