Problem 9.1.1
Derive the Einstein equations in the presence of the cosmological constant by variation of the gravitational field action with the additional term \[S_\Lambda=-\frac{\Lambda}{8\pi G} \int\sqrt{-g}\;d^4x.\]
To obtain the Einstein equations in the presence of the cosmological constant one should set \[\delta \left( S_g + S_m + S_\Lambda \right) = 0,\] where $S_g $ and $S_m$ are actions for gravitational field and matter respectively (see chapter 2). Proceeding the same way as in the latter, one obtains \[\delta S_\Lambda = - \frac{\Lambda}{16\pi G} \int d^4 x\sqrt { - g}\; g^{\mu \nu }\delta g_{\mu\nu} = \frac{\Lambda}{16\pi G}\int d^4 x\sqrt { - g}\; g_{\mu \nu } \delta g^{\mu \nu }. \] Then \[R_{\mu \nu } - \frac12g_{\mu \nu } R = 8\pi GT_{\mu \nu } + \Lambda g_{\mu \nu }.\]