Let $f:\mathbb{R}^n \rightarrow \mathbb{R}^m$
Let $M:=\{(x,f(x))\in \mathbb{R}^{n+m}:x\in \mathbb{R}^m\}$
Claim is that $M$ is a smooth manifold if and only if $f$ is a smooth function.
My attempt:
Proof$:(\Leftarrow)$
Assume $f$ is a smooth function. $M$ is a graph.
Fix a point $c\in M$. By definition $c=(x,f(x))$ for some $x\in \mathbb{R}^m$
Set $U:=\mathbb{R}^m$
Set $V:=\mathbb{R}^{m+n}$
Set $h:V \rightarrow U$. $h$ is smooth because it is linear.
$$(x,y)\in \mathbb{R}^m \times \mathbb{R}^n \mapsto h(x,y)=x$$
The inverse is $g: U \rightarrow V$
$$x \mapsto (x,f(x))$$ Is smooth by assumption.
$h \circ g= id$ (Since it is a function composed with its inverse)
$g \circ h= id$ (Since it is a function composed with its inverse)
Therefore $h$ is bijective.Thus $M$ is a smooth manifold.
$(\Leftarrow)$
Assume $M$ is a smooth manifold... Not sure where to go from here...