Reference: Moore, Thomas A., A General Relativity Workbook, University Science Books (2013) – Appendix.
In the appendix to Moore’s book, he gives some worksheets which can be used to calculate Christoffel symbols and the Ricci tensor for a general diagonal metric. I thought it would be useful to show where these formulas come from.
The key to calculating Christoffel symbols is to compare two forms of the geodesic equation. Suppose our diagonal metric is
where and are positive functions of the coordinates. Note the minus sign in the first term; this ensures that is a time coordinate.
The two forms of the geodesic equation are
and in terms of the Christoffel symbols:
For a diagonal metric, 2 becomes (no sum over ):
Therefore, for we have, using the notation :
Dividing through by we get
We can now compare this term by term with 3 to read off the Christoffel symbols :
and so on. The off-diagonal symbols such as are obtained from the term, remembering that each term in the sum contributes to two Christoffel symbols. For example
The complete worksheet for the Christoffel symbols and Ricci tensor is available as a PDF from Moore’s website.