Goistein said:What is the 3x3 finite difference matrix for:
d^2(u)/dx^2 + u=x, u(0)=u(1)=0
I thought the answer was
[2 -1 0
-1 2 -1
0 -1 2]
The book said it was
[33 -16 0
-16 33 -16
0 -16 33]
I'm pretty sure my answer is wrong but I don't know why...
Goistein said:How do you get the difference equation from the differential equation? Does it mean to solve the equation? No