3. (20%) Find the total derivative of the following function.

(a) $$y = f(x, w)$$, where $$x = g(w)$$