Hyperbolic PDEs describe wave propagation and vibrations. The classic example is the 1D wave equation.
General Solution¶
The general solution is:
where and are determined by initial and boundary conditions.
Example: Vibrating String¶
A string of length fixed at both ends:
Initial displacement
Initial velocity
Solution (Fourier series):
Python Example¶
import numpy as np
import matplotlib.pyplot as plt
L = 1
c = 1
x = np.linspace(0, L, 100)
t = 0.5
u = np.sin(np.pi * x) * np.cos(np.pi * c * t)
plt.plot(x, nu)
plt.xlabel('x')
plt.ylabel('u(x, t)')
plt.title('Vibrating String at t=0.5')
plt.show()Expand this section with d’Alembert’s solution, characteristics, higher dimensions, and numerical methods (finite difference, finite element, etc.).