Operations on Functions Calculator

Type f(x) and g(x) and choose an operation.

A function of x, such as x^2 + 1 or 1/x.

A second function of x.

At x = (optional)aa

Optional: a value of x to evaluate the result at.

Try

Result

You enteredf(x)=x2−1,g(x)=x−1f(x) = x^{2} - 1,\quad g(x) = x - 1

(fg)(x)=x+1\displaystyle \left(\frac{f}{g}\right)(x) = x + 1

Domain

x≠1\displaystyle x \ne 1
Show the work
  1. Quotient of functions

    Combine the two functions value by value: at each x, do the operation on f(x) and g(x).

    Using (fg)(x)=f(x)g(x), g(x)≠0\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)},\ g(x) \ne 0

    (fg)(x)=x2−1x−1\left(\frac{f}{g}\right)(x) = \frac{x^{2} - 1}{x - 1}
  2. Combine and tidy

    Collect like terms (multiplying out where that is simpler).

  3. Cancel the common factor

    The top and bottom share a factor, which cancels — but the original quotient is still undefined where that factor is 0, so those x stay out of the domain.

    (fg)(x)=x+1\left(\frac{f}{g}\right)(x) = x + 1
  4. Domain

    The quotient is defined where both functions are and the denominator g(x) is not zero — even if a factor cancels after simplifying.

    x≠1x \ne 1
  5. Result

    The combined function.

    (fg)(x)=x+1\left(\frac{f}{g}\right)(x) = x + 1

Worked examples