場合分け(cases)

<img src="http://www.forkosh.com/mathtex.cgi?f(x)=\left | x^2-4 \right |" /> 

は絶対値を使わないで、次のように表せる。

<img src="http://www.forkosh.com/mathtex.cgi?
f(x))= \begin{cases} x^2-4, & \text{if \;} x>2 \text{\; or \;} x<-2\\
0, & \text{if \;} x=2 \text{\; or \;} x=-2\\
-x^2+4,& \text{if \;} -2 < x < 2 \text{.} \end{cases}
" />