A Lagrangian is a function or density whose stationary integral encodes an extremization problem. In Lagrangian mechanics its action gives the equations of motion; in geometry it describes geodesics and minimal surfaces.
A finite-dimensional optimization Lagrangian combines an objective function with Lagrange multiplier terms for its constraints.
New to topics? Read the docs here!