I am just being introduced to Riemannian metrics, and I am having a bit of confusion on the notation. When reading, I've encountered some different notation in different sources, so I want to make sure I'm understanding what the different notation means. I'm sure there are lots of misunderstandings in what follows, so I'd appreciate if someone could correct them.
Say for example we have $\mathbb{R}^2$ in canonical coordinates, and we're going to use the usual dot product $\langle x,y \rangle = x_1y_1 + x_2y_2$, where $x=(x_1,x_2)$ and $y=(y_1,y_2)$. Then the Riemannian metric would be the $2 \times 2$ identity matrix, so that $$\begin{pmatrix} x_1 & x_2 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} y_1 \\ y_2 \end{pmatrix} = x_1y_1+x_2y_2,$$ so $g_{ij} = \delta_{ij}$. This notation makes sense to me, but I am confused about the notation $g = dx^2+dy^2$. Do $dx$ and $dy$ denote linear functionals in the dual space? And if they do, then is $dx = \begin{pmatrix} 1 \\ 0 \end{pmatrix}$ and $dy = \begin{pmatrix} 0 \\ 1 \end{pmatrix}$? This doesn't seem right, because the dimensions of the matrices wouldn't come out correctly.
Then say we want to convert this to polar coordinates, so $x=r \cos \theta$ and $y=r \sin \theta$. Then do we have $$g = \begin{pmatrix} 1 & 0 \\ 0 & r^2 \end{pmatrix} = dr^2 + r^2 d \theta^2?$$ Then to get the inner product, we would do $$\begin{pmatrix} r_1 & \theta_1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & r^2 \end{pmatrix} \begin{pmatrix} r_2 \\ \theta_2 \end{pmatrix} = r_1r_2 + r^2 \theta_1 \theta_2?$$ If this is correct, then what does the $r^2$ in the metric represent in the calculation? Is it the $r$ that corresponds to the point at which we're defining the metric? Like, if we wanted $\langle v,w \rangle$ where $v = (3,\pi/2)$ and $w = (5,\pi/4)$, what does the expression $$\langle v,w \rangle = 3 \cdot 5 + r^2 \cdot \dfrac{\pi}{2} \cdot \dfrac{\pi}{4}$$ mean, intuitively?
Thanks in advance for the help.
P.S. Other examples, or links to well-explained other examples would be much appreciated.