Numerical methods
While second-degree polynomials can be solved through factoring, completing the square, or applying the quadratic formula, straightforward analytical methods for cubic and higher-order equations exist only in a narrow set of cases. However, such higher-order equations are typical in engineering applications, so finding approximate solutions to the equations would be useful.
This module examines three fundamental areas of numerical methods: root finding using Newton’s method, numerical integration techniques, and numerical solutions of ordinary differential equations.
Root extraction: Newton’s method
Newton’s method is a particular form of fixed-point iteration. The goal is to find a value such that .
All fixed-point techniques require a starting point. Preferably, the starting point will be close to the actual root. And, while Newton’s method converges quickly, it requires the function to be continuously differentiable.
Newton’s method can be understood geometrically as follows:
- Start with an initial guess
- Draw the tangent line to the curve at the point
- Find where this tangent line intersects the x-axis; this intersection is
- Repeat the process using as the new starting point
The tangent line at has slope and passes through . Setting and solving for gives the next approximation .
At each iteration (, etc.), the method estimates the root. The maximum error is determined by looking at how much the estimate changes after each iteration. If the change between the previous and current estimates (representing the magnitude of error in the estimate) is too large, the current estimate is used as the independent variable for the subsequent iteration.
Properties of Newton’s method:
- Quadratic convergence: when it converges, Newton’s method typically doubles the number of correct digits with each iteration.
- Requires differentiability: the function must be continuously differentiable.
- Sensitive to starting point: poor initial guesses may lead to divergence or convergence to an unintended root.
Numerical integration
Numerical integration (also called numerical quadrature) is the process of approximating the value of a definite integral when an analytical solution is difficult or impossible to obtain. We present three common methods: Euler’s rule, the trapezoidal rule, and Simpson’s rule.
General setup
Euler’s rule (left endpoint rule)
Euler’s rule is the simplest numerical integration technique. It approximates the integral by summing rectangles whose heights are determined by the function value at the left endpoint of each subinterval.
Geometric interpretation: Each rectangle has width and height , where is the left endpoint of the th subinterval.
Characteristics:
- Simplest method to implement.
- Generally less accurate than trapezoidal or Simpson’s rule.
- Error is proportional to (first-order accuracy).
Trapezoidal rule
The trapezoidal rule improves upon Euler’s rule by approximating the area under the curve using trapezoids instead of rectangles.
Geometric interpretation: Each trapezoid has parallel sides of lengths and , with width . The area of each trapezoid is .
Characteristics:
- More accurate than Euler’s rule.
- Error is proportional to (second-order accuracy).
- Exact for linear functions.
Simpson’s rule (parabolic rule)
Simpson’s rule achieves higher accuracy by approximating the function with parabolic arcs instead of straight lines.
Geometric interpretation: Simpson’s rule fits a parabola through each consecutive set of three points and integrates the parabola exactly.
Characteristics:
- More accurate than both Euler’s rule and the trapezoidal rule.
- Error is proportional to (fourth-order accuracy).
- Exact for polynomials of degree 3 or less.
Numerical solutions of ordinary differential equations
Many differential equations arising in engineering and science cannot be solved analytically. In such cases, numerical methods provide approximate solutions at discrete points.
Consider a first-order ordinary differential equation of the form:
The goal is to find approximate values of at discrete time points .
Euler’s approximation
Euler’s approximation (also called Euler’s method or forward Euler method) is the simplest method for numerically solving ordinary differential equations. It estimates the value of a function given the value and slope of the function at an adjacent location.
Geometric interpretation: The simplicity of the concept is illustrated by writing Euler’s approximation in terms of the traditional two-dimensional - coordinate system:
This formula says: starting from a known point , move along the tangent line (with slope ) to estimate the function value at a nearby point .
Applicability: Euler’s approximation applies to a differential equation of the form:
The model applies to a general time , and it applies when and can be expressed recursively.
As long as the derivative can be evaluated, Euler’s method can be used to predict the value of any function whose values are limited to discrete, sequential points in time or space (e.g., a difference equation).
Euler’s approximation for ordinary differential equations provides a straightforward method for obtaining numerical solutions when analytical methods fail. While it is exact for linear systems, care must be taken with nonlinear systems where error accumulates.
These numerical methods form the foundation for more advanced computational techniques used throughout engineering, physics, and applied mathematics. Modern software packages implement sophisticated versions of these algorithms, but understanding the basic principles remains essential for proper application and interpretation of results.