Skip to content
Cambridge AS & A Level9231

Differential equations

Further Mathematics 9231 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Differential equations notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Differential equations notes as text: skim, search, and jump between subtopics.

~10 min read

1. First order equations: the integrating factor

A first order linear equation is written in the form dy/dx+P(x)y=Q(x). Divide through first, so the coefficient of dy/dx is 1, and only then read off P(x).

The integrating factor is e^(int P(x) dx). Multiplying by it turns the left-hand side into d/dx(y×IF). So integrate Q(x)×IF and write the arbitrary constant in at once.

The factor often simplifies. For example intcoth x dx=lnsinh x, so the integrating factor is e^(lnsinh x)=sinh x.

dy/dx+P(x) y=Q(x)

IF=e^(int P(x) dx)

d/dx(y e^(int P dx))=Q(x) e^(int P dx)

Examiner insight

“The majority of candidates divided both sides of the equation by sinθ and found the integrating factor correctly.” “A few candidates who divided by cosh 2 x before evaluating the constant lost accuracy when substituting in the initial conditions.”

Worked example 111 marks

(a) Using the substitution u=cosh x, find intsinh³x dx.

(b) Find the particular solution of the differential equation dy/dx+ycoth x=sinh²x, given that y=0 when x=ln1/3. Give your answer in the form y=f(x).

  1. 1

    (a) u=cosh x, so du=sinh x dx [1]

  2. 2

    sinh²x=u²-1, so intsinh³x dx=int(u²-1) du [1]

  3. 3

    =u³/3-u [1]

  4. 4

    =1/3cosh³x-cosh x (+C) [1]

  5. 5

    (b) integrating factor =e^(intcoth x dx)=e^(lnsinh x)=sinh x [2]

  6. 6

    d/dx(ysinh x)=sinh³x [1]

  7. 7

    ysinh x=1/3cosh³x-cosh x+C, using(a) [1]

  8. 8

    x=ln1/3: cosh(ln1/3)=(1/3+3)/2=5/3, so 0=1/3(5/3)³-5/3+C [1]

  9. 9

    C=10/81 [1]

  10. 10

    y=cosechx(1/3cosh³x-cosh x+10/81) [1]

2. Complementary function and particular integral

The complementary function is the general solution of the equation with the right-hand side replaced by 0. It carries the arbitrary constants: one for a first order equation, two for a second order one.

A particular integral is any one solution of the full equation. It has no arbitrary constants.

The general solution is the sum of the two. For a first order equation with constant coefficients, the auxiliary equation m+k=0 gives the complementary function Ae^(-kx).

y=y_CF+y_PI

dy/dx+ky=0 ⇒ y_CF=Ae^(-kx)

Examiner insight

“A few candidates gave expressions instead of equations as their answer.” “There were also some problems with notation for this part, with a few candidates using an arrow instead of an equals sign.”

Worked example 17 marks

Find the particular solution of the differential equation dy/dx+y=e^(x/2), given that y=3 when x=0. Give your answer in the form y=f(x).

  1. 1

    particular integral: y=ae^(x/2), so y'=1/2ae^(x/2) [1]

  2. 2

    1/2a+a=1, so a=2/3 [2]

  3. 3

    complementary function: m+1=0, so y=Be^(-x) [1]

  4. 4

    general solution: y=2/3e^(x/2)+Be^(-x) [1]

  5. 5

    x=0, y=3: 3=2/3+B, so B=7/3 [1]

  6. 6

    y=2/3e^(x/2)+7/3e^(-x) [1]

3. Complementary function: second order

For ad²y/dx²+bdy/dx+cy=0, write the auxiliary equation am²+bm+c=0 and solve it. The roots decide the form of the complementary function.

Two distinct real roots give two exponentials. A repeated real root gives (Ax+B)e^(α x), with the factor x. Conjugate complex roots p± iq give e^(px) times a cosine and sine of qx.

Always two arbitrary constants, A and B.

distinct realα,β: y=Ae^(α x)+Be^(β x)

repeatedα: y=(Ax+B)e^(α x)

complexp± iq: y=e^(px)(Acos qx+Bsin qx)

Worked example 14 marks

