Frequency dependent dielectric tensors in the independent particle approximation Frequency dependent tensors in the RPA and TD-DFT Cassida’s equation for TD-DFT and TD-Hartree-Fock