According to my notes the embedding is defined like this:
Let M and N be differentiable manifolds, and [tex]f:M\to N[/tex] a smooth ([tex]C^{\infty}[/tex]) mapping. If for all [tex]p\in M[/tex] the tangent space mapping [tex]f_{*p}:T_p(M)\to T_{f(p)}(N)[/tex] is injective, and [tex]f:M\to f(M)[/tex] is a homeomorphism when [tex]f(M)[/tex] has the induced topology from N, then [tex]f[/tex] is an embedding of M in N.
If we set the natural differentiable structures on [tex]\mathbb{R}[/tex] and [tex]\mathbb{R}^2[/tex], then a mapping
[tex]f:\mathbb{R}\to\mathbb{R}^2,\quad\quad f(x)=(x, (x^2)^{1/3})[/tex]
is not an embedding, because it is not smooth at origo.