A 2D space has coordinates $x^1$ and $x^2$ with line element
$$\mathrm{d} l^{2}=\left(\mathrm{d} x^{1}\right)^{2}+\left(x^{1}\right)^{2}\left(\mathrm{~d} x^{2}\right)^{2}.$$
I'm looking to find the metric tensor and its dual metric. I understand the basics of summing over $g_{ij}$ for $n=2$ and using the Kronecker delta but the second non $dx^1$ term is tripping me up. I don't know how to use it in summing as its not a derivative.