First-order differential equations and integrating factors

First-order differential equations and integrating factors

Spec 9.1–2 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A linear first-order equation is dydx+P(x)y=Q(x)\frac{\mathrm{d}y}{\mathrm{d}x}+P(x)y=Q(x), with coefficient 11 on dydx\frac{\mathrm{d}y}{\mathrm{d}x}.
  • The integrating factor is I=e∫P dxI=e^{\int P\,\mathrm{d}x}, then Iy=∫IQ dxIy=\int IQ\,\mathrm{d}x.
  • Divide by II after integrating so the constant is divided too.
  • A particular solution uses a condition to fix the constant.
  • In models, set dydt=0\frac{\mathrm{d}y}{\mathrm{d}t}=0 to find the long-term value.

Linear first-order equations

Linear equations dydx+P(x)y=Q(x)\frac{\mathrm{d}y}{\mathrm{d}x}+P(x)y=Q(x) that are not separable.

A first-order equation of the form dydx+P(x)y=Q(x)\frac{\mathrm{d}y}{\mathrm{d}x}+P(x)y=Q(x) is linear: yy and dydx\frac{\mathrm{d}y}{\mathrm{d}x} appear only to the first power.

The coefficient of dydx\frac{\mathrm{d}y}{\mathrm{d}x} must be 11, so divide through first if necessary. This is the standard form: xdydx+3y=x2x\frac{\mathrm{d}y}{\mathrm{d}x}+3y=x^2 becomes dydx+3xy=x\frac{\mathrm{d}y}{\mathrm{d}x}+\frac3xy=x.

If it can be written dydx=f(x)g(y)\frac{\mathrm{d}y}{\mathrm{d}x}=f(x)g(y), separate the variables instead.

Separable

  • dydx=f(x)g(y)\frac{\mathrm{d}y}{\mathrm{d}x}=f(x)g(y)
  • Separate the variables

Linear, not separable

  • dydx+P(x)y=Q(x)\frac{\mathrm{d}y}{\mathrm{d}x}+P(x)y=Q(x)
  • Use an integrating factor

Which is already in standard form for the integrating factor method?

The integrating factor method

Multiply by I=e∫P dxI=e^{\int P\,\mathrm{d}x} so the left side becomes ddx(Iy)\frac{\mathrm{d}}{\mathrm{d}x}(Iy), then integrate.

The integrating factor is I(x)=e∫P(x) dxI(x)=e^{\int P(x)\,\mathrm{d}x}, which you may quote without proof.

Multiply the equation by II; the left side becomes ddx(Iy)\frac{\mathrm{d}}{\mathrm{d}x}(Iy). Then integrate: Iy=∫IQ dxIy=\int IQ\,\mathrm{d}x.

Simplify with eln⁡f(x)=f(x)e^{\ln f(x)}=f(x) and ekln⁡x=xke^{k\ln x}=x^k. For dydx+ytan⁡x=cos⁡x\frac{\mathrm{d}y}{\mathrm{d}x}+y\tan x=\cos x, I=sec⁡xI=\sec x and y=(x+c)cos⁡xy=(x+c)\cos x.

  1. 1

    Standard form

    coefficient of dydx\frac{\mathrm{d}y}{\mathrm{d}x} is 11

  2. 2

    Find P(x)P(x)

    the coefficient of yy

  3. 3

    Integrating factor

    I=e∫P dxI=e^{\int P\,\mathrm{d}x}, simplified

  4. 4

    Multiply and integrate

    Iy=∫IQ dxIy=\int IQ\,\mathrm{d}x, with +c+c

  5. 5

    Divide by II

    make yy the subject

The integrating factor method

Worked example

Solve dydx+2xy=x2\frac{\mathrm{d}y}{\mathrm{d}x}+\frac2xy=x^2.

For dydx+3y=ex\frac{\mathrm{d}y}{\mathrm{d}x}+3y=e^{x}, what is the integrating factor?

General and particular solutions

The general solution has an arbitrary constant; a given condition fixes it to give a particular solution.

The general solution contains one arbitrary constant, so it describes a family of curves. Curves from different values of cc never cross.

A particular solution uses a condition, such as y=1y=1 at x=1x=1, to find the constant.

Divide by the integrating factor after integrating, so the constant is divided too: x2y=x55+cx^2y=\frac{x^5}5+c gives y=x35+cx−2y=\frac{x^3}5+cx^{-2}.

−2−11234−4−22468xyy = 2y = 2 + ce^(−x)
Family y = 2 + ce^(−x): all approach y = 2. Change c.

Worked example

Find the particular solution of dydx+y=2\frac{\mathrm{d}y}{\mathrm{d}x}+y=2 with y=5y=5 when x=0x=0.

In y=x35+cx2y=\frac{x^3}5+\frac c{x^2}, what happens to cx2\frac c{x^2} as x→∞x\to\infty?

Modelling with first-order equations

Form the equation from a rate, solve it, then describe the long-term behaviour in context.

Kinematics: acceleration is dvdt\frac{\mathrm{d}v}{\mathrm{d}t}. Mixing: dmdt=\frac{\mathrm{d}m}{\mathrm{d}t}= rate in −- rate out.

Interpret the answer: state the long-term behaviour, comment on limitations, and give units. The terminal speed is the constant speed approached as t→∞t\to\infty, when dvdt=0\frac{\mathrm{d}v}{\mathrm{d}t}=0.

Check the long-term value by setting the derivative to zero in the model.

2468101251015202530xyv = 25(0, 0)v = 25(1 − e^(−0.4t))
Speed rises towards the terminal speed of 25 m/s.

Worked example

A parachutist has dvdt=10−0.4v\frac{\mathrm{d}v}{\mathrm{d}t}=10-0.4v and v=0v=0 at t=0t=0. Find vv and the terminal speed.

A model has dvdt=12−0.5v\frac{\mathrm{d}v}{\mathrm{d}t}=12-0.5v. What is the terminal speed?

Try an exam question

Find the general solution of xdydx+2y=6x2x\frac{\mathrm{d}y}{\mathrm{d}x}+2y=6x^2 for x>0x>0.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find an integrating factor for this equation.

1 mark, marked against the mark scheme

Revision notes