Find the complementary function for d²y/dx²+4dy/dx+13y=0.

  1. 1

    auxiliary equation: m²+4m+13=0 [1]

  2. 2

    m=(-4±√(16-52))/2=-2±3i [1]

  3. 3

    so p=-2 and q=3 [1]

  4. 4

    y=e^(-2x)(Acos3x+Bsin3x) [1]

4. Particular integrals

The trial form for a particular integral follows the right-hand side. A polynomial takes a polynomial of the same degree, with every power present. A multiple of e^(bx) takes ke^(bx). A combination of cos px and sin px takes both terms, even if only one is on the right.

A constant on the right takes the trial form y=k. Substitute the trial form into the equation and compare coefficients.

Sometimes the form is given. Take y=kxcos2x as a particular integral of d²y/dx²+4y=sin2x. Then y''+4y=-4ksin2x, so k=-1/4.

polynomial of degreen ⇒ y=polynomial of degreen

ce^(bx) ⇒ y=ke^(bx)

acos px+bsin px ⇒ y=λcos px+μsin px

Examiner insight

“The majority of them took the most efficient approach of substituting y = k to find the particular integral.”

Worked example 110 marks

Find the particular solution of the differential equation 49d²x/dt²+14dx/dt+x=196e^(t/7), given that, when t=0, x=7 and dx/dt=0.

  1. 1

    auxiliary equation: 49m²+14m+1=0, so (7m+1)²=0 and m=-1/7 (repeated) [2]

  2. 2

    complementary function: x=e^(-t/7)(At+B) [1]

  3. 3

    particular integral: x=ke^(t/7), x'=()/k7e^(t/7), x''=()/k49e^(t/7) [1]

  4. 4

    k+2k+k=196, so 4k=196 and k=49 [2]

  5. 5

    general solution: x=e^(-t/7)(At+B)+49e^(t/7) [1]

  6. 6

    differentiate: x'=Ae^(-t/7)-1/7e^(-t/7)(At+B)+7e^(t/7) [1]

  7. 7

    t=0, x=7: B+49=7, so B=-42 [1]

  8. 8

    t=0, x'=0: 0=A-()/B7+7, so A=-13 and x=e^(-t/7)(-13t-42)+49e^(t/7) [1]

5. Using a given substitution

A question that gives a substitution tells you what to do. Differentiate it, replace every derivative, and the equation changes type.

With y=ux, the product rule gives dy/dx=u+xdu/dx. Then dy/dx=(x+y)/(x-y) becomes xdu/dx=(1+u²)/(1-u), which has separable variables.

With x=e^(t), the chain rule turns terms ax²d²y/dx²+bxdy/dx+cy into a linear equation with constant coefficients in t. Read what form the question asks for, and give the answer in that variable.

y=ux: dy/dx=u+xdu/dx

x=e^(t): xdy/dx=dy/dt

x=e^(t): x²d²y/dx²=d²y/dt²-dy/dt

Examiner insight

“However, some did not separate the variables afterwards or did not change their expression to the required format, highlighting the need to read the question carefully.”

Worked example 113 marks

It is given that v=xy³ and xy²d²y/dx²+2xy(dy/dx)²+(3x+2)y²dy/dx+(x+1)y³=x+5.

(a) Show that 1/3d²v/dx²+dv/dx+v=x+5.

(b) Find the general solution for y in terms of x.

(c) Deduce that, for large positive values of x and for any initial conditions, y≈√[3]a+()/bx, where the constants a and b are to be determined.

  1. 1

    (a) dv/dx=3xy²dy/dx+y³ [1]

  2. 2

    d²v/dx²=3xy²d²y/dx²+6xy(dy/dx)²+6y²dy/dx [1]

  3. 3

    1/3v''+v'+v=xy²y''+2xy(y')²+2y²y'+3xy²y'+y³+xy³ [1]

  4. 4

    collecting terms gives the left-hand side of the given equation, which equals x+5 [1]

  5. 5

    (b) auxiliary equation: 1/3m²+m+1=0, so m=-3/2±(√3)/2i [2]

  6. 6

    complementary function: v=e^(-3x/2)(Acos(√3)/2x+Bsin(√3)/2x) [1]

  7. 7

    particular integral: v=ax+b, v'=a, v''=0 [1]

  8. 8

    a+ax+b=x+5, so a=1 and b=4 [1]

  9. 9

    xy³=e^(-3x/2)(Acos(√3)/2x+Bsin(√3)/2x)+x+4 [1]

  10. 10

    y=√[3]x⁻¹[e^(-3x/2)(Acos(√3)/2x+Bsin(√3)/2x)+x+4] [1]

  11. 11

    (c) as x→∞, e^(-3x/2)→0 [1]

  12. 12

    y³≈1+4/x, so y≈√[3]1+4/x with a=1, b=4 [1]

