01 / 20

Sensitivity
Analysis

Explore how changing an input to a function affects its output: from rates of change to real-world decision-making.

Math 3

What Is Sensitivity Analysis?

Sensitivity analysis asks one powerful question: if I change one input, how much does the output change? It is the study of how the variation in the output of a mathematical model can be attributed to variations in its inputs.

Input
A variable or parameter you can control or adjust: \(x\), \(r\), \(t\), etc.
Output
The result produced by the function: \(f(x)\), profit, area, cost, etc.
Sensitivity
How responsive the output is to a small change in the input.

Why Does It Matter?

In the real world, inputs are never perfectly known. Sensitivity analysis helps us understand which variables matter most and how robust our conclusions are when conditions change.

1
Engineering: How does a 1% change in material thickness affect structural load?
2
Finance: How does a 0.5% interest rate shift affect total loan cost?
3
Biology: How does a small temperature increase affect reaction rate?

The Derivative Connection

The derivative \(\frac{df}{dx}\) tells you exactly how sensitive \(f\) is to changes in \(x\). A large derivative means high sensitivity: small input changes produce large output changes.

\(x\) \(f(x)\) Low sensitivity High sensitivity Steeper tangent = more sensitive

The Core Formula

This is the first-order sensitivity approximation. It works best when \(\Delta x\) is small relative to the scale of \(x\). It is the foundation of all sensitivity reasoning.

Visualizing the Approximation

\(x\) \(f(x)\) \(a\) \(\Delta x\) Actual \(\Delta f\) Approx \(f'(a)\Delta x\) Actual curve Tangent line approximation

Absolute vs Relative Sensitivity

Absolute Sensitivity Relative Sensitivity
Formula \(\Delta f \approx f'(x) \cdot \Delta x\) \(\frac{\Delta f / f}{\Delta x / x} \approx \frac{x \cdot f'(x)}{f(x)}\)
Measures Raw change in output Proportional (%) change
Best for Same-unit comparisons Comparing across scales
Example "Revenue rises by $500" "Revenue rises by 2%"

Multivariate Sensitivity

When a function depends on multiple inputs, we use partial derivatives to measure sensitivity to each variable independently:

\(\frac{\partial f}{\partial x}\)
Sensitivity to \(x\) while \(y, z, \ldots\) are fixed.
\(\frac{\partial f}{\partial y}\)
Sensitivity to \(y\) while \(x, z, \ldots\) are fixed.

How to Apply Sensitivity Analysis

1
Identify the function and the input variable of interest: \(f(x)\) and \(x\).
2
Compute the derivative \(f'(x)\) (or partial derivative if multivariate).
3
Evaluate at your point of interest: plug in the specific value of \(x\) to get \(f'(a)\).
4
Estimate the change: \(\Delta f \approx f'(a) \cdot \Delta x\). Determine whether the output change is significant.
5
Interpret: state whether the function is highly sensitive, moderately sensitive, or insensitive at that point.

Example 1: Area of a Circle

The area of a circle is \(A(r) = \pi r^2\). How sensitive is the area when the radius is \(r = 5\) cm?

1
Derivative: \(A'(r) = 2\pi r\)
2
Evaluate at \(r = 5\): \(A'(5) = 2\pi(5) = 10\pi \approx 31.4 \text{ cm}^2/\text{cm}\)
3
If \(\Delta r = 0.1\) cm: \(\Delta A \approx 10\pi \cdot 0.1 = \pi \approx 3.14 \text{ cm}^2\)

Example 2: Compound Interest

An investment grows as \(V(r) = 1000(1 + r)^{10}\), where \(r\) is the annual interest rate. How sensitive is the value to the rate at \(r = 0.05\)?

1
Derivative: \(V'(r) = 1000 \cdot 10 \cdot (1 + r)^9 = 10000(1 + r)^9\)
2
At \(r = 0.05\): \(V'(0.05) = 10000(1.05)^9 \approx 15\,513\)
3
If rate rises by \(\Delta r = 0.01\): \(\Delta V \approx 15\,513 \times 0.01 \approx \$155\)

Example 3: Revenue with Two Inputs

Revenue is \(R(p, q) = p \cdot q\), where \(p\) is price and \(q\) is quantity. At \(p = 20\) and \(q = 100\):

Sensitivity to \(p\)
\(\frac{\partial R}{\partial p} = q = 100\)
A $1 price increase raises revenue by $100.
Sensitivity to \(q\)
\(\frac{\partial R}{\partial q} = p = 20\)
One extra unit sold raises revenue by $20.

Sensitivity and the Chain Rule

When variables are linked in a chain, sensitivities multiply. If \(y = f(u)\) and \(u = g(x)\):

\(x\) \(u = g(x)\) \(y = f(u)\) \(g'(x)\) \(f'(u)\) Total: \(\frac{dy}{dx} = f'(u) \cdot g'(x)\)

High vs Low Sensitivity Regions

\(x\) \(f(x)\) Low \(|f'|\) High \(|f'|\) Low \(|f'|\)
Flat regions
\(|f'(x)|\) is small: output barely changes. The function is robust here.
Steep regions
\(|f'(x)|\) is large: output changes rapidly. The function is fragile here.

Common Mistakes

✕ Using \(\Delta x\) too large
The linear approximation \(\Delta f \approx f'(x)\Delta x\) only works well for small \(\Delta x\). Large changes need the actual function, not the tangent line.
✕ Ignoring units
If \(f'(x) = 10\), does that mean 10 dollars per unit? 10 meters per second? Always track units through the derivative.
✕ Confusing absolute and relative
\(\Delta f = 100\) sounds large, but if \(f = 1{,}000{,}000\), that is only 0.01%. Always consider the scale of the output.

Summary of Key Concepts

Concept Formula Interpretation
Absolute sensitivity \(f'(x)\) Output change per unit input change
Output change \(\Delta f \approx f'(x)\Delta x\) Linear approximation of total change
Elasticity \(\frac{x \cdot f'(x)}{f(x)}\) % output change per % input change
Chain sensitivity \(\frac{dy}{dx} = f'(u) \cdot g'(x)\) Multiply sensitivities along the chain
Multivariate \(\sum \frac{\partial f}{\partial x_i}\Delta x_i\) Sum contributions from each input

Question 1 of 5

If \(f(x) = x^3\) and \(x = 2\), what is the absolute sensitivity of \(f\) with respect to \(x\)?

Question 2 of 5

The area of a square is \(A(s) = s^2\). If \(s = 10\) cm and \(\Delta s = 0.5\) cm, approximately how much does the area change?

Question 3 of 5

For \(f(x) = 10x\) at \(x = 10\), what is the elasticity (relative sensitivity)?

Question 4 of 5

If \(y = u^2\) and \(u = 3x + 1\), what is \(\frac{dy}{dx}\) at \(x = 1\)?

Question 5 of 5

A function has \(f'(a) = 0\). What can you say about the sensitivity of \(f\) at \(x = a\)?