So, what have you done so far?

Incidentally, while I grant you that this iscalculusof variations, it really belongs in the Advanced Applied Mathematics forum. If you report your own post and ask the mods to move it, they'll do that for you. That's the correct way to move the post.