<exercise masterit-seed="8703" masterit-slug="F1" masterit-name="Direction fields for first-order ODEs">
<statement>
<p>
Use <url href="https://sagecell.sagemath.org/"/> to run the SageMath code
<c>t,y = var('t y'); plot_slope_field(cos(t+y), (t,-5,5), (y,-5,5))</c>
producing the direction field for the ODE <m> {y'} = \cos\left({y} + t\right) </m>.
</p>
<p>
Let <m>y_p</m> be the solution to the following IVP.
Explain how to use its direction field to approximate the
value of <m>y_p</m> at <m>t= -4 </m>.
</p>
<me> {y'} = \cos\left({y} + t\right) \hspace{2em}
y( -2 )= 2 </me>
</statement>
<answer>
<me>y_p( -4 )\approx 2.0 </me>
</answer>
</exercise>