🔝︎ 🔙︎

Advanced Higher Maths
Differential Equations

Page sections

Topic content

  • Finding general and particular solutions to these types of ordinary differential equations (ODEs):
    • 1st order separable: \(\large\frac{dy}{dx}\normalsize=g(x)h(y)\) or \(\large\frac{dy}{dx}\normalsize=\large\frac{g(x)}{h(y)}\normalsize\)
    • 1st order linear: \(\large\frac{dy}{dx}\normalsize+P(x)\small\,\normalsize y=Q(x)\)
    • 2nd order homogeneous: \(a\large\frac{d^{2}y}{dx^2}\normalsize+b\large\frac{dy}{dx}\normalsize+cy=0\)
    • 2nd order non-homogeneous: \(a\large\frac{d^{2}y}{dx^2}\normalsize+b\large\frac{dy}{dx}\normalsize+cy=f(x)\)
  • For second-order differential equations, the roots of the auxiliary equation may be:
    • real and distinct
    • real and equal
    • complex conjugates. More...
×

Second order linear ODEs

The nature of the root(s) of the auxiliary equation tells us the form of the general solution (if homogeneous) or complementary function (if non-homogeneous).

Real, distinct roots \(\raise 0.2pt{\boldsymbol{p}}\) and \(\raise 0.3pt{\boldsymbol{q}}\):
\(\:\:y=Ae^{\tiny\,\normalsize px}+Be^{\tiny\,\normalsize qx}\)

Real, repeated root \(\raise 0.2pt{\boldsymbol{p}}\):
\(\:\:y=(A+Bx)e^{\tiny\,\normalsize px}\)

Complex conjugate roots \(\raise 0.2pt{\boldsymbol{p\pm qi}}\):
\(\:\:y=e^{\tiny\,\normalsize px}\left(A\,sin\,qx+B\,cos\,qx\right)\)

where \(\raise 0.2pt{A}\) and \(\raise 0.2pt{B}\) are constants.

These are not on the formulae list. 😢

Textbook page numbers

  • Zeta AH Maths Textbook pp.75-98
  • Leckie AH Maths Textbook pp.145-169
  • Leckie Practice Book pp.37-45

Buy our favourite textbook

Zeta: Advanced Higher
Clear and comprehensive.
Progressive exercises.
Includes answers.
Buy from Zeta Press 

Need a tutor for AH Maths?

Try our free, no-obligation tutor search tool.
Click here to find a tutor in your area. 

×
Tutor search widget loading...

If this message continues to display, please refresh the page.

Example 1 (non-calculator)

Subtopic: First-order separable ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & 3y\,\small\frac{dy}{dx}\normalsize=\small\frac{2x}{y}\normalsize & \end{flalign*} $$

Example 2 (non-calculator)

Subtopic: First-order separable ODEs

Consider this differential equation, where \(x\gt 0\) and \(0\lt y\lt 1\):

$$ \begin{flalign*} & x\,\small\frac{dy}{dx}\normalsize=y-y^2 & \end{flalign*} $$

By making use of partial fractions, express \(y\) in terms of \(x\small.\)

Example 3 (non-calculator)

Subtopic: First-order separable ODEs

Consider the following differential equation:

$$ \begin{flalign*} & \small\frac{dy}{dx}\normalsize=\small\frac{\text{sec}\,y}{y}\normalsize & \end{flalign*} $$

It is known that \(\raise 0.3pt{y\!=\!\large\frac{\pi}{2}}\) when \(\raise 0.3pt{x\!=\!\large\frac{\pi}{4}\small.}\)
Find the particular solution, in implicit form.

Example 4 (non-calculator)

Subtopic: First-order linear ODEs

Solve the differential equation:

$$ \begin{flalign*} & \small\frac{dy}{dx}\normalsize+2y=5e^{3x} & \end{flalign*} $$

Example 5 (non-calculator)

Subtopic: First-order linear ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & x\small\,\frac{dy}{dx}\normalsize+2y=\text{cos}\,x & \end{flalign*} $$

Example 6 (non-calculator)

Subtopic: Second-order homogeneous ODEs

