The terms f(x) and g(x) are really simple to understand if you have gone through algebra, just substitute!