In my text the definition of a differential manifold is given as follows:
A subset $M$ of $\mathbb{R}^n$ is a $k$ dimensional manifold if $\forall x \in M$ there are open subsets $U$ and $V$ of $\mathbb{R}^n$ with $x \in U$ and diffeomorphism $f$ from $U$ to $V$
such that
$f(U ∩ M) = \{y \in V: y^{k+1} =...=y^n = 0\}$
Thus a point $y$ in $im(f)$ has representation $y = (y^1(x), y^2(x),...,y^k(x), 0 ...0)$
There are too many sets going on at the same time I am totally lost. Can someone motivate this definition through a simple example? i.e. showing that a line is a 1D manifold in 1D, 2D spaces
$\newcommand{\Reals}{\mathbf{R}}$Let $k$ and $n$ be non-negative integers with $k \leq n$. The simplest example of a $k$-manifold in $\Reals^{n}$ is \begin{align*} M = \Reals^{k} &= \{(y^{1}, \dots, y^{n}) \text{ in } \Reals^{n} : y^{k+1} = \dots = y^{n} = 0\} \\ &= \{(y^{1}, \dots, y^{k}, 0, \dots, 0) : \text{$y^{i}$ real for each $i = 1, \dots, k$}\}. \end{align*} If $y \in M$ and $U$ is an arbitrary open neighborhood of $y$, the identity map from $U$ to $V = U$ satisfies the definition.
To unravel the definition in general, it's probably easier to look at it backward: Suppose you have a diffeomorphism $\phi$ defined in some open ball $V$ centered at the origin $0$ in $\Reals^{n}$. The set $M = \phi(V \cap \Reals^{k})$ is a $k$-dimensional submanifold of $\Reals^{n}$. Why? Because if we put $U = \phi(V)$ and $f = \phi^{-1}$, then $U$ is an open neighborhood of each point of $M$, and $f:U \to V$ is a diffeomorphism such that $$ f(U \cap M) = V \cap \Reals^{k} = \{y \text{ in } V : y^{k+1} = \dots = y^{n} = 0\}. $$ (Such a diffeomorphism $\phi$ is called a (local) parametrization of $M$; a diffeomorphism $f$ as in the definition is a (local) coordinate system on $M$.)
So why is the definition "stated backward"? In practice, you usually have a set $M$ in mind, not a parametrization whose image is of interest. If you start with a set $M$, the natural question to ask is, "If $x$ is an arbitrary point of $M$, does there exist a parametrization of some open neighborhood of $x$ in $M$?" When you make this notion precise, you've got your book's definition.
What this means is, if you have some "favorite" diffeomorphisms, you can write down lots of manifolds. You don't have any favorites? Allow me to suggest some. :)
Let $V \subset \Reals^{k}$ be a non-empty open set, and let $g:V \to \Reals^{n-k}$ be a smooth mapping. The graph of $g$, $$ \Gamma_{g} = \{(x, y) \text{ in } V \times \Reals^{n-k} : y = g(x)\} $$ is a smooth $k$-dimensional submanifold of $\Reals^{n}$. To see why, write $g(x^{1}, \dots, x^{k}) = (y^{1}, \dots, y^{n-k})$. The mapping $\phi:V \times \Reals^{n-k} \to V \times \Reals^{n-k}$ defined by $$ \phi(x^{1}, \dots, x^{n}) = (x^{1}, \dots, x^{k}, x^{k+1} + y^{1}, \dots, x^{n} + y^{n-k}), \qquad x \in V \times \Reals^{n-k} $$ is a diffeomorphism parametrizing the graph. (If $k = 1$ and $n = 2$, we have $\phi(x^{1}, x^{2}) = \bigl(x^{1}, x^{2} + g(x^{1})\bigr)$. Be sure you understand the geometric effect of this mapping.) Points to check: $\phi$ is smooth, bijective, and has smooth inverse; the image of $V \cap \Reals^{k}$ is $\Gamma_{g}$.
One more item should be mentioned, since your definition of "manifold" is not the "intrinsic" definition used in more advanced courses.
Theorem: Let $W$ be a non-empty open subset of $\Reals^{k}$. If $g:W \to \Reals^{n}$ is smooth, proper, bijective to its image, and if the differential $Dg$ has maximal rank $k$ at each point of $W$, then the image $M = g(W)$ is a $k$-dimensional submanifold of $\Reals^{n}$.
(A mapping is proper if the preimage of every compact set is compact. This condition prevents phenomena such as wrapping an open interval to make a figure-8, or having a curve wind around on itself like a "line of irrational slope" on a torus.)
The proof entails showing that $g$ followed by some projection to a $k$-dimensional coordinate subspace is a diffeomorphism between open subsets of $\Reals^{k}$ (easy linear algebra), then extending $g$ to some open neighborhood $V$ of $W$ in $\Reals^{n}$ (clever, but natural in retrospect), and finally invoking the inverse function theorem ("the vice grips of multivariable calculus") to guarantee that the extended mapping is a diffeomorphism on some open set (possibly smaller than $V$).