Hey from my notes in my PS book it seems I have solved this some time in the past, but I cannot seem to get the indices straight this time around. So in deriving the Feynman photon-propagator which includes a general parameter $\xi$ (see PS equation 9.58 page 297) PA find the solution of the following equation
$${\large[}-k^2g_{\mu\nu}+\underbrace{(1-\xi^{-1})}_{-\chi}k_\mu k_\nu{\large]}\tilde{D}_F^{\nu\rho} = \mathrm{i}\delta_\mu^{\rho}\tag{9.57b}$$
I try to rewrite this as $$ {\large[}g_{\mu\nu}+\chi \frac{k_\mu k_\nu}{k^2}{\large]}\tilde{D}_F^{\nu\rho} = \frac{-\mathrm{i}}{k^2+\mathrm{i}0}\delta_\mu^{\rho}$$
and then try to find the inverse of
$${\large[}g_{\mu\nu}+\chi \frac{k_\mu k_\nu}{k^2}{\large]}$$
by using the identity for matrices
$$\tag{$\star$}(A+B)^{-1} = A^{-1} - \frac{1}{1+g}A^{-1}BA^{-1}$$
where $g= \mathrm{tr}(BA^{-1})$ (see this MSE answer).
As suggested in this related Phys.SE post, one can simply write the most general expression (respecting the symmetries of the theory) for $\tilde{D}_F^{\mu\nu} = Ag^{\mu\nu}+B k^\mu k^\nu$, plug into equation $(9.57\mathrm{b})$ and find the functions $A$ and $B$.
But the question remains whether one can use a theorem from linear algebra such as $(\star)$ above? What trace should one use in that case, etc?
The answer is btw the familiar Feynman photon propagator
$$\tilde{D}_F^{\mu\nu}(k) = \frac{-\mathrm{i}}{k^2+\mathrm{i}0} {\large[}g^{\mu\nu}-(1-\xi) \frac{k^\mu k^\nu}{k^2}{\large]}.\tag{9.58}$$