ΣνΜDr. Sharon's Math PlatformSyvara Learning
Question Bank › 📘 Undergraduate › Numerical Method with Python (Math & Eng) › Q36

Q36 · Euler's method for y' = 3y: local and global truncation error

ODE Solvers 🟡 Intermediate Computation </> Python solution
Question

Consider the initial-value problem $y' = 3y$, $y(0) = 1$. The analytic solution is $y = e^{3x}$.

(a) Approximate $y(0.10)$ using one step and Euler's method.

(b) Find a bound for the local truncation error in $y_1$.

(c) Compare the actual error in $y_1$ with your error bound.

(d) Approximate $y(0.10)$ using two steps and Euler's method.

(e) Verify that the global truncation error for Euler's method is $O(h)$ by comparing the errors in parts (a) and (d).

🔒

Log in to see the worked solution

Enter your email to get started. Your first free solutions in every course unlock as soon as you verify.

Log in or sign up with email
</> Python code solution (Premium add-on)
math (standard library)
🔒 Upgrade to Premium or GQE to unlock Python solutions.
← Previous Next →
Working…