The area of a circle is a function of its radius. This function is injective, because if the area of a circle of radius
\(r\) is equal to the area of a circle of radius
\(r'\text{,}\) we must have
\(r = r'\text{.}\) This function is not surjective, when viewed as a function from
\(\RR_{> 0}\) to
\(\RR\text{,}\) since there is no radius that would give rise to area
\(-1\text{.}\) When we restrict the codomain to
\(\RR_{>0}\text{,}\) this function is surjective since we can construct a circle for any given area.