Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/iii/paper-309/3/b/i/solution

Vary the gravitational volume factor and use part (a)(ii):
Twice applying integration by parts moves both derivatives in from the compactly supported onto . Combining the result with the stated matter variation and requiring every coefficient of to vanish gives the f(R) gravity equation
Therefore

New to topics? Read the docs here!