English:Numerical Methods

Numerical Methods
Introduction
Numerical methods are systematic procedures for obtaining approximate numerical answers to mathematical problems. They are essential when an exact symbolic solution is difficult, impossible, or simply too expensive to compute. This aiMOOC is designed for learners in Grades 11–13 who already know basic algebra, functions, graphs, systems of equations, derivatives, and integrals. You will connect those ideas with algorithms that computers can carry out.
In this course, you will learn how to judge an approximation, not just how to calculate one. You will investigate root finding, linear systems, interpolation, numerical differentiation, numerical integration, and numerical solutions of ordinary differential equations. Throughout the course, you will compare methods by asking four questions: Does the method converge? How accurate is it? Is it stable? How much work does it require?
Numerical methods form an important bridge between Mathematics, Computer science, Physics, Engineering, Economics, and data-based sciences. They are used in weather models, structural design, electric circuits, orbit calculations, financial models, medical imaging, and many other applications.

The diagram above shows how nearby function values can be used to approximate change. This idea appears repeatedly in numerical mathematics: replace a difficult continuous problem by a manageable finite calculation.
What Numerical Methods Do
A mathematical model may ask you to solve an equation, evaluate an integral, estimate a derivative, fit a curve through data, or predict how a system changes over time. In elementary mathematics, you often meet examples chosen because an exact solution exists. Real problems are less cooperative. Numerical methods allow you to trade exact symbolic form for a controlled approximation.
Suppose you want to solve . There is a formula for cubic equations, but it is complicated. A numerical root-finding method can instead produce a decimal approximation such as . The important point is that the method also gives you a way to improve the approximation and estimate its reliability.
A numerical method usually has four ingredients:
- A mathematical model: an equation, data set, differential equation, integral, or system to investigate.
- An algorithm: a finite sequence of computational steps.
- A stopping rule: a test that decides when the approximation is good enough.
- Error analysis: reasoning about how far the computed result may be from the desired result.
Exact and approximate answers
An exact answer represents the mathematical value without numerical rounding, for example or . An approximate answer represents the value to limited precision, for example or . Approximation is not a weakness when its error is understood and controlled.
Computers store most real numbers using finite precision. This means that even a mathematically exact algorithm can produce rounding effects. Numerical work therefore involves both mathematics and computation.
Error, tolerance, and significant digits
If the true value is and an approximation is , the absolute error is
.
When , the relative error is
.
A tolerance is a chosen error threshold. For example, an iterative algorithm might stop when two successive approximations differ by less than . A small change between iterations is useful evidence, but it is not automatically a proof that the true error is small. Good numerical practice distinguishes a convenient stopping test from a justified error bound.
Truncation error comes from replacing an infinite or continuous mathematical process by a finite approximation. Round-off error comes from finite-precision arithmetic. Smaller step sizes often reduce truncation error at first, but extremely small steps can make round-off effects more important.

This error plot illustrates a central numerical idea: decreasing a step size does not always decrease total computational error forever.
Root-Finding Methods
A root or zero of a function is a value for which . Root finding appears whenever you rearrange a model into the form . Examples include break-even calculations, equilibrium temperatures, intersection points, and nonlinear physics equations.
Bisection method
The Bisection method is reliable when is continuous on an interval and and have opposite signs. By the intermediate value theorem, at least one root lies in the interval. The method repeatedly halves the interval and keeps the half in which the sign change remains.

For the equation , start with . The midpoint is . Since and , the root lies between and . Repeating this process creates nested intervals containing .
After bisections, the interval width is
.
This gives a simple, rigorous error control. Bisection is not usually the fastest root-finding method, but its reliability makes it an important benchmark.
Newton-Raphson method
The Newton-Raphson method uses the tangent line to improve a current estimate. Starting from , the next approximation is
.
Geometrically, you draw the tangent line at and use the point where that tangent crosses the horizontal axis as the next estimate.

