Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

SCIENCE · INVESTIGATE AND EXPLAIN

Use an energy plot as one diagnostic, not a full certificate

For the supplied unit-mass,unit-stiffness harmonic model, x(0) = 1 and v(0) = 0 give exact x=cos t,v=−sin t and constant energy(x²+v²)/2=.5 J. The benchmark runs to10 s with a bounded step count. This exact solution is used as an independent numerical reference, not a measured oscillator record.

Learning outcome: Compare all three updates on two grids; retain energy extrema and endpoint phase-space error, not just one reassuring scalar value.

Starting recap

Use vector dot products for work, gradients for conservative force, definite integrals for accumulation and explicit energy/frame boundaries. Check accessible states before assigning trajectories.

All lessons are open directly. Your saved experiments remain when you leave and return.

Try

For forward Euler with N = 10,h = 1, energy at t = 10 is(.5)(2¹⁰)=512 J, although the exact energy is.5 J. This discrepancy is entirely numerical.

Open the experiment

Predict

Forward Euler energy growth in this supplied undriven oscillator is:

Experiment

Compare all three updates on two grids; retain energy extrema and endpoint phase-space error, not just one reassuring scalar value.

Use energy diagnostics without equating them to trajectory accuracy

Worked teaching model · synthetic values · Supplied harmonic model m1,k1,x0=1,v0=0, exact x=cos t,v=−sin t and energy .5 J. Finite10 s benchmark; step<=1 s. Compare endpoint and maximum sampled energy error plus phase/trajectory error. This is a numerical diagnostic, not a physical excitation experiment.

Reset keeps your prediction, captures and practice history.

Energy diagnostic over the finite benchmark

mechanical energy (J)time (s)01043.368090

Unlike graph quantities rescale independently; read units and values, not screen angles. 1: numerical energy (solid).2: exact constant energy (dashed). Joined curves show the supplied model, not additional observations.

Equivalent numerical coordinates for Energy diagnostic over the finite benchmark

numerical energy

time (s)mechanical energy (J)
00.5
0.50.625
10.78125
1.50.9765625
21.220703
2.51.525879
31.907349
3.52.384186
42.980232
4.53.72529
54.656613
5.55.820766
67.275958
6.59.094947
711.36868
7.514.21085
817.76357
8.522.20446
927.75558
9.534.69447
1043.36809

At most 82 representative computed coordinates including endpoints; the plotted curve can use a finer grid. A table of a revealed generator is not independent measurement evidence.

exact constant energy

time (s)mechanical energy (J)
00.5
100.5

At most 82 representative computed coordinates including endpoints; the plotted curve can use a finer grid. A table of a revealed generator is not independent measurement evidence.

Calculated quantities under the declared measurement model
QuantityValueUnit
Step size0.5s
Numerical final position-9.206092m
Numerical final velocity-1.408562m/s
Endpoint energy43.36809J
Endpoint signed energy error42.86809J
Maximum sampled absolute energy error42.86809J
Endpoint phase-space distance from exact8.591834scaled SI state difference

Energy behavior is an important diagnostic but does not alone certify trajectory phase or accuracy.

Forward Euler multiplies harmonic energy by1+h² per step. Velocity-first is symplectic here and velocity Verlet is time symmetric; on this finite grid their energy errors need not grow like forward Euler, but endpoint phase error remains. Compare both energy and the independent exact state at the same time. No physical source supplies the numerical energy growth.

Predict before inspecting the values. Save contrasting records with assumptions and one alternative explanation. This virtual display does not certify practical measurement technique.

Energy behavior is an important diagnostic but does not alone certify trajectory phase or accuracy.

Forward Euler multiplies harmonic energy by1+h² per step. Velocity-first is symplectic here and velocity Verlet is time symmetric; on this finite grid their energy errors need not grow like forward Euler, but endpoint phase error remains. Compare both energy and the independent exact state at the same time. No physical source supplies the numerical energy growth.

Captures preserve recipes and replay their calculated results. They are synthetic model evidence, not physical measurements.

Understand

Use an energy plot as one diagnostic, not a full certificate

For the supplied unit-mass,unit-stiffness harmonic model, x(0) = 1 and v(0) = 0 give exact x=cos t,v=−sin t and constant energy(x²+v²)/2=.5 J. The benchmark runs to10 s with a bounded step count. This exact solution is used as an independent numerical reference, not a measured oscillator record.

Forward Euler updates x with old v and v with old x. Expanding xnew²+vnew² shows that energy is multiplied by1+h² every step. Thus energy grows numerically even though the physical equation has no drive. The growth is an algorithm artifact, not an energy source that the model discovered.

Velocity-first Euler updates v before x. Velocity Verlet uses xnew=x+h v−h²x/2 and vnew=v−h(x+xnew)/2. These methods have different long-time structure, and on the supplied h≤1 grid their energy errors do not behave like forward Euler’s systematic growth. That observation is conditional on this equation, method and grid.

Compare maximum sampled energy error and endpoint energy with the independent exact position and velocity at t = 10. A method can have modest or oscillatory energy error yet still accumulate phase error, so energy alone cannot certify a correct trajectory. Conversely, an endpoint error near zero can hide errors earlier in the interval.

Changed-case check

Predict before reading the comparison. For forward Euler with N = 10,h = 1, energy at t = 10 is(.5)(2¹⁰)=512 J, although the exact energy is.5 J. This discrepancy is entirely numerical.

Retained investigation

Compare all three updates on two grids; retain energy extrema and endpoint phase-space error, not just one reassuring scalar value. How can a small energy error coexist with a wrong oscillation phase?

Source and boundary

Primary conceptual reference checked30 October2026: OpenStax University Physics Volume1. All functions, numerical packets and teaching prose are original. Bounded supplied models are not measured experiments, apparatus instructions, independent practical skill or institutional credit. Numerical algorithm properties are derived for the disclosed model; do not treat them as universal solver guarantees.

The velocity-first Euler and kick-drift-kick velocity Verlet updates are also documented in Andrew Cumming, PHYS 512: Symplectic integrators, checked 30 October 2026. This lesson derives and tests their behavior for its own finite harmonic benchmark rather than borrowing the source’s orbit example.

Apply

Forward Euler energy growth in this supplied undriven oscillator is:

Public practice checks a specific claim. It does not establish independent mastery.

How can a small energy error coexist with a wrong oscillation phase?

Continue

Completion requires a saved prediction, at least one capture and a reflection. Presence checks do not grade your reasoning.

Skipping retains experiments and awards no mastery.

Save a science backup or import one

Science work is stored locally in this browser, separately from mathematics and AI. It does not sync automatically. Use this science-only backup; this checkout's older all-subject export does not include science.

A legacy file is available only when the complete snapshot fits the 36 MB limit. For larger snapshots, prepare a complete file set below; never discard notebooks to make a smaller file.

Matching imported notebook drafts replace their current drafts. Omitted lessons and known first attempts remain. Export your current work first if you want to retain both drafts.

Complete file sets and course backups

A file set can hold more work than one science file. Keep its manifest and every part together. Each file is limited to 36 MB. This format needs this version of LearnAI or a compatible newer version; older versions can use only the legacy single-file backup above.

The set includes every saved science course and global continuation at this moment. Later edits need a new export. A conflicting tab exports its own visible work, which may differ from saved work in another tab.

0 file(s) selected. File order and filenames do not determine identity. Missing, changed or conflicting parts block the entire restore; no good part is applied by itself.

Science storage: loading. No account or remote computation is required.