I have difficulties calculating the gain of a degenerated common-source stage, with the output resistance of the MOSFET taken into account. I came up with the SS-model below. I calculated the following:
The gain is defined as \$ A = \frac{v_{out}}{v_{in}} \$, whereas \$ v_{in} = v_1 + v_s \$. I started writing an expression for the current.
\$ i = g_m v_1 + \frac{v_{out} - v_s}{r_{ds}}\$
Next I used that expression to solve for \$ v_{out} \$.
\$ v_{out} = g_m v_1 R_d+ \frac{R_d}{r_{ds}} v_{out} - \frac{R_d}{r_{ds}} v_{s} \$ \$ v_{out} = (g_m v_1 R_d - \frac{R_d}{r_{ds}} v_{s})/(1 - \frac{R_d}{r_{ds}}) = (g_m v_1 R_d - \frac{R_d}{r_{ds}} v_{in} + \frac{R_d}{r_{ds}} v_{1})/(1 - \frac{R_d}{r_{ds}})\$
And for the gain: \$ v_{out}/v_{in} = (g_m v_1 R_d - \frac{R_d}{r_{ds}} v_{in} + \frac{R_d}{r_{ds}} v_{1})/((1 - \frac{R_d}{r_{ds}})(v_1 + v_s))\$
But now I have again \$ v_s \$ in the denominator, which I cannot substitute for anything useful. I feel like running in circles. Can someone help me out? What am I doing/approaching wrong?
simulate this circuit – Schematic created using CircuitLab