impera Open Impera

A levels Further Mathematics · Core pure

First and second order differential equations

1First order: the integrating factor

A first order linear differential equation has the form

$$\frac{dy}{dx} + P(x)y = Q(x)$$

Multiply through by the integrating factor $I = e^{\int P\,dx}$. The left side becomes the derivative of a product:

$$\frac{d}{dx}(Iy) = IQ \quad \Rightarrow \quad Iy = \int IQ\,dx$$

Worked example

Integrating factor

  1. Solve $\dfrac{dy}{dx} + \dfrac{2y}{x} = x$ for $x > 0$.
  2. $I = e^{\int 2/x\,dx} = e^{2\ln x} = x^2$.
  3. $\dfrac{d}{dx}(x^2y) = x^3$, so $x^2y = \dfrac{x^4}{4} + c$.
  4. $y = \dfrac{x^2}{4} + \dfrac{c}{x^2}$.

The equation must be in standard form (coefficient of $\frac{dy}{dx}$ equal to 1) before finding $I$.

Check yourself

What is the integrating factor for dy/dx + 3y = eˣ?

  • e^(−3x)

  • e^x

  • 3x

  • e^(3x)

Show the answer

e^(3x)

e^(∫3 dx).

2Second order: the auxiliary equation

A second order linear equation with constant coefficients:

$$a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = f(x)$$

When $f(x) = 0$ (homogeneous), try $y = e^{mx}$. This gives the auxiliary equation $am^2 + bm + c = 0$.

  • Two real roots $m_1, m_2$: $y = Ae^{m_1x} + Be^{m_2x}$
  • Repeated root $m$: $y = (A + Bx)e^{mx}$
  • Complex roots $p \pm qi$: $y = e^{px}(A\cos qx + B\sin qx)$
Worked example

Three cases

  1. $y'' - 5y' + 6y = 0$: $m = 2, 3$, so $y = Ae^{2x} + Be^{3x}$.
  2. $y'' + 4y' + 4y = 0$: $m = -2$ (repeated), so $y = (A + Bx)e^{-2x}$.
  3. $y'' + 2y' + 5y = 0$: $m = -1 \pm 2i$, so $y = e^{-x}(A\cos 2x + B\sin 2x)$.
Check yourself

What is the general solution when the auxiliary equation has a repeated root m?

  • y = (A + Bx)e^(mx)

  • y = A cos mx + B sin mx

  • y = Ae^(mx) + Be^(mx)

  • y = Ae^(mx)

Show the answer

y = (A + Bx)e^(mx)

The extra x gives a second independent solution.

3Particular integrals

For $f(x) \neq 0$, the general solution is

$$y = \text{complementary function (CF)} + \text{particular integral (PI)}$$

The CF solves the homogeneous equation. The PI is any one solution of the full equation; guess its form from $f(x)$:

  • $f(x) = k$: try $y = \lambda$
  • $f(x) = ax + b$: try $y = \lambda x + \mu$
  • $f(x) = ke^{px}$: try $y = \lambda e^{px}$
  • $f(x) = k\cos\omega x$ or $k\sin\omega x$: try $y = \lambda\cos\omega x + \mu\sin\omega x$

If the trial form is already part of the CF, multiply it by $x$.

Worked example

A polynomial right side

  1. $y'' - 5y' + 6y = 6x$. Try $y = \lambda x + \mu$: $-5\lambda + 6\lambda x + 6\mu = 6x$.
  2. $\lambda = 1$, and $6\mu - 5 = 0$ so $\mu = \frac{5}{6}$.
  3. $y = Ae^{2x} + Be^{3x} + x + \frac{5}{6}$.
Check yourself

The CF is Ae^(2x) + Be^(3x) and f(x) = e^(2x). What trial PI should you use?

  • λx e^(2x)

  • λe^(2x)

  • λx²e^(2x)

  • λ

Show the answer

λx e^(2x)

e^(2x) is already in the CF.

4Using boundary conditions

Two conditions are needed to find $A$ and $B$. Apply them to the full general solution (CF + PI), not just the CF.

Worked example

Initial conditions

  1. Solve $y'' - 5y' + 6y = 12$, with $y = 0$ and $y' = 0$ when $x = 0$.
  2. PI: $y = 2$. General solution: $y = Ae^{2x} + Be^{3x} + 2$.
  3. $x = 0$: $A + B + 2 = 0$. Differentiate: $y' = 2Ae^{2x} + 3Be^{3x}$, so $2A + 3B = 0$.
  4. $A = -6$, $B = 4$: $y = -6e^{2x} + 4e^{3x} + 2$.
Check yourself

When applying initial conditions, which solution should you use?

  • The full general solution (CF + PI)

  • The particular integral only

  • The complementary function only

  • The roots of the auxiliary equation

Show the answer

The full general solution (CF + PI)

The PI contributes to y and y'.

5Simple harmonic motion

Simple harmonic motion (SHM) satisfies

$$\frac{d^2x}{dt^2} = -\omega^2x$$

The auxiliary equation $m^2 + \omega^2 = 0$ gives $m = \pm\omega i$, so

$$x = A\cos\omega t + B\sin\omega t = R\sin(\omega t + \alpha)$$

The motion has amplitude $R$ and period $\frac{2\pi}{\omega}$.

Worked example

A spring

  1. $\ddot{x} = -9x$, with $x = 2$ and $\dot{x} = 0$ when $t = 0$.
  2. $x = A\cos 3t + B\sin 3t$; $A = 2$; $\dot{x} = 3B = 0$ at $t = 0$, so $B = 0$.
  3. $x = 2\cos 3t$: amplitude 2, period $\frac{2\pi}{3}$.
Check yourself

What is the period of SHM with ẍ = −16x?

  • 4

  • π/2

  • 2π

  • 16

Show the answer

π/2

ω = 4, period 2π/4.

6Damping and coupled systems

Adding a resistance proportional to velocity gives damped oscillations: $\ddot{x} + k\dot{x} + \omega^2x = 0$.

  • Heavy damping (two real negative roots): no oscillation, slow return to equilibrium.
  • Critical damping (repeated root): fastest return without oscillating.
  • Light damping (complex roots with negative real part): oscillations that decay.
Worked example

Classifying damping

  1. $\ddot{x} + 2\dot{x} + 10x = 0$: $m = -1 \pm 3i$.
  2. Light damping: $x = e^{-t}(A\cos 3t + B\sin 3t)$, oscillations with shrinking amplitude.

Coupled first order equations (such as predator–prey models, $\dot{x} = ax + by$, $\dot{y} = cx + dy$) are solved by differentiating one equation and substituting to get a single second order equation.

Check yourself

Which type of damping returns fastest to equilibrium without oscillating?

  • No damping

  • Light damping

  • Critical damping

  • Heavy damping

Show the answer

Critical damping

The auxiliary equation has a repeated root.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera