Skip to content

Commit c11e76a

Browse files
committed
add Lagrangian explanation to DAE reduction tutorial.
1 parent 1f669d9 commit c11e76a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/src/examples/modelingtoolkitize_index_reduction.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ In this tutorial, we will look at the pendulum system:
5151
\end{aligned}
5252
```
5353

54+
These equations can be derived using the [Lagrangian equation of the first kind.](https://en.wikipedia.org/wiki/Lagrangian_mechanics#Lagrangian)
55+
Specifically, for a pendulum with unit mass and length $L$, which thus has
56+
kinetic energy $\frac{1}{2}(v_x^2 + v_y^2)$,
57+
potential energy $gy$,
58+
and holonomic constraint $x^2 + y^2 - L^2 = 0$.
59+
The Lagrange multiplier related to this constraint is equal to half of $T$,
60+
and represents the tension in the rope of the pendulum.
61+
5462
As a good DifferentialEquations.jl user, one would follow
5563
[the mass matrix DAE tutorial](https://docs.sciml.ai/DiffEqDocs/stable/tutorials/dae_example/#Mass-Matrix-Differential-Algebraic-Equations-(DAEs))
5664
to arrive at code for simulating the model:

0 commit comments

Comments
 (0)