Formulating and solving the equivalence problem for Schwarzschild metric in a simple case
In connection with the digitizing in Maple 2016 of the database of solutions to Einstein's equations of the book Exact Solutions to Einstein Field Equations. I was recently asked about a statement found in the "What is new in Physics in Maple 2016" page:

In the Maple PDEtools package, you have the mathematical tools  including a complete symmetry approach  to work with the underlying [Einstein’s] partial differential equations. [By combining that functionality with the one in the Physics and Physics:Tetrads package] you can also formulate and, depending on the metrics also resolve, the equivalence problem; that is: to answer whether or not, given two metrics, they can be obtained from each other by a transformation of coordinates, as well as compute the transformation.

This question posed is a reasonable one: "could you please provide one example?" This post provides that example.
First of all the existing science behind: in my opinion, the main reference regarding the equivalence problem is at the paper "A Review of the Geometrical Equivalence of Metrics in General Relativity", General Relativity and Gravitation, Vol. 12, No. 9, 1980, by A. Karlhede (University of Stockholm). This approach got refined later by others and, generally speaking, it is currently know as the CartanKarlhede method, summarized in chapter 9.2 of the book Exact Solutions to Einstein Field Equations. whose solutions were all digitized within the Physics and DifferentialGeometry packages for Maple 2016. This method of Chapter 9.2, however, is not the only approach to the problem, and sometimes simpler methods can handle the problem faster, or just in simpler forms.
The example worked out below is actually the example from Karlhede's paper just mentioned, on pages 704  706: "Show that the Schwarzschild metric and its form written in terms of isotropic spherical coordinates are equivalent, and derive the transformation that relates them". Because this problem happens to be simple for nowadays computer algebra, below I also tackle it modified, slightly more difficult variants of it. The approach shown works for more complicated cases as well.
Below we tackle Karlhede's paperproblem using: one PDEtools command, the Physics:TransformCoordinates, the Physics:Weyl command to compute the Weyl scalars and the Physics:Tetrads:PetrovType to see the Petrov type of the metrics involved. The transformation resolving the equivalence is explicitly derived.
Start loading the Physics and Tetrads package. To reproduce the computations below, as usual, update your Physics library with the one available for download at the Maplesoft R&D Physics webpage
> 


(1) 
To formulate the problem, set first some symbols to represent the changed metric, changed mass and changed coordinates  no mathematics at this point
> 


(2) 
Set now a new coordinates system, call it Y, involving the new coordinates (in the paper they are represented with a tilde on top of the letters)
> 


(3) 
According to eq.(7.6) of the paper, the line element of Schwarzschild solution in isotropic spherical coordinates is given by
> 


(4) 
Set this to be the metric
> 

Check it out
> 


(5) 
In connection with the transformation used further below, compute now the Petrov type and the Weyl scalars for this metric, just to have an idea of what is behind this metric.
> 


(6) 
> 


(7) 
We see that the Weyl scalars are already in canonical form (see post in Mapleprimes about canonical forms): only and the important thing: it depends on only one coordinate, .
Now: we want to see if this metric (5) is equivalent to Schwarzschild metric in standard spherical coordinates
> 


(8) 
The equivalence we want to resolve is regarding an arbitrary relationship between the masses used in (5) and (8) and a generic change of variables from X to Y
> 


(9) 
Using a differential equation mindset, the formulation of the equivalence between (8) and (5) under the transformation (9) is actually simple: change variables in (8), using (9) and the Physics:TransformCoordinates command (this is the command that changes variables in tensorial expressions), then equate the result to (5), then try to solve the problem for the unknowns , and .
We note at this point, however, that the Weyl scalars for Schwarzschild metric in this standard form (8) are also in canonical form of Petrov type D and also depend on only one variable, r
> 


(10) 
> 


(11) 
The fact that the Weyl scalars in both cases ((7) and (11)) are in canonical form (only ) and in both cases this scalar depends on only one coordinate is already an indicator that the transformation involved changes only one variable in terms of the other one. So one could just search for a transformation of the form and resolve the problem instantly. Still, to make the problem slightly more general, consider instead a generic transformation for r in terms of all of
> 


(12) 
> 


(13) 
Transform the coordinates in the metric (because of having used PDEtools:declare, derivatives of the unknowns R are displayed indexed, for compact notation)
> 


(14) 
Proceed equating (14) to (5) to obtain a set of equations that entirely formulates the problem
> 


(15) 
This problem, shown in Karlhede's paper as the example of the approach he summarized, is solvable using the differential equation commands of PDEtools (in this case casesplit) in one go and no time, obtaining the same solution shown in the paper with equation number (7.10), the problem actually admits two solutions
> 


(16) 
By all means this does not mean this differential equation approach is better than the general approach mentioned in the paper (also in section 9.2 of the Exact Solutions book). This presentation above only makes the point of the paragraph mentioned at the beginning of this worksheet "... [in Maple 2016] you can also formulate and, depending on the the metrics also resolve, the equivalence problem; that is: to answer whether or not, given two metrics, they can be obtained from each other by a transformation of coordinates, as well as compute the transformation."
In any case this problem above is rather easy for the computer. Consider a slightly more difficult problem, where . For example:
> 


(17) 
Tackle now the same problem
> 


(18) 
The solutions to the equivalence between (17) and (5) are then given by
> 


(19) 
Moreover, despite that the Weyl scalars suggest that a transformation of only one variable is sufficient to solve the problem, one could also consider a more general transformation, of more variables. Provided we exclude (because there is around and that would take us to solve differential equations for , that involve things like ), and also to speed up matters let's remove the change in , consider an arbitrary change in r and t
> 


(20) 
> 


(21) 
So our transformation now involve two arbitrary variables, each one depending on all the four coordinates, and a more complicated function . Change variables (because of having used PDEtools:declare, derivatives of the unknowns R and are displayed indexed, for compact notation)
> 


(22) 
Construct the set of Partial Differential Equations to be tackled
> 


(23) 
Solve the problem running a differential elimination (actually without solving any differential equations): there are more than two solutions
> 


(24) 
Consider for instance the first one
> 


(25) 
Compute the actual solution behind this case :
> 


(26) 
The fact that the time t appears defined in terms of the transformed time involving an arbitrary constant is expected: the time does not enter the metric, it only enters through derivatives of entering the Jacobian of the transformation used to change variables in tensorial expressions (the metric) in (22).
Summary: the approach shown above, based on formulating the problem for the transformation functions of the equivalence and solving for them the differential equations using the commands in PDEtools, after restricting the generality of the transformation functions by looking at the form of the Weyl scalars, works well for other cases too, specially now that, in Maple 2016, the Weyl scalars can be expressed also in canonical form in one go (see previous Mapleprimes post on "Tetrads and Weyl scalars in canonical form"). Also important: in Maple 2016 it is present the functionality necessary to implement the approach of section 9.2 of the Exact solutions book as well.
