From what I understand I can use the Euler-Lagrange equation to find the function ( Let us call L. ) where L can be the function as stated in the action formula.
But how difficult is it to actually derive the stationary action formula itself or is it the case that once I have he function I can always construct the action formula from first principles ?