Find the particular solution of the following differential equation, given that \(\raise 0.3pt{y\!=\!2}\) and \(\large\frac{dy}{dx}\normalsize\!=\!-11\) when \(\raise 0.2pt{x\!=\!0}\small.\)

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize-3\small\frac{dy}{dx}\normalsize-10y=0 & \end{flalign*} $$

Recommended textbook

Zeta Maths: Advanced Higher Maths 
 Best price, direct from Zeta Press

Example 7 (non-calculator)

Subtopic: Second-order homogeneous ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & 9\small\frac{d^{2}y}{dx^2}\normalsize-12\small\frac{dy}{dx}\normalsize+4y=0 & \end{flalign*} $$

Example 8 (non-calculator)

Subtopic: Second-order homogeneous ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize+2\small\frac{dy}{dx}\normalsize+5y=0 & \end{flalign*} $$

Example 9 (non-calculator)

Subtopic: Second-order non-homogeneous ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize-5\small\frac{dy}{dx}\normalsize+4y=4x-1 & \end{flalign*} $$

Example 10 (non-calculator)

Subtopic: Second-order non-homogeneous ODEs

Find the general solution of the differential equation:

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize-4\small\frac{dy}{dx}\normalsize+4y=6e^{2x} & \end{flalign*} $$

Example 11 (non-calculator)

SQA Adv Higher Maths 2017 Q14  [10 marks]
Subtopic: Second-order non-homogeneous ODEs

Find the particular solution of the differential equation:

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize-6\small\frac{dy}{dx}\normalsize+9y=8\,\text{sin}\,x+19\,\text{cos}\,x & \end{flalign*} $$

given that \(y\!=\!7\) and \(\large\frac{dy}{dx}\normalsize\!=\!\large\frac12\normalsize\) when \(x\!=\!0\small.\)

Example 12 (calculator)

SQA Adv Higher Maths 2019   [5 marks]
Subtopic: First-order separable ODEs

An electronic device contains a timer circuit that switches off when the voltage, \(V\small,\) reaches a set value. The rate of change of the voltage is given by

$$ \begin{flalign*} & \small\frac{dV}{dt}\normalsize =k(12-V)\small. & \end{flalign*} $$

where \(k\) is a constant, \(t\) is the time in seconds, and \(0\leqslant V\lt 12\small.\)
Given that \(V=2\) when \(t=0\small,\) express \(V\) in terms of \(k\) and \(t\small.\)

Example 13 (non-calculator)

SQA Adv Higher Maths 2021 P1 Q8  [9 marks]
Subtopic: Second-order non-homogeneous ODEs

Find the particular solution of the differential equation:

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize+\small\frac{dy}{dx}\normalsize-6y=35e^{2x} & \end{flalign*} $$

given \(y\!=\!5\) and \(\large\frac{dy}{dx}\normalsize\!=\!12\) when \(x\!=\!0\small.\)

Example 14 (calculator)

SQA Adv Higher Maths 2022 P2 Q8  [2,4 marks]
Subtopic: First-order linear ODEs

(a)  Differentiate \(x\,\text{ln}\,x\!-\!x\) with respect to \(x\small.\)
(b)  Hence find the general solution of the differential equation $$ \begin{flalign*} & \small\frac{dy}{dx}\normalsize+y\,\text{ln}\,x=x^{-x}\small. & \end{flalign*} $$

Example 15 (non-calculator)

SQA Advanced Higher Maths 2023 P1 Q5  [9 marks]
Subtopic: Second-order non-homogeneous ODEs

Find the particular solution of the differential equation

$$ \begin{flalign*} & \small\frac{d^{2}y}{dx^2}\normalsize-4\small\frac{dy}{dx}\normalsize-5y=10x^2+11x-23 & \end{flalign*} $$

given that \(y\!=\!2\small,\) \(\large\frac{dy}{dx}\normalsize\!=\!14\) when \(x\!=\!0\small.\)

Example 16 (calculator)

SQA Adv Higher Maths 2023 P2 Q13  [6 marks]
Subtopic: First-order separable ODEs

Points scored in the long jump element of the decathlon can be calculated using a solution of the differential equation

$$ \begin{flalign*} & (m-220)\small\frac{dP}{dm}\normalsize =1.4P,\ m>220 & \end{flalign*} $$

where \(m\) is the distance jumped in centimetres and \(P\) the points scored.
Given that a jump of \(807\) centimetres scores \(1079\) points, find an expression for \(P\) in terms of \(m\small.\)

