## Taylor Polynomials from Orthogonal Projections

One of the standard applications of orthogonal projections to function spaces comes in the form of Fourier series, where we use as a mutually orthogonal set of functions with respect to the usual inner product

In particular, projecting a function onto the span of the first 2n+1 functions in the set gives its order-n Fourier approximation:

where the coefficients and can be computed via inner products (i.e., integrals) in this space (see many other places on the web, like here and here, for more details).

A natural follow-up question is then whether or not we similarly get Taylor polynomials when we project a function down onto the span of the set of functions . More specifically, if we define to be the inner product space consisting of continuous functions on the interval [-1,1] with the standard inner product

and consider the orthogonal projection with range equal to , the subspace of degree-n polynomials, is it the case that is the degree-n Taylor polynomial of ?

It does not take long to work through an example to see that, no, we do not get Taylor polynomials when we do this. For example, if we choose n = 2 then projecting the function onto the results in the function , which is not its degree-2 Taylor polynomial . These various functions are plotted below ( is displayed in orange, and the two different approximating polynomials are displayed in blue):

These plots illustrate why the orthogonal projection of does not equal its Taylor polynomial: the orthogonal projection is designed to approximate as well as possible on the whole interval [-1,1], whereas the Taylor polynomial is designed to approximate it as well as possible at x = 0 (while sacrificing precision near the endpoints of the interval, if necessary).

However, something interesting happens if we change the interval that the orthogonal projection acts on. In particular, if we let be a scalar and instead consider the orthogonal projection with range equal to , then a straightforward (but hideous) calculation shows that the best degree-2 polynomial approximation of on the interval [-c,c] is

While this by itself is an ugly mess, something interesting happens if we take the limit as c approaches 0:

which is exactly the Taylor polynomial of . Intuitively, this makes sense and meshes with our earlier observations about Taylor polynomials approximating at x = 0 as well as possible and orthogonal projections approximating as well as possible on the interval . However, I am not aware of any proof that this happens in general (i.e., no matter what the degree of the polynomial is and no matter what (sufficiently nice) function is used in place of ), and I would love for a kind-hearted commenter to point me to a reference. [Update: user “jam11249” provided a sketch proof of this fact on reddit here.]

Here is an interactive Desmos plot that you can play around with to see the orthogonal projection approach the Taylor polynomial as .

Good Morning,

A very interesting example! However, it is not clear to me how you calculated the coefficients [0.9963,1.1036, 0.5367] in your example. Which definition did you use for the calculation?

Thanks,

Luciano.

@LUCIANO

It’s a non-trivial calculation. I used the standard inner product on the interval [-1,1] and projected down onto span{1,x,x^2} using that inner product. The calculation is ugly because {1,x,x^2} isn’t an orthonormal basis in this inner product, so you first need to construct an ONB of that span and then compute inner products with those orthonormal basis vectors. See the question and answers at https://math.stackexchange.com/questions/3000704/orthogonal-projection-on-a-polynomial-space for details.

Very informative post!

See the paper “TAYLOR SERIES ARE LIMITS OF LEGENDRE EXPANSIONS” by

Paul E. Fishback