An NMOS transistor gate is controlled by the signal X as in Figure 1. Initially X = 0, and the capacitor was discharged to 0 V. When X is switched to logic 1 (VDD), C charges. (a) Derive an expression for the energy dissipated in the NMOS transistor when X is switched to logicShow all your steps clearly. (b) Calculate the above energy in joules, when VDD = 5 V, VmI = 1 V, and C = 100 fF(1 fF = 10−15 F). Figure 1. An NMOS circuit