Processing math: 100%

« Previous
Next »

A centered finite difference scheme; step 3

Step 3: Approximate derivative(s) by finite difference approximation(s). Very common (standard!) formula for u: u(tn)un+12un+un1Δt2

Use this discrete initial condition together with the ODE at t=0 to eliminate u1: un+12un+un1Δt2=ω2un

« Previous
Next »