Forward difference operator [SOLVED] Forward difference operator

In summary, the forward difference operator \Delta_h can be written as a sum of an infinite series using the standard derivative D, as shown in the Wikipedia article on finite differences. This can be derived by expanding a function f(x+h) around a value \alpha=h and rewriting it in terms of the standard derivative, leading to the desired result.
  • #1
foxjwill
354
0
[SOLVED] Forward difference operator

Homework Statement


I was looking on Wikipedia and noticed that it said that [tex]\Delta_h[/tex] could be written as

[tex]
\begin{align*}
\Delta_h &= \sum_{n=0}^\infty \frac{(hD)^n}{n!}\\
&= e^{hD} - 1
\end{align*}
[/tex]

where [tex]D[/tex] is just the standard derivative. What I don't understand is how they came up with the infinite series.

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
  • #2
Try applying it to a function.
 
  • #3
Ok, so I tried going at it this way:

[tex]
\begin{align}
f(x+h) &= f(h) + (x+h)Df(h)+ \dfrac{(x+h)^2 D^2 f(h)}{2!} + \cdots\\
f(x) &= f(0) + xDf(0) + \dfrac{x^2 D^2 f(0)}{2!} + \cdots
\end{align}
[/tex]

However, when I try subtracting (2) from (1), the terms don't cancel out because (1) is in terms of [tex]f(h)[/tex] and (2) is in terms of [tex]f(0)[/tex]. What should I do?
 
  • #4
Trying to express [itex]\Delta_h f(x)[/itex] in terms of [itex]\Delta_h f(0)[/itex] seems like an odd thing to do; I'm sure there's an interesting result to be derived, but I don't see why it would relate to the question you're trying to solve.

Incidentally, your Taylor series in (1) is incorrect.
 
Last edited:
  • #5
Hurkyl said:
Trying to express [itex]\Delta_h f(x)[/itex] in terms of f(0) and f(h) seems like an odd thing to do...

I was using the tailor series expansion. Do you have any other ideas?
 
  • #6
I've added more to my previous post.

I don't have any new ideas; what's wrong with the one I already gave?
 
  • #7
foxjwill said:
Ok, so I tried going at it this way:

[tex]
\begin{align}
f(x+h) &= f(h) + (x+h)Df(h)+ \dfrac{(x+h)^2 D^2 f(h)}{2!} + \cdots\\
f(x) &= f(0) + xDf(0) + \dfrac{x^2 D^2 f(0)}{2!} + \cdots
\end{align}
[/tex]

However, when I try subtracting (2) from (1), the terms don't cancel out because (1) is in terms of [tex]f(h)[/tex] and (2) is in terms of [tex]f(0)[/tex]. What should I do?

As Hurkyl said, the Taylor series expansion for the first one is wrong.

The Taylor series for f(x), expanded around x= a, is
[tex]f(a)+ f'(a)(x-a)+ f"(a)/2 (x-a)^2+ /cdot/cdot/cdot+ f^{(n)}(a)(x- a)^n+ \cdot\cdot\cdot[/tex]
If you are expanding f(x+h) about x= h, then it would be
[tex]f(h)+ f'(a)((x+h)-h)+ f"(h)/2 ((x+h)-h)^2+ /cdot/cdot/cdot+ f^{(n)}(h)((x+h)- h)^n+ /dot/cdot/cdot[/tex]
[tex]= [tex]f(h)+ f'(a)(x)+ f"(a)/2 x^2+ /cdot/cdot/cdot+ f^{(n)}(h)x^n\cdot\cdot\cdot[/tex]

