The problem of the mass in inclined planed solved using the Lagrangian mechanics is well known, by example on this page.
However, according to my information, method is valid for any basis and expressions of the involved concepts. Thus, if I define a 2D euclidean basis, being $x$ the horizontal distance and $y$ the heights, I can say that:
- potential energy of the mass, $V(x,y) = mgy$ (fixing $V(0,0)=0$)
- kinetic energy, $T(x,y) = T_0 + mg(y_0-y)$, being $y_0,T_0$ the values at $t=0$.
- Lagrangian, $L(x,y) = T(x,y)-V(x,y) = T_0 + mg(y_0-2y)$
- Lagrange equations: $$ \frac{\partial L}{\partial x} = 0 = \frac{d}{dt}\frac{\partial L}{\partial \dot{x}} = 0 $$ $$ \frac{\partial L}{\partial y} = -2mgy = \frac{d}{dt}\frac{\partial L}{\partial \dot{y}} = 0 $$
being both a probable error, because first one say nothing about $x(t)$ and second one implies $y(t)=0$.
Could someone say me where is the error in this development?
Remark: I'm not looking about how to solve the problem of the inclined plane using Lagrange mechanics, something easy to find in the bibliography. Please, answers must be as near as possible to this approach to the problem (this basis, these expressions for $V$ and $T$) or show why this approach is a no way, against the Lagrange postulates.
ADDENDUM:
About the expression for kinetic energy:
a) using second Law (being $\theta$ plane angle and "s" position along plane):
total force, $F=-mg\sin(\theta)\hat{s}$ where $\hat{s}=cos(\theta)\hat{x}+sin(\theta)\hat{y}$
speed, $v=(-g\sin(\theta)t+v_0)\hat{s}$
position $\mathbf{r}=(-\frac{1}{2}g\sin(\theta)t+v_0)t\hat{s}+\mathbf{r}_0$
y component of position, $y=y_0+(-\frac{1}{2}g\sin(\theta)t+v_0)t\sin(\theta)\hat{y}$
kinetic energy, $T=\frac{1}{2}m(-g\sin(\theta)t+v_0)^2=...=T_0+mg(y_0-y)$
b) by conservation of energy (where constraint forces are assumed produces no work):
$T(x,y)+V(x,y)=T(x,y)+mgy=T_0+V(x_0,y_0)=T_0+mgy_0$
$T(x,y)=T_0+V(x_0,y_0)-V(x,y)=T_0+mg(y_0-y)$