I'm trying to place some equations inside a table using the following code:
\documentclass[a4paper]{article}
\begin{document}
\begin{tabular}{ |p{0.5cm}||p{3.5cm}|p{3.8cm}|p{3.1cm}|p{3.6cm}| }
\hline
$Y_{ \textcolor{red}{l}, \textcolor{blue}{m} }$& \textcolor{blue}{0}& \textcolor{blue}{1}& \textcolor{blue}{2}& \textcolor{blue}{3}\\
\hline
\textcolor{red}{0} & $\frac{1}{2} \sqrt{ \frac{1}{\pi} }$ &- &- & - \\
\hline
\textcolor{red}{1} & $\frac{1}{2} \sqrt{\frac{3}{\pi}} \cos\theta$ & $-\frac{1}{2} \sqrt{\frac{3}{2\pi}} e^{i\phi}\sin\theta$ &- &- \\
\hline
\textcolor{red}{2} & $\frac{1}{4} \sqrt{\frac{5}{\pi}} (3\cos^{2}\theta - 1)$ & $-\frac{1}{2} \sqrt{\frac{15}{2\pi}}e^{i\phi}\sin\theta \cos\theta$ &$\frac{1}{4}\sqrt{\frac{15}{2\pi}}e^{2i\phi}\sin^{2}\theta$ &-\\
\hline
\textcolor{red}{3} & $\frac{1}{4}\sqrt{\frac{7}{\pi}} (5\cos^{4}\theta - 3\cos\theta)$ & $-\frac{1}{8}\sqrt{ \frac{21}{\pi} } e^{2i\phi}\sin\theta(5\cos^{2}\theta - 1)$ & $\frac{1}{4}\sqrt{ \frac{105}{2\pi} } e^{2i\phi} \sin^{2}\theta \cos\theta$ & $-\frac{1}{8}\sqrt{ \frac{35}{\pi} }e^{3i\phi} \sin^{3}\theta$ \\
\hline
\end{tabular}
\end{document}
What is get is:
What could be done to make the table:
- Fit in the page?
- Look more centered?


