I try to solve the following problem:For each $a\in \mathbb{R}$, let $M_a$ be the subset of $\mathbb{R}^2$ defined by $$ M_a=\{(x,y):y^2=x(x-1)(x-a)\}.$$ For which values of $a$ is $M_a$ an embedded submanifold of $\mathbb{R}^2$? For which values can $M_a$ be given a topology and smooth structure making it into an immersed submanifold?
My attempt: Let $F(x,y)=y^2-x(x-1)(x-a)$ so that $M_a=F^{-1}(0)$.\ Then $DF(x,y)=[-(3x^2-(2a+2)x+a)~~ 2y]$. Therefore, $0$ is a regular value of $F$ unless there is a point $(x,y)$ such that $$y=0,3x^2-(2a+2)x+a=0 ~\text{and}~ F(x,y)=-x(x-1)(x-a)=0.$$ In this case, $-x(x-1)(x-a)=0$ implies that $x=0$ or $x=1$ or $x=a$.\ When $x=0$, $3x^2-(2a+2)x+a=0$ implies that $a=0$. When $x=1$, $3x^2-(2a+2)x+a=0$ implies that $a=1$. The case $x=a$ gives the above values. Thus we have the following cases to consider: Case 1: $a=0, (x,y)=(0,0)$. When $a=0$, the point $(0,0)$ is local minimum of $F$, so $(0,0)$ is an isolated point of $M_0$, and hence $M_0$ can not be an embedded or immersed submanifold. my difficulty is in the following case: Case 2: $a=1, (x,y)=(1,0)$. when $a=1$, the point $(1,0)$ is saddle point of $F$, and thus the curve $M_1$ is self-intersecting at $(1,0)$. In such cases I saw examples saying it can not be an embedded submanifold but by giving an appropriate topology and smooth structure we can make $M_1$ an immersed submanifold of $\mathbb{R}^2$. My difficulty is to justify how it cannot be embedded submanifold, and how we define the topology and smooth structure to make it immersed submanifold. Clearly for $a\neq 0$ and $a\neq 1$, $M_a$ is an embedded submanifold.