Quadratic Approximation Cheatsheet

1. Definition

When xx is close to some reference value x0x_0 (in other words Δx≈0\Delta x \approx 0), you can approximate f(x)f(x) as the parabola that matches the curve at that reference value.

formformulaanalog
point–slope formf(x)≈f(x0)+f′(x0)(x−x0)+f′′(x0)2(x−x0)2f(x) \approx f(x_0) + f'(x_0)(x - x_0) + \frac{f''(x_0)}{2}(x - x_0)^2y=a+b(x−x0)+c(x−x0)2y = a + b(x - x_0) + c(x - x_0)^2
slope–intercept formf(x0+Δx)≈f(x0)+f′(x0) Δx+f′′(x0)2Δx2f(x_0 + \Delta x) \approx f(x_0) + f'(x_0)\,\Delta x + \frac{f''(x_0)}{2}\Delta x^2y=a+b Δx+c Δx2y = a + b\,\Delta x + c\,\Delta x^2

A line can only match the height and the slope. It stays straight while the curve bends, so it falls behind the moment you leave the reference point. The x2x^2 term lets your guess bend too, and f′′(x0)f''(x_0) says how hard.

The teal line below is the linear approximation from the linear cheatsheet; the violet curve is the quadratic one. Drag Δx\Delta x out and watch the violet curve stay with the grey one for much longer.

Δxx₀x
f(x0)f(x_0)
1.349859
f~1(x)\tilde f_1(x)on the tangent line
2.159774
f~2(x)\tilde f_2(x)on the parabola
2.402749
f(x)f(x)on the curve
2.459603
linear error (∣f(x)−f~1(x)∣\left| f(x) - \tilde f_1(x) \right|)
0.299829
quadratic error (∣f(x)−f~2(x)∣\left| f(x) - \tilde f_2(x) \right|)
0.056854

Set f′′(x0)=0f''(x_0) = 0 and the whole x2x^2 term disappears, leaving exactly the linear approximation. So quadratic approximation is never worse than linear — at worst the curvature is zero and the two agree.

2. Cheatsheet

Each entry gives you the general formula, then lets you pick the reference point. Every table compares the linear approximation f~1\tilde f_1 against the quadratic one f~2\tilde f_2, with both errors side by side so you can see how much the extra term buys you.

Watch the error columns as Δx\Delta x shrinks. The linear error falls like Δx2\Delta x^2; the quadratic error falls like Δx3\Delta x^3. At Δx=1/100\Delta x = 1/100 that is already a difference of roughly a hundredfold.

2.1 Trigonometric