For , Newton's update becomes
.
Starting with gives , then . Near a simple root and with a suitable starting value, Newton's method often converges very rapidly. However, it can fail if the derivative is zero or nearly zero, or if the starting value sends the iteration toward an unwanted region.
Secant method
The Secant method avoids evaluating the derivative. It uses two recent points to approximate the tangent slope:
.

The secant method can be faster than bisection and needs only function values, but unlike bisection it does not automatically preserve a bracket around a root. Method choice therefore depends on what information you have and how much reliability you need.
Comparing root-finding methods
A useful comparison is:
- Bisection method: requires a sign-changing interval, converges predictably, and provides a direct interval error bound.
- Newton's method: requires a derivative, often converges very quickly near a suitable simple root, but may fail for poor starting values.
- Secant method: uses two starting values and no derivative, often converges faster than bisection, but has weaker reliability guarantees.
When implementing any iterative root finder, include a maximum number of iterations as a safety limit and define a stopping rule before you begin.
Systems of Linear Equations
Many scientific models lead to a system
,
where is a matrix of coefficients, is the vector of unknowns, and is the data vector. Electrical networks, force balances, chemical mixtures, and discretized differential equations all produce such systems.
Gaussian elimination
Gaussian elimination uses elementary row operations to transform a linear system into an equivalent upper-triangular system. Then back substitution determines the unknowns from the last equation upward.

Consider
and
.
Eliminating from one equation produces a simpler one-variable equation. The same idea scales to larger matrices. In practical numerical software, pivoting is used to avoid dividing by very small numbers and to improve numerical reliability.
Residual and conditioning
If is a computed solution, its residual is
.
A small residual means the computed vector nearly satisfies the equations. However, a small residual does not always guarantee a small solution error. A system can be ill-conditioned, meaning that small changes in the data can cause large changes in the solution. This is why numerical linear algebra studies both algorithms and the sensitivity of the underlying problem.
For Grades 11–13, the main idea is more important than a formal condition-number calculation: distinguish error caused by the algorithm from sensitivity already present in the mathematical problem.
Interpolation
Interpolation constructs a function that passes through known data points. If a table gives temperature at certain times, interpolation can estimate the temperature between recorded measurements. Extrapolation, by contrast, estimates outside the data range and is usually more risky.
Linear and polynomial interpolation
For points and , linear interpolation gives
.
With more points, a polynomial can be constructed to pass through every data value. One systematic form is the Lagrange polynomial.

The Lagrange interpolating polynomial through data points has the form
,
where each basis polynomial equals one at its own data point and zero at all the other listed -values.
Interpolation is not regression
Interpolation aims to pass through all specified data points. Regression usually aims to describe an overall trend and does not require the curve to pass through every observation. If measured data contain noise, a regression model may be more meaningful than a high-degree interpolating polynomial.
High-degree polynomial interpolation can also oscillate strongly, especially near the ends of an interval. This is one reason practical numerical work often uses piecewise low-degree polynomials such as splines.
Numerical Differentiation
A derivative is defined by a limit, but measured or tabulated data may not provide a symbolic formula to differentiate. Numerical differentiation estimates derivatives from nearby values.
The forward difference
has first-order truncation error in . The central difference
usually gives higher accuracy for smooth functions because leading error terms cancel.

The step-size trade-off
A smaller generally improves the mathematical approximation at first. But if becomes extremely small, the subtraction of nearly equal floating-point numbers can magnify round-off effects. Good numerical computation therefore seeks a useful balance rather than assuming that the smallest possible step is always best.
You can investigate this yourself with a calculator or spreadsheet by approximating the derivative of at for , , , and smaller values.
Numerical Integration
A definite integral represents accumulated change or signed area. When an antiderivative is unavailable or only discrete data are known, Numerical integration approximates the integral from sampled values.
Trapezoidal rule
The Trapezoidal rule replaces a curved segment by a straight line. For one interval ,
.
With many equal subintervals, the composite trapezoidal rule adds the areas of several trapezoids.

