The action is then: . The must be lorentz invariant.
For a free particle, you get: :
So . Integration by parts gives: so This is a second order differential equation for . Using you can get: which is a simpler equation to solve.