## Calculus: Early Transcendentals (2nd Edition)

$f(x) = x^{2}$
This function passes the horizontal line test on the interval $(-\infty,0]$ but not on $(-\infty,\infty)$.