If there any non-trigonometric function $$f\colon \mathbb{R} \to [-2,2]$$
The following function $f(x) = 2\sin bx$ will satisfy the above criteria. This came up for discussion with my students.
If there any non-trigonometric function $$f\colon \mathbb{R} \to [-2,2]$$
The following function $f(x) = 2\sin bx$ will satisfy the above criteria. This came up for discussion with my students.
On
You can easily make up as many piece-wise defined functions as you'd like to. For example, let $f(x)=2x^3$ if $x \in [-1,1]$, and you can assign any value from $[-2,2]$ to the other values. For example, $f(x)=-2$ if $x<-1$ and $f(x)=2$ if $x>1$.
Try $f(x) = \dfrac{4x}{x^2+1}$: