If f and g are two functions over real numbers defined as f(x) = 3x + 1, g(x) = x2 + 2, then find f-g