Question:
let $\theta_{1},\theta_{2},\cdots,\theta_{n}\ge 0$,and such $$\theta_{1}+\theta_{2}+\theta_{3}+\cdots+\theta_{n}=\pi$$
find the maximum of value, $P(n)$, of $$P=\sin^2{\theta_{1}}+\sin^2{\theta_{2}}+\cdots+\sin^2{\theta_{n}}$$
Find the closed $P(n)$
I found this
when $n=2$ then $$P=\sin^2{\theta_{1}}+\sin^2{\theta_{2}}=1-\dfrac{1}{2}(\cos{2\theta_{1}}+\cos{2\theta_{2}})=1-\cos{(\theta_{1}+\theta_{2})}\cos{(\theta_{1}-\theta_{2})}=1+\cos{(\theta_{1}-\theta_{2})}\le 2$$ when $\theta_{1}=\theta_{2}=\dfrac{\pi}{2}$. so $$P(2)=2$$
and for general $n$,maybe have use other methods,Thank you
I guess we can prove $$P(3)=P(4)=P(5)=\cdots=P(n)?$$
Use a Lagrange multiplier to fix the constraint. It then falls out that all $\theta_i$ are the same and the rest is easy.