Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2001/iii/paper-68/3/c/solution

Although connection coefficients are not tensor components, their variation is tensorial: the difference of affine connections is a tensor. Varying the Levi-Civita connection at fixed coordinates gives
In the paper's curvature sign convention, varying the derivative and quadratic-connection terms and grouping them into covariant derivatives gives the Palatini identity
One may verify the grouping in normal coordinates at a point, where the affine connection vanishes and the expression is just the difference of two partial derivatives; both sides are tensors, so it holds in every coordinate frame. Reversing the definition of the Riemann curvature tensor reverses this identity's right-hand side.
For completeness, put and . The contracted variation uses and . After two integrations by parts,
up to the discarded boundary term. Substituting gives the differentiated-scalar terms in the metric variation of a scalar-curvature coupling.

New to topics? Read the docs here!