Determine the composite function f o g and g o f.
For each composite function state the domain and range.
a) f(x) = x^2 - 5x + 1and g(x) = x/5
b) f(x) = 7^x and g(x) = logx^2
c) f(x) = sinx and g(x) = 1 - 2x - x^2
d) f(x) = 3x^2 + 2x and g(x) = x/9 + 1/4