Einstein field equations

Coming from Einstein--Hilbert action.
We have

Rab12gabR=8πGNTμν

The left hand side comes from the "curvature part" of the Lagrangian, and the right hand side from the "matter part" of the Lagrangian.
If we add the cosmological constant to the Lagrangian we have

Rab12gabR+Λgab=8πGNTμν