Exercise 6.4 A circuit with an opamp

The opamp circuit below uses an ideal opamp (rin ,rout = 0Ω,aV ).

pict

a)
Derive an equation for (the large signal) vOUT (vIN)
b)
In this circuit schematic, the output signal is fed back to the non-inverting input of the opamp. Show or derive that the system is stable despite feedback to the positive input.
c)
Derive an equation for the large signal vX as a function of vIN and draw a graph of it. For the MOS transistor, you can assume that it is operated in saturation with iD = 1 2k(vGS V T )2.
d)
It was assumed that the transistor works in saturation, for which the square law relation is valid. Identify the range of vIN where this assumption is satisfied.
e)
What happens to vX when vIN approaches V DD? Does it asymptotically approach a value? Does it go to 0, V DD, , -, or some other value?