Example 17 (non-calculator)

SQA Adv Higher Maths 2025 P2 Q14  [5 marks]
Subtopic: First-order linear ODEs

Find the general solution of the differential equation

$$ \begin{flalign*} & \small\frac{dy}{dx}\normalsize-\small\frac{2}{x}\normalsize y=x^2\,\text{sec}^2\,3x & \end{flalign*} $$

Give your answer in the form \(y=f(x)\small.\)

Example 18 (non-calculator)

QS Adv Higher Maths 2026 P1 Q4  [5 marks]
Subtopic: Second-order homogeneous ODEs

Find the particular solution of the differential equation

$$ \begin{flalign*} & 2\small\frac{d^{2}y}{dx^2}\normalsize-3\small\frac{dy}{dx}\normalsize+y=0 & \end{flalign*} $$

given that \(y\!=\!2\) and \(\large\frac{dy}{dx}\normalsize\!=\!-1\) when \(x\!=\!0\small.\)

Need a tutor for AH Maths?

Try our free, no-obligation tutor search tool.
Click here to find a tutor in your area. 

×
Tutor search widget loading...

If this message continues to display, please refresh the page.

Buy AH Maths revision guides

How To Pass: Advanced Higher Maths 
BrightRED: AH Maths Study Guide 

Past paper questions

First order separable, without context:
• 2017 Paper Q9
• 2019 Specimen Paper 2 Q6
• 2023 Paper 2 Q7
• 2025 Paper 1 Q7
First order separable, in context:
• 2016 Exemplar Paper Q18
• 2016 Paper Q16
• 2019 Paper Q13
• 2021 Paper 2 Q9(b)
• 2023 Paper 2 Q13
• 2024 Paper 2 Q15
First order linear:
• 2016 Specimen Paper Q15(b)
• 2018 Paper Q15(b)
• 2021 Paper 2 Q6
• 2022 Paper 2 Q8(b)
• 2024 Paper 2 Q13(c)
• 2025 Paper 2 Q14
• 2026 Paper 2 Q13(b)
Second order homogeneous:
• 2019 Paper Q8
• 2024 Paper 2 Q4
• 2026 Paper 1 Q4
Second order non-homogeneous:
• 2016 Exemplar Paper Q17
• 2016 Paper Q15
• 2017 Paper Q14
• 2019 Specimen Paper 2 Q12
• 2021 Paper 1 Q8 (modified PI)
• 2022 Paper 2 Q10
• 2023 Paper 1 Q5
• 2025 Paper 2 Q12
Pre-2016 AH Maths specification:
• PPQs from 2001 (with answers)

Buy our favourite textbook

Zeta: Advanced Higher
Clear and comprehensive.
Progressive exercises.
Includes answers.
Buy from Zeta Press 

Worksheets

Armadale Academy worksheets
1. Differential equations 1 (Solutions)
2. Differential equations 2 (Solutions)
3. Differential equations 3 (Solutions)
Dunblane High School worksheet
• Differential equations (with answers)
High School of Glasgow worksheet
• Integrating factor (with answers)
Knox Academy worksheets
1. First order ODEs (with answers)
2. Second order ODEs (with answers)
Mrs V. Leck - topic workbook
• Diff Eqns (with answers)
St Andrew's and St Bride's worksheets
1. Separable ODEs (Answers)
2. Second order ODEs (with answers)
TL Maths worksheet
• First order separable (with answers)

Buy AH Maths revision guides

How To Pass: Advanced Higher Maths 
BrightRED: AH Maths Study Guide 

Notes and videos

Notes – Auchmuty High School
1. Differential equations
2. Further differential equations
Notes – HELM
1. First order separable and linear
2. Second order differential equations
Notes – Hyndland Secondary School
1. First order separable ODEs
2. First order linear ODEs
3. Second order differential equations
Notes – Madras College
Notes – Mathcentre.ac.uk
1. First order separable ODEs
2. First order linear ODEs
2. Second order differential equations
Notes and examples – Maths Mutt
Notes and exercises
– St Andrew's Academy
Videos – St Andrew's Academy
Videos – Mr Thomas

@MathsDotScot on X (Twitter) @Maths.scot on Bluesky