The correct option is B f:[0,π]→[−1,1],f(x)=cosx
A function is called onto iff, Range= co-domain.
A. In [0,π], Range of sinx is [0,1]⇒ Not onto.
B. In [0,π], Range of cosx is [−1,1]=co-domain ⇒onto function.
C. Range of ex is (0,∞)≠ co-domain.
D. Range of x3 is not R, since x∈Q