Constant coefficient second order equations

Constant coefficient second order equations

Spec 5.1 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • General solution: y=complementary function (CF)+particular integral (PI)y=\text{complementary function (CF)}+\text{particular integral (PI)}.
  • The CF has two arbitrary constants and comes from the auxiliary equation am2+bm+c=0am^2+bm+c=0.
  • Two real roots: Aem1x+Bem2xAe^{m_1x}+Be^{m_2x}. Repeated root: (A+Bx)emx(A+Bx)e^{mx}. Complex roots: eαx(Acos⁡βx+Bsin⁡βx)e^{\alpha x}(A\cos\beta x+B\sin\beta x).
  • Choose a PI that matches f(x)f(x); if it appears in the CF, multiply by xx.
  • Apply the two conditions to the whole general solution.

Structure of the solution

The general solution is the complementary function plus a particular integral.

The equation is ad2ydx2+bdydx+cy=f(x)a\frac{d^2y}{dx^2}+b\frac{dy}{dx}+cy=f(x) with real constants. The complementary function (CF) solves the homogeneous equation (f=0f=0) and contains two arbitrary constants. The particular integral (PI) is any one solution of the full equation and contains none.

The two constants are found from two conditions, usually yy and dydx\frac{dy}{dx} at one point.

  1. 1

    Auxiliary equation

    Solve am2+bm+c=0am^2+bm+c=0

  2. 2

    Complementary function

    Write the CF from the roots

  3. 3

    Particular integral

    Choose a trial form matching f(x)f(x)

  4. 4

    General solution

    Add CF and PI

  5. 5

    Conditions

    Use the two conditions to find AA and BB

Solving a second order equation
  • General solutionCF + PI

How many arbitrary constants does the CF of a second order equation contain?

The complementary function

Try y=emxy=e^{mx} to get the auxiliary equation; the type of roots gives the form of the CF.

Try y=emxy=e^{mx} in the homogeneous equation to get the auxiliary equation am2+bm+c=0am^2+bm+c=0. The roots decide the CF.

Complex roots give oscillations with an envelope eαxe^{\alpha x}: they decay when α<0\alpha<0 and grow when α>0\alpha>0.

Two real roots

Equation:
y′′−7y′+12y=0y''-7y'+12y=0
Roots:
m=3,4m=3,4
CF:
Ae3x+Be4xAe^{3x}+Be^{4x}

Repeated root

Equation:
y′′−4y′+4y=0y''-4y'+4y=0
Roots:
m=2m=2 (repeated)
CF:
(A+Bx)e2x(A+Bx)e^{2x}

Complex roots

Equation:
y′′+2y′+10y=0y''+2y'+10y=0
Roots:
m=−1±3im=-1\pm3i
CF:
e−x(Acos⁡3x+Bsin⁡3x)e^{-x}(A\cos3x+B\sin3x)
0.511.522.533.544.55−3−2−1123xyy = e^(αx) cos 3x
y = e^(αx) cos 3x. Change α to see decay or growth.

y′′+4y=0y''+4y=0 has roots m=±2im=\pm2i. What is the CF?

The particular integral

Choose a trial form matching f(x)f(x), substitute it into the full equation, and compare coefficients.

For a sine or cosine right-hand side, try both λcos⁡ωx+μsin⁡ωx\lambda\cos\omega x+\mu\sin\omega x, even if ff has only one: the first derivative brings in the other.

  1. 1

    Choose a trial form matching f(x)

    For a sine or cosine use both λ cos ωx + μ sin ωx.

  2. 2

    Differentiate it twice

    Find y' and y''.

  3. 3

    Substitute into the full equation

    Use the complete left-hand side.

  4. 4

    Compare coefficients

    Solve for λ, μ, ν.

Finding a particular integral

f(x)f(x)

  • kepxke^{px}
  • A+BxA+Bx
  • p+qx+cx2p+qx+cx^2
  • mcos⁡ωx+nsin⁡ωxm\cos\omega x+n\sin\omega x

Trial PI

  • λepx\lambda e^{px}
  • λ+μx\lambda+\mu x
  • λ+μx+νx2\lambda+\mu x+\nu x^2
  • λcos⁡ωx+μsin⁡ωx\lambda\cos\omega x+\mu\sin\omega x

Worked example

Find a particular integral for y′′−3y′+2y=e3xy''-3y'+2y=e^{3x}.

Worked example

Find a particular integral for y′′+y′−2y=xy''+y'-2y=x.

Which trial PI suits f(x)=3x+1f(x)=3x+1?

When the trial is in the CF

Multiply the trial form by xx (by x2x^2 if the root is repeated).

If the trial form already appears in the CF, it satisfies the homogeneous equation and gives 00, so it cannot match f(x)f(x). Multiply by xx.

For y′′+9y=cos⁡3xy''+9y=\cos3x, the CF contains cos⁡3x\cos3x. Try y=x(pcos⁡3x+qsin⁡3x)y=x(p\cos3x+q\sin3x): then y′′+9y=−6psin⁡3x+6qcos⁡3xy''+9y=-6p\sin3x+6q\cos3x, so p=0p=0, q=16q=\frac16. The growing factor xx makes oscillations increase without bound: resonance.

12345678910−2−1.5−1−0.50.511.52xyy = (x/6) sin 3xy = x/6y = −x/6
Resonance: y = (x/6) sin 3x oscillates inside the growing envelope ±x/6.

Worked example

Find a particular integral for y′′+9y=cos⁡3xy''+9y=\cos3x.

y′′+4y=sin⁡2xy''+4y=\sin2x has CF Acos⁡2x+Bsin⁡2xA\cos2x+B\sin2x. What trial PI do you use?

Particular solutions and checking

Write the general solution, differentiate it, and substitute both conditions.

To find the constants, write the general solution, differentiate it (product rule where there is a factor xx), and substitute the two conditions. Check by substituting back into the equation and the conditions.

In context, say what happens as xx becomes large: decaying terms vanish and the PI describes the long-term behaviour.

  1. 1

    General solution

    CF + PI

  2. 2

    Differentiate

    to get y′y'

  3. 3

    Substitute

    yy and y′y' at the given point

  4. 4

    Solve

    the two equations for AA and BB

Applying the conditions

Worked example

Solve y′′−3y′+2y=e3xy''-3y'+2y=e^{3x} with y=1y=1 and y′=0y'=0 at x=0x=0.

Where do you apply the initial conditions?

Try an exam question

Find the general solution of y′′−4y′+4y=2exy''-4y'+4y=2e^{x}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the roots of the auxiliary equation.

1 mark, marked against the mark scheme

Revision notes