I ran into this question while preparing for an exam:
Let f : [1, 3] → [0, 2] be the function defined by f(x) = ln x for all x ∈ [1, 3]. Determine whether or not this function is injective and whether or not it is surjective
I understand what injective (one-to-one) and surjective (onto) are but I don't know where to start to show surjectivity and the specified range is confusing me also as I know functions alone can't be injective, bijective, or surjective as it is dependant on the range
This is my attempt so far to show injectivity but I am not sure it is correct:
y=logx is injective.
x1=x2⟹logx1=lnx2
logx1=logx2⟹x1=x2
This is the graph I obtained from desmos:

Any help would be appreciated thank you!