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 experimentPredict
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
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) |
|---|---|
| 0 | 0.5 |
| 0.5 | 0.625 |
| 1 | 0.78125 |
| 1.5 | 0.9765625 |
| 2 | 1.220703 |
| 2.5 | 1.525879 |
| 3 | 1.907349 |
| 3.5 | 2.384186 |
| 4 | 2.980232 |
| 4.5 | 3.72529 |
| 5 | 4.656613 |
| 5.5 | 5.820766 |
| 6 | 7.275958 |
| 6.5 | 9.094947 |
| 7 | 11.36868 |
| 7.5 | 14.21085 |
| 8 | 17.76357 |
| 8.5 | 22.20446 |
| 9 | 27.75558 |
| 9.5 | 34.69447 |
| 10 | 43.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) |
|---|---|
| 0 | 0.5 |
| 10 | 0.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.
| Quantity | Value | Unit |
|---|---|---|
| Step size | 0.5 | s |
| Numerical final position | -9.206092 | m |
| Numerical final velocity | -1.408562 | m/s |
| Endpoint energy | 43.36809 | J |
| Endpoint signed energy error | 42.86809 | J |
| Maximum sampled absolute energy error | 42.86809 | J |
| Endpoint phase-space distance from exact | 8.591834 | scaled 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
Apply
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.