Problem 2
Question
Find a cubic polynomial, \(p(x)=p_{0}+p_{1} x+p_{2} x^{2}+p_{3} x^{3}\) that matches \(f(x)=e^{x}\) at \(a=0 .\) To do so, you should complete the following table. You should conclude from the table that $$ p(x)=1+x+\frac{x^{2}}{2}+\frac{x^{3}}{3 !} $$ is the cubic polynomial that matches \(f(x)=e^{x}\) at \(a=0\). Draw the graphs of \(f(x)=e^{x}\) and \(p(x)=1+x+x^{2} / 2+x^{3} / 6\) on \(-1 \leq x \leq 1\). You should find a pretty good match. The maximum separation occurs at \(x=1\) with a maximum $$ =\frac{\left|1+1+1 / 2+1 / 6-e^{1}\right|}{e^{1}} \doteq \frac{|2.6666-2.71828|}{e^{1}} \doteq 0.02 $$ There is about a \(2 \%\) relative error at \(x=1\) Compute the relative error in the approximation, \(e^{-1} \doteq p(-1)\).
Step-by-Step Solution
VerifiedKey Concepts
Cubic Polynomial
For an exercise involving the exponential function, \( e^x \), we aim to match the polynomial to this function at a certain point, often using its derivatives. The polynomial essentially acts as a 'tangent' that closely follows the curve of the function for a given range of \( x \) values. In this case, the point of approximation is at \( a = 0 \). This is particularly useful when a broad range of a function is too complex to work with directly, and a simple polynomial can provide a good enough estimation.
Using derivatives helps us align the polynomial's coefficients with those of the desired function. This creates smoother and more accurate approximations.
Exponential Function
In the context of Taylor Series, the exponential function can be expanded in its series form beginning at any point \( a \). However, for simplicity and to cover common exercises, we often use \( a = 0 \). This turns the expansion into a Maclaurin Series specific to \( e^x \):
- \( f(x) = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots \)
Approximation Error
Approximation errors can be determined at specific points. For example, at \( x = 1 \), the relative error was found to be about 2\%, indicating a good fit over this range, which means the exponential graph and the cubic polynomial graph are closely aligned.
Another calculation done in the solution shows the relative error at \( x = -1 \). When \( p(-1) \) was calculated as \( \frac{1}{3} \), the relative error with respect to \( e^{-1} \) (approximately 0.368) was higher, around 9.4\%. High error, as seen further from the approximation point \( a = 0 \), reflects that the polynomial diverges from the exponential function more as we move further from the center of expansion.
- Relative errors are often represented as a percentage and highlight areas where the approximation deviates significantly from the actual function.
- This aspect of calculation ensures students understand the importance of choosing the right approximation methods and the implications of truncating infinite series.