The Electrician : I see that it is only problem when we consider the network with transistor alone. However, in addition to the active matrix by transistor, we also have the passive network by components around so it is not problem.
I tried to calculate input impedance with active matrix singular and it works fine. However, with adding Rg (gate resistance as you mentioned) to get the final result of input impedance I have to take the limit for Rg approaching infinity.
I tried to calculate input impedance with active matrix singular and it works fine. However, with adding Rg (gate resistance as you mentioned) to get the final result of input impedance I have to take the limit for Rg approaching infinity.
If, in fact, Rg is not infinite then the expression you obtained is correct. If there is no Rg, then it is to be expected that you will have to take the limit, because if you leave it out of the passive matrix and solve the system, you immediately get the result that your Y matrix is singular:
Using a finite value for Rg is a workaround for the problem of obtaining Z when the Y matrix is singular. Using a finite Rg allows us to invert Y and then taking the limit with Rg becoming infinite after obtaining your result for Zin gives the correct result.