Suppose $X_1,...X_n$ is a random sample from $X$~$N(\mu,\sigma^2)$, with $\sigma^2$ unknow. If $$[\overline{X}+z_{a_2}\frac{\sigma}{\sqrt{n}};\overline{X}-z_{a_1}\frac{\sigma}{\sqrt{n}}]$$ is a confidence interval for $\mu$ where $a_1+a_2=a$ and $z_w$ is such that $P(X\leq z_w)=w$ where $Z$~$N(0,1)$. Show that the length of the invertal is shortest when $a_1=a_2=\frac{a}{2}$
I know that the lenght of interval $L$ is $$\overline{X}-z_{a_1}\frac{\sigma}{\sqrt{n}}-(\overline{X}+z_{a_2}\frac{\sigma}{\sqrt{n}})=-\frac{\sigma}{\sqrt{n}}(z_{a_1}+z_{a_2})$$
First I have that $$P(\overline{X}+z_{a_2}\frac{\sigma}{\sqrt{n}}\leq\mu\leq\overline{X}-z_{a_1}\frac{\sigma}{\sqrt{n}})=1-\alpha$$ developing this I have that $$\phi(z_{a_1})+\phi(z_{a_2})=\alpha$$
Suppose that $f(z_{a_1},z_{a_2})=z_{a_1}+z_{a_2}$
and that the condition I have is $g(z_{a_1},z_{a_2})=\phi(z_{a_1})+\phi(z_{a_2})=\alpha$
Now I have that $$(1)f_{z_{a_1}}=\lambda g_{z_{a_1}} \Leftrightarrow 1=\lambda\frac{dg}{dz_{a_1}}\phi(z_{a_1})$$ $$(2)f_{z_{a_2}}=\lambda g_{z_{a_2}} \Leftrightarrow 1=\lambda\frac{dg}{dz_{a_2}}\phi(z_{a_2})$$ $$(3)g(z_{a_1},z_{a_2})=\phi(z_{a_1})+\phi(z_{a_2})=\alpha$$
Making $(1)-(2)$ $$(4)\lambda[\frac{dg}{dz_{a_1}}\phi(z_{a_1})-\frac{dg}{dz_{a_2}}\phi(z_{a_2})]=0$$
$(4)$ is valid if $\lambda=1$ and $\frac{dg}{dz_{a_1}}\phi(z_{a_1})=\frac{dg}{dz_{a_2}}\phi(z_{a_2})$, from this I have that
$$\phi(z_{a_1})+\phi(z_{a_2})=\phi(z_{a_1})+\phi(z_{a_1})=a_1+a_1=2a_1=\alpha\Rightarrow a_1=\frac{\alpha}{2}$$ and similary $a_2=\frac{\alpha}{2}$