Differential Equations

2026 Syllabus Objectives

By the end of this topic, you should be able to:

  1. Find an integrating factor for a first order linear differential equation, and use it to find the general solution
  2. Recall the meaning of 'complementary function' and 'particular integral', and know that the general solution is their sum
  3. Find the complementary function for first or second order linear differential equations with constant coefficients (including cases with distinct real roots, repeated roots, or complex roots)
  4. Recall and find the form of a particular integral for polynomial, exponential, and trigonometric functions
  5. Use given substitutions to reduce differential equations to simpler forms
  6. Use initial conditions to find particular solutions and interpret solutions in context

1. First Order Linear Differential Equations and Integrating Factors

What is a First Order Linear Differential Equation?

A first order linear differential equation is an equation involving a function y, its first derivative dy/dx, and possibly x. It has the standard form:

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

where P(x) and Q(x) are functions of x (or constants).

Examples:

  • dydx2y=x2\frac{dy}{dx} - 2y = x^2 (here P(x) = -2, Q(x) = x²)
  • xdydxy=x4x\frac{dy}{dx} - y = x^4 (needs to be rearranged first)
  • dydx+ycothx=coshx\frac{dy}{dx} + y\coth x = \cosh x (here P(x) = coth x, Q(x) = cosh x)

What is an Integrating Factor?

An integrating factor is a special function that we multiply through the entire differential equation to make it easier to solve. It's like a mathematical "trick" that transforms the equation into something we can integrate directly.

The integrating factor is denoted by I(x) or just I, and is calculated using:

I=eP(x)dxI = e^{\int P(x)\,dx}

where P(x) is the coefficient of y in the standard form.

How to Solve Using an Integrating Factor

Step-by-step method:

Step 1: Rearrange the equation into standard form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)

Step 2: Identify P(x) and calculate the integrating factor I=eP(x)dxI = e^{\int P(x)\,dx}

Step 3: Multiply the entire equation by the integrating factor

Step 4: The left side becomes ddx(Iy)\frac{d}{dx}(Iy), so write: ddx(Iy)=IQ(x)\frac{d}{dx}(Iy) = I \cdot Q(x)

Step 5: Integrate both sides: Iy=IQ(x)dxIy = \int I \cdot Q(x)\,dx

Step 6: Solve for y: y=1IIQ(x)dxy = \frac{1}{I}\int I \cdot Q(x)\,dx

Worked Example 1: dydx2y=x2\frac{dy}{dx} - 2y = x^2

This is already in standard form with P(x) = -2 and Q(x) = x².

Calculate integrating factor: I=e2dx=e2xI = e^{\int -2\,dx} = e^{-2x}

Multiply through by I: e2xdydx2e2xy=x2e2xe^{-2x}\frac{dy}{dx} - 2e^{-2x}y = x^2e^{-2x}

The left side is ddx(ye2x)\frac{d}{dx}(ye^{-2x}), so: ddx(ye2x)=x2e2x\frac{d}{dx}(ye^{-2x}) = x^2e^{-2x}

Integrate both sides: ye2x=x2e2xdxye^{-2x} = \int x^2e^{-2x}\,dx

To integrate the right side, use integration by parts twice: x2e2xdx=12x2e2x+12xe2x14e2x+c\int x^2e^{-2x}\,dx = -\frac{1}{2}x^2e^{-2x} + \frac{1}{2}xe^{-2x} - \frac{1}{4}e^{-2x} + c

Therefore: ye2x=12x2e2x+12xe2x14e2x+cye^{-2x} = -\frac{1}{2}x^2e^{-2x} + \frac{1}{2}xe^{-2x} - \frac{1}{4}e^{-2x} + c

Multiply through by e2xe^{2x}: y=12x2+12x14+ce2xy = -\frac{1}{2}x^2 + \frac{1}{2}x - \frac{1}{4} + ce^{2x}

This is the general solution.

Worked Example 2: xdydxy=x4x\frac{dy}{dx} - y = x^4

First, rearrange to standard form by dividing through by x: dydx1xy=x3\frac{dy}{dx} - \frac{1}{x}y = x^3

Now P(x) = -1/x and Q(x) = x³.

Calculate integrating factor: I=e1xdx=elnx=elnx1=x1=1xI = e^{\int -\frac{1}{x}\,dx} = e^{-\ln x} = e^{\ln x^{-1}} = x^{-1} = \frac{1}{x}

Multiply through by I = 1/x: 1xdydx1x2y=x2\frac{1}{x}\frac{dy}{dx} - \frac{1}{x^2}y = x^2

This gives: ddx(yx)=x2\frac{d}{dx}\left(\frac{y}{x}\right) = x^2

Integrate: yx=x33+c\frac{y}{x} = \frac{x^3}{3} + c

Therefore: y=x43+cxy = \frac{x^4}{3} + cx

Worked Example 3: dydx+ycothx=coshx\frac{dy}{dx} + y\coth x = \cosh x

This is in standard form with P(x) = coth x and Q(x) = cosh x.

Calculate integrating factor: I=ecothxdx=eln(sinhx)=sinhxI = e^{\int \coth x\,dx} = e^{\ln(\sinh x)} = \sinh x

Multiply through: sinhxdydx+ysinhxcothx=sinhxcoshx\sinh x\frac{dy}{dx} + y\sinh x\coth x = \sinh x\cosh x

Since cothx=coshxsinhx\coth x = \frac{\cosh x}{\sinh x}: sinhxdydx+ycoshx=sinhxcoshx\sinh x\frac{dy}{dx} + y\cosh x = \sinh x\cosh x

This is: ddx(ysinhx)=sinhxcoshx\frac{d}{dx}(y\sinh x) = \sinh x\cosh x

Integrate: ysinhx=sinhxcoshxdxy\sinh x = \int \sinh x\cosh x\,dx

Using the substitution u = sinh x, du = cosh x dx: ysinhx=sinh2x2+cy\sinh x = \frac{\sinh^2 x}{2} + c

Therefore: y=sinhx2+csinhxy = \frac{\sinh x}{2} + \frac{c}{\sinh x}

Sign in to view full notes