In Gatheral's book The Volatility Surface (Wiley, 2006), a local volatility model is defined as... $$ dS_t =S_t \mu_tdt + S_t \sigma(S_t, t)dZ $$ The famous Dupire Equation is given by... $$ \sigma^2(K, T, S) = \frac{\partial C/\partial T}{\frac{1}{2} K^2\partial^2C/\partial K^2} $$
I have two questions...
(a) according to the definition of local vol, $\sigma$ is a function of t and S. How come it also depends on K in the second equation?
(b) In practice, what kind of functions do people use for $\sigma(t, S_t)$? Would a quadratic function or cubic function suffice?