Lecture 18 Polynomial approximations I - Copy
Lecture 18 Polynomial approximations I - Copy
Lecture 18
Polynomial Approximations I
Your calculator cannot possibly draw a unit circle, set up angle of 0.3 radians and then measure, 𝑥𝑥,
the base side of the right-angle triangle:
1
0.3
𝑥𝑥
𝑐𝑐
𝑓𝑓(𝑎𝑎)
𝑎𝑎 𝑏𝑏
How can we get an approximation to the value of the function at 𝑥𝑥 = 𝑏𝑏 ?
The easiest way to approximate 𝑓𝑓 𝑏𝑏 is to make use of the tangent line at 𝑥𝑥 = 𝑎𝑎.
Then 𝑓𝑓 𝑏𝑏 ~𝑐𝑐. This approximation won’t be too bad provided b is close to a.
𝑐𝑐−𝑓𝑓 𝑎𝑎
Now = 𝑓𝑓 ′ (𝑎𝑎) So, 𝑐𝑐 − 𝑓𝑓 𝑎𝑎 = 𝑓𝑓 ′ (𝑎𝑎)(𝑏𝑏 − 𝑎𝑎) Hence 𝑐𝑐 = 𝑓𝑓 𝑎𝑎 + 𝑓𝑓 ′ (𝑎𝑎)(𝑏𝑏 − 𝑎𝑎)
(𝑏𝑏−𝑎𝑎)
We should not expect this approximation to work well if 𝑥𝑥 is too far from a !
Example 1 Find the linear approximating function for 𝑓𝑓 𝑥𝑥 = 𝑒𝑒 𝑥𝑥 about 0. Use it to estimate 𝑒𝑒 0.1 and 𝑒𝑒 0.2
Ans: 𝑒𝑒 𝑥𝑥 ~ 𝑒𝑒 0 + 𝑒𝑒 0 𝑥𝑥 − 0 = 1 + 𝑥𝑥.
So 𝑒𝑒 0.1 ~ 1 + 0.1 = 1.1 Accurate answer 1.105 170…. Approx is out by 0.005 170
𝑒𝑒 0.2 ~ 1 + 0.2 = 1.2 Accurate answer 1.221 402…. Approx is out by 0.021 402 error is much greater
It is obvious that one reason the approximation deteriorates as 𝑥𝑥 moves further away from the base point
𝑎𝑎 is that the graph of the given function is not a straight line but curves away from the tangent.
𝑐𝑐
𝑓𝑓(𝑎𝑎)
𝑎𝑎 𝑥𝑥
However, this turns out not to be a convenient format for our present purposes. Rather write the equation for
the approximating parabola as
Here 𝑎𝑎 is the base point i.e., the value of 𝑥𝑥 for which we know 𝑓𝑓 𝑥𝑥
𝑓𝑓̃ 𝑥𝑥 = 𝑐𝑐0 + 𝑐𝑐1 𝑥𝑥 − 𝑎𝑎 + 𝑐𝑐2 𝑥𝑥 − 𝑎𝑎 2 (1)
We must have 𝑓𝑓̃ 𝑎𝑎 = 𝑓𝑓 𝑎𝑎
In (1) let 𝑥𝑥 = 𝑎𝑎. Then 𝒇𝒇� 𝒂𝒂 = 𝑐𝑐0 + 𝑐𝑐1 𝑎𝑎 − 𝑎𝑎 + 𝑐𝑐2 𝑎𝑎 − 𝑎𝑎 2
= 𝒄𝒄𝟎𝟎
But we want 𝑓𝑓̃ 𝑎𝑎 = 𝑓𝑓 𝑎𝑎 , so, 𝑓𝑓 𝑎𝑎 = 𝑓𝑓̃ 𝑎𝑎 = 𝑐𝑐0 i.e. 𝒄𝒄𝟎𝟎 = 𝒇𝒇 𝒂𝒂
We should also have the slope of the parabola the same as the slope of the graph of 𝑓𝑓 𝑥𝑥 at 𝑥𝑥 = 𝑎𝑎.
1
So, in 𝑓𝑓̃ 𝑥𝑥 = 𝑓𝑓 𝑎𝑎 + 𝑓𝑓 ′ 𝑎𝑎 𝑥𝑥 − 𝑎𝑎 + 𝑓𝑓 ′′ 𝑎𝑎 𝑥𝑥 − 𝑎𝑎 2
2
1
We have 𝑓𝑓̃ 𝑥𝑥 = 𝑓𝑓 0 + 𝑓𝑓 ′ 0 𝑥𝑥 − 0 + 𝑓𝑓 ′′ 0 𝑥𝑥 − 0 2
2
−1
1 −2 2
= ln 0 + 1 + 0 + 1 𝑥𝑥 − 0 − 0+1 𝑥𝑥 − 0
2
1
= 0 + 𝑥𝑥 − 𝑥𝑥 2
2
1
So ln 1.2 = ln 𝑥𝑥 + 1 = ln 0.2 + 1 ~ 0.2 − 0.2 2
= 0.1800 Accurate value is 0.1823
2
1 1
But our best quadratic approximation for 𝑙𝑙𝑙𝑙𝑙 is 𝑥𝑥 − 𝑥𝑥 2 = 1 − 12 = 0.5
2 2
The more accurate approximation is 0.6931
This shows again that our approximating quadratic gives less accurate values the further we move
away from the base point.