TD-DFT extends the principles of DFT by incorporating a time-dependent external potential. The Kohn-Sham equations are modified to include time-dependent terms, allowing the calculation of excited-state properties. The core idea is to map a complex interacting electron system to a simpler non-interacting system with the same time-dependent electron density, making it computationally feasible to solve.