First order equations and integrating factors

First order equations and integrating factors

Spec I1–I2 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A first-order linear equation has the standard form dydx+P(x)y=Q(x)\dfrac{dy}{dx}+P(x)y=Q(x), with coefficient 1 on dydx\dfrac{dy}{dx}.
  • The integrating factor is I=e∫P dxI=e^{\int P\,dx}, with no constant of integration.
  • Multiplying by II gives ddx(Iy)=IQ\dfrac{d}{dx}(Iy)=IQ; integrate, then divide by II.
  • The general solution has one constant; a particular solution uses a given condition.
  • Simplify eln⁡f=fe^{\ln f}=f and e−ln⁡f=1fe^{-\ln f}=\frac1f when forming II.

Recognising the equation

Both yy and dydx\frac{dy}{dx} appear only to the power 1, and the coefficient of dydx\frac{dy}{dx} is 1 in standard form.

A first-order linear differential equation can be written in the standard form

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

The coefficient of dydx\frac{dy}{dx} must be 1, so divide through first if necessary: xdydx+3y=x3x\frac{dy}{dx}+3y=x^3 becomes dydx+3xy=x2\frac{dy}{dx}+\frac3xy=x^2.

The method applies when yy and dydx\frac{dy}{dx} each appear only to the power 1 and the equation cannot be separated. Terms like y2y^2 or ydydxy\frac{dy}{dx} rule it out.

  1. 1

    Check it is first order and linear

    y and dy/dx only to the power 1, no y² or y dy/dx terms.

  2. 2

    Check it cannot be separated

    If the variables separate, use separation instead.

  3. 3

    Divide so dy/dx has coefficient 1

    x dy/dx + 3y = x³ becomes dy/dx + (3/x)y = x².

  4. 4

    Read off P(x) and Q(x)

    Standard form dy/dx + P(x)y = Q(x).

Is the method an integrating factor?
  • Standard formdydx+P(x)y=Q(x)\dfrac{dy}{dx}+P(x)y=Q(x)

In xdydx+5y=x2x\frac{dy}{dx}+5y=x^2, what is P(x)P(x) in standard form?

The integrating factor method

Multiplying by I=e∫P dxI=e^{\int P\,dx} makes the left-hand side an exact derivative, ddx(Iy)=IQ\frac{d}{dx}(Iy)=IQ.

The integrating factor is

I(x)=e∫P(x) dx.I(x)=e^{\int P(x)\,dx}.

Multiplying the equation by II makes the left-hand side an exact derivative:

ddx(I y)=I Q.\frac{d}{dx}\left(I\,y\right)=I\,Q.

Simplify eln⁡f=fe^{\ln f}=f and e−ln⁡f=1fe^{-\ln f}=\frac1f when forming II.

  1. 1

    Standard form

    divide so the coefficient of dy/dx is 1

  2. 2

    Find P and I

    I = e^(∫P dx), with no constant of integration

  3. 3

    Multiply

    every term by I

  4. 4

    Write as a derivative

    the left side becomes d/dx (Iy)

  5. 5

    Integrate

    both sides, adding +c

  6. 6

    Divide by I

    to give y

The integrating factor method

For dydx+2xy=x\frac{dy}{dx}+\frac2xy=x, what is the integrating factor?

Worked examples

Find II, write ddx(Iy)=IQ\frac{d}{dx}(Iy)=IQ, integrate, then divide by II, including the constant.

Two examples show the whole method, including how to deal with ln⁡\ln in the exponent.

A second example, dydx+ytan⁡x=cos⁡x\frac{dy}{dx}+y\tan x=\cos x, has I=eln⁡sec⁡x=sec⁡xI=e^{\ln\sec x}=\sec x, so ddx(ysec⁡x)=1\frac{d}{dx}(y\sec x)=1 and y=(x+c)cos⁡xy=(x+c)\cos x.

−1.5−1−0.50.511.5−3−2−1123xyy = (x + c) cos x
General solution y = (x + c)cos x of dy/dx + y tan x = cos x: each value of c gives one curve in the family
  • I=e∫3x dxI=e^{\int\frac3x\,dx}e3ln⁡x=x3e^{3\ln x}=x^3

Worked example

Solve dydx+3xy=x2\frac{dy}{dx}+\frac3xy=x^2 for x>0x>0.

For dydx+y=e−x\frac{dy}{dx}+y=e^{-x}, the integrating factor is exe^x. What is the general solution?

General and particular solutions

The general solution has one arbitrary constant; a condition then fixes it to give a particular solution.

The general solution contains one arbitrary constant, because one integration is performed. A particular solution is found by substituting a given condition, such as y=3y=3 when x=0x=0, into the general solution to find cc.

Always find the general solution first, then use the condition, then write y=f(x)y=f(x).

−1−0.50.511.522.53−4−22468xy(0, 3)y = c e⁻ˣ
The general solution y = c e⁻ˣ of dy/dx + y = 0 is a family of curves; the condition y = 3 when x = 0 picks out c = 3

General solution

  • One arbitrary constant
  • Found by integrating once

Particular solution

  • Constant found from a condition
  • For example y=3y=3 when x=0x=0

Worked example

Given y=(x+c)cos⁡xy=(x+c)\cos x and y=3y=3 when x=0x=0, find the particular solution.

The general solution is y=x36+cx3y=\frac{x^3}{6}+\frac{c}{x^3} and y=1y=1 when x=1x=1. What is cc?

Modelling in kinematics

Equations such as dvdt+2v=10e−t\frac{dv}{dt}+2v=10e^{-t} model motion with resistance proportional to velocity.

In kinematics, a=dvdta=\frac{dv}{dt}, so equations such as dvdt+2v=10e−t\frac{dv}{dt}+2v=10e^{-t} model motion with a resistance proportional to velocity.

Here I=e2tI=e^{2t}, giving ddt(ve2t)=10et\frac{d}{dt}(ve^{2t})=10e^{t}, so v=10e−t+ce−2tv=10e^{-t}+ce^{-2t}. If v=0v=0 at t=0t=0, c=−10c=-10 and v=10e−t−10e−2tv=10e^{-t}-10e^{-2t}.

Maximum velocity occurs when dvdt=0\frac{dv}{dt}=0, at t=ln⁡2t=\ln2 with v=2.5v=2.5. Integrate vv for displacement, using s=0s=0 at t=0t=0.

123456−0.50.511.522.53xy(ln 2, 2.5)v = 10e^(−t) − 10e^(−2t)
Velocity peaks at 2.5 when t = ln 2 ≈ 0.69, then decays to 0.

In the model above, what happens to vv as t→∞t\to\infty?

Try an exam question

Solve dydx+4xy=2x\dfrac{dy}{dx}+\dfrac{4}{x}y=2x for x>0x>0, given that y=1y=1 when x=1x=1.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find an integrating factor for this differential equation.

1 mark, marked against the mark scheme

Revision notes