# Chapter 3: Differential Equations

## Overview & Core Themes

This chapter addresses differential equations—equations relating an unknown function to its rates of change—which serve as the primary mathematical language for modeling physical dynamics.

1. **Classification and Order**  
   Differential equations are classified according to their structure:
   - **Ordinary Differential Equations (ODEs):** Involve functions of a single independent variable and ordinary derivatives.
   - **Partial Differential Equations (PDEs):** Involve functions of multiple independent variables and partial derivatives.
   - **Order and Linearity:** The order is determined by the highest derivative present. Linear equations satisfy the principle of superposition, where linear combinations of solutions form new solutions.

2. **Analytical Methods for First-Order Equations**  
   Key solution techniques include:
   - **Separation of Variables:** Rewriting $\frac{dy}{dx} = g(x)h(y)$ into $\frac{1}{h(y)} \, dy = g(x) \, dx$ and integrating both sides.
   - **Integrating Factors:** Solving linear first-order equations $y' + P(x)y = Q(x)$ by multiplying through by $\mu(x) = e^{\int P(x) \, dx}$.

3. **Second-Order Equations and Oscillatory Systems**  
   Second-order linear equations with constant coefficients, such as:
   $$a y'' + b y' + c y = 0$$
   model harmonic motion, mechanical vibrations, and electrical circuits. The nature of the solutions (oscillatory, damped, or overdamped) is governed by the roots of the characteristic algebraic equation $a r^2 + b r + c = 0$.

4. **Classical Partial Differential Equations of Mathematical Physics**  
   The chapter surveys foundational PDEs:
   - **Wave Equation:** $\frac{\partial^2 u}{\partial t^2} = v^2 \nabla^2 u$, modeling vibrating strings, acoustics, and optics.
   - **Heat (Diffusion) Equation:** $\frac{\partial u}{\partial t} = k \nabla^2 u$, describing thermal conduction and dissipative processes.
   - **Laplace's Equation:** $\nabla^2 u = 0$, governing steady-state potentials and electrostatic fields.

---

## Generative AI Prompts for Visuals

> ### Diagram: Direction Field (Slope Field) for a First-Order ODE
> **Generative AI Prompt:**  
> *A crisp vector mathematical slope field plot on a clean white background. A Cartesian coordinate plane displays a grid of short, evenly spaced tangent line segments indicating the direction field for an ordinary differential equation. Two distinct solution trajectories are drawn as smooth, brightly colored continuous curves winding through the grid tangent to the segments. Labeled $x$ and $y$ coordinate axes, high-contrast monochrome field dashes with colored solution curves, modern technical textbook illustration format.*

> ### Diagram: Damped Harmonic Oscillator Trajectories
> **Generative AI Prompt:**  
> *A technical 2D physics and mathematics graph showing damped harmonic motion. Plotted on horizontal time axis $t$ and vertical displacement axis $y$, a decaying sinusoidal wave oscillates with steadily diminishing amplitude, bounded symmetrically by upper and lower dashed exponential envelopes $y = \pm A e^{-\gamma t}$. Clean axis tick marks, crisp vector curves, academic publishing textbook aesthetic.*

> ### Diagram: Standing Waves on a Vibrating String (Wave Harmonics)
> **Generative AI Prompt:**  
> *A clean scientific textbook diagram displaying the first three harmonic standing wave modes of a fixed string. Three horizontal rows show strings fixed at both endpoints: the fundamental mode with a single central antinode, the second harmonic with a central node, and the third harmonic with two internal nodes. Dotted lines indicate the inverted oscillation phases. Nodes and antinodes are labeled with small annotations. Minimalist vector line art, white background.*
