Sketch a graph of $f(x)=|x^2-1|-|x^2-4|$
I thought in order to graph this function, I would try to rewrite $f$ as a piece-wise defined function. The zeros of the absolute values are at $x= \pm 1$ and $x= \pm 2$.
If $x \leq -2$ then $f(x)=x^2-1-x^2+4=3$
If $ -2<x<-1$ then $f(x)=x^2-1+x^2-4=2x^2-5$
If $ -1 \leq x \leq 1$ then $f(x)=1-x^2+x^2-4=-3$
If $ 1<x<2$ then $f(x)=x^2-1+x^2-4=2x^2-5$
if $ x \geq 2$ then $f(x)=x^2-1-x^2+4=3$
My problem is that equation $2$ and $4$ didn't match up when I went to graph it with a calculator. Was this the correct approach or would there be a better way for this particular function.
