Exercise 4.5 AN NMOS amplifier circuit

See the amplifier circuit below. Assume that M1 is biased in the square law region with drain (bias) current ID1. Assume inductors and capacitors can be modelled as opens and shorts for the signal frequency.

pict

a)
Is this an inverting or a non-inverting amplifier? Motivate your answer.
b)
Draw a proper small-signal equivalent circuit.
c)
Derive an expression for the voltage gain av = voutvin
d)
Derive an expression for the input resistance rin.