Search Knowledge

© 2026 LIBREUNI PROJECT

Mathematics / Differential Equations

Partial Differential Equations (PDEs)

Partial Differential Equations (PDEs) are the mathematical foundation of modern physics and engineering. From the propagation of heat in a solid to the evolution of quantum mechanical wavefunctions, PDEs describe systems where the rate of change depends on multiple independent variables—usually space and time . Unlike Ordinary Differential Equations (ODEs), which track the evolution of a single point or a discrete set of particles, PDEs track the evolution of continuous fields (like temperature, pressure, or probability density).

1. Classification of Second-Order Linear PDEs

In rigorous mathematical analysis, we classify PDEs to determine the qualitative behavior of their solutions and the boundary conditions required for well-posedness. Consider the general second-order linear PDE for a function :

The classification depends on the sign of the discriminant :

  1. Elliptic (): These describe steady-state phenomena. The prototypical example is the Laplace Equation . Solutions are “harmonic functions” and are incredibly smooth (analytic) inside their domain. Disturbances at the boundary are felt instantaneously throughout the interior.
  2. Parabolic (): These describe diffusion and dissipative processes. The Heat Equation is the central model. They exhibit a “smoothing property”—even if the initial state is jagged or discontinuous, the state at any is smooth.
  3. Hyperbolic (): These describe wave motion and signal propagation. The Wave Equation is the primary example. Unlike the others, hyperbolic equations preserve singularities (sharp edges) which travel along paths called characteristics at a finite speed .

2. The Big Three: Laplace, Heat, and Wave

2.1 The Laplace and Poisson Equations

The Laplace equation is the equilibrium state of heat or potential. It is characterized by the Maximum Principle: a harmonic function cannot have a local maximum or minimum in the interior of its domain—the extreme values must occur on the boundary. If a source term exists, we have the Poisson Equation: In electrostatics, would be the electric potential and the charge density.

2.2 The Heat Equation

The evolution of temperature in a medium with thermal diffusivity : The fundamental solution (Green’s function) in free space is a Gaussian that spreads over time: This formula reveals that a point source of heat at immediately affects every point in space, representing an “infinite speed of propagation,” a characteristic feature of parabolic systems.

2.3 The Wave Equation

The propagation of vibrations and signals: For the 1D case on an infinite line, the general solution is d’Alembert’s solution: where is the initial position and is the initial velocity. This explicitly shows that the value at only depends on the initial data within the “domain of dependence” .


3. Separation of Variables

One of the most powerful analytical techniques is the method of Separation of Variables. Suppose we want to solve on the interval with .

  1. Assume a Product Form: Let .
  2. Separate Variables: . Since one side depends only on and the other only on , both must equal a constant .
  3. Solve the Spatial ODE: with yields eigenvalues and eigenfunctions .
  4. Solve the Temporal ODE: .
  5. Superposition: By linearity, the general solution is: The constants are determined by the Fourier expansion of the initial condition .

4. Boundary Conditions and Well-Posedness

A PDE problem is well-posed in the sense of Hadamard if:

  1. A solution exists.
  2. The solution is unique.
  3. The solution depends continuously on the data (stability).

Boundary Conditions (BCs)

  • Dirichlet: on the boundary (e.g., specifying temperature).
  • Neumann: on the boundary (e.g., specifying heat flux).
  • Robin: (e.g., convective cooling).

Green’s Functions and Fundamental Solutions

For linear operators , we can define a Green’s function such that . This represents the “impulse response” of the differential operator. The solution for any source can then be found via the integral:


5. Numerical Methods: FDM vs FEM

When analytical solutions are unavailable (e.g., irregular domains or nonlinearities), we discretize the PDE.

Finite Difference Method (FDM)

FDM approximates derivatives using Taylor series expansions on a grid: It is straightforward but struggles with complex geometries.

Finite Element Method (FEM)

FEM relies on the Weak Formulation. We multiply the PDE by a “test function” and integrate over the domain. Using the divergence theorem, we lower the derivative order. For the Laplace equation: The domain is divided into small “elements” (triangles/tetrahedra), and the solution is approximated by simple polynomials on each element. This handles complex boundaries elegantly.


6. Python Implementation: 1D Heat Diffusion

The following code implements the Explicit Finite Difference Method for the heat equation. Note the stability requirement (the CFL condition): .

import numpy as np
import matplotlib.pyplot as plt

def heat_equation_1d(L, T, alpha, nx, nt):
    dx = L / (nx - 1)
    dt = T / nt
    r = alpha * dt / dx**2
    
    if r > 0.5:
        raise ValueError(f"Stability condition failed: r = {r:.4f}")

    # Initial condition: A temperature spike in the middle
    u = np.zeros(nx)
    u[int(0.4*nx):int(0.6*nx)] = 1.0 
    
    # Store results for visualization
    history = [u.copy()]
    
    for _ in range(nt):
        u_next = u.copy()
        for i in range(1, nx - 1):
            u_next[i] = u[i] + r * (u[i+1] - 2*u[i] + u[i-1])
        u = u_next
        history.append(u.copy())
        
    return np.array(history)

# Parameters
history = heat_equation_1d(L=1.0, T=0.1, alpha=0.01, nx=50, nt=1000)
x = np.linspace(0, 1.0, 50)

# Plotting specific time steps
plt.figure(figsize=(10, 5))
for t_idx in [0, 100, 500, 1000]:
    plt.plot(x, history[t_idx], label=f"t = {t_idx/1000:.3f}")
plt.title("Time Evolution of 1D Heat Diffusion")
plt.xlabel("Position (x)"); plt.ylabel("Temperature (u)")
plt.legend(); plt.grid(True); plt.show()

Conceptual Check

Which of the following describes the 'Smoothing Property' unique to Parabolic PDEs like the Heat Equation?

Conceptual Check

What is the classification of the PDE: 3u_xx + 2u_xy + u_yy = 0?

Conceptual Check

Why is the backward heat equation (u_t = -k u_xx) considered ill-posed in the sense of Hadamard?