Part I Theoretical Framework -- 1 Switched Circuits. 2 Mathematical