PYQ Vault

HSC Maths · Differential Equations

Solving a Differential Equation

General and particular solutions, checking that a function is a solution, and the three methods of the chapter: separating the variables, the substitution y = vx for homogeneous equations, and the integrating factor for linear equations.

Why this matters

116 questions, the largest page of the chapter, twenty-five of them from board papers. In all but one of its years here the board asks for an equation to be solved: by separating the variables twelve times (2016 to 2026, with a substitution in 2016, 2022 and 2024 and a particular solution in 2016, 2018, 2023 and 2024), as a homogeneous equation five times (2015, 2024, 2025 and twice in 2026), and as a linear equation or its integrating factor seven times (2019 to 2025). In 2015 it also asked to show that y = e^(ax) satisfies x dy/dx = y log y. The textbook rows are section 6.4 with its solved examples, Exercises 6.3, 6.4 and 6.5, and Questions 2, 5, 6 and 7 and eight MCQs of the Miscellaneous Exercise.

Concept 1 of 4: General and particular solutions, and verifying a solution

A solution of a differential equation is a relation between x and y that makes the equation true for every x. The general solution carries as many arbitrary constants as the order and describes every solution; a particular solution is one member, got by giving the constants values. To verify, you differentiate and substitute: you never need to solve.

Definition

  • A solution of a differential equation is a relation which satisfies it.
  • The general solution has as many arbitrary constants as the order of the equation.
  • A particular solution is obtained from the general solution by giving particular values to the arbitrary constants.
  • To verify that a function is a solution: differentiate it as many times as the order, substitute in the left side, simplify, and show it equals the right side.
  • If the given relation has a constant, use the relation itself to replace it (or show that it cancels).

Verifying a solution

L.H.S. with y,  dydx,  d2ydx2 substituted  =  R.H.S.\text{L.H.S. with } y, \; \dfrac{dy}{dx}, \; \dfrac{d^2y}{dx^2} \text{ substituted} \; = \; \text{R.H.S.}

Worked example

Verify that y=e−3xy = e^{-3x} is a solution of the differential equation d2ydx2+dydx−6y=0\dfrac{d^2y}{dx^2} + \dfrac{dy}{dx} - 6y = 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2015 · Q. 4. (B) iv.Easy

Example 1 · Differential Equations · Solution of a Differential Equation

If y=eaxy = e^{ax}, show that xdydx=ylog⁡yx\frac{dy}{dx} = y\log y.

Stopping before the right side

Simplify the left side all the way and end with 'L.H.S. = R.H.S., hence ... is a solution'. A page of derivatives without that last line loses the final mark.

Calling a solution with too few constants general

The general solution of a first order equation has one arbitrary constant, of a second order equation two. A solution with fewer is a particular solution.

Concept 2 of 4: Variables separable, and equations reduced to it

If every y can be taken to the side of dy and every x to the side of dx, the two sides can be integrated one by one. One arbitrary constant is added. When x and y appear together, as in cos(x + y), a substitution u = x + y often turns the equation into a separable one.

Definition

  • If the equation can be written as f(x) dx=g(y) dyf(x)\,dx = g(y)\,dy, integrate both sides: ∫f(x) dx=∫g(y) dy+c\int f(x)\,dx = \int g(y)\,dy + c. This is the method of separation of variables.
  • Add one constant only. With logarithms on both sides, write it as log⁡c\log c.
  • Particular solution: find the general solution first, then put the given values of xx and yy to find cc, and write the solution again with that value of cc.
  • Reducible form: for dydx=f(ax+by+c)\dfrac{dy}{dx} = f(ax + by + c), put u=ax+by+cu = ax + by + c, so dudx=a+bdydx\dfrac{du}{dx} = a + b\dfrac{dy}{dx}. The equation becomes separable in uu and xx.

Separating the variables

f(x) dx=g(y) dy  ⇒  ∫f(x) dx=∫g(y) dy+cf(x)\,dx = g(y)\,dy \;\Rightarrow\; \int f(x)\,dx = \int g(y)\,dy + c

Worked example

Find the particular solution of dydx=x(1+y2)\dfrac{dy}{dx} = x\left(1 + y^2\right), given y=1y = 1 when x=0x = 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2023 · Q. 24Moderate

Example 2 · Differential Equations · Solution of a Differential Equation

Find the particular solution of the differential equation dydx=e2ycosx\frac{dy}{dx} = e^{2y}cosx, when x=π6,y=0x = \frac{\pi}{6},y = 0.

Two constants, one on each side

After integrating both sides, add a single constant cc. Writing c1c_1 on the left and c2c_2 on the right is not wrong, but you must combine them into one before using a condition.

Using the condition too early

Put the given values of xx and yy only after integrating, to find cc. Then write the final relation with the value of cc in it: that line is the particular solution.

Forgetting the 1 in du/dx

With u=x+yu = x + y, dudx=1+dydx\dfrac{du}{dx} = 1 + \dfrac{dy}{dx}, so dydx=dudx−1\dfrac{dy}{dx} = \dfrac{du}{dx} - 1. Writing dydx=dudx\dfrac{dy}{dx} = \dfrac{du}{dx} gives a wrong equation in uu.

Concept 3 of 4: Homogeneous differential equations: put y = vx

In a homogeneous equation every term has the same degree, so dy/dx depends only on the ratio y/x. Putting y = vx turns that ratio into v, the powers of x cancel, and the equation becomes separable in v and x. Put v = y/x back at the end.

