In Chapter 3 we saw how the second order Taylor Series is a quadratic function built from first and second order derivatives and closely matches a function locally near a given point, sharing the value of the function there as well as the value of its first and second derivative(s). This of course makes the second order Taylor Series match an underlying function's shape near the point on which it is defined quite closely and - in particular - reflects whether or not a function is convex or concave there.
In this Section we discuss how to formally describe the convexity or concavity of a quadratic function - with the second order Taylor series specifically in mind. This will help us better understand and quantify the behavior of Newton's method - our main second order algorithm - introduced in the following Section.
You can use the slider widget below the cell to get a feel for just what the Taylor series quadratic approximation captures about the underlying function as the point about which it is defined moves across the input range. This is shown in the left panel where the function
\begin{equation} g(w) = \text{sin}(3w) + 0.1w^2 \end{equation}is drawn in black, the point about which the approximation is defined drawn in green, and the second order Taylor series itself is shown in torquoise.