Math With AmarA C A D E M Y
All math animations

Graduate · Variational energy

Variational energy: Compare curvature and deviation costs

Variational energy: investigate compare curvature and deviation costs with initial sine amplitude a = 1.5; deviation penalty b = 1.5.

Predict what will happen, press Play, then pause and explain what changed. Every control also works without playback.

Watch the relationship

Paused
Variational energy: Compare curvature and deviation costs. Remaining sine amplitude: 1.5. Functional energy: 7.739. Derivative with respect to amplitude: 9.652. Minimum energy: 0.5Fixed endpoints, changing trial function02.0300.51yTeal: trial function · dashed: straight minimizer
b≥0 and all displayed functions are smooth on [0,1] with fixed endpoint values. Playback chooses a path through trial functions; it is not claimed to solve a gradient-flow PDE. The readout uses exact integrals, not sampled quadrature.

Starts paused. Play once, pause anywhere, or use Step to inspect the mathematics. Playback stops when this panel leaves the screen.

Make it your experiment

Change one value. Notice what follows.

The controls adjust the model. Numbers below describe the current frame. Decimals are rounded.

Remaining sine amplitude
1.5
Functional energy
7.739
Derivative with respect to amplitude
9.652
Minimum energy
0.5

HD animation studio

From experiment to screen.

Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.

Understand what you are seeing

The idea behind the motion.

An energy functional assigns a number to an entire function. The family x+A sin(πx) respects fixed endpoints for every A, making it possible to vary shape without violating boundary data. The exact energy is one half plus a positive quadratic multiple of A², so the straight function is the unique minimizer within this family. This investigation starts with Initial sine amplitude a = 1.5; Deviation penalty b = 1.5. Predict the result before playing, then change one parameter while keeping the other fixed to test the reason for the change.

A relationship to keep

E[u]=½∫₀¹u′²dx+b∫₀¹(u−x)²dx; u=x+A sin(πx)

Read the symbols alongside the explanation. A diagram shows the relationship; the assumptions tell you when it applies.

  1. STEP 1

    Set up the mathematical model

    Verify that the endpoint values remain zero and one even when the sine amplitude changes. The starting case is “Compare curvature and deviation costs.”

  2. STEP 2

    Follow the changing quantity

    Reduce A from the chosen initial amplitude to zero. Compare the moving curve with the reference straight line and the energy readout.

  3. STEP 3

    Explain and test the result

    Differentiate the reduced energy with respect to A. Distinguish this finite-dimensional family calculation from a proof over every admissible function.

Your turn to explain

Make a prediction. Test your reasoning.

Keep Initial sine amplitude a = 1.5; Deviation penalty b = 1.5. Pause the timeline at 100%. Given remaining sine amplitude = 0, calculate functional energy, derivative with respect to amplitude, minimum energy. Show the substitution into the displayed formula.

Use the values specified in the question. Reset restores the initial values for this investigation.

Compare your explanation

The remaining amplitude is A=(1.5)(1−1)=0. Exact integration gives E=1/2+A²(π²/4+1.5/2)=0.5. Differentiating that expression gives A(π²/2+1.5)=0. Results: Functional energy: 0.5; Derivative with respect to amplitude: 0; Minimum energy: 0.5. Decimal values are rounded; retain the original parameters when checking.

Connect the animation to a worked example and practice questions.