[Physics] Lagrange Multipliers for Simple Pendulum

classical-mechanicsconstrained-dynamicshomework-and-exerciseslagrangian-formalismnewtonian-mechanics

Here we consider a simple pendulum that is being analyzed by Lagrange Multipliers. Shown in Fig. 1 is the pendulum of length $l$ and mass $m$. Let $U=0$ on the $x$-axis. Let the constraint equation be $f(x,y)=\ell=\sqrt{x^2+y^2}$.

                          

The Lagrangian becomes,
$$L=\frac{1}{2}m[\dot{x}^2+\dot{y}^2]-mgy\mathrm{.}$$
Applying Lagrange multipliers, we get
$$F_x=m\ddot{x}=\lambda x/l\mathrm{,}$$ and
$$F_y=m\ddot{y}=\lambda y/l -mg\mathrm{.}$$
By just comparing these results to Newton's second law, we can conclude that
$$\lambda=-T\mathrm{,}$$
and
$$\lambda=T\mathrm{.}$$

My confusion comes from the fact that one result negates the other one. I am certain I have made a mistake, but I cannot seem to find it.

Best Answer

So you should re-write your Lagrangian $\mathcal{L}$ as the following

$$ \mathcal{L} = \frac{1}{2}m(\dot{x}^2 + \dot{y}^2) -mgy + \lambda (x^2 + y^2 - l^2), $$

where the final term is your constraint equation which normally takes the form $f(x,y)=0$ or in generalised coordinates $f(q_i,t)=0$ (this is a holonomic constraint equation). So the next step is to do what you have done above. Hope you can take it from here. P.S a nice reference on how to approach the question is given here and here.

Related Question