Lesson 3 of 7 · 16 min

Differential equations and their solutions

Recognise a first-order differential equation, verify a solution by substitution, and solve dydx=f(x)\frac{dy}{dx} = f(x) by direct integration to get general and particular solutions.

What you will be able to do

  • Recognise a first-order differential equation and what it means for a function to be a solution.
  • Verify that a given function satisfies a differential equation by substituting it into both sides.
  • Solve dydx=f(x)\frac{dy}{dx} = f(x) by integrating, and use an initial condition to find the particular solution.

A differential equation is an equation that involves a derivative of an unknown function. The equation

dydx=6−2y\frac{dy}{dx} = 6 - 2y

does not tell you yy directly. It tells you how yy changes: when yy is below 33 the gradient is positive, so yy rises; when yy is above 33 it falls. Solving the equation means finding the functions that behave like that.

This topic deals with first-order equations, which contain dydx\frac{dy}{dx} but no higher derivatives.

Interactive

A family of solutions

Every curve y=Ae−2x+3y = Ae^{-2x} + 3 satisfies dydx=6−2y\frac{dy}{dx} = 6 - 2y. Above y=3y = 3 the curves fall, below it they rise, and A=0A = 0 gives the constant solution y=3y = 3.

Definition

General and particular solutions

A solution of a differential equation is a function that makes the equation true for every xx in its domain.

  • The general solution is the whole family, with an arbitrary constant, such as y=Ae−2x+3y = Ae^{-2x} + 3.
  • A particular solution is the one member picked out by an initial condition, such as y(0)=5y(0) = 5, which gives y=2e−2x+3y = 2e^{-2x} + 3.

You can always check a proposed solution without solving anything. Differentiate it, then substitute yy and dydx\frac{dy}{dx} into both sides of the equation. If the two sides are identical for every xx, it is a solution.

Worked example

Verify a solution of dydx=6−2y\frac{dy}{dx} = 6 - 2y

  • Simple familiar
  • Technology free

(a) Show that y=Ae−2x+3y = Ae^{-2x} + 3 is a solution of dydx=6−2y\frac{dy}{dx} = 6 - 2y for any constant AA.

(b) Hence determine the particular solution with y(0)=5y(0) = 5.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Differentiate the proposed solution.

  2. Substitute yy and dydx\frac{dy}{dx} into the two sides separately and simplify.

  3. Conclude LHS = RHS, then use any initial condition to find the constant.

Watch out for

  • Checking a single value of xx: a solution must work for every xx.

  • Forgetting the brackets: 6−2Ae−2x+36 - 2Ae^{-2x} + 3 is wrong.

Which function is a solution of dydx=3y\frac{dy}{dx} = 3y?

Choose one answer

The simplest differential equations have a right-hand side in xx only:

dydx=f(x)  ⟹  y=∫f(x) dx\frac{dy}{dx} = f(x) \quad\implies\quad y = \int f(x)\,dx

This is the anti-differentiation you already know. The constant of integration is the arbitrary constant of the general solution.

Determine the general solution of dydx=6x2−4x+1\frac{dy}{dx} = 6x^2 - 4x + 1.

y =
Reads asYour answer shows here as maths.

Worked example

Solve dydx=xx2+9\frac{dy}{dx} = \frac{x}{\sqrt{x^2 + 9}} with y(4)=2y(4) = 2

  • Complex familiar
  • Technology free

Determine the particular solution of dydx=xx2+9\frac{dy}{dx} = \frac{x}{\sqrt{x^2 + 9}} given that y=2y = 2 when x=4x = 4.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. For dydx=f(x)\frac{dy}{dx} = f(x), integrate with any technique from Topic 1.

  2. Add the constant, then substitute the initial condition.

Watch out for

  • Writing y=x2+9+2y = \sqrt{x^2 + 9} + 2: substitute properly; the other term is not zero at x=4x = 4.

Determine the particular solution of dydx=e2x\frac{dy}{dx} = e^{2x} that satisfies y(0)=4y(0) = 4.

y =
Reads asYour answer shows here as maths.

Common mistake

A solution must work for every x

Checking one point is not verifying. y=x2y = x^2 and dydx=2x\frac{dy}{dx} = 2x agree with dydx=x+1\frac{dy}{dx} = x + 1 at x=1x = 1, but not elsewhere. Show that the two sides are identical as expressions.

Exam tip

Showing a solution works

For "show that y=…y = \dots is a solution", write the left-hand side and the right-hand side separately, simplify each, and finish with "LHS = RHS, so yy is a solution". Don't start from the equation you are trying to prove.

Summary

  • A differential equation links an unknown function to its derivative. First-order equations involve only dydx\frac{dy}{dx}.

  • To verify a solution, substitute yy and dydx\frac{dy}{dx} into both sides and show they are equal for every xx.

  • The general solution is a family with an arbitrary constant; an initial condition picks the particular solution.

  • For dydx=f(x)\frac{dy}{dx} = f(x), integrate: y=∫f(x) dxy = \int f(x)\,dx, with the constant of integration.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 70% read

Save your progress with a free account