The characteristic polynomial of this constant-coefficient differential equation is . Its distinct roots give
For the forcing , the method of undetermined coefficients gives the particular term . The term is resonant with a homogeneous solution, so use for its forcing; substitution gives .
Thus . The two initial conditions reduce to and , so , . The solution of the initial value problem isThe extra factor in the resonant particular solution is essential.
The Forward Euler method uses the current slope:Here and the initial approximation normally equals the given initial value. Each step takes a tangent-line increment of width .
Define the one-step local truncation error as the defect obtained by inserting the exact solution into an update:For a smooth solution, Taylor's theorem and giveThus for the one-step defect convention. The leading derivative can also be written by the chain rule.
Some conventions instead call the truncation error. That normalized local truncation error is , so under the normalized convention. Both describe the same Euler one-step defect; neither should be confused with an unqualified global error claim.
Factor the right side as . On , division by gives a first-order linear differential equation with integrating factorMultiplication makes the equation , so . At zero, , hence . Simplifying givesIts derivative isThe derivation solves the initial-value problem on . The simplified expression also extends smoothly through and satisfies the original undivided equation there, giving a solution on all ; its pole prevents continuation through .
Articles by others on the same topic
There are currently no matching articles.