Second Order Differential Equation - Modified Euler Method - Simple Harmonic Osc

Second Order Differential Equation - Modified Euler Method - Simple Harmonic Osc
Loading the math board and drawing, please wait…
2020-06-27 06:01
This example demonstrates the solution of second-order differential equations using the modified Euler method to model the motion of simple harmonic oscillators. Key mathematical concepts include second-order differential equations, the modified Euler method, simple harmonic oscillator models, and trigonometric functions. The construction leverages GeoGebra commands such as Sequence, SolveODE, LaTeX, PolyLine, First, Sum, and TableText to generate numerical solutions and trajectory plots, with parameters like k, Z0, Y0, X0, Xf, n, deltaX, and tol controlling the simulation. Suitable for university students in mathematics or physics, and enthusiasts interested in numerical solutions of differential equations.

GeoGebra Commands & Parameters

  1. Sequence((Element[ListaX, i], Element[ListaY, i]), i, 1, Length[ListaX], 1) → LPy
  2. SolveODE(0, k, 0, X0, Y0, Z0, Xf, deltaX) → numericalIntegral1
  3. Sequence((Element[ListaX, i], Element[ListaZ, i]), i, 1, Length[ListaX], 1) → LPy'
  4. LaTeX(numericalIntegral1, true, false) → text1
  5. PolyLine(LPy) → f
  6. First(Element[{numericalIntegral1}, 1], Length[Element[{numericalIntegral1}, 1]]) → l1
  7. Sequence(abs(Element[ListaY, i] - y(Element[l1, i])), i, 1, Length[ListaY], 1) → LError
  8. Sum(LError) → SError
  9. PolyLine(Sequence[(Element[ListaX, i], Element[LError, i]), i, 1, Length[ListaY], 1]) → g
  10. TableText({LaTeX[SError, true, true]}, {LaTeX[ymax, true, true]}, {LaTeX[ymin, true, true]}) → text2
  11. TableText({LaTeX[X0, true, true]}, {LaTeX[Xf, true, true]}, {LaTeX[Y0, true, true]}, {LaTeX[Z0, true, true]}, {LaTeX[deltaX, true, true]}, {LaTeX[n, true, true]}, {LaTeX[tol, true, true]}) → text3