Linear/Quadratic Approximation Cheatsheet
1. Definitions
1.1 Linear approximation
Replace the curve with the straight line that matches it at in height and slope.
1.1.1 Slope intuition
A line through needs one more number: its slope. Pick the slope wrong and the line peels away from the curve immediately. Pick and it stays glued for as long as possible.
Fixing the height at f(0) = 1, slide the slope b and watch the gap. Only one value hugs the curve.
1.1.2 Reconstructing a and b
The other way to read the formula: linear approximation is a search for the best .
Write and demand it agree with at :
There is no choice left — matching height and slope forces both coefficients. So if you hand the formula something that already is a line, it must hand the same line back:
The last row always matches the first. Approximating something that is already a line hands the line straight back.
1.2 Quadratic approximation
Same idea, one more term: match the curve at in height, slope, and curvature.
1.2.1 Parabola intuition
A line can only match height and slope; it is always straight while the curve bends. Adding an term lets the approximation bend too, and says how much.
Fixing height and slope, slide the curvature coefficient c. Again, only one value fits.
1.2.2 Reconstructing a, b and c
Now the search is for the best . Write :
That is not a fudge factor — it is there because comes out as rather than .
The last row always matches the first. Note g″(0) = 2c — the ÷2 in the formula is exactly what undoes that and recovers c.
Set and the quadratic formula collapses into the linear one. Linear approximation is the quadratic with curvature switched off, which is why a function with has the same linear and quadratic approximation.
2. Cheatsheet
2.1 Near 0
Each entry lists , and , then both approximations, then the values against a direct calculation, then the graphs.
2.1.1 Trigonometric
2.1.1.1
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 0.000000 | 0.000000 | 0.000000 | 0.000000 |
| 0.01 | 0.010000 | 0.010000 | 0.010000 | 1.67e-7 |
| 0.1 | 0.099833 | 0.100000 | 0.100000 | 0.000167 |
| 0.5 | 0.479426 | 0.500000 | 0.500000 | 0.020574 |
| 1 | 0.841471 | 1.000000 | 1.000000 | 0.158529 |
Odd function, so f″(0) = 0 and the quadratic term vanishes — the quadratic approximation is the linear one.
2.1.1.2
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
| 0.01 | 0.999950 | 1.000000 | 0.999950 | 4.17e-10 |
| 0.1 | 0.995004 | 1.000000 | 0.995000 | 4.17e-6 |
| 0.5 | 0.877583 | 1.000000 | 0.875000 | 0.002583 |
| 1 | 0.540302 | 1.000000 | 0.500000 | 0.040302 |
Flat at 0, so the linear approximation is just the constant 1. All the information is in the quadratic term.
2.1.1.3
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 0.000000 | 0.000000 | 0.000000 | 0.000000 |
| 0.01 | 0.010000 | 0.010000 | 0.010000 | 3.33e-7 |
| 0.1 | 0.100335 | 0.100000 | 0.100000 | 0.000335 |
| 0.5 | 0.546302 | 0.500000 | 0.500000 | 0.046302 |
| 1 | 1.557408 | 1.000000 | 1.000000 | 0.557408 |
Also odd, so again the quadratic term vanishes.
2.1.1.4
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
| 0.01 | 1.000050 | 1.000000 | 1.000050 | 2.08e-9 |
| 0.1 | 1.005021 | 1.000000 | 1.005000 | 2.09e-5 |
| 0.5 | 1.139494 | 1.000000 | 1.125000 | 0.014494 |
| 1 | 1.850816 | 1.000000 | 1.500000 | 0.350816 |
The mirror of cos x — same flat linear part, opposite sign on the quadratic term.
2.1.1.5
No approximation at 0. cot x blows up there, so there is no finite value, slope, or curvature to match.
2.1.1.6
Same problem as cot x — undefined at 0, so no expansion exists there.
2.1.2 Exponents and logarithms
2.1.2.1
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
| 0.01 | 1.010050 | 1.010000 | 1.010050 | 1.67e-7 |
| 0.1 | 1.105171 | 1.100000 | 1.105000 | 0.000171 |
| 0.5 | 1.648721 | 1.500000 | 1.625000 | 0.023721 |
| 1 | 2.718282 | 2.000000 | 2.500000 | 0.218282 |
Every derivative is e^x, so every coefficient at 0 is 1. This is the cleanest one to remember.
2.1.2.2
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 0.000000 | 0.000000 | 0.000000 | 0.000000 |
| 0.01 | 0.009950 | 0.010000 | 0.009950 | 3.31e-7 |
| 0.1 | 0.095310 | 0.100000 | 0.095000 | 0.000310 |
| 0.5 | 0.405465 | 0.500000 | 0.375000 | 0.030465 |
| 1 | 0.693147 | 1.000000 | 0.500000 | 0.193147 |
Written as ln(1 + x) rather than ln x precisely so that the expansion point sits at 0 — ln x has no expansion there.
2.1.2.3
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
| 0.01 | 1.004988 | 1.005000 | 1.004987 | 6.21e-8 |
| 0.1 | 1.048809 | 1.050000 | 1.048750 | 5.88e-5 |
| 0.5 | 1.224745 | 1.250000 | 1.218750 | 0.005995 |
| 1 | 1.414214 | 1.500000 | 1.375000 | 0.039214 |
The workhorse. r = 1/2 gives √(1+x), r = −1 gives 1/(1+x). At r = 2 the quadratic approximation is exact — (1+x)² already is a quadratic, so there is nothing to discard.
2.1.2.4
- linear
- quadratic
| x | direct | linear | quadratic | quad. error |
|---|---|---|---|---|
| 0 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
| 0.01 | 1.006956 | 1.006931 | 1.006955 | 5.56e-8 |
| 0.1 | 1.071773 | 1.069315 | 1.071717 | 5.65e-5 |
| 0.5 | 1.414214 | 1.346574 | 1.406630 | 0.007583 |
| 1 | 2.000000 | 1.693147 | 1.933374 | 0.066626 |
Generalises e^x — set a = e and ln a = 1, recovering 1 + x + x²/2.
3. Combining approximations
Rather than differentiating a complicated function twice, build its approximation out of the entries above. The one move that covers most cases: substitute, then truncate.
| operation | rule |
|---|---|
| add the approximations | |
| scale the approximation by | |
| multiply the approximations, then truncate | |
| , where | substitute 's approximation into 's, then truncate |
Truncate means: discard every power above the order you are working to — and up for linear, and up for quadratic.
For composition there is also the direct form, which is just the chain rule:
Two conditions worth keeping in mind:
- The inside function must land near 0. Every entry above is an expansion around , so substitution is only legal when .
- Truncating is not optional. The product of two linear approximations contains an term that is not trustworthy — the inputs were only accurate to first order, so the second-order information in the product is noise.
That second point is worth seeing. Multiplying two linear approximations gives
Drop the and the coefficient of is — exactly from the product rule. The shortcut agrees with the definition, which is why it is safe.