- #1
mm391
- 66
- 0
By combining the two equations i should be able to solve for u' and get rid of u'':
u_(i-1) = u_i + (-h)*u' + 1/2 * (-h)^2 * u'' + O(h^4)
u_(i-2) = u_i + (-2h)*u' + 1/2 * (-2h)^2 * u'' + O(h^4)
But i keep getting stuck and can't come up with the answer below.
Can anyone help me please.
u'=((3u_i-4u_(i-1)+u_(i-2))/2h)+O(h^4)
u_(i-1) = u_i + (-h)*u' + 1/2 * (-h)^2 * u'' + O(h^4)
u_(i-2) = u_i + (-2h)*u' + 1/2 * (-2h)^2 * u'' + O(h^4)
But i keep getting stuck and can't come up with the answer below.
Can anyone help me please.
u'=((3u_i-4u_(i-1)+u_(i-2))/2h)+O(h^4)