I'm trying to minmize a particular functional which depends on a curve with fixed endpoints which lies below a fixed line in $\mathbb{R}^2$. Here are the details:

Let $(r(\theta), \theta)$ be a smooth segment of a curve in polar coordinates satisfying the following for $0 < \theta_1, \theta_2 < \pi$.

1) $r(\theta_i) \sin (\theta_i) = \lambda$ for $i=1,2$ where $\lambda$ is a fixed constant.

2) $r(\theta) \sin(\theta) \leq \lambda$ for all $\theta \in [\theta_1, \theta_2]$.

Thus $(r(\theta),\theta)$ is a curve which touches the line $y=\lambda = $ constant at its two endpoints and lies beneath this line for all other value of $\theta$. Let $\mathcal{A}$ denote the class of curves $(r(\theta),\theta)$ satisfying conditions $1)$ and $2)$. Then consider the maximization problem:

$\max_{ (r,\theta) \in \mathcal{A} } \int_{\theta_1}^{\theta_2} \frac{1}{\sin^2(\theta) \sqrt{1+(\dot r/r)^2} } d\theta$.

Geometrically speaking, the above can be written as $\int_{\theta_1}^{\theta_2} \frac{d\theta}{dS} \frac{r^2}{\sin^2(\theta)} d\theta$, which makes it appear as a sort of inverse perimeter problem. Clearly the curve would like to follow the trajectory of a circle, but due to the constraint it cannot do this everywhere. My suspicion is that the solution should be attained by $r(\theta) = \frac{\lambda}{\sin \theta}$ but it's not clear that it would not be favorable for the curve to descend below this line if it can follow the path of a circle for some rangle of angle.

If this type of problem is known then references would also be appreciated.