If you are expanding f(x+h) about x= 0, then it would be
[tex]f(0+ f'(0)(x+h)+ f"(0)/2 (x+y)^2+ /cdot/cdot/cdot+ f^{(n)}(0)(x+y)^n+ \cdot\cdot\cdot[/tex]
 
  • #8
What's the wikipedia url for that result? :confused:
 
  • #9
Ok, so I fixed your [tex]\LaTeX[/tex]:

HallsofIvy said:
As Hurkyl said, the Taylor series expansion for the first one is wrong.

The Taylor series for f(x), expanded around x= a, is

[tex]f(a) + f'(a)(x-a) + \frac{f''(a)}{2}(x-a)^2 + \cdots + f^{(n)}(a)(x-a)^n + \cdots[/tex]

If you are expanding f(x+h) about x= h, then it would be

[tex] f(h) + f'(a)((x+h)-h) + \frac{f''(h)}{2} ((x+h)-h)^2 + \cdots + f^{(n)}(h) ((x+h)-h)^n + \cdots[/tex]

[tex]= f(h) + f'(a)(x) + \frac{f''(a)}{2} x^2 + \cdots + f^{(n)}(h) x^n + \cdots[/tex]

If you are expanding f(x+h) about x= 0, then it would be

[tex] f(0) + f'(0)(x+h) + \frac{f''(0)}{2}(x+y)^2 + \cdots + f^{(n)}(0)(x+y)^n + \cdots [/tex]

[tex] f(a) + f'(a)(x-a) + \frac{f''(a)}{2}(x-a)^2 + \cdots + f^{(n)}(a)(x-a)^n + \cdots[/tex]

I'm not really sure how you got the expansions to be those. Could you explain?
 
  • #11
[tex]\Delta_h(f(x))=f(x+h)-f(x)\Rightarrow \Delta_h(f(x))=\left(T_h-I\right)\,f(x)\quad \text{with} \quad T_h f(x)=f(x+h)[/tex]

Expanding [itex]f(x+h)[/itex] around [itex]\alpha=h[/itex] we have

[tex]f(x+h)=f(h)+\frac{1}{1!}\,f'(h)\,x+\frac{1}{2!}\,f''(h)\,x^2+\dots+\frac{1}{n!}\,f^{(n)}(h)\,x^n+\dots\Rightarrow f(x+h)=\sum_{n=0}^\infty\frac{x^n}{n!}\,f^{(n)}(h)\Rightarrow f(x+h)=\sum_{n=0}^\infty\frac{h^n}{n!}\,f^{(n)}(x)[/tex]

where at the last equality I changed the roles of [itex]x,\,h[/itex] since they are just labels. This equality can be written as

[tex]f(x+h)=\left(\sum_{n=0}^\infty\frac{(h\,D)^n}{n!}\right)\,f(x)[/tex]

and from here you have the desired result.
 

FAQ: Forward difference operator [SOLVED] Forward difference operator

What is a forward difference operator?

A forward difference operator is a mathematical tool used in calculus and mathematical analysis to approximate the derivative of a function. It is denoted by the symbol Δ and is defined as Δf(x) = f(x+h) - f(x), where h is a small constant known as the step size.

How does a forward difference operator work?

The forward difference operator works by taking two points on a function, x and x+h, and finding the difference in the function values at these points. This difference is then divided by the step size h to approximate the slope of the function at point x. As the step size decreases, the approximation becomes more accurate.

What is the purpose of a forward difference operator?

The purpose of a forward difference operator is to approximate the derivative of a function. This can be useful in situations where the derivative cannot be easily calculated, or when a function is only known at discrete points. It is also used in numerical methods for solving differential equations.

What are the limitations of a forward difference operator?

The main limitation of a forward difference operator is that it can only approximate the derivative at a single point. This means that it cannot capture the overall behavior of a function. It also becomes less accurate as the step size h becomes larger, and may introduce errors in the approximation.

How is a forward difference operator different from a backward difference operator?

A forward difference operator calculates the difference between a point and the next point on a function, while a backward difference operator calculates the difference between a point and the previous point. In other words, a forward difference operator approximates the derivative at a point using information from the future, while a backward difference operator uses information from the past.

Similar threads

Replies
3
Views
1K
Replies
1
Views
1K
Replies
1
Views
959
Replies
43
Views
4K
Replies
10
Views
1K
Replies
1
Views
1K
Replies
3
Views
950
Replies
1
Views
2K
Replies
1
Views
652
Back
Top