Question: Does there exist a routine for minimizing an energy functional?

Is there a maple routine or sequence of routines to minimize an energy functional (scalar energy with a function as an argument)?

I'd like to avoid applying calculus of variations/integration by parts by hand.

For example, I'm looking for something like:

E := int(diff(f(x),x)^2,x=0..1);
bc := f(0) = 0, f(1) = 1;
minimize(E,bc);

whose result would be:

       f(x) = x

Is there a way to use dsolve to do this?

Please Wait...