To find the sum of two functions f and g, add the corresponding terms of f(x) and g(x). To find the difference, subtract the terms of g(x) from f(x), distributing the negative sign. To find the product, multiply corresponding terms using FOIL. To find the quotient, divide the functions. The composition f o g means to substitute g(x) for each x in f(x). The domain of a composition is numbers where g(x) is in the domain of f.