VariationalMethods`
VariationalMethods`

# EulerEquations

EulerEquations[f,u[x],x]

returns the EulerLagrange differential equation obeyed by u[x] derived from the functional f, where f depends on the function u[x] and its derivatives, as well as the independent variable x.

EulerEquations[f,u[x,y,],{x,y,}]

returns the EulerLagrange differential equation obeyed by u[x,y,].

EulerEquations[f,{u[x,y,],v[x,y,],},{x,y,}]

returns a list of EulerLagrange differential equations obeyed by u[x,y,],v[x,y,],.

# Examples

open allclose all

## Basic Examples(2)

The Euler equations for the arc length in two dimensions yields a straight line:

A simple pendulum has the Lagrangian :

The solution to the pendulum equation can be expressed using the function JacobiAmplitude:

## Scope(4)

The Lagrangian of a point particle in two dimensions has two dependent variables, and yields Newton's equations:

The Lagrangian of a point particle in two dimensions with a central potential:

Second- and higher-order derivatives may be included in the integrand. A Lagrangian for motion on a spring using higher-order terms:

The integrand has several independent variables:

The Euler equations yield Laplace's equation:

## Applications(3)

The Euler equations for the integrand :