Small changes, approximations and errors · Mathematics… | StemPy Lab
Course 10.2·Lesson 3 of 3
Small changes, approximations and errors
A small change dx in x changes y=f(x)
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
use a differential to estimate a small change in a quantity;
estimate a square root, a cube root or a trigonometric value;
distinguish absolute, relative and percentage error;
find the error in an area or a volume from the error in a length.
A small change
Near a point, a curve and its tangent are almost the same. So for a small change dx in x, the change in y is close to the change along the tangent:
Δy≈dy=f′(x)dx.
Here Δy=f(x+dx)−f(x) is the true change, and dy is the differential, the change along the tangent. We can rewrite this as an estimate of a value:
f(x+dx)≈f(x)+f′(x)dx.
The graph of y equals the square root of x for x from 0 to 9.5, in blue, with the tangent at x equals 4 in green, drawn through the point (4, 2). At x equals 6 the green line is at 2.5 and the blue curve is at 2.449. A short red segment marks the gap between them. The title says that near x equals 4 the tangent is a good copy of the curve.
The estimate is best when dx is small. The error shrinks very quickly as dx shrinks.
Estimating roots and values
An example with a root. Estimate 66. Choose the perfect square nearest to 66, which is 64. Let f(x)=x, x=64, dx=2. Then f′(x)=2x1=161 at x=64, so
66≈8+161×2=8.125.
The calculator gives 8.12404, so the estimate is correct to three digits.
An example with an angle. Estimate sin31∘. Work in radians: 31∘=30∘+1∘, and 1∘=180π radians. With f(x)=sinx, x=6π and f′(x)=cosx,
An angle must be in radians when you use a derivative of a trigonometric function.
Absolute, relative and percentage error
Suppose a quantity x is measured, and the reading has an error of dx.
The absolute error is dx, in the units of x.
The relative error is xdx, a pure number.
The percentage error is xdx×100%.
For a quantity y=f(x) calculated from x, the absolute error in y is dy=f′(x)dx, and the relative error is ydy.
A very useful rule follows for y=xn. Since dy=nxn−1dx,
ydy=nxdx.
The relative error in y is n times the relative error in x. A 1% error in the radius of a sphere gives a 3% error in its volume, because V∝r3, and a 2% error in its surface area, because S∝r2.
A worked example
A square metal plate has a side of 20cm, measured with an error of 0.1cm. Estimate the error in the area, and find the relative and the percentage error.
The link.A=x2, so dA=2xdx.
The absolute error.dA=2×20×0.1=4cm2.
The relative error.AdA=4004=0.01. This is also 2×200.1.
The percentage error.0.01×100=1%.
Practise with new numbers
Try it in Python
The program estimates three square roots with a differential and prints the true value and the percentage error each time.
Common mistakes
Using degrees in a derivative of a trigonometric function. Change the small angle to radians first.
Choosing a starting number that is not a perfect square. Then a is not easy to find, and the method has no point.
Confusing Δy and dy.Δy is the true change. dy is the estimate from the tangent.
Mixing absolute and relative error.dx has units, and xdx does not.
Making dx too large. The estimate is only good for small changes.
, which is the tangent line used as a copy of the curve. It estimates roots and trigonometric values, and it gives the error in a calculated quantity from the error in a measurement. The relative error and the percentage error compare the error with the size of the quantity.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.