Operations on Functions - Graphing Calculator

An online graphing calculator to carry out operations on functions. Five operations are supported: addition, subtraction, multiplication, division, and composition.

The calculator accepts two input functions, \( f(x) \) and \( g(x) \). Algebraic, trigonometric, inverse trigonometric, exponential, logarithmic, and hyperbolic functions may be used. Review the basic functions and operators reference for syntax details.

Examples of formulas to copy and paste: x - 2, -2*x^2 + 3*x - 1, sin(x+pi), sin(pi*x), atan(2*x), (1-x)/(x^2-x-2), sinh(x-1).

Important Syntax Note: The multiplication operator * must be used explicitly (e.g., write 2*sin(x) instead of 2sin(x)), and function arguments must be enclosed in parentheses (e.g., sin(x)).

If needed, free graph paper is available.

Interactive Calculator

Enter formulas for functions \( f \) and \( g \) using the small letter x as the variable, then click one of the operation buttons below to plot \( f \) (blue), \( g \) (green), and the resulting function (red).

\( f(x) = \)
\( g(x) = \)

Hover your mouse over the graph to trace coordinates, or use the Plotly toolbar to zoom, pan, or download as a PNG.

Interactive Tutorials & Explorations

1. Addition of Two Functions
2. Subtraction of Two Functions
3. Multiplication of Two Functions
4. Division of Two Functions
5. Composition of Two Functions

Exercises & Solutions

View Practice Exercises and Detailed Solutions
  1. Exercise 1: Let \( f(x) = \sqrt{1 - x} \) and \( g(x) = x^2 \). Find the domain of \( (f \circ g)(x) \).
    Solution: Since the domain of \( g \) is all real numbers, the domain of \( f \circ g \) requires \( 1 - g(x) \ge 0 \implies 1 - x^2 \ge 0 \), yielding interval \( [-1, 1] \).
  2. Exercise 2: Let \( f(x) = 1 - x \) and \( g(x) = \sqrt{x} \). What is the domain of \( f - g \)?
    Solution: Intersection of domain of \( f \) (\( (-\infty, +\infty) \)) and domain of \( g \) (\( [0, +\infty) \)), giving interval \( [0, +\infty) \).
  3. Exercise 3: Let \( f(x) = 1 \) and \( g(x) = \sqrt{x} \). Find the domain of \( f / g \).
    Solution: Intersection of domains is \( [0, +\infty) \). Excluding \( x = 0 \) due to division by zero gives interval \( (0, +\infty) \).
  4. Exercise 4: Let \( f(x) = \sqrt{1 - x^2} \) and \( g(x) = \sqrt{4 - x^2} \). Find the domain of \( f \cdot g \).
    Solution: Domain of \( f \) is \( [-1, 1] \) and domain of \( g \) is \( [-2, 2] \). Their intersection is \( [-1, 1] \).

More References and Links

Explore additional calculators and tutorials:

Operations on Functions | Composition Tutorial | Trigonometric Properties | Graphing Calculators