Home / IB Mathematics AHL 5.18 Solutions of second order differential equation AI HL Paper 1- Exam Style Questions

IB Mathematics AHL 5.18 Solutions of second order differential equation AI HL Paper 1- Exam Style Questions- New Syllabus

Question

Felix is investigating the oscillatory motion of a mass suspended from a spring. His research suggests that the displacement \( x \) (in metres) of the mass at time \( t \) (in seconds) is governed by the second-order differential equation:
\( 2 \frac{d^2 x}{dt^2} + 2.4 \frac{dx}{dt} + 8x = 9.8 \)
At the start of the observation (\( t = 0 \)), the mass is at a displacement of \( 0.5 \) m and has an initial velocity of \( \frac{dx}{dt} = 9.8 \) m/s.
(a) Using Euler’s method with a step size of \( h = 0.1 \), provide an estimate for:

(i) the displacement of the mass after 1 second.
(ii) the first instant in time when the mass returns to the equilibrium position (\( x = 0 \)).

Using a precise measuring device, Felix determines the actual displacement after 1 second to be 385 cm, rounded to the nearest centimetre.
(b) Calculate the maximum possible percentage error between your estimate in part (a)(i) and the true displacement at 1 second.

Most-appropriate topic codes (IB Mathematics: Applications and Interpretation HL ):

• AHL 5.18: Euler’s method for second-order differential equations — part (a)
• SL 1.6: Percentage error and upper/lower bounds — part (b)
▶️ Answer/Explanation

(a)
First, isolate the second derivative: \( \frac{d^2 x}{dt^2} = 4.9 – 1.2 \frac{dx}{dt} – 4x \).
Applying Euler’s method with \( h=0.1 \):
\( x_{n+1} = x_n + 0.1 \cdot v_n \)
\( v_{n+1} = v_n + 0.1 \cdot (4.9 – 1.2 v_n – 4 x_n) \)
With initial conditions \( t_0=0, x_0=0.5, v_0=9.8 \):
Iterating 10 steps to \( t=1 \) yields a displacement of approximately \( 4.36332 \) m.
(i) \( \boxed{4.36 \text{ m}} \) (to 3 s.f.)
Continuing the iteration, the displacement first becomes negative between \( t=1.9 \) and \( t=2.0 \).
(ii) \( \boxed{2.0 \text{ seconds}} \) (first estimated time reaching \( x=0 \)).

(b)
Actual displacement = 3.85 m. Since this is correct to the nearest cm, the true value \( V_A \) lies in \( 3.845 \leq V_A < 3.855 \).
The estimate \( V_E \) is \( 4.3633 \) m.
To find the maximum percentage error, we use the value in the range that maximizes the absolute difference: \( V_A = 3.845 \).
Absolute Error = \( |4.3633 – 3.845| = 0.5183 \) m.
Percentage Error = \( \frac{0.5183}{3.845} \times 100\% \approx 13.48\% \).
\( \boxed{13.5\%} \) (to 3 s.f.)

Question

A particle P moves in a straight line, such that its displacement \( x \) at time \( t \) (\( t \geq 0 \)) is defined by the differential equation \( \dot{x} = x \cos t e^{-\sin t} \). At time \( t = 0 \), \( x = \frac{1}{e} \).

(a) By using Euler’s method with a step length of 0.1, find an approximate value for \( x \) when \( t = 0.3 \) [4]

(b) By solving the differential equation, find the percentage error in your approximation for \( x \) when \( t = 0.3 \) [4]

▶️ Answer/Explanation
Markscheme

(a)
Euler’s method: \( x_n = x_{n-1} + h f(x_{n-1}, t_{n-1}) \), \( h = 0.1 \), \( f(x, t) = x \cos t e^{-\sin t} \)
Initial: \( t_0 = 0 \), \( x_0 = \frac{1}{e} \approx 0.367879441171 \)
Step 1: \( f(x_0, t_0) = 0.367879441171 \times 1 \times 1 \approx 0.367879441171 \)
\( x_1 = 0.367879441171 + 0.1 \times 0.367879441171 \approx 0.404667385288 \)
Step 2: \( t_1 = 0.1 \), \( f(x_1, t_1) = 0.404667385288 \times \cos 0.1 \times e^{-\sin 0.1} \approx 0.404667385288 \times 0.995004165278 \times 0.904837418036 \approx 0.364284278494 \)
\( x_2 = 0.404667385288 + 0.1 \times 0.364284278494 \approx 0.441095813138 \)
Step 3: \( t_2 = 0.2 \), \( f(x_2, t_2) = 0.441095813138 \times \cos 0.2 \times e^{-\sin 0.2} \approx 0.441095813138 \times 0.980066577841 \times 0.819801409517 \approx 0.354527829058 \)
\( x_3 = 0.441095813138 + 0.1 \times 0.354527829058 \approx 0.476548596044 \)

Euler’s Method Steps

Result: \( x(0.3) \approx 0.477 \) [4]

(b)
Solve: \( \frac{dx}{x} = \cos t e^{-\sin t} \, dt \)
Integrate: \( \ln |x| = -e^{-\sin t} + c \)
Initial condition: \( t = 0 \), \( x = \frac{1}{e} \), so \( \ln \frac{1}{e} = -1 = -e^0 + c \), \( c = 0 \)
Solution: \( x = e^{-e^{-\sin t}} \)
At \( t = 0.3 \): \( x(0.3) = e^{-e^{-\sin 0.3}} \approx e^{-0.743937001596} \approx 0.475140360833 \)
Percentage error: \( \left| \frac{0.476548596044 – 0.475140360833}{0.475140360833} \right| \times 100 \approx 0.296\% \)
Note: Markscheme suggests \( x = e^{-\sin t} \), but this fails initial condition (\( x(0) = 1 \neq \frac{1}{e} \)); corrected solution used.
Result: Percentage error \(\approx 0.296\%\) [4]

Leave a Reply

Scroll to Top