Recall that the closed interval $[a,b]$={$x \in \mathbb{R} \vert a\le x \le b$}
prove that $\vert [2,5] \vert = \vert [-2,3] \vert$
(cardinality of [a,b] not absolute value)
proof: define $f:[2,5] \rightarrow [-2,3]$ by $f(x)=c+ \frac{d-c}{b-a} (x-a)=-2+ \frac{5}{3}(x-2)$
show that $f$ is injective:
let $a,b \in [2,5]$ such that $f(a)=f(b)$
then
$-2+\frac{5}{3}(a-2)=-2+\frac{5}{3}(b-2)$
$\frac{5a-10}{3}=\frac{5b-10}{3}$
$\frac{5a}{3}=\frac{5b}{3}$ $\rightarrow$ $a=b$
so f is injective.
now when i try to show that f is surjective, i let $y\in [-2,3]$
then if $x\in [2,5]$ such that $x=\frac{3(y+2)+10)}{15}$
we see that $f(x)=-2+\frac{5}{3}((\frac{3(y+2)+10}{15})-2)$
basically trying to show that this simplifies to $f(x)=y$ and hence is surjective, was gettng way too tedious and wasnt looking very promising. Can someone please show me where I went wrong here?