Thank you. If I want to calculate the output impedance, I have to off the input signal, yet there are still 2 dc supplies ,one to gate-source, another is the $V_cc$ , and there should be current pass though , but my book said $g_mV_{gs}$ =0?
From the picture you gave,