6. Initial conditions and interpreting a solution

Initial conditions fix the arbitrary constants. Apply them to the general solution, the complementary function plus the particular integral, never to the complementary function alone.

A second order equation has two constants. The second condition is on dy/dx, so differentiate the whole solution first.

To interpret a solution, look at each term. A term e^(px) with p<0 tends to 0 as x grows, so for large x the solution is close to the particular integral, whatever the initial conditions.

Examiner insight

“There was some inaccuracy when solving linear equations to find the particular integral and some errors when substituting initial conditions.”

Worked example 110 marks

Find the particular solution of the differential equation 5d²y/dx²+4dy/dx+y=x²+7x+1, given that, when x=0, y=0 and dy/dx=0.

  1. 1

    auxiliary equation: 5m²+4m+1=0, so m=-2/5±1/5i [2]

  2. 2

    complementary function: y=e^(-2x/5)(Acos()/x5+Bsin()/x5) [1]

  3. 3

    particular integral: y=px²+qx+r, so y'=2px+q and y''=2p [1]

  4. 4

    10p+4(2px+q)+px²+qx+r=x²+7x+1: p=1, 8p+q=7, 10p+4q+r=1 [1]

  5. 5

    q=-1 and r=-5 [1]

  6. 6

    general solution: y=e^(-2x/5)(Acos()/x5+Bsin()/x5)+x²-x-5 [1]

  7. 7

    x=0, y=0: A-5=0, so A=5 [1]

  8. 8

    differentiate the whole solution: y'=e^(-2x/5)(-()/A5sin()/x5+()/B5cos()/x5)-2/5e^(-2x/5)(Acos()/x5+Bsin()/x5)+2x-1 [1]

  9. 9

    x=0, y'=0: ()/B5-2A/5-1=0, so B=15 and y=e^(-2x/5)(5cos()/x5+15sin()/x5)+x²-x-5 [1]