Definition

  • The degree of a term is the sum of the degrees of its variables (x2yx^2y has degree 3). If all the terms have the same degree, the equation is a homogeneous differential equation.
  • Put y=vxy = vx; then dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx} (product rule).
  • Cancel the powers of xx, separate vv and xx, and integrate.
  • Replace vv by yx\dfrac{y}{x} in the answer.
  • When xy\dfrac{x}{y} appears (as in ex/ye^{x/y}), put x=vyx = vy and dxdy=v+ydvdy\dfrac{dx}{dy} = v + y\dfrac{dv}{dy} instead.

Substitution for a homogeneous equation

y=vx,dydx=v+xdvdxy = vx, \qquad \dfrac{dy}{dx} = v + x\dfrac{dv}{dx}

Worked example

Solve 2xydydx=x2+3y22xy\dfrac{dy}{dx} = x^2 + 3y^2.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 34Hard

Example 3 · Differential Equations · Solution of a Differential Equation

Solve the differential equation x2⋅dydx=x2+xy+y2x^{2} \cdot \frac{dy}{dx} = x^{2} + xy + y^{2}.

Writing dy/dx = x dv/dx

y=vxy = vx is a product, so dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}. Dropping the vv gives an equation that does not separate properly.

Leaving the answer in v

The question is in xx and yy, so the answer must be too. Replace vv by yx\dfrac{y}{x} and simplify in the last line.

Concept 4 of 4: Linear differential equations: the integrating factor

An equation of the form dydx+Py=Q\dfrac{dy}{dx} + Py = Q, with PP and QQ functions of xx, usually cannot be separated. Multiplying it by the integrating factor e∫P dxe^{\int P\,dx} turns the left side into the derivative of yy times that factor, so one integration finishes the job.

Definition

  • Standard form: dydx+Py=Q\dfrac{dy}{dx} + Py = Q, where PP and QQ are functions of xx (or constants). Divide first if dydx\dfrac{dy}{dx} has a coefficient.
  • Why it works: multiply by e∫P dxe^{\int P\,dx}.
  • Note that ddx(y e∫P dx)=e∫P dx(dydx+Py)\dfrac{d}{dx}\left(y\,e^{\int P\,dx}\right) = e^{\int P\,dx}\left(\dfrac{dy}{dx} + Py\right).
  • So ddx(y e∫P dx)=Q e∫P dx\dfrac{d}{dx}\left(y\,e^{\int P\,dx}\right) = Q\,e^{\int P\,dx}.
  • Integrate: y e∫P dx=∫Q e∫P dx dx+cy\,e^{\int P\,dx} = \int Q\,e^{\int P\,dx}\,dx + c. Here e∫P dxe^{\int P\,dx} is the integrating factor (I.F.).
  • For dxdy+Px=Q\dfrac{dx}{dy} + Px = Q (PP, QQ functions of yy): I.F. =e∫P dy= e^{\int P\,dy} and x (I.F.)=∫Q (I.F.) dy+cx\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dy + c.
  • Simplify the I.F.: elog⁡f(x)=f(x)e^{\log f(x)} = f(x), and eklog⁡x=xke^{k\log x} = x^k.

Solution of a linear equation

dydx+Py=Q:I.F.=e∫P dx,y (I.F.)=∫Q (I.F.) dx+c\dfrac{dy}{dx} + Py = Q: \quad \text{I.F.} = e^{\int P\,dx}, \qquad y\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dx + c

Worked example

Solve dydx−2y=e3x\dfrac{dy}{dx} - 2y = e^{3x}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 23Moderate

Example 4 · Differential Equations · Solution of a Differential Equation

Solve the D.E. dydx+yx=x3−3\frac{dy}{dx} + \frac{y}{x} = x^{3} - 3

Reading P before dividing

PP is the coefficient of yy only after the coefficient of dydx\dfrac{dy}{dx} is made 1. In xdydx+2y=Qx\dfrac{dy}{dx} + 2y = Q, PP is 2x\dfrac{2}{x}, not 2.

Dropping the constant before dividing

Write + c+\,c in the line y (I.F.)=∫Q (I.F.) dx+cy\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dx + c. When you then divide by the I.F., cc is divided too: c e2xc\,e^{2x}, not cc.

Leaving the I.F. as e to a log

Simplify elog⁡sec⁡xe^{\log\sec x} to sec⁡x\sec x and e2log⁡xe^{2\log x} to x2x^2 before multiplying. The unsimplified form makes the integral look impossible.

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)

  • General and particular solutions, and verifying a solution

    Verifying a solution

    L.H.S. with y,  dydx,  d2ydx2 substituted  =  R.H.S.\text{L.H.S. with } y, \; \dfrac{dy}{dx}, \; \dfrac{d^2y}{dx^2} \text{ substituted} \; = \; \text{R.H.S.}
  • Variables separable, and equations reduced to it

    Separating the variables

    f(x) dx=g(y) dy  ⇒  ∫f(x) dx=∫g(y) dy+cf(x)\,dx = g(y)\,dy \;\Rightarrow\; \int f(x)\,dx = \int g(y)\,dy + c
  • Homogeneous differential equations: put y = vx

    Substitution for a homogeneous equation

    y=vx,dydx=v+xdvdxy = vx, \qquad \dfrac{dy}{dx} = v + x\dfrac{dv}{dx}
  • Linear differential equations: the integrating factor

    Solution of a linear equation

    dydx+Py=Q:I.F.=e∫P dx,y (I.F.)=∫Q (I.F.) dx+c\dfrac{dy}{dx} + Py = Q: \quad \text{I.F.} = e^{\int P\,dx}, \qquad y\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dx + c

Watch out for (10)

Test yourself on Differential Equations

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.