Wave Equation Explained with Worked Examples

The wave equation describes vibrating strings, sound and light. Waves travel at speed , and every solution has the form .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Wave equation means

Check a travelling wave: , : and , so . At , : . The general form is d'Alembert's solution, using the chain rule. For : and , so it solves the equation; with , , , .

For a string fixed at both ends, separation of variables gives standing waves with frequencies proportional to ; the sum of these modes is a Fourier series. Unlike the heat equation, the wave equation conserves energy and is reversible: waves do not smooth out.

On a computer the grid must respect the CFL condition, . The stationary case is Laplace's equation. The speed is determined by the medium: for a string with tension and density ; the sinusoidal solutions are those of simple harmonic motion at each point. A one-directional wave that obeys a first-order equation is solved by the method of characteristics.

What is it used for?

The wave equation describes disturbances that travel at a fixed speed without losing energy.

How to use wave equation

  1. Compute and for the candidate.
  2. Check .
  3. For general solutions use .
  4. Fit initial displacement and velocity (d'Alembert).

Graph

A travelling wave u = sin(x − 2t) at t = 0 and t = 0.5x = 2, t = 0.5: 0.84150123456-1-0.500.51A travelling wave u = sin(x − 2t) at t = 0 and t = 0.5xut = 0t = 0.5Graph with x from 0 to 6.2832 and y from -1.2 to 1.2. Shows the curve t = 0; the curve t = 0.5; point x = 2, t = 0.5: 0.8415 at (2, 0.8415).

The wave shape moves to the right at speed 2.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: sin(x − 2t)

Check for and find .

Worked example
Answer
0.84150.8415
  1. u_tt
  2. c² u_xx
  3. Value

Example 2: x² + c²t²

Check and find for .

Worked example
Answer
1010
  1. u_tt
  2. c² u_xx
  3. Value

Example 3: wave speed

Find the speed of a wave on a string with tension 100 N and density 0.04 kg/m.

Worked example
Answer
50 m/s50\ \text{m/s}
  1. Formula

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

u = sin(x − 2t), c = 2

u_tt = 4u_xx

At (2, 0.5): sin 1.

u = x² + c²t²

u_tt = 2c², u_xx = 2

c = 3, x = 1, t = 1: 10.

Wave speed

c² = 4

c = 2.

Check

u_tt − c²u_xx = 2c² − 2c²

0.

Word problems

u_tt = c²u_xx has general solution u = f(x − ct) + g(x + ct): waves travelling right and left at speed c.

Travelling wave

u = sin(x − 2t). Find u(2, 0.5).

  1. sin 1
  2. Check: ✓0.8415.

Speed

u_tt = 4u_xx. Find c.

  1. √4
  2. Check: ✓2.

Polynomial Higher

u = x² + c²t² with c = 3. Find u(1, 1).

  1. 1 + 9
  2. Check: ✓10.

Residual Higher

Check 2c² − c²·2 for c = 3.

  1. 18 − 18
  2. Check: 0 ✓0.

Common mistakes

c instead of c²

u_tt = cu_xx ✗

u_tt = c²u_xx ✓

Speed squared.

Heat confusion

u_t ✗

u_tt ✓

Second order in time.

One direction only

f(x − ct) only ✗

plus g(x + ct) ✓

General solution.

Wrong sign

x + ct is rightward ✗

x − ct is rightward ✓

Check direction.

Exam tips

  1. u_tt = c²u_xx.
  2. f(x − ct) + g(x + ct).
  3. Speed c.
  4. Chain rule to verify.
  5. Two initial conditions.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. sin(x − 2t) at (1, 0.25) to 4 d.p. Foundation

0.4794

2. x² + c²t² at c = 2, x = 1, t = 2 Foundation

17

3. c for u_tt = 9u_xx Foundation

3

4. cos(x − t) at (0, 0) Higher

1

5. (x − ct)² at x = 3, c = 1, t = 1 Higher

4

6. 2c² for c = 4 Higher

32

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Wave equation
u_tt = c²u_xx.
Wave speed (c)
Propagation speed.
Travelling wave
f(x − ct).
d’Alembert solution
General solution.
Characteristic
Line x ± ct constant.
Superposition
Sum of solutions.

Frequently asked questions

What is the wave equation?

u_tt = c²u_xx.

What is the general solution?

f(x − ct) + g(x + ct).

What does c represent?

Wave speed.

Does it need two initial conditions?

Yes, u and u_t.

Which page covers d’Alembert’s solution?

d’Alembert’s solution.

Which page covers the heat equation?

heat equation.

More in Differential equations and transforms and the formula sheets.