First order linear differential equations

First order linear differential equations

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

Studying this course? Keep your progress in one place.

Key facts

  • Standard form: dydx+P(x)y=Q(x)\dfrac{dy}{dx}+P(x)y=Q(x), with the coefficient of dydx\frac{dy}{dx} equal to 11.
  • The integrating factor is I=e∫P dxI=e^{\int P\,dx} (no constant needed).
  • Multiply every term by II: ddx(yI)=QI\frac{d}{dx}(yI)=QI. Integrate, add CC, then divide by II.
  • Use a given condition in the general solution to find CC.
  • In mixing problems, dmdt=rate in−rate out\frac{dm}{dt}=\text{rate in}-\text{rate out}.

The integrating factor

Write it in standard form, multiply by the integrating factor e∫P dxe^{\int P\,dx}, and integrate the product.

A first order linear equation can be written dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x). The integrating factor is I(x)=e∫P dxI(x)=e^{\int P\,dx}. No constant is needed when finding II, and it may be quoted without proof.

Multiplying by II makes the left side the derivative of a product, ddx(yI)=QI\frac{d}{dx}(yI)=QI. Integrate both sides, remembering the constant CC, then divide by II.

  • dydx+Py=Q\dfrac{dy}{dx}+Py=QI=e∫P dxI=e^{\int P\,dx}
  • Multiply by IIddx(yI)=QI\dfrac{d}{dx}(yI)=QI
  1. 1

    Standard form

    Make the coefficient of dydx\frac{dy}{dx} equal to 1

  2. 2

    Find I

    I=e∫P dxI=e^{\int P\,dx}

  3. 3

    Multiply

    Multiply every term by II

  4. 4

    Integrate

    yI=∫QI dxyI=\int QI\,dx, adding CC

  5. 5

    Divide by I

    Write yy in terms of xx

Method for a first order linear equation

Worked example

Solve dydx+2y=4x\frac{dy}{dx}+2y=4x.

For dydx+3y=x\frac{dy}{dx}+3y=x, what is the integrating factor?

Standard form

Divide every term by the coefficient first, then read off PP.

The coefficient of dydx\frac{dy}{dx} must be 11. Divide every term by the coefficient first.

Useful identities for simplifying the integrating factor: eln⁡f(x)=f(x)e^{\ln f(x)}=f(x) and ekln⁡x=xke^{k\ln x}=x^k. When x>0x>0 you may write ln⁡x\ln x instead of ln⁡∣x∣\ln|x|.

  1. 1

    Divide every term by x

    dy/dx + (3/x)y = x, so P = 3/x

  2. 2

    Integrate P

    ∫(3/x) dx = 3 ln x

  3. 3

    Integrating factor

    I = e^(3 ln x) = x³

Putting x dy/dx + 3y = x² into standard form and finding the integrating factor.
  • xdydx+3y=x2x\dfrac{dy}{dx}+3y=x^2dydx+3xy=x\dfrac{dy}{dx}+\dfrac3xy=x

Worked example

Solve xdydx+3y=x2x\frac{dy}{dx}+3y=x^2 for x>0x>0.

In xdydx+2y=x3x\frac{dy}{dx}+2y=x^3, what is PP?

Trigonometric coefficients

The same method works. Learn ∫tan⁡x dx=ln⁡sec⁡x\int\tan x\,dx=\ln\sec x and ∫cot⁡x dx=ln⁡sin⁡x\int\cot x\,dx=\ln\sin x.

These give I=sec⁡xI=\sec x and I=sin⁡xI=\sin x. Use the interval given for xx to remove modulus signs. On 0<x<π0<x<\pi, sin⁡x>0\sin x>0.

−1.2−1−0.8−0.6−0.4−0.200.20.40.60.811.21.4−6−4−2246xyP = tan xI = sec x
For P = tan x, the integrating factor is I = sec x (shown for −π/2 < x < π/2).
  • P=tan⁡xP=\tan xI=sec⁡xI=\sec x
  • P=cot⁡xP=\cot xI=sin⁡xI=\sin x

Worked example

Solve dydx+ycot⁡x=cos⁡x\frac{dy}{dx}+y\cot x=\cos x for 0<x<π0<x<\pi.

For dydx+ytan⁡x=1\frac{dy}{dx}+y\tan x=1 with −π2<x<π2-\frac\pi2<x<\frac\pi2, what is II?

Particular solutions

Find the general solution first, then substitute the condition to find CC.

Use a given condition to find CC after you have the general solution.

The decaying term Ce−2xCe^{-2x} vanishes as x→∞x\to\infty, so y≈2x−1y\approx2x-1 for large xx. This long-term behaviour is the same for every value of CC.

−0.50.511.522.53−22468xy(0, 3) when C = 4y = 2x − 1 + Ce^(−2x)y = 2x − 1
Every solution approaches the dashed line y = 2x − 1. Change C to see this.

Worked example

Solve dydx+2y=4x\frac{dy}{dx}+2y=4x with y=3y=3 when x=0x=0.

In y=2x−1+Ce−2xy=2x-1+Ce^{-2x}, what does yy approach for large xx?

Mixing and rates

Use dmdt=rate in−rate out\frac{dm}{dt}=\text{rate in}-\text{rate out}, where the outflow concentration is mV\frac mV.

Many problems have the form dmdt=(rate in)−(rate out)\frac{dm}{dt}=(\text{rate in})-(\text{rate out}).

In evaluation, comment on the long-term value (inflow concentration times the volume) and on model assumptions such as instant uniform mixing.

510152025303540455024681012xym = 10(0, 0)m = 10(1 − e^(−t/10))
Mass of salt in the tank rises towards 10 kg.

Worked example

A tank holds 5050 litres of pure water. Brine with 0.20.2 kg per litre enters at 55 litres per minute, and the stirred mixture leaves at the same rate. Find the mass mm of salt at time tt.

In the tank example, what mass of salt is approached for large tt?

Try an exam question

Find the general solution of xdydx+2y=x3x\frac{dy}{dx}+2y=x^3 for x>0x>0.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the integrating factor.

1 mark, marked against the mark scheme

Revision notes