Recap

  • First order: divide so the coefficient of dy/dx is 1, take IF=e^(int P dx), then d/dx(y×IF)=Q×IF. Write +C at once.
  • General solution = complementary function + particular integral.
  • Complementary function: solve the auxiliary equation. Ae^(α x)+Be^(β x) for distinct real roots, (Ax+B)e^(α x) for a repeated root, e^(px)(Acos qx+Bsin qx) for p± iq.
  • Particular integral: a polynomial of the same degree, ke^(bx), or λcos px+μsin px. Substitute and compare coefficients.
  • Given a substitution: differentiate it, replace every derivative, and give the answer in the variable asked.
  • y=ux gives dy/dx=u+xdu/dx. x=e^(t) gives x²d²y/dx²=d²y/dt²-dy/dt.
  • Initial conditions go on the general solution. For a second order equation, differentiate the whole solution for the second condition.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State how the general solution of a linear differential equation is formed from the complementary function and a particular integral.1 mark
    Answer
    1. General solution = complementary function + particular integral.

    Trap: The complementary function carries the arbitrary constants and the particular integral carries none, so neither alone is the general solution.

  2. Find the complementary function for dy/dx+4y=8x.2 marks
    Answer
    1. Auxiliary equation m+4=0, so m=-4.
    2. Complementary function: y=Ae^(-4x).

    Trap: The exponent is m=-4, not +4, and the 8x plays no part in the complementary function.

  3. Find the general solution of xdy/dx-y=x⁴, for x>0.4 marks
    Answer
    1. Divide by x: dy/dx-1/xy=x³.
    2. Integrating factor =e^(int-1/x dx)=e^(-ln x)=1/x.
    3. d/dx(()/yx)=x², so ()/yx=x³/3+C.
    4. y=x⁴/3+Cx.

    Trap: Without dividing by x first, P(x)=-1 and the integrating factor comes out as e^(-x), which is wrong.

  4. Find the complementary function for d²y/dx²+6dy/dx+9y=2x.3 marks
    Answer
    1. Auxiliary equation m²+6m+9=0, so (m+3)²=0 and m=-3 twice.
    2. Repeated root: y=(Ax+B)e^(-3x).

    Trap: Ae^(-3x)+Be^(-3x) is just one constant times e^(-3x). A repeated root needs the factor x.

  5. Find a particular integral of d²y/dx²+3dy/dx+2y=10sin x.5 marks
    Answer
    1. Try y=λcos x+μsin x, so y'=-λsin x+μcos x and y''=-λcos x-μsin x.
    2. Substitute: (λ+3μ)cos x+(μ-3λ)sin x=10sin x.
    3. Compare: λ+3μ=0 and μ-3λ=10.
    4. λ=-3μ, so 10μ=10: μ=1 and λ=-3.
    5. Particular integral: y=sin x-3cos x.

    Trap: A trial of μsin x alone fails, because differentiating brings in cos x.

  6. Given that y=kxe^(-x) is a particular integral of d²y/dx²+3dy/dx+2y=e^(-x), find the value of k.4 marks
    Answer
    1. Product rule: y'=ke^(-x)(1-x).
    2. y''=ke^(-x)(x-2).
    3. Substitute: ke^(-x)[(x-2)+3(1-x)+2x]=ke^(-x).
    4. So ke^(-x)=e^(-x) and k=1.

    Trap: Differentiating kxe^(-x) needs the product rule twice. Treating x as a constant gives no value for k.

  7. Use the substitution y=ux to reduce dy/dx=(x+y)/(x-y) to a differential equation in u and x with separable variables. Do not solve it.4 marks
    Answer
    1. y=ux, so dy/dx=u+xdu/dx.
    2. u+xdu/dx=(x+ux)/(x-ux)=(1+u)/(1-u).
    3. xdu/dx=(1+u)/(1-u)-u=(1+u²)/(1-u).
    4. Separate: (1-u)/(1+u²) du=1/x dx.

    Trap: By the product rule dy/dx=u+xdu/dx, not just xdu/dx.

  8. Find the solution of dy/dx+2y=8e^(2x) for which y=1 when x=0.5 marks
    Answer
    1. Complementary function: m+2=0, so y=Ae^(-2x).
    2. Particular integral: y=ke^(2x), so 2k+2k=8 and k=2.
    3. General solution: y=Ae^(-2x)+2e^(2x).
    4. x=0, y=1: A+2=1, so A=-1.
    5. y=2e^(2x)-e^(-2x).

    Trap: Putting y=1 into the complementary function alone gives A=1. The conditions apply to the general solution.

  9. A particle moves on a straight line. Its displacement x m from a fixed point O at time t s satisfies d²x/dt²+2dx/dt+5x=10cos t. When t=0 the particle is at rest at O. (a) Find x in terms of t. (b) Describe the motion of the particle for large t.11 marks
    Answer
    1. (a)
    2. Auxiliary equation m²+2m+5=0, so m=-1±2i.
    3. Complementary function: x=e^(-t)(Acos2t+Bsin2t).
    4. Particular integral: x=λcos t+μsin t, so x'=-λsin t+μcos t and x''=-λcos t-μsin t.
    5. Compare coefficients. cos t: 4λ+2μ=10. sin t: 4μ-2λ=0.
    6. λ=2μ, so 10μ=10: μ=1 and λ=2.
    7. General solution: x=e^(-t)(Acos2t+Bsin2t)+2cos t+sin t.
    8. At rest at O means x=0 and dx/dt=0 when t=0. x(0)=0: A+2=0, so A=-2.
    9. x'=e^(-t)[(2B-A)cos2t-(2A+B)sin2t]-2sin t+cos t, so x'(0)=2B-A+1=0.
    10. 2B+3=0, so B=-3/2 and x=2cos t+sin t-e^(-t)(2cos2t+3/2sin2t).
    11. (b)
    12. e^(-t)→0 as t→∞, so x≈2cos t+sin t, the particular integral.
    13. The particle oscillates about O with period 2π s, whatever its initial conditions.

    Trap: Examiners reported slips in solving the linear equations for the particular integral and in substituting initial conditions: here "at rest at O" gives two conditions, x=0 and dx/dt=0.

  10. (a) Use the substitution x=e^(t) to show that x²d²y/dx²+4xdy/dx+2y=6 becomes d²y/dt²+3dy/dt+2y=6. (b) Hence find y in terms of x, given that y=5 when x=1 and y=3.5 when x=2.10 marks
    Answer
    1. (a)
    2. t=ln x, so dt/dx=1/x and dy/dx=1/xdy/dt.
    3. d²y/dx²=-1/x²dy/dt+1/x²d²y/dt².
    4. So xdy/dx=dy/dt and x²d²y/dx²=d²y/dt²-dy/dt.
    5. Substitute: d²y/dt²-dy/dt+4dy/dt+2y=6, which is d²y/dt²+3dy/dt+2y=6.
    6. (b)
    7. Auxiliary equation m²+3m+2=0, so m=-1 or m=-2.
    8. Complementary function: y=Ae^(-t)+Be^(-2t).
    9. Particular integral: y=k, so 2k=6 and k=3.
    10. General solution: y=Ae^(-t)+Be^(-2t)+3. Since e^(-t)=1/x, y=()/Ax+()/Bx²+3.
    11. x=1: A+B+3=5. x=2: ()/A2+()/B4+3=3.5.
    12. So A+B=2 and 2A+B=2. Subtract: A=0 and B=2.
    13. y=3+2/x².

    Trap: The second derivative needs the product rule too. Leaving x²d²y/dx² as d²y/dt² drops the -dy/dt term.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
