My book claims the following: $$ x = f(t) $$ $$y = g(t)$$ 

then, by substitution rule $$ \int y \ dx = \int g(t)f'(t) \ dt$$

I cannot find a way to obtain this result. Could someone show all the steps to obtain it?