ArticleslgStudy

mathematics

Numerical differentiation

Numerical differentiation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Numerical differentiation rather than just read about it. In short: In numerical analysis, numerical differentiation algorithms estimate the derivative of a mathematical function or subroutine using values of the function. Unlike analytical differentiation, which provides exact expressions for derivatives, numerical differentiation relies on the function's values at a set of discrete points to estimate the derivative's value at those points or at intermediate points.

Numerical differentiation — main illustration
Numerical differentiation — illustration

Key takeaways

  • Numerical differentiation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Numerical differentiation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Numerical differentiation from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, numerical differentiation algorithms estimate the derivative of a mathematical function or subroutine using values of the function. Unlike analytical differentiation, which provides exact expressions for derivatives, numerical differentiation relies on the function's values at a set of discrete points to estimate the derivative's value at those points or at intermediate points. This approach is particularly useful when dealing with data obtained from experiments, simulations, or situations where the function is defined only at specific intervals.

Finite differences

The simplest method is to use finite difference approximations. A simple two-point estimation is to compute the slope of a nearby secant line through the points (x, f(x)) and (x + h, f(x + h)). Choosing a small number h, h represents a small change in x, and it can be either positive or negative. The slope of this line is

f ( x + h ) − f ( x ) h . {\displaystyle {\frac {f(x+h)-f(x)}{h}}.}

This expression is Newton's difference quotient (also known as a first-order divided difference). To obtain an error estimate for this approximation, one can use Taylor expansion of f ( x ) {\displaystyle f(x)} about the base point x {\displaystyle x} to give

f ( x + h ) = f ( x ) + h f ′ ( x ) + h 2 2 f ″ ( c ) {\displaystyle f(x+h)=f(x)+hf'(x)+{\frac {h^{2}}{2}}f''(c)}

for some c {\displaystyle c} between x {\displaystyle x} and x + h {\displaystyle x+h} . Rearranging gives

f ′ ( x ) = f ( x + h ) − f ( x ) h ⏟ Slope of secant line − h 2 f ″ ( c ) ⏟ Error term . {\displaystyle f'(x)=\underbrace {\frac {f(x+h)-f(x)}{h}} _{\text{Slope of secant line}}-\underbrace {{\frac {h}{2}}f''(c)} _{\text{Error term}}.}

The slope of this secant line differs from the slope of the tangent line by an amount that is approximately proportional to h. As h approaches zero, the slope of the secant line approaches the slope of the tangent line and the error term vanishes. Therefore, the true derivative of f at x is the limit of the value of the difference quotient as the secant lines get closer and closer to being a tangent line:

f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h . {\displaystyle f'(x)=\lim _{h\to 0}{\frac {f(x+h)-f(x)}{h}}.}

Since immediately substituting 0 for h results in 0 0 {\displaystyle {\frac {0}{0}}} indeterminate form, calculating the derivative directly can be unintuitive. Equivalently, the slope could be estimated by employing positions x − h and x. Another two-point formula is to compute the slope of a nearby secant line through the points (x − h, f(x − h)) and (x + h, f(x + h)). The slope of this line is

f ( x + h ) − f ( x − h ) 2 h . {\displaystyle {\frac {f(x+h)-f(x-h)}{2h}}.}

This formula is known as the symmetric difference quotient. In this case the first-order errors cancel, so the slope of these secant lines differ from the slope of the tangent line by an amount that is approximately proportional to h 2 {\displaystyle h^{2}} . Hence for small values of h this is a more accurate approximation to the tangent line than the one-sided estimation. However, although the slope is being computed at x, the value of the function at x is not involved. The estimation error is given by

R = − f ( 3 ) ( c ) 6 h 2 , {\displaystyle R={\frac {-f^{(3)}(c)}{6}}h^{2},}

… excerpt ends here. Continue reading the full article.

Illustrations

Numerical differentiation: Finite difference estimation of derivative
Finite difference estimation of derivative
Numerical differentiation: Example showing the difficulty of choosing h due to both rounding error and formula error
Example showing the difficulty of choosing h due to both rounding error and formula error

Worked examples

Example 1 — a first encounter with Numerical differentiation

Start with the simplest possible case. Write down what Numerical differentiation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Numerical differentiation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Numerical differentiation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Numerical differentiation

In research
Numerical differentiation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Numerical differentiation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Numerical differentiation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Differential calculus, Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Numerical differentiation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Numerical differentiation” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Numerical differentiation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Numerical differentiation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Numerical differentiation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Numerical differentiation in simple terms?

In numerical analysis, numerical differentiation algorithms estimate the derivative of a mathematical function or subroutine using values of the function. Unlike analytical differentiation, which provides exact expressions for derivatives, numerical differentiation relies on the function's values a…

Why does Numerical differentiation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Numerical differentiation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Numerical differentiation.

Tags

  • Differential calculus
  • Numerical analysis

Keep exploring