We extended the conventional Douglas-Kroll (DK) and infinite order two-component (IOTC) methods to a technique applicable to Fock matrices, called extended DK (EDK) and extended IOTC (EIOTC), respectively. First, we defined a strategy to divide the Dirac-Fock operator into zero- and first-order terms. We then demonstrated that the first-order extended DK transformation, which is the Foldy-Wouthuysen transformation for the zero-order term, as well as the second- and third-order EDK and EIOTC, could be well defined. The EDK- and EIOTC-transformed Fock matrix, kinetic energy operator, nuclear attraction operator, and density matrix were derived. These equations were numerically evaluated, and it was found that these methods were accurate. In particular, EIOTC was consistent with the four-component approach. Four-component and extended two-component calculations are more expensive than non-relativistic calculations due to small-component-type two-electron integrals. We developed a new approximation formula, RIS-V, for small-component-type two-electron integrals, including the spin-orbit interaction between electrons. These results suggest that the RIS-V formula effectively accelerates the four-component and extended two-component methods.