solving the wave equation

Last edited February 26, 2026 by StudyHome. Created February 26, 2026 by StudyHome.

Solving the Wave Equation

The wave equation is a fundamental partial differential equation that describes the propagation of waves, such as sound waves, light waves, and water waves. It is given by:

\begin{equation} \frac{\partial^2 u}{\partial t^2} = c^2 \nabla^2 u \end{equation}

where u(x, t) is the wave function, c is the speed of the wave, and \nabla^2 is the Laplacian operator.

1. Derivation of the Wave Equation

The wave equation can be derived from Newton's second law and the principles of elasticity. For a one-dimensional medium, the equation can be expressed as:

\begin{equation} \frac{\partial^2 u}{\partial t^2} = \frac{T}{\rho} \frac{\partial^2 u}{\partial x^2} \end{equation}

where T is the tension in the medium and \rho is the density.

2. General Solution

The general solution of the wave equation can be expressed using d'Alembert's solution:

\begin{equation} u(x, t) = f(x - ct) + g(x + ct) \end{equation}

where f and g are arbitrary twice-differentiable functions representing waves traveling in opposite directions.

3. Initial and Boundary Conditions

To solve the wave equation completely, we need to specify initial and boundary conditions. For example, consider the following initial conditions:

\begin{align} u(x, 0) &= h(x) \ \frac{\partial u}{\partial t}(x, 0) &= p(x) \end{align}

where h(x) is the initial displacement and p(x) is the initial velocity.

4. Method of Separation of Variables

We can also solve the wave equation using the method of separation of variables. Assume a solution of the form:

\begin{equation} u(x, t) = X(x)T(t) \end{equation}


Substituting into the wave equation gives:

\begin{equation} X(x) \frac{d^2 T}{dt^2} = c^2 T(t) \frac{d^2 X}{dx^2} \end{equation}

Dividing both sides by c^2 X(x)T(t) leads to:

\begin{equation} \frac{1}{c^2 T} \frac{d^2 T}{dt^2} = \frac{1}{X} \frac{d^2 X}{dx^2} = -\lambda \end{equation}

where \lambda is a separation constant.

5. Solving the Temporal Part

The temporal part becomes:

\begin{equation} \frac{d^2 T}{dt^2} + c^2 \lambda T = 0 \end{equation}


The general solution is:

\begin{equation} T(t) = A \cos(\sqrt{\lambda} ct) + B \sin(\sqrt{\lambda} ct) \end{equation}

6. Solving the Spatial Part

The spatial part becomes:

\begin{equation} \frac{d^2 X}{dx^2} + \lambda X = 0 \end{equation}


The general solution is:

\begin{equation} X(x) = C e^{\sqrt{\lambda} x} + D e^{-\sqrt{\lambda} x} \end{equation}

7. Complete Solution

Combining the solutions for X and T:

\begin{equation} u(x, t) = \left( C e^{\sqrt{\lambda} x} + D e^{-\sqrt{\lambda} x} \right) \left( A \cos(\sqrt{\lambda} ct) + B \sin(\sqrt{\lambda} ct) \right) \end{equation}

8. Boundary Conditions

Applying boundary conditions, such as u(0, t) = 0 and u(L, t) = 0, leads to quantization of \lambda:

\begin{equation} \lambda_n = \left( \frac{n \pi}{L} \right)^2 \end{equation}

for n = 1, 2, 3, \ldots.

9. Final Solution

The final solution can be expressed as a Fourier series:

\begin{equation} u(x, t) = \sum_{n=1}^{\infty} \left( A_n \cos\left(\frac{n \pi c t}{L}\right) + B_n \sin\left(\frac{n \pi c t}{L}\right) \right) \sin\left(\frac{n \pi x}{L}\right) \end{equation}

where A_n and B_n are determined from the initial conditions.

10. Conclusion

The wave equation is a powerful tool in physics, allowing us to model various wave phenomena. The methods of separation of variables and d'Alembert's solution provide a comprehensive framework for solving the wave equation under various conditions.

Listen to this page as a podcast (about 1 hour, generated with AI).

Generate & play 1-hour podcast