I had this doubt while going through the book "Design of Analog CMOS Integrated Circuits" by B. Razavi, if we are to plot \$g_m\$ vs \$V_{in}\$ for the above circuit, then we have \$g_m\$ =0 till \$V_{in}\$ crosses the threshold voltage(\$V_t\$). Now, the MOSFET enters the Saturation region directly, and we have \$g_m=k(V_{in}-V_{t})\$ that gives \$g_m\$ to be directly proportional to \$V_{in}\$. My main problem arises is when the MOSFET leaves the saturation region and enters the triode region. We'll have \$g_m=k(V_{ds})\$ which has no term of \$V_{in}\$ in it. How do I go on analysing the circuit in the triode region? What will the final relation on graph look like?
The book provides as the solution, I didn't quite get the solution provided in the book (on page 49). Any insights would help.