Understanding the Taylor Expansion of a Translated Function

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 6K views
Adgorn
Messages
133
Reaction score
19
I recently found out the rule regarding the Taylor expansion of a translated function:
##f(x+h)=f(x)+f′(x)⋅h+\frac 1 2 h^ 2 \cdot f′′(x)+⋯+\frac 1 {n!}h^n \cdot f^n(x)+...##

But why exactly is this the case? The normal Taylor expansion tells us that
##f(x)=f(a)+f'(a)(x-a)+\frac 1 {2!}f''(a)(x-a)^2+...+\frac 1 {n!} f^n(x)(x-a)^n+...##

So how do you come from the original expansion to the second one? Simply substituting x with x+h doesn't do it, not to mention that the f's and the coefficients seem to have changed roles, with the f's now being functions instead of constants and the coefficients now being constants instead of functions.

An explanation would be appreciated.
 
Physics news on Phys.org
You just have to write ##f(x) = f(a + (x - a))## and use the first formula with ##a## replacing x and ##x-a## replacing ##h## to get the second one.
 
  • Like
Likes   Reactions: Chestermiller, vanhees71 and Adgorn
Adgorn said:
I recently found out the rule regarding the Taylor expansion of a translated function:
##f(x+h)=f(x)+f′(x)⋅h+\frac 1 2 h^ 2 \cdot f′′(x)+⋯+\frac 1 {n!}h^n \cdot f^n(x)+...##

But why exactly is this the case? The normal Taylor expansion tells us that
##f(x)=f(a)+f'(a)(x-a)+\frac 1 {2!}f''(a)(x-a)^2+...+\frac 1 {n!} f^n(x)(x-a)^n+...##

So how do you come from the original expansion to the second one? Simply substituting x with x+h doesn't do it, not to mention that the f's and the coefficients seem to have changed roles, with the f's now being functions instead of constants and the coefficients now being constants instead of functions.

An explanation would be appreciated.

There's an important point here about what exactly is a "variable" and what is a "constant". You might ask (in the second equation) in what way is ##a## a constant and ##x## a variable? Both can be any real number. Likewise ##h## in the first expression. So, can't you interpret both equations as being an equation in two variables? ##x## and ##h## in the first equation and ##x## and ##a## in the second.
 
  • Like
Likes   Reactions: Adgorn
hilbert2 said:
You just have to write ##f(x) = f(a + (x - a))## and use the first formula with ##a## replacing x and ##x-a## replacing ##h## to get the second one.
PeroK said:
There's an important point here about what exactly is a "variable" and what is a "constant". You might ask (in the second equation) in what way is ##a## a constant and ##x## a variable? Both can be any real number. Likewise ##h## in the first expression. So, can't you interpret both equations as being an equation in two variables? ##x## and ##h## in the first equation and ##x## and ##a## in the second.
I think hilbert's practical explanation combined with perok's intuitive one answered my question.

I was under the impression that in both equation you fix ##a## and ##h## and leave x as a variable, but since the second equation applies for all real ##a## then it can also be treated as a variable. So if you take the original rule, replace ##a## with ##x## and ##x## with #x+h## you get the second formula.

Thanks for the help.
 
  • Like
Likes   Reactions: PeroK