Truncation Error and Second Order Accuracy.

Click For Summary
SUMMARY

The discussion focuses on solving for the first derivative, u', in the context of truncation error and second-order accuracy in numerical methods. The equations provided involve finite difference approximations, specifically using Taylor series expansions. The user attempts to eliminate u'' by manipulating the equations but encounters difficulties in deriving a clear expression for u'. The final expression for u' is given as u' = ((3u_i - 4u_(i-1) + u_(i-2)) / (2h)) + O(h^4).

PREREQUISITES
  • Understanding of finite difference methods
  • Familiarity with Taylor series expansions
  • Knowledge of truncation error concepts
  • Basic skills in algebraic manipulation of equations
NEXT STEPS
  • Study finite difference methods for numerical differentiation
  • Learn about Taylor series and their applications in numerical analysis
  • Explore truncation error analysis in numerical methods
  • Investigate second-order accuracy techniques in computational mathematics
USEFUL FOR

Students and professionals in applied mathematics, numerical analysis, and computational engineering who are working on numerical differentiation and accuracy in simulations.

mm391
Messages
65
Reaction score
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)
 
Physics news on Phys.org
multiply the first equation by -4

-4u_(i-1) = -4u_i + (4h)*u' - 1/2 * (-2h)^2 * u'' + O(h^4)

u_(i-2) = u_i + (-2h)*u' + 1/2 * (-2h)^2 * u'' + O(h^4)

now solve for u'
 

Similar threads

  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
2K