a final answer such as 2x-1+Ae^(-3x), an expressionan equation, y=Ae^(-3x)+2x-1
an arrow, y→ Ae^(-3x)+2x-1, in place of the equals signan equals sign: y=Ae^(-3x)+2x-1
integrating the right-hand side with no +Cthe arbitrary constant +C written at once
dividing by the integrating factor, then finding Csubstitute the initial conditions into y×IF=…+C to find the constant first, then divide

Frequently asked questions

How do you solve a first order linear differential equation with an integrating factor?
Divide through so the coefficient of dy/dx is 1, then read off P(x). The integrating factor is e^(int P(x) dx). Multiplying by it turns the left-hand side into d/dx(y×IF), so integrate Q(x)×IF and write the arbitrary constant in at once. For coth x, the integrating factor is sinh x.
What is the complementary function and the particular integral of a differential equation?
The complementary function is the general solution with the right-hand side replaced by 0, and it carries the arbitrary constants. A particular integral is any one solution of the full equation and has no arbitrary constants. The general solution is the sum of the two, y=y_CF+y_PI. For dy/dx+ky=0 the complementary function is Ae^(-kx).
How do you find the complementary function of a second order differential equation?
Write the auxiliary equation am²+bm+c=0 and solve it. Two distinct real roots α and β give Ae^(α x)+Be^(β x). A repeated root gives (Ax+B)e^(α x), with the factor x. Conjugate complex roots p± iq give e^(px)(Acos qx+Bsin qx). For m²+4m+13=0 the roots are -2±3i, so y=e^(-2x)(Acos3x+Bsin3x).
How do you choose a particular integral for a polynomial, an exponential or a sine on the right-hand side?
The trial form follows the right-hand side. A polynomial of degree n takes a polynomial of degree n with every power present. A multiple of e^(bx) takes ke^(bx). A combination of cos px and sin px takes both λcos px and μsin px, even if only one is on the right. Substitute the trial form into the equation and compare coefficients. For dy/dx+2y=8e^(2x), take y=2e^(2x).
How do you solve a differential equation with a given substitution, such as y = ux or x = e^t?
Differentiate the substitution, replace every derivative, and the equation changes type. With y=ux the product rule gives dy/dx=u+xdu/dx, which can give separable variables. With x=e^(t), xdy/dx=dy/dt and x²d²y/dx²=d²y/dt²-dy/dt, which gives a linear equation with constant coefficients. Give the answer in the variable the question asks for.
Why do I lose marks when I apply initial conditions to a differential equation?
Examiners reported slips when substituting initial conditions. Apply them to the general solution, the complementary function plus the particular integral, never to the complementary function alone. For a second order equation, differentiate the whole solution before using a condition on dy/dx. Write the final answer as an equation, y=…, with an equals sign, not as an expression or an arrow.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters