In general relativity, if there is a line element of the form $$ds^2 = [f(u, v)]du^2 + [h(u, v)]dvdu + [w(u, v)]dv^2$$ which I believe corresponds to metric coefficients $$g_{00} = f(u, v)$$ $$g_{01} = \frac{1}{2}h(u, v)$$ $$g_{10} = \frac{1}{2}h(u, v)$$ $$g_{11} = w(u, v)$$ Does one have to 'guess' a coordinate transformation which diagonalizes this matrix and then rescale it to a Minkowski metric to show we are in a locally flat spacetime, around a given point $P$? Is there not a more systematic way than just guessing a transformation? Is it necessary to work through and find the eigenvalues and eigenvectors?
I have also seen some answers which refer to Taylor-expanding the metric around a given point $P$ w.r.t some coordinate transformation such as $$g_{ij} = g_{ij}(P) + \frac{\partial g_{ij}(P)}{\partial x^k} + \frac{1}{2}\frac{\partial \partial g_{ij}}{\partial x^l \partial x^k} + ...$$ where I'm assuming $x^k$ is another coordinate, but again this seems to require guessing the correct transformation and hoping for the best, which seems like it could take a long time if you have nasty functions in your metric.
Does the Taylor expansion need to be with respect to another coordinate by using some transformation or do we just expand each component in the metric around a given point?