Exercise 3.7 Biasing a circuit with an NMOS transistor

In the circuit schematic below, transistor M1 is to be biased at a drain current IBIAS.

pict

a)
Derive an expression for the value of RG1, required to set a drain current ID = IBIAS, as a function of properties of the components in the circuit (resistor values, transistor parameters, supply voltage, ...).
b)
Calculate the numerical value of RG1 for IBIAS = 1mA, RS = 1kΩ, K = 0.5mAV 2, V T = 2V , RG2 = 10kΩ, V DD = 10V . Note: you can also answer this question if you didn’t answer a) (yet). In that case, explain each step in your calculation.
c)
We use the circuit with the values above as an amplifier, where V D will be the output voltage. Therefore we want to maximize the voltage swing at the V D node. Derive and equation AND derive the numerical value of RD for maximum voltage swing such that the output signal will not clip to the supply or push M1 out of saturation.