Allday Education

Operations on Functions

You can combine two functions the way you combine numbers: add, subtract, multiply, or divide their outputs. (f+g)(x)(f + g)(x) just means f(x)+g(x)f(x) + g(x).

Each operation applies the two rules and combines the results. Division adds one caveat — the denominator function cannot be zero.

The four operations

(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x), and subtraction, multiplication, and division follow the same pattern. Substitute each function's rule, then combine like terms.

For (fg)(x)(f - g)(x), distribute the subtraction across all of gg's terms — the same sign trap as subtracting polynomials.

Domain of a combination

The combined function is defined only where both original functions are defined. For a quotient (fg)(x)\displaystyle (\frac{f}{g})(x), also exclude any x that makes g(x)=0g(x) = 0.

So start from the overlap of the two domains and remove denominator zeros for division.

Worked examples

Example 1: a difference of functions

For f(x)=x24xf(x) = x^2 - 4x and g(x)=3x+2g(x) = 3x + 2, find (fg)(x)(f - g)(x).

Subtract g from f(x24x)(3x+2)(x^2 - 4x) - (3x + 2)
Distribute the minusx24x3x2x^2 - 4x - 3x - 2
Combine like termsx27x2x^2 - 7x - 2

Answer: x27x2x^2 - 7x - 2

Example 2: a product

For f(x)=xf(x) = x and g(x)=x+1g(x) = x + 1, find (fg)(x)(fg)(x).

Multiply the rulesx(x+1)x(x + 1)
Distributex2+xx^2 + x

Answer: x2+xx^2 + x

Example 3: a quotient and its excluded value

For f(x)=x29f(x) = x^2 - 9 and g(x)=x3g(x) = x - 3, find (fg)(x)\displaystyle (\frac{f}{g})(x) and state its domain.

Divide the rulesx29x3\dfrac{x^2 - 9}{x - 3}
Factor the numerator(x+3)(x3)x3\dfrac{(x + 3)(x - 3)}{x - 3}
Cancel the common factorx+3x + 3
The denominator function is zero at 3, so remove itx3x \neq 3

Answer: x+3x + 3, for all x3x \neq 3

Try one yourself

Common questions

What does (f+g)(x)(f + g)(x) mean?

Add the outputs: (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x). Substitute both rules and combine.

What is the domain of a combined function?

Where both functions are defined. For division, also remove any x that makes the denominator function zero.

How is this different from composition?

These operations combine outputs with +,,×,÷+, -, \times, \div. Composition, (fg)(x)(f \circ g)(x), feeds one function's output into the other — a different operation.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1