I want to show that the subspace $A\cup B$ where $A=\{(x,y);(x-1)^{2}+y^{2}=1\}$ and $B=\{(x,y);(x+1)^{2}+y^{2}=1\}$ is a deformation retract of $X=\{(x,y);x^{2}+y^{2}\leq 4\}-\{(1,0),(-1,0)\}$. For this, I define the function $H:X\times I\to X$ as follows:
$H((x,y),t)=\begin{cases}
t\frac{(x-1,y)}{\sqrt{(x-1)^2+y^2}}+(1-t)(x,y),&\text{ if }x>0\\
{(0,0)}, &\text{ if }x=0\\
t\frac{(x+1,y)}{\sqrt{(x+1)^2+y^2}}+(1-t)(x,y),&\text{ if }x<0
\end{cases}$
Is it true?
