TeX source:
\begin{array}{rclll}f(x) &=& \dfrac{1}{2}x^4-3x^2+1 \cr\cr f\left(-\sqrt{3}\right) &=&\dfrac{1}{2}\cdot\left(-\sqrt{3}\right)^4-3\cdot \left(-\sqrt{3}\right)^2+1 &=& -\dfrac{7}{2} \cr\cr f\left(0\right) &=&\dfrac{1}{2}\cdot0^4-3\cdot 0^2+1 &=& 1 \cr\cr f\left(\sqrt{3}\right) &=&\dfrac{1}{2}\cdot\sqrt{3}^4-3\cdot\sqrt{3}^2+1 &=& -\dfrac{7}{2} \end{array}