where the indices i, j represent inactive orbitals and indices t, u, v, w represent active orbitals. As the first three terms of this equation can be built trivially, we now focus on the last term. First, a resolution of identity is inserted into the last term of this equation to give: