I am not sure how to approach the following problem:
Show the open interval $(a,b)$ is bijective with the closed interval $[c,d]$.
I was thinking of using $a+u$ where $u$ is a really small number and $b+v$ where $v$ is a really small number to make a new interval $[a+u, b-v]$, which is equivalent to (a,b).
List all rationals on $(a,b)$ say, $\{r_n:n=1,2,\dotsc\}$. Let $r_{-1}=a$ and $r_0=b$. Fist define a map $\varphi:(a,b)\to [a,b]$ as follows:
$\varphi(x)= x$, if $x$ is irrational and $\varphi(r_n)=r_{n-2}$, for each $n=1,2,\dotsc$. Clearly $\varphi$ is a bijection.
Also define a map $\psi:[a,b]\to [c,d]$ by $\psi(x)=\left(\dfrac{d-c}{b-a}\right)x+\left(\dfrac{bc-ad}{b-a}\right)$. Then also $\psi$ is a bijection. Clearly the composition map $f=\psi\circ\varphi:(a,b)\to [c,d]$ is the required bijection.