Sports car racing is a form of motorsport which uses sports car prototypes.The competition is held on special tracks designed in various shapes.

The equation of a sports car racing track is given as: \[ f(x)= \begin{cases} x^4-4x^2+4, & 0\leq x<3,\\ x^2+40, & x\geq 3 \end{cases} \] Based on this information: