Skip to main content
1 of 2

Find the lagrangian of a particle given the force

A particle is submitted to a time dependent force $$F(x,t)=\dfrac{k}{x^2}e^{-t/\tau}$$

Which is the Lagrangian of the particle?

I think that the force is derived from the potential $V$ and this potential has not explicit dependence of $\dot x$. So i can write
$$ \dfrac{d}{dt}\dfrac{\partial \mathcal L}{\partial \dot x} = m \ddot x$$

$$\mathcal L = T-\int \dfrac{\partial \mathcal L}{\partial x} dx$$ Then the lagrangian is $$\mathcal L = \dfrac{m}{2}\dot x^2 + \dfrac{k}{x}e^{-t/\tau}$$

Am i right?

Thanks.