I am asked to find the function that has the maximal area for a given length L when x runs from -a to a. I calculated the integral to be varied as follows:
$$ \int_{-a}^{a}\ y + \lambda \sqrt{1 + (\frac{dy}{dx})^2} dx $$
Where lambda is a Lagrange multiplier associated with the length constraint on the curve. After invoking Beltrami's identity I ended up with the following DE but could not figure out how to solve it:
$$ y + \lambda = C \sqrt{1+(\frac{dy}{dx})^2} $$
I would appreciate your help on this matter.
Edit: The answer given by Mathematica is as follows:
$$ \left\{\left\{y(x)\to \frac{1}{2} \left(C^2 e^{\frac{x}{C}-c_1}+e^{c_1-\frac{x}{C}}-2 p\right)\right\},\left\{y(x)\to \frac{1}{2} \left(C^2 e^{-c_1-\frac{x}{C}}+e^{c_1+\frac{x}{C}}-2 p\right)\right\}\right\} $$