Given the parent logarithm function f(x)=log x, find the function g(x) after the parent function undergoes a vertical stretch by a factor of 3, and a horizontal shrink by a factor of 2.