Numerical approximation: Forward diffrerence method

Click For Summary
The discussion focuses on deriving difference equations for the numerical approximation of a heat equation using forward and backward difference methods, as well as the Crank-Nicolson method. The user expresses difficulty in applying the forward difference method to find the second derivative, noting that their attempts yield zero. They mention using Taylor expansion and the definition of the forward difference operator to approach the problem. The conversation highlights the challenge of adhering to the specific request for a forward difference representation throughout the entire problem, as opposed to the usual combination of methods. Assistance is sought to clarify the application of the forward difference method for this context.
oddiseas
Messages
66
Reaction score
0

Homework Statement



[t]=-U+k[xx] u(x,0)=U(L,0)=0 u(x,0)sin(pix/L)


Write down difference equations for the approximate solution of this problem using the following methods:

1)forward difference
2)backward difference
3)crank nicholson

Homework Equations



I can do part 3, but i am stuck on the first two methods. I can find an exppression for the partial derivative of t, but the second derivative using the forward difference from a taylor approximation is 0 isn't it?

F(x+dx,t)=f(x,t)+[f][x](x,t)dx+[f][xx](x,t)(dx)^2

which if u solve for f''=0

The Attempt at a Solution

 
Physics news on Phys.org
I'm not sure about the Taylor expansion (well, I do think that the relevant equations could be derived that way too, but that's not the usual method, I think).

I'd define the forward difference operator,
\partial U_i = \frac{U_{i+1}-U_i}{h}
and use it successively. Similarly for the backward difference. Does this help?
 
This is the definition for the first partial derivative with respect to x , using the forward difference method.I am trying to figure out if it is possible to find an expression for the second derivative with respect to x using the forward difference method. Because when i try i get zero. Usually for a heat equation i use forward difference in time and central difference for spatial, but this question specifically asks for a forward difference representation for the entire problem, so if anyone can help, because i am stuck.
 
Yeah, I know, that's why I mentioned using the operator I defined in my post several times in a row (i.e. what is \partial\partial U_i). The result you get that way deviates from central differences only by a small amount.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
6K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K