I'm trying to write a matrix that contains two items with a fraction inside of it. I see that the matrix output is pretty strange because the rows and columns are not spaced with the same scale.
Besides of that, the fraction seems to take up too much space, and I have tried to reduce the font with size commands, but it seems they don't work in math mode. The code I wrote is the following:
\begin{align*}
Q= \begin{pmatrix}
\dfrac{1}{\Delta \alpha^2_{\mathrm{max}}} & 0 & 0 & 0\\
0 & 0 & 0 & 0\\
0 & 0 & 0 & 0\\
0 & 0 & 0 & \dfrac{1}{\Delta h^2_{\mathrm{max}}}
\end{pmatrix}
\end{align*}
And the output is the following:
Any ideas to improve the output?


