What is an ordinary differential equation (ODE)?
An equation involving derivatives of a function with respect to a single independent variable
What distinguishes an ODE from a PDE?
ODEs involve one independent variable, PDEs involve multiple
What is an initial value problem (IVP)?
An ODE with specified values of the function and its derivatives at a starting point
Why convert higher-order ODEs into first-order systems?
Numerical methods require systems of first-order equations
How do you convert a 2nd order ODE to a system?
Define new variables for each derivative (e.g., y1=y, y2=y′)
What is the Euler method formula?
yᵢ₊₁ = yᵢ + h f(tᵢ, yᵢ)
What does Euler’s method approximate geometrically?
The tangent line (linear approximation)
What is the order of error for Euler’s method?
O(h²) local truncation error
Why is Euler method inaccurate?
It uses only slope at the start of interval
What happens if step size h decreases?
Accuracy increases, computational cost increases
Why use Runge-Kutta instead of Euler?
Higher accuracy without needing derivatives
What is RK2 based on conceptually?
Averaging slopes
What is RK4 known for?
High accuracy using weighted average of 4 slopes
What is a key advantage of RK methods?
Better stability and accuracy than Euler
What is the forward difference formula?
f′(x) ≈ (f(x+h) − f(x))/h
What is the error order of forward difference?
O(h)
What improves accuracy in differentiation?
Using central difference
What is central difference formula?
f′(x) ≈ (f(x+h) − f(x−h)) / (2h)
Why is central difference better?
Error is O(h²), more accurate
What causes numerical differentiation errors?
Truncation + round-off error
Why use numerical integration?
When integrals are too complex analytically
What is trapezoidal rule formula?
Area approximated using straight-line segments
What is Simpson’s 1/3 rule?
Uses quadratic interpolation over intervals
What requirement does Simpson’s rule have?
Number of intervals must be even