Consider the initial value problem with

MATHEMATICS · Multi-part · AP · Calculus BC · Differential Equations · Differential Equations

Problem

Consider the initial value problem dydx=y−sin⁡x\dfrac{dy}{dx}=y-\sin x with y(0)=2y(0)=2. An explicit solution exists, but a student instead produced the numerical estimates of y(1)y(1) shown in the table below, each obtained with a uniform step size hh over the interval 0≤x≤10\le x\le 1. The exact value of y(1)y(1) is 2.7182818…2.7182818\ldots
step size hhnumerical estimate of y(1)y(1)
0.2000.2002.4202.420
0.1000.1002.5692.569
0.0500.0502.6442.644
Use the information in the table to analyze the relationship between step size and accuracy of the approximation. (a) For each value of hh in the table, calculate the absolute error ∣estimate−2.7182818∣|\text{estimate}-2.7182818| to six decimal places. (b) Describe the trend you observe in the absolute error when the step size is halved. Support your description with numerical evidence from part (a). (c) Assuming the same trend continues, predict the absolute error that would be expected if the step size is halved once more to h=0.025h=0.025. Explain your reasoning.

Related theory

Browse the problem library