Question: (a) Program a calculator or computer to use Euler's method to compute y (1), where y ( x ) is the solution of the given
(a) Program a calculator or computer to use Euler's method to compute y(1), where y(x) is the solution of the given initial-value problem. (Give all answers to four decimal places.)
| dy |
| dx |
+ 3x2y = 6x2,
y(0) = 4
| h = 1 | y(1) = |
| h = 0.1 | y(1) = |
| h = 0.01 | y(1) = |
| h = 0.001 | y(1) = |
(b) Verify that
y = 2 + 2ex3
is the exact solution of the differential equation.
y = 2 + 2ex3
y' =
LHS = y' + 3x2y =
+ 3x2(2 + 2ex3) = 6x2ex3 +
+ 6x2ex3 = 6x2 = RHS
y(0) =
+ 2e0 = 2 + 2 = 4
(c) Find the errors in using Euler's method to compute y(1) with the step sizes in part (a). (Give all answers to four decimal places.)
| h = 1 | error = (exact value approximate value) = |
| h = 0.1 | error = (exact value approximate value) = |
| h = 0.01 | error = (exact value approximate value) = |
| h = 0.001 | error = (exact value approximate value) = |
What happens to the error when the step size is divided by 10?
When the step size is divided by 10, the error estimate is
(approximately).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
