You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We introduce Taylor polynomials for functions of several variables.
Recall the definition of a Taylor polynomial:
Let \(f:\R \to \R \) be a function whose first \(d\) derivatives exist at \(x=c\). The Taylor polynomial of
degree \(d\) of \(f\) centered at \(x=c\) is
We have a similar formula for functions \(F:\R ^n\to \R \).
Let \(F:\R ^n\to \R \) be a function whose first \(d\) derivatives
exist at \(\vec {x}=\vec {c}\). The Taylor polynomial of degree \(d\) of \(F\) centered at \(\vec {x}=\vec {c}\) is
As you can see, it is
more complex than the formula for a single variable. Good news everyone: In this
class, we will only compute the degree two polynomial for functions of two
variables. In this case \(P_2\) is:
Basically, given a function \(F:\R ^2\to \R \), the second degree Taylor polynomial \(P_2\) at a point \(\vec {c}\) is a
polynomial “cooked-up” so that:
The values are equal: \(P_2(\vec {c}) = F(\vec {c})\).
The first partial derivatives are equal: \(P_2^{(1,0)}(\vec {c}) = F^{(1,0)}(\vec {c})\) and \(P_2^{(0,1)}(\vec {c}) = F^{(0,1)}(\vec {c})\).
The second partial derivatives are equal: \(P_2^{(2,0)}(\vec {c}) = F^{(2,0)}(\vec {c})\), \(P_2^{(0,2)}(\vec {c}) = F^{(0,2)}(\vec {c})\), and \(P_2^{(1,1)}(\vec {c}) = F^{(1,1)}(\vec {c})\).
Here’s the plan. Soon we will be trying to find maximums and minimums
for functions of two variables. The second degree Taylor polynomial will
be the key to developing a “second derivative test” for identifying these
extrema.
1 Try it, you might like it
Computing the Taylor polynomial is not so bad, you just need to get the hang of
it.
Compute the degree \(2\) Taylor polynomial for:
\[ F(x,y)=\sin (xy) \]
centered at \((0,0)\).
We’ll start by making a
table of partial derivatives along with their value when evaluated at \((0,0)\):
Start by making a
table of partial derivatives along with their value when evaluated at \((1,2)\).
\[ P_2(x,y) = \answer {2 + 3(x-1)^2 -(y-2)^2} \]
2 In other words
Now that we have a formula and we (hopefully!) can apply it. Let’s finish by talking
about what is really going on. Given a function \(f:\R \to \R \), the Taylor polynomial
is a
polynomial “cooked-up” to share the value of the function, meaning
\[ p_d(c)=f(c), \]
and share values
of the first \(d\) derivatives, meaning
\[ p_d^{(i)}(c) = f^{(i)}(c) \]
whenever \(0\le i\le d\). The exact same idea is true for
functions of several variables. Let’s explain the construction of the Taylor polynomial
as an iterative process. Given \(F:\R ^2\to \R \) (and similarly for functions \(F:\R ^n\to \R \)) the degree zero Taylor
polynomial is just the value of the function
\[ P_0(x,y) = F(c_1,c_2) \]
where \(\vec {c}=\vector {c_1,c_2}\) is the center of the Taylor
polynomial. The degree one Taylor polynomial is just the degree zero polynomial plus
the first partial derivatives with respect to \(x_i\) multiplied by \((x_i-c_i)\)
The degree two Taylor
polynomial can be found by adding the degree one Taylor polynomial to
one-half of all the second partial derivatives with respect to \(x\) and \(y\) multiplied
by
\((x-c_1)^2\) when taking the partial derivative with respect to \(x\),
\((y-c_2)^2\) when taking the partial derivative with respect to \(y\), and
\(2(x-c_1)(y-c_2)\) when taking the partial derivative with respect to \(x\) and \(y\).
The interested reader can (repeatedly) differentiate \(P_2(x,y)\) to see that its value at
\(\vec {x}=\vec {c}\) and the values of the first two derivatives of \(P_2(x,y)\) do indeed match those of
\(F(x,y)\).
3 Unpacking the general formula
This final section is for the interested student, and is not required for this
course.
Recall that if \(F:\R ^n\to \R \) is a function whose first \(d\) derivatives exist at \(\vec {x}=\vec {c}\). The Taylor
polynomial of degree \(d\) of \(F\) centered at \(\vec {x}=\vec {c}\) is
This means for any function \(F:\R ^n\to \R \), the \(1\)st degree Taylor polynomial for \(F\) at \(\vec {x}=\vec {c}\) is just the
tangent “plane” for \(F\) at \(\vec {x}= \vec {c}\).
3.3 The degree two Taylor polynomial
To get our hands on the \(2\)nd degree Taylor polynomial, we will specialize to functions \(F:\R ^2\to \R \).
Let \(\vec {c}=\vector {c_1,c_2}\) and let \(\vec {x} = \vector {x,y}\). Write with me:
Whew. That was a lot of work. However, as we have said before, all you need to know
right now, is how to compute the degree two Taylor polynomial for functions of two
variables.