I am a beginner in differential geometry and I am reading chapter 1 of Differential Geometry of Loring Tu. For a smooth manifold $M$, a Riemannian metric on $M$ is an assignment that assigns $p\in M$ to an inner product on $T_pM$, such that for any smooth vector fields $X,Y$ on $M$, the map $p\mapsto \langle X_p,Y_p \rangle$ is a smooth function on $M$.
Let $(M,\langle,\rangle_M)$ be a Riemannian manifold and $N$ be a submanifold. Then for each $p\in N$, $T_pN$ is a subspace of $T_pM$, so we can naturally define a Riemannian metric on $N$ by letting $\langle v,w\rangle_N=\langle v,w\rangle_M$ for $v,w\in T_pN, p\in N$. But how can we show that this Riemannian metric on $N$ satisfy the smoothness condition? I.e., for any smooth vector fields $X,Y$ on $N$, how can we show the map $p\mapsto \langle X_p,Y_p \rangle$ is a smooth function on $N$?