Show that a map $\xi$ between smooth manifolds $M$ and $N$ is smooth if and only if $f ◦\xi$ is a smooth function on $M$ whenever $f$ is a smooth function on $N$.
One implication is clear because I can use that composition of smooth functions is smooth, but I'm having trouble with the converse and I don't know what to do. I would appreciate your help. Thank you!!
You can construct a counterexample such as $\xi$ be any function and $f : x \mapsto 1$. Clearly $(f \circ \xi) (x) = 1$ is smooth but $\xi$ doesn't have to be smooth.
However, as pointed out in the comments, if you mean that the problem is to show that : if $\forall f \in C^{\infty}(N), f \circ \xi \in C^{\infty}(M)$ implies $\xi$ is smooth, i think this is true. We can prove this by choose $f$ to be particular the projection maps. Let $(U,\varphi)$ contain $p$ and $(V,\psi)$ contain $\xi(p)$ be smooth charts on $M$ and $N$ respectively. The representation of $f \circ \xi$ is \begin{align} f \circ \xi \circ \varphi^{-1}(x^1,\dots,x^n) &= (f \circ \psi^{-1}) \circ (\psi \circ \xi \circ \varphi^{-1})(x^1,\dots,x^n)\\ &= \hat{f}(\xi^1(x^1,\dots,x^n),\dots,\xi^m(x^1,\dots,x^n)) \end{align}
then we can choose $f$ so that $\hat{f} = f \circ \psi^{-1}$ are the projection maps. So we have $\xi^i(x^1,\dots,x^n)$ is smooth for all $i =1,\dots,m$ by hypothesis. Therefore $\xi$ is smooth.