Question 1
Let $\Sigma$ a surface parametrized by $X(u,v)$. Than at $p=(u,v)\in \Sigma$, the tangent plan $T_p\Sigma$ is generated by $\{X_u,X_v\}$. So any vector in $T_p\Sigma$ can be written as $aX_u+bX_v$. In particular, the scalar product on $T_p\Sigma\times T_p\Sigma$ has matrix $(g_{ij})=\begin{pmatrix}E&F\\F&G\end{pmatrix},$ where $g_{ij}=\left<X_i,X_j\right>$. Now, it's written on my course that if $ds$ is an infinitesimal length of a curve on $\Sigma$ at the neighborhood of $p$, then $$ds^2=Edu^2+2Fdudv+Gdv^2,$$ and I don't really understand where it come from.
Attempt
I think that $$ds=\frac{\partial s}{\partial u}du+\frac{\partial s}{\partial v}dv,$$ and thus $$ds^2=\left(\frac{\partial s}{\partial u}\right)^2du^2+2\frac{\partial s}{\partial u}\frac{\partial s}{\partial v}dudv+\left(\frac{\partial s}{\partial v}\right)^2dv^2,$$ but why $E=\left(\frac{\partial s}{\partial u}\right)^2$, $F=\frac{\partial s}{\partial u}\frac{\partial s}{\partial v}$ and $G=\left(\frac{\partial s}{\partial v}\right)^2$ ?
Question 2
suppose that $\Sigma$ is a graph, i.e. $\{f(x,y)\mid x,y\in D\}$. Let $z=f(x,y)$. and suppose that the plane $z=0$ is tangent to the surface. Then, we can write $$z=L\frac{x^2}{2}+Mxy+N\frac{y^2}{2},$$ and the second fundamental form at the origin in the coordinate $x,y$ is the quadric form $$Ldx^2+2Mdxdy+Ndy^2,$$ with $$L=\frac{\partial ^2f}{\partial x^2}\cdot n, \quad M=\frac{\partial^2 f}{dxdy}\cdot n,\quad N=\frac{\partial ^2f}{\partial y^2}\cdot n,$$ where $n$ is normal to the plane $z=0$. What is the motivation for such a definition ? Does it give a new metric to the space ? I don't really see what it gives.