For on , one wide trapezoid gives
,
while the exact integral is . Dividing the interval into smaller pieces reduces the geometric mismatch.
Simpson's rule
Simpson's rule uses quadratic curves rather than straight line segments. For two equal subintervals with endpoints , , and and spacing ,
.

For smooth functions, Simpson's rule can be much more accurate than the trapezoidal rule for a comparable spacing. The composite version requires an even number of subintervals. Accuracy still depends on the function and the interval, so a method should be tested rather than trusted only because it has a higher formal order.
Numerical Solutions of Differential Equations
An ordinary differential equation such as
describes a rate of change. An initial condition such as specifies a starting state. Numerical time-stepping methods build an approximate solution from one point to the next.
Euler's method
Euler's method uses the slope at the current point:
,
where is the step size.

For , , and , Euler's method gives
,
then
.
The exact solution is , so at the exact value is about . Euler's method is easy to understand and implement, but its error can accumulate over many steps.
A physical model in motion
Differential equations describe motion under forces such as gravity and drag. A numerical solver can update position and velocity step by step even when the model is more complicated than a standard textbook formula.

Animations like this are useful because they connect a sequence of numerical states with a changing physical system.
Runge-Kutta methods
Runge–Kutta methods improve time stepping by sampling several slopes inside each step. The classical fourth-order Runge-Kutta method, often called RK4, combines four slope estimates to achieve much higher accuracy than Euler's method for many smooth problems.

The comparison above shows that methods with different update rules can produce visibly different numerical trajectories even when they use the same differential equation. Higher-order accuracy is valuable, but the best method still depends on stability, step size, and computational cost.
Stability in time stepping
A method is numerically stable when small computational disturbances do not grow in a way that overwhelms the intended solution. For some differential equations, Euler's method becomes unstable if the step size is too large.

