Polynomial approximation of a more complicated function

Click For Summary

Discussion Overview

The discussion revolves around the approximation of a complicated function F(x,y,z) using a simpler surface function G(x,y,z) through polynomial approximation, specifically a second-order Taylor series expansion. Participants explore the necessary derivatives and the implications of including or excluding cross derivatives in the approximation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks to approximate a complicated function F(x,y,z) near a specific point (x0,y0,z0) and questions the form of the second-order accurate function G and the required derivatives.
  • Another participant suggests using Taylor's series expansion for functions of three variables, detailing the terms involved in the expansion.
  • A different participant notes that if the function is differentiable near the point, the derivative serves as the best local linear approximation, emphasizing the need for partial derivatives to compute the total derivative.
  • There is a repeated emphasis on the Taylor series expansion, with multiple participants providing the same formulation for clarity.
  • One participant expresses concern that the Taylor series approximation is inaccurate without including cross derivatives, questioning whether it is valid to simply remove these terms for a lower-order approximation.
  • Another participant challenges the idea that removing cross terms results in a lower-order approximation, indicating a potential misunderstanding of the implications of such an action.

Areas of Agreement / Disagreement

Participants generally agree on the use of Taylor's series for approximation, but there is disagreement regarding the treatment of cross derivatives and their necessity for accuracy in the approximation.

Contextual Notes

Some participants express uncertainty about the implications of excluding cross terms in the Taylor series approximation, indicating a need for further clarification on the accuracy of such an approach.

Hypatio
Messages
147
Reaction score
1
There is an arbitrarily complicated function F(x,y,z).

I want to find a simpler surface function G(x,y,z) which approximates F(x,y,z) within a region close to the point (x0,y0,z0).

Can I write a second-order accurate equation for G if I know F(x0,y0,z0) and can compute the derivatives at the point using finite-differences. What does that function look like? What derivatives are needed?

I want to do this because the function F(x,y,z) is very complicated, but I want to compute an approximate result many times at positions which only change slowly.
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
Start with the "Taylor's series expansion". For a function of three variables, f(x,y,z), about (x_0, y_0, z_0), that f(x_0, y_0, z_0)+ f_x(x_0,y_0,z_0) (x- x_0)+ f_y(x_0,y_0,z_0)(y- y_0)+ f_z(x_0,y_0,z_0)(z- z_0)+ f_{xx}(x_0,y_0,z_0)(x- x_0)^2+ f_{xy}(x_0,y_0,z_0)(x- x_0)(y- y_0)+ f_{xz}(x_0,y_0,z_0)(x- x_0)(z- z_0)+ f_{yy}(x_0,y_0,z_0)(y- y_0)^2+ f_{yz}(x_0,y_0,z_0)(y- y_0)(z- z_0)+ f_{zz}(x_0,y_0,z_0)(z- z_0)^2.
 
  • Like
Likes   Reactions: Hypatio and DaveE
If the function is differentiable near the point of interest then the derivative is the best local linear approximation near the point. You would need the partials to compute the total derivative, i.e., tangent plane.
 
HallsofIvy said:
Start with the "Taylor's series expansion". For a function of three variables, f(x,y,z), about (x_0, y_0, z_0), that f(x_0, y_0, z_0)+ f_x(x_0,y_0,z_0) (x- x_0)+ f_y(x_0,y_0,z_0)(y- y_0)+ f_z(x_0,y_0,z_0)(z- z_0)+ f_{xx}(x_0,y_0,z_0)(x- x_0)^2+ f_{xy}(x_0,y_0,z_0)(x- x_0)(y- y_0)+ f_{xz}(x_0,y_0,z_0)(x- x_0)(z- z_0)+ f_{yy}(x_0,y_0,z_0)(y- y_0)^2+ f_{yz}(x_0,y_0,z_0)(y- y_0)(z- z_0)+ f_{zz}(x_0,y_0,z_0)(z- z_0)^2.
How about also indicating the points on the finite difference grid that the function would be evaluated at to provide the coefficients in this finite difference approximation?
 
HallsofIvy said:
Start with the "Taylor's series expansion". For a function of three variables, f(x,y,z), about (x_0, y_0, z_0), that f(x_0, y_0, z_0)+ f_x(x_0,y_0,z_0) (x- x_0)+ f_y(x_0,y_0,z_0)(y- y_0)+ f_z(x_0,y_0,z_0)(z- z_0)+ f_{xx}(x_0,y_0,z_0)(x- x_0)^2+ f_{xy}(x_0,y_0,z_0)(x- x_0)(y- y_0)+ f_{xz}(x_0,y_0,z_0)(x- x_0)(z- z_0)+ f_{yy}(x_0,y_0,z_0)(y- y_0)^2+ f_{yz}(x_0,y_0,z_0)(y- y_0)(z- z_0)+ f_{zz}(x_0,y_0,z_0)(z- z_0)^2.

Thanks this works. However, I'm looking at the first derivatives of f(x,y,z) and its taylor series approx and see that the taylor series is wildly inaccurate unless the cross derivatives are included, even right next to the point. Is it correct to simply remove the cross terms to get a lower order approximation, or does something else need to be done?
 
Hypatio said:
Thanks this works. However, I'm looking at the first derivatives of f(x,y,z) and its taylor series approx and see that the taylor series is wildly inaccurate unless the cross derivatives are included, even right next to the point. Is it correct to simply remove the cross terms to get a lower order approximation, or does something else need to be done?
I don't understand what you are describing.
 
"Simply removing the cross terms" doesn't "get a lower order approximation"
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K