2025-11-21 Quiz 7¶
1. Using Euler’s method to approximate an ODE, you obtain the difference equation \(y_{n + 1} = y_n + h a y_n\). What is the ODE?
\(\frac{dy}{dt} = a y\)
\(\frac{dy}{dt} = a\)
\(\frac{dy}{dt} = h a y\)
\(\frac{dy}{dt} = h a\)
Answer
a2. A mass-spring problem is described by the ODE \(y'' + 2 y = cos \left( 2 t \right)\). Which of the following is the equivalent first-order system?
\(y' = x, \, y' = -2 y + cos \left( 2 t \right)\)
\(y' = x, \, x' + 2 y = cos \left( 2 t \right)\)
This second-order ODE can’t be converted into a first-order system.
Answer
b3. Draw a pair of graphs explaining the difference between forward Euler and backward (implicit) Euler for ODEs. Do not forget to add labels to your charts. Include a brief description explaining your graphs. Hint: Where do you draw the tangent line?