At Grades 11–13, you do not need a full complex-plane stability theory to use the idea: if a numerical solution starts oscillating or growing in a way that the model does not justify, investigate the method and the step size before trusting the result.
Convergence, Accuracy, Stability, and Efficiency
These four ideas help you evaluate almost every numerical method.
Convergence asks whether the approximation approaches the desired mathematical solution as the iteration continues or the step size is refined.
Accuracy asks how close the computed answer is to the desired value.
Stability asks how errors, perturbations, or rounding effects behave during the computation.
Efficiency asks how much time and memory are required to reach a useful accuracy.
A method can be accurate but expensive, fast but unreliable, or theoretically convergent but unstable for a poor parameter choice. Numerical problem solving is therefore a process of making justified trade-offs.
Verification and validation
Verification asks whether the equations and numerical algorithm have been implemented correctly. You can verify a program by comparing it with a problem whose exact answer is known, checking residuals, or repeating the calculation with a smaller step size.
Validation asks whether the mathematical model itself describes the real situation well enough for the intended purpose. A perfectly implemented numerical solver cannot repair an unrealistic model.
For school projects, you can practice both ideas. First test your method on a function with a known answer. Then apply it to measured data and discuss whether the data and assumptions support your conclusions.
Choosing a Method
When selecting a numerical method, ask:
- What mathematical problem am I solving: a root, system, interpolation, derivative, integral, or differential equation?
- What information is available: function values, derivatives, measured data, or a matrix?
- What accuracy is needed, and how will I estimate it?
- What can go wrong: poor starting values, ill-conditioning, instability, or round-off?
- How will I verify the result independently?
For example, use bisection when you can bracket a root and reliability matters more than speed. Use Newton's method when derivatives are available and a good starting estimate is known. Use interpolation between reliable data points, but be cautious about extrapolation. Refine the mesh or step size and compare results when using differentiation, integration, or differential-equation methods.
Interactive Tasks
Quiz: Test Your Knowledge
What condition makes the bisection method applicable to a continuous function on an interval? (The endpoint function values have opposite signs) (!The derivative is constant) (!The function is a polynomial) (!The midpoint is already a root)
What information does Newton-Raphson normally use in addition to function values? (The derivative) (!The integral) (!A random number) (!A matrix inverse)
What does absolute error measure? (The distance between an approximation and the true value) (!The number of algorithm steps) (!The size of the input interval) (!The number of decimal places displayed)
Why is an extremely small finite-difference step not always best? (Round off effects can become important) (!Derivatives stop existing) (!All functions become linear) (!Interpolation becomes exact)
What is the main purpose of Gaussian elimination? (To solve systems of linear equations) (!To find areas under curves) (!To differentiate measured data) (!To locate maxima only)
What does interpolation estimate? (Values between known data points) (!Only values outside the data range) (!Only exact symbolic roots) (!Only matrix determinants)
Which geometric shape is used by the trapezoidal rule? (Trapezoids) (!Circles) (!Cubes) (!Ellipses)
Which statement describes Simpson's rule? (It approximates a curve using quadratic pieces) (!It always gives the exact integral) (!It uses only one endpoint) (!It solves linear systems by elimination)
What does Euler's method use to advance one step? (The slope at the current point) (!The exact future solution) (!A matrix determinant) (!A random tangent)
What does numerical stability concern? (How computational disturbances behave during a calculation) (!How many variables appear in a formula) (!Whether a graph is drawn to scale) (!Whether an answer is written as a fraction)
Memory Game
| Bisection | A bracketed root-finding process that repeatedly halves an interval |
| NewtonRaphson | An iteration that uses tangent information to improve a root estimate |
| Interpolation | Estimation of values between known data points |
| Quadrature | Numerical approximation of a definite integral |
| EulerMethod | A first-order time-stepping procedure based on the current slope |
| TruncationError | Error introduced by replacing a continuous or infinite process with a finite approximation |
| Stability | Behavior of small computational disturbances as an algorithm proceeds |
Drag and Drop
| Match the correct terms. | Topic |
|---|---|
| Bisection method | Keeps a sign-changing interval around a root |
| Newton-Raphson method | Uses a derivative and a tangent-line update |
| Central difference | Estimates a derivative from values on both sides |
| Trapezoidal rule | Approximates area with straight-sided panels |
| Euler's method | Advances an initial-value problem using the current slope |
...
Crossword Puzzle
| Bisection | Which root-finding method repeatedly halves a sign-changing interval? |
| Interpolation | What process estimates values between known data points? |
| Quadrature | What general term describes numerical integration? |
| Stability | What property describes controlled behavior of computational disturbances? |
| Residual | What vector measures how closely a computed solution satisfies a linear system? |
| Iteration | What repeated computational step produces a sequence of approximations? |
LearningApps
Cloze Text
Open-Ended Tasks
Easy
- Bisection table: Choose a continuous function with a visible sign change, perform at least six bisection steps by hand or in a spreadsheet, and explain how the interval width changes.
- Error diary: Approximate a familiar constant such as the square root of two to several decimal places, calculate absolute errors against a trusted reference value, and present your findings in a short table or poster.
- Interpolation graph: Record or invent a small, clearly labeled data set, draw straight-line interpolations between neighboring points, and explain what can and cannot be inferred between the measurements.
- Euler sketch: For a simple differential equation and initial condition provided by your teacher, draw a slope field or local slope marks and construct several Euler steps on graph paper.
Standard
- Root-finder comparison: Implement bisection and Newton-Raphson in a spreadsheet or short program, solve the same nonlinear equation with both methods, and compare iteration counts, assumptions, and failure risks.
- Numerical integration experiment: Estimate the same definite integral using the trapezoidal rule and Simpson's rule with several step sizes, then graph error against step size and interpret the pattern.
- Finite-difference investigation: Approximate a known derivative using forward and central differences for several values of the step size, create an error plot, and explain where truncation and round-off effects may appear.
- Interview on computational mathematics: Interview a teacher, engineer, programmer, scientist, technician, or data analyst about one real task that uses numerical approximation, then create a one-page summary or short video.
Advanced
- Numerical solver project: Build a small program that lets a user choose among at least three numerical methods, includes stopping criteria and iteration limits, and reports both the result and a diagnostic measure such as residual or interval width.
- Stability experiment: Apply Euler's method to a differential equation for several step sizes, identify a case in which the numerical behavior changes substantially, and explain the result using the idea of stability.
- Model validation study: Collect or obtain a small real data set from motion, cooling, population change, finance, or another suitable context, create a numerical model, compare predictions with observations, and discuss limitations of both data and model.
- Media explainer on numerical methods: Produce a three-to-five-minute video, animation, or narrated slide sequence that teaches one numerical method, includes a worked example, visualizes the algorithm, and evaluates at least one source of error.
Learning Assessment
- Method selection assessment: Given six short problem descriptions, choose an appropriate numerical method for each and justify the choice using available information, reliability, expected accuracy, and computational effort.
- Convergence assessment: Analyze a table of successive approximations from two algorithms, decide which sequence shows stronger evidence of convergence, and support your conclusion with quantitative comparisons rather than visual inspection alone.
- Error reasoning assessment: Explain how truncation error and round-off error can move in opposite directions as a step size decreases, and use a numerical example or graph to support the explanation.
- Root-finding transfer assessment: Reformulate a realistic nonlinear problem as an equation of the form f of x equals zero, identify suitable starting information for two different methods, and discuss how you would detect failure.
- Linear-system reliability assessment: For a computed solution of a small linear system, calculate or interpret a residual and explain why residual size and solution accuracy are related but not identical ideas.
- Integration comparison assessment: Compare trapezoidal and Simpson approximations for the same smooth function at multiple resolutions, infer which method appears to converge faster, and state what evidence would make your conclusion more convincing.
- Differential-equation assessment: Compare Euler and a higher-order numerical trajectory with reference data, explain the role of step size, and recommend a method for a stated accuracy requirement.
Evidence of Learning
Important evidence of learning includes:
- Knowledge: You can explain approximation, absolute and relative error, convergence, stability, residuals, step size, and the purposes of major numerical methods.
- Procedural skill: You can carry out bisection, Newton-Raphson, Gaussian elimination, interpolation, finite differences, trapezoidal or Simpson integration, and Euler stepping on suitable examples.
- Computational skill: You can organize an iterative calculation in a calculator, spreadsheet, or program and use stopping criteria, iteration limits, and diagnostic checks.
- Reasoning: You can compare methods by assumptions, reliability, order of accuracy, computational cost, and sensitivity to parameters or starting values.
- Communication: You can present tables, graphs, formulas, code, and explanations so that another learner can reproduce your calculation.
- Product evidence: A strong portfolio may include a root-finding comparison, an error graph, a numerical-integration study, a differential-equation simulation, and a short media explanation.
- Transfer achievement: You can recognize a numerical-methods problem in a new context, select a suitable algorithm, verify the computation, and discuss whether the mathematical model is valid for the real situation.
OERs on the Topic
The English Wikipedia article on Numerical analysis provides a broad reference for the mathematical field that studies numerical algorithms, approximation, error, and computational solution techniques.
Linked Learning Areas
Numerical methods connect algebraic equations, calculus, data, matrices, algorithms, and mathematical modeling. The key transfer idea is that an approximate result is useful only when you understand how it was produced, how its error behaves, and whether the model represents the situation well enough.
aiMOOC Projects
MOOCwiki · Deutsch
Nach dem Lernen ist vor dem Lernen
Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.
Zur MOOCwiki-HauptseiteMediathek
Mediathek
Mediathek wird aus dem Wiki geladen ...
Keine passenden Inhalte gefunden. Bitte ändere Suche oder Filter.
NEWSLernweltNOAH fragen