2.1.1sin⁡x\sin x
sin⁡x\sin x
≈\approx
sin⁡x0+cos⁡x0(x−x0)−sin⁡x02(x−x0)2\sin x_0 + \cos x_0\left(x - x_0\right) - \frac{\sin x_0}{2}\left(x - x_0\right)^2
reference
at 00
sin⁡x\sin x
≈\approx
sin⁡0+cos⁡0x−sin⁡02x2\sin 0 + \cos 0x - \frac{\sin 0}{2}x^2
≈\approx
xx
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 00.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.0100000.0100000.0100000.0100000.0100000.0100001.67×10−71.67 \times 10^{-7}1.67×10−71.67 \times 10^{-7}
0+1100 + \frac{1}{10}0.0998330.0998330.1000000.1000000.1000000.1000000.0001670.0001670.0001670.000167
0+120 + \frac{1}{2}0.4794260.4794260.5000000.5000000.5000000.5000000.0205740.0205740.0205740.020574
0+10 + 10.8414710.8414711.0000001.0000001.0000001.0000000.1585290.1585290.1585290.158529
sin⁡x\sin xf~1\tilde f_1f~2\tilde f_2
at π6\frac{\pi}{6}
sin⁡x\sin x
≈\approx
sin⁡π6+cos⁡π6(x−π6)−sin⁡π62(x−π6)2\sin \frac{\pi}{6} + \cos \frac{\pi}{6}\left(x - \frac{\pi}{6}\right) - \frac{\sin \frac{\pi}{6}}{2}\left(x - \frac{\pi}{6}\right)^2
≈\approx
12+32(x−π6)−14(x−π6)2\frac{1}{2} + \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{6}\right) - \frac{1}{4}\left(x - \frac{\pi}{6}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π6+0\frac{\pi}{6} + 00.5000000.5000000.5000000.5000000.5000000.5000000.0000000.0000000.0000000.000000
π6+1100\frac{\pi}{6} + \frac{1}{100}0.5086350.5086350.5086600.5086600.5086350.5086352.51×10−52.51 \times 10^{-5}1.44×10−71.44 \times 10^{-7}
π6+110\frac{\pi}{6} + \frac{1}{10}0.5839600.5839600.5866030.5866030.5841030.5841030.0026420.0026420.0001420.000142
π6+12\frac{\pi}{6} + \frac{1}{2}0.8539860.8539860.9330130.9330130.8705130.8705130.0790270.0790270.0165270.016527
π6+1\frac{\pi}{6} + 10.9988860.9988861.3660251.3660251.1160251.1160250.3671390.3671390.1171390.117139
sin⁡x\sin xf~1\tilde f_1f~2\tilde f_2
at π4\frac{\pi}{4}
sin⁡x\sin x
≈\approx
sin⁡π4+cos⁡π4(x−π4)−sin⁡π42(x−π4)2\sin \frac{\pi}{4} + \cos \frac{\pi}{4}\left(x - \frac{\pi}{4}\right) - \frac{\sin \frac{\pi}{4}}{2}\left(x - \frac{\pi}{4}\right)^2
≈\approx
22+22(x−π4)−24(x−π4)2\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}\left(x - \frac{\pi}{4}\right) - \frac{\sqrt{2}}{4}\left(x - \frac{\pi}{4}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π4+0\frac{\pi}{4} + 00.7071070.7071070.7071070.7071070.7071070.7071070.0000000.0000000.0000000.000000
π4+1100\frac{\pi}{4} + \frac{1}{100}0.7141420.7141420.7141780.7141780.7141420.7141423.55×10−53.55 \times 10^{-5}1.18×10−71.18 \times 10^{-7}
π4+110\frac{\pi}{4} + \frac{1}{10}0.7741670.7741670.7778170.7778170.7742820.7742820.0036500.0036500.0001150.000115
π4+12\frac{\pi}{4} + \frac{1}{2}0.9595500.9595501.0606601.0606600.9722720.9722720.1011110.1011110.0127220.012722
π4+1\frac{\pi}{4} + 10.9770610.9770611.4142141.4142141.0606601.0606600.4371520.4371520.0835990.083599
sin⁡x\sin xf~1\tilde f_1f~2\tilde f_2
at π2\frac{\pi}{2}
sin⁡x\sin x
≈\approx
sin⁡π2+cos⁡π2(x−π2)−sin⁡π22(x−π2)2\sin \frac{\pi}{2} + \cos \frac{\pi}{2}\left(x - \frac{\pi}{2}\right) - \frac{\sin \frac{\pi}{2}}{2}\left(x - \frac{\pi}{2}\right)^2
≈\approx
1−12(x−π2)21 - \frac{1}{2}\left(x - \frac{\pi}{2}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π2+0\frac{\pi}{2} + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
π2+1100\frac{\pi}{2} + \frac{1}{100}0.9999500.9999501.0000001.0000000.9999500.9999505.00×10−55.00 \times 10^{-5}4.17×10−104.17 \times 10^{-10}
π2+110\frac{\pi}{2} + \frac{1}{10}0.9950040.9950041.0000001.0000000.9950000.9950000.0049960.0049964.17×10−64.17 \times 10^{-6}
π2+12\frac{\pi}{2} + \frac{1}{2}0.8775830.8775831.0000001.0000000.8750000.8750000.1224170.1224170.0025830.002583
π2+1\frac{\pi}{2} + 10.5403020.5403021.0000001.0000000.5000000.5000000.4596980.4596980.0403020.040302
sin⁡x\sin xf~1\tilde f_1f~2\tilde f_2

At 0 the quadratic term vanishes, so it matches the linear one. At π/2 it is the other way round: the linear term dies and the curvature carries everything.

2.1.2cos⁡x\cos x
cos⁡x\cos x
≈\approx
cos⁡x0−sin⁡x0(x−x0)−cos⁡x02(x−x0)2\cos x_0 - \sin x_0\left(x - x_0\right) - \frac{\cos x_0}{2}\left(x - x_0\right)^2
reference
at 00
cos⁡x\cos x
≈\approx
cos⁡0−sin⁡0x−cos⁡02x2\cos 0 - \sin 0x - \frac{\cos 0}{2}x^2
≈\approx
1−12x21 - \frac{1}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.9999500.9999501.0000001.0000000.9999500.9999505.00×10−55.00 \times 10^{-5}4.17×10−104.17 \times 10^{-10}
0+1100 + \frac{1}{10}0.9950040.9950041.0000001.0000000.9950000.9950000.0049960.0049964.17×10−64.17 \times 10^{-6}
0+120 + \frac{1}{2}0.8775830.8775831.0000001.0000000.8750000.8750000.1224170.1224170.0025830.002583
0+10 + 10.5403020.5403021.0000001.0000000.5000000.5000000.4596980.4596980.0403020.040302
cos⁡x\cos xf~1\tilde f_1f~2\tilde f_2
at π6\frac{\pi}{6}
cos⁡x\cos x
≈\approx
cos⁡π6−sin⁡π6(x−π6)−cos⁡π62(x−π6)2\cos \frac{\pi}{6} - \sin \frac{\pi}{6}\left(x - \frac{\pi}{6}\right) - \frac{\cos \frac{\pi}{6}}{2}\left(x - \frac{\pi}{6}\right)^2
≈\approx
32−12(x−π6)−34(x−π6)2\frac{\sqrt{3}}{2} - \frac{1}{2}\left(x - \frac{\pi}{6}\right) - \frac{\sqrt{3}}{4}\left(x - \frac{\pi}{6}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π6+0\frac{\pi}{6} + 00.8660250.8660250.8660250.8660250.8660250.8660250.0000000.0000000.0000000.000000
π6+1100\frac{\pi}{6} + \frac{1}{100}0.8609820.8609820.8610250.8610250.8609820.8609824.32×10−54.32 \times 10^{-5}8.37×10−88.37 \times 10^{-8}
π6+110\frac{\pi}{6} + \frac{1}{10}0.8117820.8117820.8160250.8160250.8116950.8116950.0042430.0042438.69×10−58.69 \times 10^{-5}
π6+12\frac{\pi}{6} + \frac{1}{2}0.5202960.5202960.6160250.6160250.5077720.5077720.0957290.0957290.0125240.012524
π6+1\frac{\pi}{6} + 10.0471800.0471800.3660250.366025−0.066987-0.0669870.3188450.3188450.1141670.114167
cos⁡x\cos xf~1\tilde f_1f~2\tilde f_2
at π3\frac{\pi}{3}
cos⁡x\cos x
≈\approx
cos⁡π3−sin⁡π3(x−π3)−cos⁡π32(x−π3)2\cos \frac{\pi}{3} - \sin \frac{\pi}{3}\left(x - \frac{\pi}{3}\right) - \frac{\cos \frac{\pi}{3}}{2}\left(x - \frac{\pi}{3}\right)^2
≈\approx
12−32(x−π3)−14(x−π3)2\frac{1}{2} - \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{3}\right) - \frac{1}{4}\left(x - \frac{\pi}{3}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π3+0\frac{\pi}{3} + 00.5000000.5000000.5000000.5000000.5000000.5000000.0000000.0000000.0000000.000000
π3+1100\frac{\pi}{3} + \frac{1}{100}0.4913150.4913150.4913400.4913400.4913150.4913152.49×10−52.49 \times 10^{-5}1.45×10−71.45 \times 10^{-7}
π3+110\frac{\pi}{3} + \frac{1}{10}0.4110440.4110440.4133970.4133970.4108970.4108970.0023540.0023540.0001460.000146
π3+12\frac{\pi}{3} + \frac{1}{2}0.0235970.0235970.0669870.0669870.0044870.0044870.0433910.0433910.0191090.019109
π3+1\frac{\pi}{3} + 1−0.458584-0.458584−0.366025-0.366025−0.616025-0.6160250.0925590.0925590.1574410.157441
cos⁡x\cos xf~1\tilde f_1f~2\tilde f_2
at π2\frac{\pi}{2}
cos⁡x\cos x
≈\approx
cos⁡π2−sin⁡π2(x−π2)−cos⁡π22(x−π2)2\cos \frac{\pi}{2} - \sin \frac{\pi}{2}\left(x - \frac{\pi}{2}\right) - \frac{\cos \frac{\pi}{2}}{2}\left(x - \frac{\pi}{2}\right)^2
≈\approx
−(x−π2)-\left(x - \frac{\pi}{2}\right)
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π2+0\frac{\pi}{2} + 06.12×10−176.12 \times 10^{-17}6.12×10−176.12 \times 10^{-17}6.12×10−176.12 \times 10^{-17}0.0000000.0000000.0000000.000000
π2+1100\frac{\pi}{2} + \frac{1}{100}−0.010000-0.010000−0.010000-0.010000−0.010000-0.0100001.67×10−71.67 \times 10^{-7}1.67×10−71.67 \times 10^{-7}
π2+110\frac{\pi}{2} + \frac{1}{10}−0.099833-0.099833−0.100000-0.100000−0.100000-0.1000000.0001670.0001670.0001670.000167
π2+12\frac{\pi}{2} + \frac{1}{2}−0.479426-0.479426−0.500000-0.500000−0.500000-0.5000000.0205740.0205740.0205740.020574
π2+1\frac{\pi}{2} + 1−0.841471-0.841471−1.000000-1.000000−1.000000-1.0000000.1585290.1585290.1585290.158529
cos⁡x\cos xf~1\tilde f_1f~2\tilde f_2

The famous one: near 0, cos x ≈ 1 − x²/2. At π/2 the curvature vanishes instead, so there the quadratic adds nothing.

2.1.3tan⁡x\tan x
tan⁡x\tan x
≈\approx
tan⁡x0+sec⁡2x0(x−x0)+sec⁡2x0tan⁡x0(x−x0)2\tan x_0 + \sec^2 x_0\left(x - x_0\right) + \sec^2 x_0 \tan x_0\left(x - x_0\right)^2
reference
at 00
tan⁡x\tan x
≈\approx
tan⁡0+sec⁡20x+sec⁡20tan⁡0x2\tan 0 + \sec^2 0x + \sec^2 0 \tan 0x^2
≈\approx
xx
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 00.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.0100000.0100000.0100000.0100000.0100000.0100003.33×10−73.33 \times 10^{-7}3.33×10−73.33 \times 10^{-7}
0+1100 + \frac{1}{10}0.1003350.1003350.1000000.1000000.1000000.1000000.0003350.0003350.0003350.000335
0+120 + \frac{1}{2}0.5463020.5463020.5000000.5000000.5000000.5000000.0463020.0463020.0463020.046302
0+10 + 11.5574081.5574081.0000001.0000001.0000001.0000000.5574080.5574080.5574080.557408
tan⁡x\tan xf~1\tilde f_1f~2\tilde f_2
at π6\frac{\pi}{6}
tan⁡x\tan x
≈\approx
tan⁡π6+sec⁡2π6(x−π6)+sec⁡2π6tan⁡π6(x−π6)2\tan \frac{\pi}{6} + \sec^2 \frac{\pi}{6}\left(x - \frac{\pi}{6}\right) + \sec^2 \frac{\pi}{6} \tan \frac{\pi}{6}\left(x - \frac{\pi}{6}\right)^2
≈\approx
13+43(x−π6)+439(x−π6)2\frac{1}{\sqrt{3}} + \frac{4}{3}\left(x - \frac{\pi}{6}\right) + \frac{4\sqrt{3}}{9}\left(x - \frac{\pi}{6}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π6+0\frac{\pi}{6} + 00.5773500.5773500.5773500.5773500.5773500.5773500.0000000.0000000.0000000.000000
π6+1100\frac{\pi}{6} + \frac{1}{100}0.5907610.5907610.5906840.5906840.5907610.5907617.79×10−57.79 \times 10^{-5}8.97×10−78.97 \times 10^{-7}
π6+110\frac{\pi}{6} + \frac{1}{10}0.7193560.7193560.7106840.7106840.7183820.7183820.0086720.0086720.0009740.000974
π6+12\frac{\pi}{6} + \frac{1}{2}1.6413461.6413461.2440171.2440171.4364671.4364670.3973290.3973290.2048790.204879
π6+1\frac{\pi}{6} + 121.17180521.1718051.9106841.9106842.6804842.68048419.26112119.26112118.49132118.491321
tan⁡x\tan xf~1\tilde f_1f~2\tilde f_2
at π4\frac{\pi}{4}
tan⁡x\tan x
≈\approx
tan⁡π4+sec⁡2π4(x−π4)+sec⁡2π4tan⁡π4(x−π4)2\tan \frac{\pi}{4} + \sec^2 \frac{\pi}{4}\left(x - \frac{\pi}{4}\right) + \sec^2 \frac{\pi}{4} \tan \frac{\pi}{4}\left(x - \frac{\pi}{4}\right)^2
≈\approx
1+2(x−π4)+2(x−π4)21 + 2\left(x - \frac{\pi}{4}\right) + 2\left(x - \frac{\pi}{4}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π4+0\frac{\pi}{4} + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
π4+1100\frac{\pi}{4} + \frac{1}{100}1.0202031.0202031.0200001.0200001.0202001.0202000.0002030.0002032.70×10−62.70 \times 10^{-6}
π4+110\frac{\pi}{4} + \frac{1}{10}1.2230491.2230491.2000001.2000001.2200001.2200000.0230490.0230490.0030490.003049
π4+12\frac{\pi}{4} + \frac{1}{2}3.4082233.4082232.0000002.0000002.5000002.5000001.4082231.4082230.9082230.908223
π4+1\frac{\pi}{4} + 1−4.588038-4.5880383.0000003.0000005.0000005.0000007.5880387.5880389.5880389.588038
tan⁡x\tan xf~1\tilde f_1f~2\tilde f_2

tan is odd, so at 0 the curvature is zero and the quadratic collapses back to x.

2.1.4sec⁡x\sec x
sec⁡x\sec x
≈\approx
sec⁡x0+sec⁡x0tan⁡x0(x−x0)+sec⁡x0tan⁡2x0+sec⁡3x02(x−x0)2\sec x_0 + \sec x_0 \tan x_0\left(x - x_0\right) + \frac{\sec x_0\tan^2 x_0 + \sec^3 x_0}{2}\left(x - x_0\right)^2
reference
at 00
sec⁡x\sec x
≈\approx
sec⁡0+sec⁡0tan⁡0x+sec⁡0tan⁡20+sec⁡302x2\sec 0 + \sec 0 \tan 0x + \frac{\sec 0\tan^2 0 + \sec^3 0}{2}x^2
≈\approx
1+12x21 + \frac{1}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0000501.0000501.0000001.0000001.0000501.0000505.00×10−55.00 \times 10^{-5}2.08×10−92.08 \times 10^{-9}
0+1100 + \frac{1}{10}1.0050211.0050211.0000001.0000001.0050001.0050000.0050210.0050212.09×10−52.09 \times 10^{-5}
0+120 + \frac{1}{2}1.1394941.1394941.0000001.0000001.1250001.1250000.1394940.1394940.0144940.014494
0+10 + 11.8508161.8508161.0000001.0000001.5000001.5000000.8508160.8508160.3508160.350816
sec⁡x\sec xf~1\tilde f_1f~2\tilde f_2
at π6\frac{\pi}{6}
sec⁡x\sec x
≈\approx
sec⁡π6+sec⁡π6tan⁡π6(x−π6)+sec⁡π6tan⁡2π6+sec⁡3π62(x−π6)2\sec \frac{\pi}{6} + \sec \frac{\pi}{6} \tan \frac{\pi}{6}\left(x - \frac{\pi}{6}\right) + \frac{\sec \frac{\pi}{6}\tan^2 \frac{\pi}{6} + \sec^3 \frac{\pi}{6}}{2}\left(x - \frac{\pi}{6}\right)^2
≈\approx
23+23(x−π6)+539(x−π6)2\frac{2}{\sqrt{3}} + \frac{2}{3}\left(x - \frac{\pi}{6}\right) + \frac{5\sqrt{3}}{9}\left(x - \frac{\pi}{6}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π6+0\frac{\pi}{6} + 01.1547011.1547011.1547011.1547011.1547011.1547010.0000000.0000000.0000000.000000
π6+1100\frac{\pi}{6} + \frac{1}{100}1.1614641.1614641.1613671.1613671.1614631.1614639.70×10−59.70 \times 10^{-5}7.86×10−77.86 \times 10^{-7}
π6+110\frac{\pi}{6} + \frac{1}{10}1.2318581.2318581.2213671.2213671.2309901.2309900.0104900.0104900.0008680.000868
π6+12\frac{\pi}{6} + \frac{1}{2}1.9219831.9219831.4880341.4880341.7285961.7285960.4339490.4339490.1933860.193386
π6+1\frac{\pi}{6} + 121.19540821.1954081.8213671.8213672.7836182.78361819.37404119.37404118.41179118.411791
sec⁡x\sec xf~1\tilde f_1f~2\tilde f_2
at π4\frac{\pi}{4}
sec⁡x\sec x
≈\approx
sec⁡π4+sec⁡π4tan⁡π4(x−π4)+sec⁡π4tan⁡2π4+sec⁡3π42(x−π4)2\sec \frac{\pi}{4} + \sec \frac{\pi}{4} \tan \frac{\pi}{4}\left(x - \frac{\pi}{4}\right) + \frac{\sec \frac{\pi}{4}\tan^2 \frac{\pi}{4} + \sec^3 \frac{\pi}{4}}{2}\left(x - \frac{\pi}{4}\right)^2
≈\approx
2+2(x−π4)+322(x−π4)2\sqrt{2} + \sqrt{2}\left(x - \frac{\pi}{4}\right) + \frac{3\sqrt{2}}{2}\left(x - \frac{\pi}{4}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π4+0\frac{\pi}{4} + 01.4142141.4142141.4142141.4142141.4142141.4142140.0000000.0000000.0000000.000000
π4+1100\frac{\pi}{4} + \frac{1}{100}1.4285701.4285701.4283561.4283561.4285681.4285680.0002150.0002152.63×10−62.63 \times 10^{-6}
π4+110\frac{\pi}{4} + \frac{1}{10}1.5798251.5798251.5556351.5556351.5768481.5768480.0241910.0241910.0029770.002977
π4+12\frac{\pi}{4} + \frac{1}{2}3.5518993.5518992.1213202.1213202.6516502.6516501.4305791.4305790.9002490.900249
π4+1\frac{\pi}{4} + 1−4.695752-4.6957522.8284272.8284274.9497474.9497477.5241807.5241809.6455009.645500
sec⁡x\sec xf~1\tilde f_1f~2\tilde f_2

Mirror of cos: flat at 0, but curving upward instead of down, so the x² term flips sign.

2.1.5cot⁡x\cot x
cot⁡x\cot x
≈\approx
cot⁡x0−csc⁡2x0(x−x0)+csc⁡2x0cot⁡x0(x−x0)2\cot x_0 - \csc^2 x_0\left(x - x_0\right) + \csc^2 x_0 \cot x_0\left(x - x_0\right)^2
reference
at π4\frac{\pi}{4}
cot⁡x\cot x
≈\approx
cot⁡π4−csc⁡2π4(x−π4)+csc⁡2π4cot⁡π4(x−π4)2\cot \frac{\pi}{4} - \csc^2 \frac{\pi}{4}\left(x - \frac{\pi}{4}\right) + \csc^2 \frac{\pi}{4} \cot \frac{\pi}{4}\left(x - \frac{\pi}{4}\right)^2
≈\approx
1−2(x−π4)+2(x−π4)21 - 2\left(x - \frac{\pi}{4}\right) + 2\left(x - \frac{\pi}{4}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π4+0\frac{\pi}{4} + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
π4+1100\frac{\pi}{4} + \frac{1}{100}0.9801970.9801970.9800000.9800000.9802000.9802000.0001970.0001972.63×10−62.63 \times 10^{-6}
π4+110\frac{\pi}{4} + \frac{1}{10}0.8176290.8176290.8000000.8000000.8200000.8200000.0176290.0176290.0023710.002371
π4+12\frac{\pi}{4} + \frac{1}{2}0.2934080.2934080.0000000.0000000.5000000.5000000.2934080.2934080.2065920.206592
π4+1\frac{\pi}{4} + 1−0.217958-0.217958−1.000000-1.0000001.0000001.0000000.7820420.7820421.2179581.217958
cot⁡x\cot xf~1\tilde f_1f~2\tilde f_2
at π2\frac{\pi}{2}
cot⁡x\cot x
≈\approx
cot⁡π2−csc⁡2π2(x−π2)+csc⁡2π2cot⁡π2(x−π2)2\cot \frac{\pi}{2} - \csc^2 \frac{\pi}{2}\left(x - \frac{\pi}{2}\right) + \csc^2 \frac{\pi}{2} \cot \frac{\pi}{2}\left(x - \frac{\pi}{2}\right)^2
≈\approx
−(x−π2)-\left(x - \frac{\pi}{2}\right)
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π2+0\frac{\pi}{2} + 06.12×10−176.12 \times 10^{-17}6.12×10−176.12 \times 10^{-17}6.12×10−176.12 \times 10^{-17}0.0000000.0000000.0000000.000000
π2+1100\frac{\pi}{2} + \frac{1}{100}−0.010000-0.010000−0.010000-0.010000−0.010000-0.0100003.33×10−73.33 \times 10^{-7}3.33×10−73.33 \times 10^{-7}
π2+110\frac{\pi}{2} + \frac{1}{10}−0.100335-0.100335−0.100000-0.100000−0.100000-0.1000000.0003350.0003350.0003350.000335
π2+12\frac{\pi}{2} + \frac{1}{2}−0.546302-0.546302−0.500000-0.500000−0.500000-0.5000000.0463020.0463020.0463020.046302
π2+1\frac{\pi}{2} + 1−1.557408-1.557408−1.000000-1.000000−1.000000-1.0000000.5574080.5574080.5574080.557408
cot⁡x\cot xf~1\tilde f_1f~2\tilde f_2

Still nothing at 0 — cot blows up there. At π/2 it has an inflection, so the quadratic term is zero.

2.1.6csc⁡x\csc x
csc⁡x\csc x
≈\approx
csc⁡x0−csc⁡x0cot⁡x0(x−x0)+csc⁡x0cot⁡2x0+csc⁡3x02(x−x0)2\csc x_0 - \csc x_0 \cot x_0\left(x - x_0\right) + \frac{\csc x_0\cot^2 x_0 + \csc^3 x_0}{2}\left(x - x_0\right)^2
reference
at π4\frac{\pi}{4}
csc⁡x\csc x
≈\approx
csc⁡π4−csc⁡π4cot⁡π4(x−π4)+csc⁡π4cot⁡2π4+csc⁡3π42(x−π4)2\csc \frac{\pi}{4} - \csc \frac{\pi}{4} \cot \frac{\pi}{4}\left(x - \frac{\pi}{4}\right) + \frac{\csc \frac{\pi}{4}\cot^2 \frac{\pi}{4} + \csc^3 \frac{\pi}{4}}{2}\left(x - \frac{\pi}{4}\right)^2
≈\approx
2−2(x−π4)+322(x−π4)2\sqrt{2} - \sqrt{2}\left(x - \frac{\pi}{4}\right) + \frac{3\sqrt{2}}{2}\left(x - \frac{\pi}{4}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π4+0\frac{\pi}{4} + 01.4142141.4142141.4142141.4142141.4142141.4142140.0000000.0000000.0000000.000000
π4+1100\frac{\pi}{4} + \frac{1}{100}1.4002811.4002811.4000711.4000711.4002841.4002840.0002100.0002102.56×10−62.56 \times 10^{-6}
π4+110\frac{\pi}{4} + \frac{1}{10}1.2917111.2917111.2727921.2727921.2940051.2940050.0189190.0189190.0022950.002295
π4+12\frac{\pi}{4} + \frac{1}{2}1.0421561.0421560.7071070.7071071.2374371.2374370.3350490.3350490.1952810.195281
π4+1\frac{\pi}{4} + 11.0234771.023477−2.22×10−16-2.22 \times 10^{-16}2.1213202.1213201.0234771.0234771.0978431.097843
csc⁡x\csc xf~1\tilde f_1f~2\tilde f_2
at π2\frac{\pi}{2}
csc⁡x\csc x
≈\approx
csc⁡π2−csc⁡π2cot⁡π2(x−π2)+csc⁡π2cot⁡2π2+csc⁡3π22(x−π2)2\csc \frac{\pi}{2} - \csc \frac{\pi}{2} \cot \frac{\pi}{2}\left(x - \frac{\pi}{2}\right) + \frac{\csc \frac{\pi}{2}\cot^2 \frac{\pi}{2} + \csc^3 \frac{\pi}{2}}{2}\left(x - \frac{\pi}{2}\right)^2
≈\approx
1+12(x−π2)21 + \frac{1}{2}\left(x - \frac{\pi}{2}\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
π2+0\frac{\pi}{2} + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
π2+1100\frac{\pi}{2} + \frac{1}{100}1.0000501.0000501.0000001.0000001.0000501.0000505.00×10−55.00 \times 10^{-5}2.08×10−92.08 \times 10^{-9}
π2+110\frac{\pi}{2} + \frac{1}{10}1.0050211.0050211.0000001.0000001.0050001.0050000.0050210.0050212.09×10−52.09 \times 10^{-5}
π2+12\frac{\pi}{2} + \frac{1}{2}1.1394941.1394941.0000001.0000001.1250001.1250000.1394940.1394940.0144940.014494
π2+1\frac{\pi}{2} + 11.8508161.8508161.0000001.0000001.5000001.5000000.8508160.8508160.3508160.350816
csc⁡x\csc xf~1\tilde f_1f~2\tilde f_2

At π/2 csc bottoms out, so the linear part is flat and the whole shape comes from the x² term.

2.2 Exponents and logarithms

2.2.1exe^x
exe^x
≈\approx
ex0+ex0(x−x0)+ex02(x−x0)2e^{x_0} + e^{x_0}\left(x - x_0\right) + \frac{e^{x_0}}{2}\left(x - x_0\right)^2
reference
at 00
exe^x
≈\approx
e0+e0x+e02x2e^{0} + e^{0}x + \frac{e^{0}}{2}x^2
≈\approx
1+x+12x21 + x + \frac{1}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0100501.0100501.0100001.0100001.0100501.0100505.02×10−55.02 \times 10^{-5}1.67×10−71.67 \times 10^{-7}
0+1100 + \frac{1}{10}1.1051711.1051711.1000001.1000001.1050001.1050000.0051710.0051710.0001710.000171
0+120 + \frac{1}{2}1.6487211.6487211.5000001.5000001.6250001.6250000.1487210.1487210.0237210.023721
0+10 + 12.7182822.7182822.0000002.0000002.5000002.5000000.7182820.7182820.2182820.218282
exe^xf~1\tilde f_1f~2\tilde f_2
at 11
exe^x
≈\approx
e1+e1(x−1)+e12(x−1)2e^{1} + e^{1}\left(x - 1\right) + \frac{e^{1}}{2}\left(x - 1\right)^2
≈\approx
e+e(x−1)+e2(x−1)2e + e\left(x - 1\right) + \frac{e}{2}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 02.7182822.7182822.7182822.7182822.7182822.7182820.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}2.7456012.7456012.7454652.7454652.7456012.7456010.0001360.0001364.54×10−74.54 \times 10^{-7}
1+1101 + \frac{1}{10}3.0041663.0041662.9901102.9901103.0037013.0037010.0140560.0140560.0004650.000465
1+121 + \frac{1}{2}4.4816894.4816894.0774234.0774234.4172084.4172080.4042660.4042660.0644810.064481
1+11 + 17.3890567.3890565.4365645.4365646.7957056.7957051.9524921.9524920.5933520.593352
exe^xf~1\tilde f_1f~2\tilde f_2
at 22
exe^x
≈\approx
e2+e2(x−2)+e22(x−2)2e^{2} + e^{2}\left(x - 2\right) + \frac{e^{2}}{2}\left(x - 2\right)^2
≈\approx
e2+e2(x−2)+e22(x−2)2e^2 + e^2\left(x - 2\right) + \frac{e^2}{2}\left(x - 2\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
2+02 + 07.3890567.3890567.3890567.3890567.3890567.3890560.0000000.0000000.0000000.000000
2+11002 + \frac{1}{100}7.4633177.4633177.4629477.4629477.4633167.4633160.0003710.0003711.23×10−61.23 \times 10^{-6}
2+1102 + \frac{1}{10}8.1661708.1661708.1279628.1279628.1649078.1649070.0382080.0382080.0012630.001263
2+122 + \frac{1}{2}12.18249412.18249411.08358411.08358412.00721612.0072161.0989101.0989100.1752780.175278
2+12 + 120.08553720.08553714.77811214.77811218.47264018.4726405.3074255.3074251.6128971.612897
exe^xf~1\tilde f_1f~2\tilde f_2

Every derivative is the same, so all three coefficients share a factor of e^{x₀}.

2.2.2ln⁡(1+x)\ln(1+x)
ln⁡(1+x)\ln(1+x)
≈\approx
ln⁡(1+x0)+11+x0(x−x0)−12(1+x0)2(x−x0)2\ln(1+x_0) + \dfrac{1}{1+x_0}\left(x - x_0\right) - \dfrac{1}{2(1+x_0)^2}\left(x - x_0\right)^2
reference
at 00
ln⁡(1+x)\ln(1+x)
≈\approx
ln⁡(1+0)+11+0x−12(1+0)2x2\ln(1+0) + \dfrac{1}{1+0}x - \dfrac{1}{2(1+0)^2}x^2
≈\approx
x−12x2x - \frac{1}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 00.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.0099500.0099500.0100000.0100000.0099500.0099504.97×10−54.97 \times 10^{-5}3.31×10−73.31 \times 10^{-7}
0+1100 + \frac{1}{10}0.0953100.0953100.1000000.1000000.0950000.0950000.0046900.0046900.0003100.000310
0+120 + \frac{1}{2}0.4054650.4054650.5000000.5000000.3750000.3750000.0945350.0945350.0304650.030465
0+10 + 10.6931470.6931471.0000001.0000000.5000000.5000000.3068530.3068530.1931470.193147
ln⁡(1+x)\ln(1+x)f~1\tilde f_1f~2\tilde f_2
at 11
ln⁡(1+x)\ln(1+x)
≈\approx
ln⁡(1+1)+11+1(x−1)−12(1+1)2(x−1)2\ln(1+1) + \dfrac{1}{1+1}\left(x - 1\right) - \dfrac{1}{2(1+1)^2}\left(x - 1\right)^2
≈\approx
ln⁡2+12(x−1)−18(x−1)2\ln 2 + \frac{1}{2}\left(x - 1\right) - \frac{1}{8}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 00.6931470.6931470.6931470.6931470.6931470.6931470.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}0.6981350.6981350.6981470.6981470.6981350.6981351.25×10−51.25 \times 10^{-5}4.15×10−84.15 \times 10^{-8}
1+1101 + \frac{1}{10}0.7419370.7419370.7431470.7431470.7418970.7418970.0012100.0012104.02×10−54.02 \times 10^{-5}
1+121 + \frac{1}{2}0.9162910.9162910.9431470.9431470.9118970.9118970.0268560.0268560.0043940.004394
1+11 + 11.0986121.0986121.1931471.1931471.0681471.0681470.0945350.0945350.0304650.030465
ln⁡(1+x)\ln(1+x)f~1\tilde f_1f~2\tilde f_2
at 22
ln⁡(1+x)\ln(1+x)
≈\approx
ln⁡(1+2)+11+2(x−2)−12(1+2)2(x−2)2\ln(1+2) + \dfrac{1}{1+2}\left(x - 2\right) - \dfrac{1}{2(1+2)^2}\left(x - 2\right)^2
≈\approx
ln⁡3+13(x−2)−118(x−2)2\ln 3 + \frac{1}{3}\left(x - 2\right) - \frac{1}{18}\left(x - 2\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
2+02 + 01.0986121.0986121.0986121.0986121.0986121.0986120.0000000.0000000.0000000.000000
2+11002 + \frac{1}{100}1.1019401.1019401.1019461.1019461.1019401.1019405.54×10−65.54 \times 10^{-6}1.23×10−81.23 \times 10^{-8}
2+1102 + \frac{1}{10}1.1314021.1314021.1319461.1319461.1313901.1313900.0005440.0005441.20×10−51.20 \times 10^{-5}
2+122 + \frac{1}{2}1.2527631.2527631.2652791.2652791.2513901.2513900.0125160.0125160.0013730.001373
2+12 + 11.3862941.3862941.4319461.4319461.3763901.3763900.0456510.0456510.0099040.009904
ln⁡(1+x)\ln(1+x)f~1\tilde f_1f~2\tilde f_2

Near 0 this is x − x²/2, the start of the alternating log series.

2.2.3(1+x)r(1+x)^r
r =
1+x\sqrt{1+x}
≈\approx
(1+x0)r+r(1+x0)r−1(x−x0)+r(r−1)2(1+x0)r−2(x−x0)2(1+x_0)^r + r(1+x_0)^{r-1}\left(x - x_0\right) + \frac{r(r-1)}{2}(1+x_0)^{r-2}\left(x - x_0\right)^2
reference
at 00
(1+x)r(1+x)^r
≈\approx
(1+0)r+r(1+0)r−1x+r(r−1)2(1+0)r−2x2(1+0)^r + r(1+0)^{r-1}x + \frac{r(r-1)}{2}(1+0)^{r-2}x^2
≈\approx
1+rx+r(r−1)2x21 + rx + \frac{r(r-1)}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0049881.0049881.0050001.0050001.0049871.0049871.24×10−51.24 \times 10^{-5}6.21×10−86.21 \times 10^{-8}
0+1100 + \frac{1}{10}1.0488091.0488091.0500001.0500001.0487501.0487500.0011910.0011915.88×10−55.88 \times 10^{-5}
0+120 + \frac{1}{2}1.2247451.2247451.2500001.2500001.2187501.2187500.0252550.0252550.0059950.005995
0+10 + 11.4142141.4142141.5000001.5000001.3750001.3750000.0857860.0857860.0392140.039214
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
at 11
(1+x)r(1+x)^r
≈\approx
(1+1)r+r(1+1)r−1(x−1)+r(r−1)2(1+1)r−2(x−1)2(1+1)^r + r(1+1)^{r-1}\left(x - 1\right) + \frac{r(r-1)}{2}(1+1)^{r-2}\left(x - 1\right)^2
≈\approx
2r+r 2r−1(x−1)+r(r−1)2r−3(x−1)22^r + r\,2^{r-1}\left(x - 1\right) + r(r-1)2^{r-3}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 01.4142141.4142141.4142141.4142141.4142141.4142140.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}1.4177451.4177451.4177491.4177491.4177451.4177454.41×10−64.41 \times 10^{-6}1.10×10−81.10 \times 10^{-8}
1+1101 + \frac{1}{10}1.4491381.4491381.4495691.4495691.4491271.4491270.0004310.0004311.07×10−51.07 \times 10^{-5}
1+121 + \frac{1}{2}1.5811391.5811391.5909901.5909901.5799421.5799420.0098510.0098510.0011970.001197
1+11 + 11.7320511.7320511.7677671.7677671.7235731.7235730.0357160.0357160.0084780.008478
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
11+x\dfrac{1}{\sqrt{1+x}}
≈\approx
(1+x0)r+r(1+x0)r−1(x−x0)+r(r−1)2(1+x0)r−2(x−x0)2(1+x_0)^r + r(1+x_0)^{r-1}\left(x - x_0\right) + \frac{r(r-1)}{2}(1+x_0)^{r-2}\left(x - x_0\right)^2
reference
at 00
(1+x)r(1+x)^r
≈\approx
(1+0)r+r(1+0)r−1x+r(r−1)2(1+0)r−2x2(1+0)^r + r(1+0)^{r-1}x + \frac{r(r-1)}{2}(1+0)^{r-2}x^2
≈\approx
1+rx+r(r−1)2x21 + rx + \frac{r(r-1)}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.9950370.9950370.9950000.9950000.9950380.9950383.72×10−53.72 \times 10^{-5}3.10×10−73.10 \times 10^{-7}
0+1100 + \frac{1}{10}0.9534630.9534630.9500000.9500000.9537500.9537500.0034630.0034630.0002870.000287
0+120 + \frac{1}{2}0.8164970.8164970.7500000.7500000.8437500.8437500.0664970.0664970.0272530.027253
0+10 + 10.7071070.7071070.5000000.5000000.8750000.8750000.2071070.2071070.1678930.167893
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
at 11
(1+x)r(1+x)^r
≈\approx
(1+1)r+r(1+1)r−1(x−1)+r(r−1)2(1+1)r−2(x−1)2(1+1)^r + r(1+1)^{r-1}\left(x - 1\right) + \frac{r(r-1)}{2}(1+1)^{r-2}\left(x - 1\right)^2
≈\approx
2r+r 2r−1(x−1)+r(r−1)2r−3(x−1)22^r + r\,2^{r-1}\left(x - 1\right) + r(r-1)2^{r-3}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 00.7071070.7071070.7071070.7071070.7071070.7071070.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}0.7053460.7053460.7053390.7053390.7053460.7053466.60×10−66.60 \times 10^{-6}2.75×10−82.75 \times 10^{-8}
1+1101 + \frac{1}{10}0.6900660.6900660.6894290.6894290.6900920.6900920.0006360.0006362.65×10−52.65 \times 10^{-5}
1+121 + \frac{1}{2}0.6324560.6324560.6187180.6187180.6352910.6352910.0137370.0137370.0028360.002836
1+11 + 10.5773500.5773500.5303300.5303300.5966210.5966210.0470200.0470200.0192710.019271
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
11+x\dfrac{1}{1+x}
≈\approx
(1+x0)r+r(1+x0)r−1(x−x0)+r(r−1)2(1+x0)r−2(x−x0)2(1+x_0)^r + r(1+x_0)^{r-1}\left(x - x_0\right) + \frac{r(r-1)}{2}(1+x_0)^{r-2}\left(x - x_0\right)^2
reference
at 00
(1+x)r(1+x)^r
≈\approx
(1+0)r+r(1+0)r−1x+r(r−1)2(1+0)r−2x2(1+0)^r + r(1+0)^{r-1}x + \frac{r(r-1)}{2}(1+0)^{r-2}x^2
≈\approx
1+rx+r(r−1)2x21 + rx + \frac{r(r-1)}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}0.9900990.9900990.9900000.9900000.9901000.9901009.90×10−59.90 \times 10^{-5}9.90×10−79.90 \times 10^{-7}
0+1100 + \frac{1}{10}0.9090910.9090910.9000000.9000000.9100000.9100000.0090910.0090910.0009090.000909
0+120 + \frac{1}{2}0.6666670.6666670.5000000.5000000.7500000.7500000.1666670.1666670.0833330.083333
0+10 + 10.5000000.5000000.0000000.0000001.0000001.0000000.5000000.5000000.5000000.500000
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
at 11
(1+x)r(1+x)^r
≈\approx
(1+1)r+r(1+1)r−1(x−1)+r(r−1)2(1+1)r−2(x−1)2(1+1)^r + r(1+1)^{r-1}\left(x - 1\right) + \frac{r(r-1)}{2}(1+1)^{r-2}\left(x - 1\right)^2
≈\approx
2r+r 2r−1(x−1)+r(r−1)2r−3(x−1)22^r + r\,2^{r-1}\left(x - 1\right) + r(r-1)2^{r-3}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 00.5000000.5000000.5000000.5000000.5000000.5000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}0.4975120.4975120.4975000.4975000.4975130.4975131.24×10−51.24 \times 10^{-5}6.22×10−86.22 \times 10^{-8}
1+1101 + \frac{1}{10}0.4761900.4761900.4750000.4750000.4762500.4762500.0011900.0011905.95×10−55.95 \times 10^{-5}
1+121 + \frac{1}{2}0.4000000.4000000.3750000.3750000.4062500.4062500.0250000.0250000.0062500.006250
1+11 + 10.3333330.3333330.2500000.2500000.3750000.3750000.0833330.0833330.0416670.041667
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
(1+x)2(1+x)^2
≈\approx
(1+x0)r+r(1+x0)r−1(x−x0)+r(r−1)2(1+x0)r−2(x−x0)2(1+x_0)^r + r(1+x_0)^{r-1}\left(x - x_0\right) + \frac{r(r-1)}{2}(1+x_0)^{r-2}\left(x - x_0\right)^2
reference
at 00
(1+x)r(1+x)^r
≈\approx
(1+0)r+r(1+0)r−1x+r(r−1)2(1+0)r−2x2(1+0)^r + r(1+0)^{r-1}x + \frac{r(r-1)}{2}(1+0)^{r-2}x^2
≈\approx
1+rx+r(r−1)2x21 + rx + \frac{r(r-1)}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0201001.0201001.0200001.0200001.0201001.0201001.00×10−41.00 \times 10^{-4}0.0000000.000000
0+1100 + \frac{1}{10}1.2100001.2100001.2000001.2000001.2100001.2100000.0100000.0100002.22×10−162.22 \times 10^{-16}
0+120 + \frac{1}{2}2.2500002.2500002.0000002.0000002.2500002.2500000.2500000.2500000.0000000.000000
0+10 + 14.0000004.0000003.0000003.0000004.0000004.0000001.0000001.0000000.0000000.000000
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
at 11
(1+x)r(1+x)^r
≈\approx
(1+1)r+r(1+1)r−1(x−1)+r(r−1)2(1+1)r−2(x−1)2(1+1)^r + r(1+1)^{r-1}\left(x - 1\right) + \frac{r(r-1)}{2}(1+1)^{r-2}\left(x - 1\right)^2
≈\approx
2r+r 2r−1(x−1)+r(r−1)2r−3(x−1)22^r + r\,2^{r-1}\left(x - 1\right) + r(r-1)2^{r-3}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 04.0000004.0000004.0000004.0000004.0000004.0000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}4.0401004.0401004.0400004.0400004.0401004.0401001.00×10−41.00 \times 10^{-4}8.88×10−168.88 \times 10^{-16}
1+1101 + \frac{1}{10}4.4100004.4100004.4000004.4000004.4100004.4100000.0100000.0100000.0000000.000000
1+121 + \frac{1}{2}6.2500006.2500006.0000006.0000006.2500006.2500000.2500000.2500000.0000000.000000
1+11 + 19.0000009.0000008.0000008.0000009.0000009.0000001.0000001.0000000.0000000.000000
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
(1+x)3(1+x)^3
≈\approx
(1+x0)r+r(1+x0)r−1(x−x0)+r(r−1)2(1+x0)r−2(x−x0)2(1+x_0)^r + r(1+x_0)^{r-1}\left(x - x_0\right) + \frac{r(r-1)}{2}(1+x_0)^{r-2}\left(x - x_0\right)^2
reference
at 00
(1+x)r(1+x)^r
≈\approx
(1+0)r+r(1+0)r−1x+r(r−1)2(1+0)r−2x2(1+0)^r + r(1+0)^{r-1}x + \frac{r(r-1)}{2}(1+0)^{r-2}x^2
≈\approx
1+rx+r(r−1)2x21 + rx + \frac{r(r-1)}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0303011.0303011.0300001.0300001.0303001.0303000.0003010.0003011.00×10−61.00 \times 10^{-6}
0+1100 + \frac{1}{10}1.3310001.3310001.3000001.3000001.3300001.3300000.0310000.0310000.0010000.001000
0+120 + \frac{1}{2}3.3750003.3750002.5000002.5000003.2500003.2500000.8750000.8750000.1250000.125000
0+10 + 18.0000008.0000004.0000004.0000007.0000007.0000004.0000004.0000001.0000001.000000
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2
at 11
(1+x)r(1+x)^r
≈\approx
(1+1)r+r(1+1)r−1(x−1)+r(r−1)2(1+1)r−2(x−1)2(1+1)^r + r(1+1)^{r-1}\left(x - 1\right) + \frac{r(r-1)}{2}(1+1)^{r-2}\left(x - 1\right)^2
≈\approx
2r+r 2r−1(x−1)+r(r−1)2r−3(x−1)22^r + r\,2^{r-1}\left(x - 1\right) + r(r-1)2^{r-3}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 08.0000008.0000008.0000008.0000008.0000008.0000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}8.1206018.1206018.1200008.1200008.1206008.1206000.0006010.0006011.00×10−61.00 \times 10^{-6}
1+1101 + \frac{1}{10}9.2610009.2610009.2000009.2000009.2600009.2600000.0610000.0610000.0010000.001000
1+121 + \frac{1}{2}15.62500015.62500014.00000014.00000015.50000015.5000001.6250001.6250000.1250000.125000
1+11 + 127.00000027.00000020.00000020.00000026.00000026.0000007.0000007.0000001.0000001.000000
(1+x)r(1+x)^rf~1\tilde f_1f~2\tilde f_2

At r = 2 the quadratic approximation is exact — (1+x)² already is a quadratic, so there is no error at all.

2.2.4axa^x
a =
axa^x
≈\approx
ax0+ax0ln⁡a(x−x0)+ax0ln⁡2a2(x−x0)2a^{x_0} + a^{x_0}\ln a\left(x - x_0\right) + \frac{a^{x_0}\ln^2 a}{2}\left(x - x_0\right)^2
reference
at 00
axa^x
≈\approx
a0+a0ln⁡ax+a0ln⁡2a2x2a^{0} + a^{0}\ln ax + \frac{a^{0}\ln^2 a}{2}x^2
≈\approx
1+ln⁡ax+ln⁡2a2x21 + \ln ax + \frac{\ln^2 a}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0069561.0069561.0069311.0069311.0069551.0069552.41×10−52.41 \times 10^{-5}5.56×10−85.56 \times 10^{-8}
0+1100 + \frac{1}{10}1.0717731.0717731.0693151.0693151.0717171.0717170.0024590.0024595.65×10−55.65 \times 10^{-5}
0+120 + \frac{1}{2}1.4142141.4142141.3465741.3465741.4066301.4066300.0676400.0676400.0075830.007583
0+10 + 12.0000002.0000001.6931471.6931471.9333741.9333740.3068530.3068530.0666260.066626
axa^xf~1\tilde f_1f~2\tilde f_2
at 11
axa^x
≈\approx
a1+a1ln⁡a(x−1)+a1ln⁡2a2(x−1)2a^{1} + a^{1}\ln a\left(x - 1\right) + \frac{a^{1}\ln^2 a}{2}\left(x - 1\right)^2
≈\approx
a+aln⁡a(x−1)+aln⁡2a2(x−1)2a + a\ln a\left(x - 1\right) + \frac{a\ln^2 a}{2}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 02.0000002.0000002.0000002.0000002.0000002.0000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}2.0139112.0139112.0138632.0138632.0139112.0139114.82×10−54.82 \times 10^{-5}1.11×10−71.11 \times 10^{-7}
1+1101 + \frac{1}{10}2.1435472.1435472.1386292.1386292.1434342.1434340.0049170.0049170.0001130.000113
1+121 + \frac{1}{2}2.8284272.8284272.6931472.6931472.8132602.8132600.1352800.1352800.0151670.015167
1+11 + 14.0000004.0000003.3862943.3862943.8667473.8667470.6137060.6137060.1332530.133253
axa^xf~1\tilde f_1f~2\tilde f_2
axa^x
≈\approx
ax0+ax0ln⁡a(x−x0)+ax0ln⁡2a2(x−x0)2a^{x_0} + a^{x_0}\ln a\left(x - x_0\right) + \frac{a^{x_0}\ln^2 a}{2}\left(x - x_0\right)^2
reference
at 00
axa^x
≈\approx
a0+a0ln⁡ax+a0ln⁡2a2x2a^{0} + a^{0}\ln ax + \frac{a^{0}\ln^2 a}{2}x^2
≈\approx
1+ln⁡ax+ln⁡2a2x21 + \ln ax + \frac{\ln^2 a}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0110471.0110471.0109861.0109861.0110461.0110466.06×10−56.06 \times 10^{-5}2.22×10−72.22 \times 10^{-7}
0+1100 + \frac{1}{10}1.1161231.1161231.1098611.1098611.1158961.1158960.0062620.0062620.0002270.000227
0+120 + \frac{1}{2}1.7320511.7320511.5493061.5493061.7001751.7001750.1827450.1827450.0318760.031876
0+10 + 13.0000003.0000002.0986122.0986122.7020872.7020870.9013880.9013880.2979130.297913
axa^xf~1\tilde f_1f~2\tilde f_2
at 11
axa^x
≈\approx
a1+a1ln⁡a(x−1)+a1ln⁡2a2(x−1)2a^{1} + a^{1}\ln a\left(x - 1\right) + \frac{a^{1}\ln^2 a}{2}\left(x - 1\right)^2
≈\approx
a+aln⁡a(x−1)+aln⁡2a2(x−1)2a + a\ln a\left(x - 1\right) + \frac{a\ln^2 a}{2}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 03.0000003.0000003.0000003.0000003.0000003.0000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}3.0331403.0331403.0329583.0329583.0331393.0331390.0001820.0001826.65×10−76.65 \times 10^{-7}
1+1101 + \frac{1}{10}3.3483703.3483703.3295843.3295843.3476883.3476880.0187860.0187860.0006820.000682
1+121 + \frac{1}{2}5.1961525.1961524.6479184.6479185.1005245.1005240.5482340.5482340.0956280.095628
1+11 + 19.0000009.0000006.2958376.2958378.1062608.1062602.7041632.7041630.8937400.893740
axa^xf~1\tilde f_1f~2\tilde f_2
axa^x
≈\approx
ax0+ax0ln⁡a(x−x0)+ax0ln⁡2a2(x−x0)2a^{x_0} + a^{x_0}\ln a\left(x - x_0\right) + \frac{a^{x_0}\ln^2 a}{2}\left(x - x_0\right)^2
reference
at 00
axa^x
≈\approx
a0+a0ln⁡ax+a0ln⁡2a2x2a^{0} + a^{0}\ln ax + \frac{a^{0}\ln^2 a}{2}x^2
≈\approx
1+ln⁡ax+ln⁡2a2x21 + \ln ax + \frac{\ln^2 a}{2}x^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
0+00 + 01.0000001.0000001.0000001.0000001.0000001.0000000.0000000.0000000.0000000.000000
0+11000 + \frac{1}{100}1.0232931.0232931.0230261.0230261.0232911.0232910.0002670.0002672.05×10−62.05 \times 10^{-6}
0+1100 + \frac{1}{10}1.2589251.2589251.2302591.2302591.2567681.2567680.0286670.0286670.0021570.002157
0+120 + \frac{1}{2}3.1622783.1622782.1512932.1512932.8140302.8140301.0109851.0109850.3482480.348248
0+10 + 110.00000010.0000003.3025853.3025855.9535345.9535346.6974156.6974154.0464664.046466
axa^xf~1\tilde f_1f~2\tilde f_2
at 11
axa^x
≈\approx
a1+a1ln⁡a(x−1)+a1ln⁡2a2(x−1)2a^{1} + a^{1}\ln a\left(x - 1\right) + \frac{a^{1}\ln^2 a}{2}\left(x - 1\right)^2
≈\approx
a+aln⁡a(x−1)+aln⁡2a2(x−1)2a + a\ln a\left(x - 1\right) + \frac{a\ln^2 a}{2}\left(x - 1\right)^2
f(x)f(x)f~1(x)\tilde f_1(x)f~2(x)\tilde f_2(x)linear errorquad. error
1+01 + 010.00000010.00000010.00000010.00000010.00000010.0000000.0000000.0000000.0000000.000000
1+11001 + \frac{1}{100}10.23293010.23293010.23025910.23025910.23290910.2329090.0026710.0026712.05×10−52.05 \times 10^{-5}
1+1101 + \frac{1}{10}12.58925412.58925412.30258512.30258512.56768012.5676800.2866690.2866690.0215740.021574
1+121 + \frac{1}{2}31.62277731.62277721.51292521.51292528.14029828.14029810.10985110.1098513.4824783.482478
1+11 + 1100.000000100.00000033.02585133.02585159.53534159.53534166.97414966.97414940.46465940.464659
axa^xf~1\tilde f_1f~2\tilde f_2

Covers e^x too: set a = e, so ln a = 1 and the coefficients collapse to 1, 1, 1/2.

3. Algebra

You do not have to differentiate a messy function twice. You can build its approximation out of the entries above instead.

Write Q(f)Q(f) for the quadratic approximation of ff near 00, and L(f)L(f) for the linear one.

The useful fact is that you can approximate first and combine second. For a product:

Q(Q(f) Q(g))=Q(fg)Q\big(Q(f)\,Q(g)\big) = Q(fg)

So the QQ of a product is just the quadratic approximation of the product of the quadratic approximations. You never have to touch fgfg itself.

Here is the full set:

rule
sumQ(f+g)=Q(f)+Q(g)Q(f+g) = Q(f) + Q(g)
scaleQ(kf)=k Q(f)Q(kf) = k\,Q(f)
productQ(Q(f) Q(g))=Q(fg)Q\big(Q(f)\,Q(g)\big) = Q(fg)
composition, when g(0)=0g(0)=0Q(Q(f)∘Q(g))=Q(f∘g)Q\big(Q(f)\circ Q(g)\big) = Q(f\circ g)

Applied to a polynomial, QQ does nothing but chop off everything above x2x^2. So the outer QQ on each left-hand side is the cut — a product of two quadratics runs up to x4x^4, and those high terms are not trustworthy, since the inputs were only accurate to second order.

The g(0)=0g(0) = 0 condition on the last line is not a deep restriction — it falls out of how QQ is defined here. Q(f)Q(f) only carries information about ff near 00, so plugging in g(x)g(x) is only valid where gg actually lands near 00. Centre QQ at a different reference point and the condition moves with it: substitution is valid whenever the inside function's value at your reference point equals the outside function's reference point.

Quadratic Approximation Cheatsheet - Stefan Wullems