I have an objective function:
$$O(x_1, x_2, x_3, x_4) = \int_{T_1}^{T_2} \sqrt{F_1(t)^2 + F_2(t)^2} dt$$ , where
$$F_1(t) = x_1a_1(t) + x_2a_2(t) $$ and $$F_2(t) = x_3a_1(t) + x_4a_2(t). $$
$a_1(t)$ and $a_2(t)$ are known functions.
I'd like to obtain $\mathbf{x} = [x_1, x_2, x_3, x_4]^T$ that maximizes $O$ with constraints $$ x_1^2 + x_2^2 \leq k $$ $$ x_3^2 + x_4^2 \leq k $$
How can I approach this problem? Any hint would be appreciated.