- How do I write a second order differential equation as coupled first order equations?
- Let y = dx/dt, so dx/dt = y. Make d²x/dt² the subject first, dividing by its coefficient, then replace dx/dt with y. For d²x/dt² + 5dx/dt + 6x = 12 you get dy/dt = 12 - 5y - 6x. The starting values are x₀ = x(t₀) and y₀ = dx/dt at t₀, here x₀ = 1 and y₀ = -2.
- How do I apply Euler's method to a second order equation written as a pair?
- Step x and y together, using the old values on the right of both lines: xn₊₁ = xn + h yn and yn₊₁ = yn + h f(xn, yn, tn). Do not use the new xn₊₁ to find yn₊₁. For dx/dt = y and dy/dt = 12 - 5y - 6x with x = 1, y = -2 and h = 0.1, the estimates at t = 0.2 are x ≈ 0.76 and dx/dt ≈ 0.52.
- How do I find the first time an Euler estimate of displacement reaches zero?
- For a value at time t, take n = t/h steps and read xn. For the first time x reaches zero, keep stepping until xn first reaches or passes it, then give the time tn, not the step number. For the mass on the spring with h = 0.1, the displacement after 1 second is 4.36 m, and the first time it reaches x = 0 is t = 2 seconds, because step n = 20 is t = 2.
- How do I find the maximum possible percentage error when the exact value is rounded?
- An exact value given to the nearest unit lies in an interval. For 240 cm to the nearest 10 cm, it lies between 235 cm and 245 cm. Use the end of the interval that makes the error largest, with the estimate in the same unit. For an estimate of 263 cm the maximum possible percentage error is 11.9%.
- How do I solve d^2x/dt^2 + a dx/dt + bx = 0 exactly?
- Write the eigenvalues as roots of λ² + aλ + b = 0. Two real distinct roots λ₁ and λ₂ give x = Ae^(λ₁ t) + Be^(λ₂ t). Use the starting values to find A and B. For d²x/dt² + 4dx/dt + 3x = 0 with x = 2 and dx/dt = -4 at t = 0, the solution is x = e^(-t) + e^(-3t).
- Why does my percentage error come out wrong when the estimate is in metres and the exact value is in centimetres?
- Both values must be in the same unit. Metres and centimetres mixed, as in 4.36333 - 385, is wrong. Write the exact value as 3.845 m, which comes from 385 cm. Then (4.36333 - 3.845)/3.845 × 100 = 13.5%.