Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Function Arithmetic






Building Functions from Functions

Functions can be combined through the same operations that combine numbers. Add two functions, and their outputs add. Multiply two functions, and their outputs multiply. The result in each case is a new function — one whose behavior emerges from the interplay of its components.

These operations extend the toolkit for constructing and analyzing functions. A profit function is revenue minus cost. A density function is mass divided by volume. Combining functions arithmetically is how mathematical models capture relationships that involve multiple contributing factors.

Key Terms

Function— the objects being combined through arithmetic operations
Domain— the combined domain is the intersection of both component domains, minus denominator zeros for quotients
Composition of Functions— a different operation: chaining functions in sequence rather than combining outputs
Zero of a Function— zeros of components determine zeros of products and sign changes of quotients


See All Function Definitions →


Combining Functions with Operations

Numbers can be added. Can functions?
With f(x)=x2f(x) = x^2 and g(x)=3xg(x) = 3x, the natural guess is to add what the two functions give at each input.
Adding the outputs at each input gives the same values as the single formula x² + 3x.
xf(x) = x²g(x) = 3xf(x) + g(x)x² + 3x
00000
11344
2461010
3991818
Each row adds two numbers computed at the same input.
The sum of two functions is computed one input at a time.
The operations act on outputs, not on inputs. To find (f+g)(3)(f + g)(3), evaluate f(3)f(3) and g(3)g(3) separately, then add the results. The input 33 passes through both functions; their outputs combine.
This pointwise definition means that combining functions produces new functions. If f(x)=x2f(x) = x^2 and g(x)=3xg(x) = 3x, then (f+g)(x)=x2+3x(f + g)(x) = x^2 + 3x is a single function with its own formula, graph, and properties.
The definition
The sum, difference, product and quotient of functions ff and gg are the functions whose values at each xx are f(x)+g(x)f(x) + g(x), f(x)−g(x)f(x) - g(x), f(x)g(x)f(x)g(x) and f(x)g(x)\frac{f(x)}{g(x)}.
Functions combine through arithmetic operations just as numbers do. Given two functions ff and gg, their sum, difference, product, and quotient are new functions defined pointwise — by performing the operation on the outputs at each input.
So with f(x)=x2f(x) = x^2 and g(x)=3xg(x) = 3x, (f+g)(x)=x2+3x(f + g)(x) = x^2 + 3x and (f+g)(3)=9+9=18(f + g)(3) = 9 + 9 = 18.
All four operations follow one rule: operate on the outputs, keep the input.
The four arithmetic operations — addition, subtraction, multiplication, and division — each have their own notation and rules. All share the principle: operate on outputs while the input remains the same.
Combining outputs is not the same as chaining functions.
These combinations differ from composition, which chains functions together rather than combining their outputs. Arithmetic combines outputs at the same input; composition feeds the output of one function into the input of another.
With the same ff and gg, f(g(3))=f(9)=81f(g(3)) = f(9) = 81, while (f+g)(3)=18(f + g)(3) = 18.
The rest of the page covers notation, the sum, difference, product and quotient, evaluation at a point, domains of combined functions, the extra restriction for quotients, the graphical picture, simplification, building complex functions, applications and an overview of the four operations.
Arithmetic on functions and composition of functions both build a new function from ff and gg, in different ways. The card keeps them apart on the page’s own example.
DownloadPNG2×PDF
Function arithmetic

Combining outputs vs chaining functions

Arithmetic combines outputs at the same input; composition feeds one output into the next function.
Arithmetic combination
Rule(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x), and likewise for −-, ×\times, ÷\div
Acts onOn the outputs: the input xx passes through both functions, then the outputs combine
Examplef(x)=x2f(x) = x^2, g(x)=3xg(x) = 3x: (f+g)(3)=9+9=18(f + g)(3) = 9 + 9 = 18
ResultA single new function with its own formula, (f+g)(x)=x2+3x(f + g)(x) = x^2 + 3x
Composition
Rule(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))
Acts onChains the functions: the output of gg becomes the input of ff
Examplef(g(3))=f(9)=81f(g(3)) = f(9) = 81
ResultA new function built by chaining, covered on the composition page
≠
Not the sameCombining outputs is not the same as chaining functions.

All four arithmetic operations follow one rule, operate on the outputs and keep the input; composition changes the input of the outer function.

Combining outputs vs chaining functions·/functions/arithmeticLearn Math Class
Same ff, same gg, same input 33: the two constructions give 1818 and 8181.

Function Arithmetic Notation

Notation

Function Arithmetic Notation

Four marks that wrap an operation in parentheses and hand it an input — each one names a new function, built pointwise from the outputs of two others. All are catalogued among the function symbols.
f(x)f(x), the output of ff at the input xx, comes from function notation; the composition ring ∘\circ, which these marks are most often mistaken for, from composition notation.
(f+g)(x)(f + g)(x)
f plus g, of x
The sum function: at each input, evaluate both functions and add the outputs — (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x).
CasesThe two forms are the same value: (f+g)(x)(f + g)(x) stresses that f+gf + g is itself a function, f(x)+g(x)f(x) + g(x) the operation on outputs. Order and grouping are free: f+g=g+ff + g = g + f.
Also writtenf(x)+g(x)f(x) + g(x)
(f−g)(x)(f - g)(x)
f minus g, of x
The difference function: (f−g)(x)=f(x)−g(x)(f - g)(x) = f(x) - g(x), the second output subtracted from the first.
CasesOrder matters: (g−f)(x)=−(f−g)(x)(g - f)(x) = -(f - g)(x), and subtraction is neither commutative nor associative.
Do not confuseSubtracting only the first term of gg. With g(x)=2x+1g(x) = 2x + 1, the whole of gg goes: x2−(2x+1)=x2−2x−1x^2 - (2x + 1) = x^2 - 2x - 1, not x2−2x+1x^2 - 2x + 1 — as Notation and Evaluation at a Point works through.
(fg)(x)(fg)(x)
f times g, of x
The product function: (fg)(x)=f(x)⋅g(x)(fg)(x) = f(x) \cdot g(x), the two outputs multiplied at the same input.
CasesThe product of two linear functions is a quadratic: (x+2)(x−3)=x2−x−6(x + 2)(x - 3) = x^2 - x - 6.
Also written(f⋅g)(x)(f \cdot g)(x)
Do not confuseComposition. Read as f(g(x))f(g(x)), the same pair gives x−1x - 1 instead of x2−x−6x^2 - x - 6: juxtaposition here multiplies outputs, it does not feed one function into the other.
(fg)(x)\left(\dfrac{f}{g}\right)(x)
f over g, of x
The quotient function: (fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, defined only where g(x)≠0g(x) \neq 0.
CasesIts domain is the shared domain minus the zeros of the denominator: (Dom(f)∩Dom(g))∖{x:g(x)=0}\left(\text{Dom}(f) \cap \text{Dom}(g)\right) \setminus \{x : g(x) = 0\}.
Also written(f/g)(x)(f/g)(x)
Do not confuseThe simplified formula. x2−1x+1\frac{x^2 - 1}{x + 1} reduces to x−1x - 1, but the quotient keeps a hole at x=−1x = -1, where gg is zero — the restriction outlives the cancellation.
DownloadPNG2×PDF
Notation · Cheat sheet
Function Notation at a Glance
The marks from the notation cards across the function pages: how each is read and what it means. Every group links to the full card on its page.
Basics
f(x)f(x)
f of x
ff names the rule, f(x)f(x) its output; never f times x.
g(t),  P(n)g(t), \; P(n)
g of t; P of n
Any letter can name a function; tt hints at time, nn at counting.
f(x+1)f(x + 1)
f of x plus one
Whatever is in the brackets replaces xx everywhere.
Domain
[2,5)[2, 5)
two included, five excluded
Square bracket in, round bracket out.
{x∣x≥0}\{x \mid x \geq 0\}
all x such that
Set-builder: the variable, then the test it must pass.
(a,b)∪(c,d)(a, b) \cup (c, d)
a union of intervals
For domains in separate pieces, as (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty).
Range
{y∣y≥0}\{y \mid y \geq 0\}
all y such that
The same grammar on the output side.
f:R→Rf: \mathbb{R} \to \mathbb{R}
f from R to R
Domain, then codomain; the range may be smaller.
{2,5,7}\{2, 5, 7\}
exactly these outputs
A finite range listed in braces.
Function arithmeticThis page
(f+g)(x)(f + g)(x)
f plus g, of x
Equals f(x)+g(x)f(x) + g(x); the same for f−gf - g.
(fg)(x)(fg)(x)
f times g, of x
Equals f(x) g(x)f(x)\,g(x).
(fg)(x)\left(\frac{f}{g}\right)(x)
f over g, of x
Equals f(x)g(x)\frac{f(x)}{g(x)}, only where g(x)≠0g(x) \neq 0.
Composition
f∘gf \circ g
f after g
Feed the output of gg into ff; read right to left.
f(g(x))f(g(x))
f of g of x
The same thing, evaluated inside out.
fg(x)fg(x)
ambiguous
Could mean a product; avoid it for composition.
Inverse functions
f−1(x)f^{-1}(x)
f inverse of x
The function that undoes ff: f−1(f(x))=xf^{-1}(f(x)) = x.
1f(x),  (f(x))−1\frac{1}{f(x)}, \; (f(x))^{-1}
one over f of x
The reciprocal: a different thing.
Dom(f),  Ran(f)\text{Dom}(f), \; \text{Ran}(f)
domain and range of f
They swap: Dom(f−1)=Ran(f)\text{Dom}(f^{-1}) = \text{Ran}(f).
Piecewise functions
{2xx<05x≥0\begin{cases} 2x & x < 0 \\ 5 & x \geq 0 \end{cases}
defined by cases
Use the row whose condition holds.
x<1,  x≥1x < 1, \; x \geq 1
split at the boundary
Each cut point belongs to exactly one row.
∙,  ∘\bullet, \; \circ
solid dot, open dot
On a graph: endpoint included, endpoint excluded.
Transformations
af(b(x−h))+ka f(b(x - h)) + k
the four-knob form
Outside letters move it vertically, inside letters horizontally.
f(x−h)f(x - h)
f of x minus h
Shifts right by hh: the sign goes the opposite way.
−f(x)-f(x) vs f(−x)f(-x)
two mirrors
Flip across the xx-axis against flip across the yy-axis.
Same marks, different job
f−1f^{-1} vs 1f\frac{1}{f}The inverse function against the reciprocal.
f(x)f(x)The brackets apply ff; they never mean multiplication.
(2,5)(2, 5)An open interval in a domain; a point in the plane on a graph.
the bar ∣\midSuch that, inside set braces; given, inside P(⋅)P(\cdot); divides, between integers.
Function Notation at a Glance·/functions/basicsLearn Math Class

Sum of Functions

The sum of two functions ff and gg is the function (f+g)(f + g) defined by:

Sum of Functions
(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)
Learn more about this formula: Sum of Functions →


At each input xx, evaluate both functions and add their outputs.

If f(x)=x2f(x) = x^2 and g(x)=5x−3g(x) = 5x - 3, then:

Sum of Functions
(f+g)(x)=x2+5x−3(f + g)(x) = x^2 + 5x - 3

To evaluate at a specific point, say x=2x = 2:

Sum of Functions
(f+g)(2)=f(2)+g(2)=4+7=11(f + g)(2) = f(2) + g(2) = 4 + 7 = 11

The same result comes from the combined formula: 4+10−3=114 + 10 - 3 = 11.

Addition is commutative: f+g=g+ff + g = g + f. It is also associative: (f+g)+h=f+(g+h)(f + g) + h = f + (g + h). These properties mirror the arithmetic of numbers.

Sums of functions appear throughout applications. Total cost is fixed cost plus variable cost. Combined revenue is revenue from product A plus revenue from product B. Net force is the sum of individual forces.
f + g at x = 2: 4 + 7 = 11xf(2) = 4+ g(2) = 7(f + g)(2) = 11f(x) = x²g(x) = 5x − 3f + gAt each x, stack the two outputs: 4 + 7 = 11
Adding outputs, one input at a time

f(x) = x² and g(x) = 5x − 3 from the text, with their sum. At x = 2 the bar for f(2) = 4 rises from the axis and the bar for g(2) = 7 sits on top of it; together they reach 11, exactly where the f + g curve passes. Every point of f + g is built the same way: same input, outputs added.

The same picture with the bar for g(2) hung below f(2) instead of stacked on it is the difference f − g.

Difference of Functions

The difference of two functions ff and gg is the function (f−g)(f - g) defined by:

Difference of Functions
(f−g)(x)=f(x)−g(x)(f - g)(x) = f(x) - g(x)
Learn more about this formula: Difference of Functions →


At each input xx, evaluate both functions and subtract the second from the first.

If f(x)=3x+7f(x) = 3x + 7 and g(x)=x2g(x) = x^2, then:

Difference of Functions
(f−g)(x)=3x+7−x2=−x2+3x+7(f - g)(x) = 3x + 7 - x^2 = -x^2 + 3x + 7

Order matters. The function f−gf - g is not the same as g−fg - f. If (f−g)(x)=−x2+3x+7(f - g)(x) = -x^2 + 3x + 7, then (g−f)(x)=x2−3x−7(g - f)(x) = x^2 - 3x - 7. The outputs are negatives of each other:

Difference of Functions
(g−f)(x)=−(f−g)(x)(g - f)(x) = -(f - g)(x)

RULE
Subtraction is neither commutative nor associative.

Care with order and grouping is essential.

Differences of functions model comparisons. Profit is revenue minus cost. Net change is final value minus initial value. The gap between two quantities is the difference of the functions measuring them.

Product of Functions

The product of two functions ff and gg is the function (f⋅g)(f \cdot g) or (fg)(fg) defined by:

Product of Functions
(fg)(x)=f(x)⋅g(x)(fg)(x) = f(x) \cdot g(x)
Learn more about this formula: Product of Functions →


At each input xx, evaluate both functions and multiply their outputs.

If f(x)=x+2f(x) = x + 2 and g(x)=x−3g(x) = x - 3, then:

Product of Functions
(fg)(x)=(x+2)(x−3)=x2−x−6(fg)(x) = (x + 2)(x - 3) = x^2 - x - 6

The product of two linear functions is a quadratic.

THEOREM
The product of two polynomials is a polynomial whose degree is the sum of the degrees.

Pitfall: Composing instead of multiplying
Reading (fg)(x)(fg)(x) as f(g(x))f(g(x)) gives (x−3)+2=x−1(x - 3) + 2 = x - 1, which at x=0x = 0 is −1-1 instead of (fg)(0)=2⋅(−3)=−6(fg)(0) = 2 \cdot (-3) = -6. The product multiplies the outputs: (fg)(x)=x2−x−6(fg)(x) = x^2 - x - 6.

Multiplication is commutative: fg=gffg = gf. It is associative: (fg)h=f(gh)(fg)h = f(gh). It distributes over addition: f(g+h)=fg+fhf(g + h) = fg + fh.

Products of functions arise in area calculations (length times width), in physics (mass times acceleration), and in probability (independent probabilities multiply). When two quantities combine multiplicatively, their functions multiply.
fg is zero where f or g is zeroxx = −2: f = 0x = 3: g = 0f(x) = x + 2g(x) = x − 3fg = x² − x − 6The product is zero exactly where one factor is zero
Where a product vanishes

f(x) = x + 2 and g(x) = x − 3 multiply to (fg)(x) = x² − x − 6. Two lines make a parabola, and its zeros are inherited: fg = 0 at x = −2, where f is zero, and at x = 3, where g is zero. Between them one factor is positive and the other negative, so the product dips below the axis.

A product of polynomials collects every zero of every factor; that is why factored form shows the zeros at a glance.

Quotient of Functions

The quotient of two functions ff and gg is the function (f/g)(f/g) defined by:

Quotient of Functions
(fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}
Learn more about this formula: Quotient of Functions →


At each input xx, evaluate both functions and divide the first output by the second.

If f(x)=x2−1f(x) = x^2 - 1 and g(x)=x+1g(x) = x + 1, then:

Quotient of Functions
(fg)(x)=x2−1x+1=(x−1)(x+1)x+1=x−1\left(\frac{f}{g}\right)(x) = \frac{x^2 - 1}{x + 1} = \frac{(x-1)(x+1)}{x+1} = x - 1

provided x≠−1x \neq -1.

Division introduces a critical restriction: the denominator cannot be zero. Even if the simplified form appears to have no restriction, the original quotient is undefined where g(x)=0g(x) = 0. The function (f/g)(f/g) has a hole at x=−1x = -1, not a continuous extension.

RULE
Division is neither commutative nor associative.

The quotient f/gf/g differs from g/fg/f except at inputs where f(x)=±g(x)f(x) = \pm g(x), where both quotients equal 11 or both equal −1-1.

Fact: Two 2π2\pi waves, a quotient of period π\pi
Sine and cosine each repeat every 2π2\pi, yet tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} repeats every π\pi. A shift by π\pi flips the sign of both outputs, and the two minus signs cancel in the quotient.

The tangent function is itself a quotient of two functions: tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}. Sine and cosine are both defined for every real number, so the only inputs removed from its domain are the zeros of the cosine, the odd multiples of π2\dfrac{\pi}{2}. At every other input, the value of the tangent is read off from the two outputs at that same input.

Quotients of functions model rates and ratios. Average cost is total cost divided by quantity. Speed is distance divided by time. Efficiency is output divided by input.
(x^2 - 1)/(x + 1) is x - 1 with a hole at x = -1xhole at (−1, −2)g(−1) = 0: not in the domain(x² − 1)/(x + 1)Same line as x − 1, except at x = −1, where the quotient is undefined
A hole where the divisor is zero

(x² − 1)/(x + 1) simplifies to x − 1, and the graph is that line — with one point missing. At x = −1 the divisor g(x) = x + 1 is zero, so the quotient has no value there, even though the simplified formula would give −2. The open circle marks the input the simplification hides.

Had the factor x + 1 not cancelled, x = −1 would be a vertical asymptote rather than a hole; either way it is excluded.

Notation and Evaluation at a Point

The notations (f+g)(x)(f + g)(x) and f(x)+g(x)f(x) + g(x) mean the same thing. The first emphasizes that f+gf + g is itself a function; the second emphasizes the operation on outputs. Both describe the same value.

Evaluating a combined function at a specific input can proceed two ways.

Method 1: Evaluate each function separately, then combine.

For (f−g)(4)(f - g)(4) where f(x)=x2f(x) = x^2 and g(x)=2x+1g(x) = 2x + 1:

Notation and Evaluation at a Point
f(4)=16,g(4)=9f(4) = 16, \quad g(4) = 9
Notation and Evaluation at a Point
(f−g)(4)=16−9=7(f - g)(4) = 16 - 9 = 7

Method 2: Find the combined formula first, then evaluate.

Notation and Evaluation at a Point
(f−g)(x)=x2−2x−1(f - g)(x) = x^2 - 2x - 1
Notation and Evaluation at a Point
(f−g)(4)=16−8−1=7(f - g)(4) = 16 - 8 - 1 = 7

Pitfall: Subtracting only the first term
Writing (f−g)(x)=x2−2x+1(f - g)(x) = x^2 - 2x + 1 subtracts only the 2x2x of g(x)=2x+1g(x) = 2x + 1 and gives (f−g)(4)=9(f - g)(4) = 9. The whole of gg is subtracted: x2−(2x+1)=x2−2x−1x^2 - (2x + 1) = x^2 - 2x - 1, so (f−g)(4)=7(f - g)(4) = 7.

Both methods yield the same result. The first is often faster for a single evaluation; the second is necessary when working with the combined function repeatedly.

When functions are given as tables or graphs, only Method 1 applies directly — look up each function value and combine.

The table below sets the two methods side by side and notes when each is most efficient.
DownloadPNG2×PDF
Layout
MethodProcedureBest when
Method 1 — evaluate, then combinecompute f(a) and g(a) separately, then apply the operationone-off evaluations; functions given as tables or graphs
Method 2 — combine, then evaluatebuild the combined formula (f op g)(x) first, then substitute arepeated evaluations or further analysis of the combined function
Notation and Evaluation at a PointLearn Math Class

Domain of Combined Functions

The domain of a combined function is restricted to inputs that work for both component functions. An input must be in the domain of ff and in the domain of gg for the combination to be defined.

For sums, differences, and products:

Domain of a Combined Function
Dom(f+g)=Dom(f−g)=Dom(fg)=Dom(f)∩Dom(g)\text{Dom}(f + g) = \text{Dom}(f - g) = \text{Dom}(fg) = \text{Dom}(f) \cap \text{Dom}(g)
Learn more about this formula: Domain of a Combined Function →


The intersection ensures both functions can be evaluated.

If f(x)=xf(x) = \sqrt{x} with domain [0,∞)[0, \infty) and g(x)=4−xg(x) = \sqrt{4 - x} with domain (−∞,4](-\infty, 4], then:

Domain of Combined Functions
Domain of f+g=[0,∞)∩(−∞,4]=[0,4]\text{Domain of } f + g = [0, \infty) \cap (-\infty, 4] = [0, 4]

Pitfall: Taking the union of the domains
Joining [0,∞)[0, \infty) and (−∞,4](-\infty, 4] by union admits every real number, including x=5x = 5, where g(5)=−1g(5) = \sqrt{-1} is not defined. The sum needs both f(x)f(x) and g(x)g(x), so the domains are intersected, not joined.

Only inputs from 00 to 44 lie in both domains.

Different component functions can shrink the combined domain dramatically. If ff is defined for x>0x > 0 and gg is defined for x<0x < 0, their intersection is empty — the combined function has no valid inputs.

The same rule extends to any number of functions: a sum of three functions is defined only where all three are. Intervals are the convenient way to record the result, and a number-line sketch of each domain makes the overlap easy to read.
Dom(f + g) is the overlap [0, 4]Dom f, f(x) = √x[0, ∞)Dom g, g(x) = √(4 − x)(−∞, 4]−2−101234567Dom (f + g)[0, 4]Only inputs in both domains survive: the overlap [0, 4]
The overlap of two domains

√x needs x ≥ 0 and √(4 − x) needs x ≤ 4. A sum, difference or product needs both functions defined at the same input, so its domain is where the two lines overlap: [0, 4]. Outside it, at least one part has no value.

For a quotient f/g, also remove the inputs where g(x) = 0 from this overlap.
A combined function is defined only where every one of its pieces is defined.

Additional Restrictions for Quotient

The quotient f/gf/g inherits all the restrictions of both ff and gg, plus one more: the denominator g(x)g(x) cannot equal zero.

Domain of a Quotient
Dom ⁣(fg)=(Dom(f)∩Dom(g))∖{x:g(x)=0}\text{Dom}\!\left(\frac{f}{g}\right) = \bigl(\text{Dom}(f) \cap \text{Dom}(g)\bigr) \setminus \{x : g(x) = 0\}
Learn more about this formula: Domain of a Quotient →


Start with the intersection of domains, then remove any points where gg equals zero.

If f(x)=x+3f(x) = x + 3 and g(x)=x2−4g(x) = x^2 - 4, both have domain (−∞,∞)(-\infty, \infty). The intersection is all real numbers. But g(x)=0g(x) = 0 when x=2x = 2 or x=−2x = -2. So:

Additional Restrictions for Quotient
Domain of fg=(−∞,−2)∪(−2,2)∪(2,∞)\text{Domain of } \frac{f}{g} = (-\infty, -2) \cup (-2, 2) \cup (2, \infty)

Pitfall: Excluding the zeros of the numerator
Removing x=−3x = -3 as well, because f(−3)=0f(-3) = 0, throws away a valid input: f(−3)g(−3)=05=0\frac{f(-3)}{g(-3)} = \frac{0}{5} = 0. Only the zeros of the denominator leave the domain, here x=2x = 2 and x=−2x = -2.

The three intervals cover every real number except the two zeros of the denominator. At those two inputs the numerator is not zero, since f(2)=5f(2) = 5 and f(−2)=1f(-2) = 1, so the graph of f/gf/g has vertical asymptotes at x=2x = 2 and x=−2x = -2 rather than holes. At every other input both outputs exist and the denominator is nonzero, so the quotient has a value there.

RULE
Even if the quotient simplifies algebraically to a function with no apparent restriction, the original domain exclusions remain.

The quotient x2−1x−1=x+1\dfrac{x^2 - 1}{x - 1} = x + 1 simplifies, but the domain still excludes x=1x = 1. The graph has a hole at (1,2)(1, 2).

The table below collects the domain rule for each of the four operations, making the quotient's extra restriction visible at a glance.
DownloadPNG2×PDF
Layout
OperationNotationDomain rule
Sum(f + g)(x)dom(f) ∩ dom(g)
Difference(f − g)(x)dom(f) ∩ dom(g)
Product(f · g)(x) or (fg)(x)dom(f) ∩ dom(g)
Quotient(f ⁄ g)(x)dom(f) ∩ dom(g), excluding every x where g(x) = 0
Additional Restrictions for QuotientLearn Math Class

Graphical Interpretation

Combining functions graphically means combining their heights at each xx-value.

For the sum f+gf + g, the height of the combined graph at any xx equals the sum of the heights of ff and gg at that xx. If f(3)=2f(3) = 2 and g(3)=5g(3) = 5, then (f+g)(3)=7(f + g)(3) = 7. The point (3,7)(3, 7) lies on the graph of f+gf + g.

Where both functions are positive, the sum is higher than either. Where one is positive and one is negative, they partially cancel. Where both are negative, the sum is more negative than either.

Fact: Two rising functions, a falling product
Both f(x)=xf(x) = x and g(x)=xg(x) = x rise across all of R\mathbb{R}, yet their product x2x^2 falls on (−∞,0)(-\infty, 0). There both heights are negative and shrink toward 00, so their positive product shrinks too.

For the product fgfg, the height at xx is f(x)⋅g(x)f(x) \cdot g(x). Where both are positive or both are negative, the product is positive. Where they have opposite signs, the product is negative. Where either equals zero, the product equals zero — the zeros of ff and gg are zeros of fgfg.

Graphing combined functions by hand is labor-intensive — each point requires reading two values and computing. But the concept clarifies what the algebra produces: a new curve whose shape emerges from the interaction of two others.

The table below sets sum and product behaviors side by side across the possible sign cases of ff and gg.
DownloadPNG2×PDF
Layout
Sign caseSum f + gProduct f · g
both positivepositive — higher than either alonepositive
opposite signspartial cancellationnegative
both negativenegative — more negative than either alonepositive
either function = 0takes the value of the other functionzero — a zero of f or g becomes a zero of fg
Graphical InterpretationLearn Math Class
A combined graph is built one vertical line at a time, from two heights at the same x.

Algebraic Simplification

Combined functions often simplify to cleaner forms. Simplification makes evaluation easier and reveals structure.

For sums and differences, combine like terms:

Algebraic Simplification
(3x2+2x−1)+(x2−5x+4)=4x2−3x+3(3x^2 + 2x - 1) + (x^2 - 5x + 4) = 4x^2 - 3x + 3

For products, distribute and combine:

Algebraic Simplification
(x+3)(x−2)=x2+x−6(x + 3)(x - 2) = x^2 + x - 6

For quotients, factor and reduce when possible:

Algebraic Simplification
x2−9x+3=(x−3)(x+3)x+3=x−3(x≠−3)\frac{x^2 - 9}{x + 3} = \frac{(x-3)(x+3)}{x+3} = x - 3 \quad (x \neq -3)

Simplification must respect domain restrictions. The reduced form x−3x - 3 appears defined everywhere, but the original quotient excludes x=−3x = -3. The simplified function still has a hole at that point.

Simplified forms make further analysis easier — finding zeros, identifying end behavior, computing additional values. They also reveal when two apparently different expressions define the same function.
The section's quotient example, one move at a time. Watch what happens to the restriction.
DownloadPNG2×PDF
Algebraic simplification

Factor and reduce, keep the restriction

Simplification makes evaluation easier and reveals structure, but it must respect the domain.
01
QuotientBefore
x2−9x+3\dfrac{x^2 - 9}{x + 3}
↓Factor the numerator— x² − 9 = (x − 3)(x + 3)
02
Factored
(x−3)(x+3)x+3\dfrac{(x - 3)(x + 3)}{x + 3}
↓Reduce— cancel the common factor x + 3, and record x ≠ −3
03
Simplified formAfter
x−3(x≠−3)x - 3 \quad (x \neq -3)
The reduced form x−3x - 3 appears defined everywhere, but the original quotient excludes x=−3x = -3. The simplified function still has a hole at that point.
Reducing (x² − 9)/(x + 3)·/functions/arithmeticLearn Math Class
The reduced form makes zeros and values easy to read. It equals the original quotient only once x=−3x = -3 is left out of its domain, which is why the restriction travels with it.

Building Complex Functions

Simple functions combine to build complex ones. Understanding the components reveals the structure of the whole.

The function h(x)=x2+3x−5h(x) = x^2 + 3x - 5 can be viewed as the sum of f(x)=x2f(x) = x^2, g(x)=3xg(x) = 3x, and k(x)=−5k(x) = -5. Each component contributes: the parabolic shape from x2x^2, the linear tilt from 3x3x, the vertical shift from −5-5.

The function h(x)=(x−2)(x+5)h(x) = (x - 2)(x + 5) is a product of two linear functions. Its zeros come directly from its factors: x=2x = 2 and x=−5x = -5. Its graph is a parabola opening upward.

Breaking a function into simpler pieces aids both analysis and construction. To model a situation, identify the contributing factors, express each as a function, and combine appropriately.

Revenue depends on price and quantity: R=p⋅qR = p \cdot q. If price is p(x)=50−2xp(x) = 50 - 2x and quantity is q(x)=xq(x) = x, then revenue is R(x)=(50−2x)⋅x=50x−2x2R(x) = (50 - 2x) \cdot x = 50x - 2x^2. The combined function inherits meaning from its components.

Applications in Context

Function arithmetic models real-world combinations of quantities.

Profit equals revenue minus cost. If R(x)R(x) gives revenue from selling xx units and C(x)C(x) gives the cost of producing them:

Applications in Context
P(x)=R(x)−C(x)P(x) = R(x) - C(x)

Profit is positive when revenue exceeds cost, negative when cost exceeds revenue, and zero at break-even points where R(x)=C(x)R(x) = C(x).

Average cost is total cost divided by quantity:

Applications in Context
Cˉ(x)=C(x)x\bar{C}(x) = \frac{C(x)}{x}

This quotient is undefined at x=0x = 0 (no items produced) and describes cost per unit at each production level.

Combined distance from two moving objects involves sums or differences depending on direction. If d1(t)d_1(t) and d2(t)d_2(t) give positions at time tt, the gap between them is ∣d1(t)−d2(t)∣|d_1(t) - d_2(t)|.

Population models might add birth rate function and subtract death rate function to model net growth. Economic models add multiple income streams or subtract expenses from revenue.

In each case, the arithmetic of functions translates the arithmetic of the situation. What combines additively in reality combines additively in the model.

Common Pitfalls

Five mistakes come up again and again when functions are combined. Four are marked where they happen in the sections above; losing the excluded point after simplifying is the one that Quotient of Functions and Algebraic Simplification already point out. Here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Composing instead of multiplying
The product (fg)(x)(fg)(x) is read as f(g(x))f(g(x)): the output of gg is fed into ff instead of being multiplied by the output of ff. Both operations use the same two letters, but they build different functions.
Start
For f(x)=x+2f(x) = x + 2 and g(x)=x−3g(x) = x - 3,
Wrong turn
Error here
(fg)(x)=f(x−3)=(x−3)+2=x−1(fg)(x) = f(x - 3) = (x - 3) + 2 = x - 1.
Right path
(fg)(x)=f(x)⋅g(x)=(x+2)(x−3)=x2−3x+2x−6=x2−x−6(fg)(x) = f(x) \cdot g(x) = (x + 2)(x - 3) = x^2 - 3x + 2x - 6 = x^2 - x - 6.
Why it happensThe product fgfg is written with no symbol between the letters, and some texts also write a composition without its ring, so the string fg(x)fg(x) is read as one function inside the other.
How to checkEvaluate both functions at one input and multiply. At x=0x = 0, f(0)=2f(0) = 2 and g(0)=−3g(0) = -3, so (fg)(0)=−6(fg)(0) = -6; the right formula gives −6-6, the wrong one gives −1-1.
2Losing the excluded point after simplifying
A quotient is simplified by cancelling a common factor, and the domain is then read from the simplified formula, which no longer shows the zero of the original denominator.
Wrong turn
Error here
x2−9x+3=x−3\dfrac{x^2 - 9}{x + 3} = x - 3, so the domain is taken to be all real numbers and the value at x=−3x = -3 to be −3−3=−6-3 - 3 = -6.
Right path
The original denominator x+3x + 3 is 00 at x=−3x = -3, and substituting gives (−3)2−9−3+3=00\dfrac{(-3)^2 - 9}{-3 + 3} = \dfrac{0}{0}, which has no value. The domain is x≠−3x \neq -3, and the graph is the line y=x−3y = x - 3 with a hole at (−3,−6)(-3, -6).
Why it happensAfter cancelling, the factor that caused the restriction is gone from the page, and the shorter formula looks complete.
How to checkBefore simplifying, list every zero of the original denominator, and keep that list next to the simplified formula.
3Subtracting only the first term
When (f−g)(x)(f - g)(x) is formed, the minus sign reaches only the first term of g(x)g(x), because the brackets around g(x)g(x) are left out.
Wrong turn
Error here
For f(x)=x2f(x) = x^2 and g(x)=2x+1g(x) = 2x + 1, (f−g)(x)=x2−2x+1(f - g)(x) = x^2 - 2x + 1, so (f−g)(4)=16−8+1=9(f - g)(4) = 16 - 8 + 1 = 9.
Right path
(f−g)(x)=x2−(2x+1)=x2−2x−1(f - g)(x) = x^2 - (2x + 1) = x^2 - 2x - 1, so (f−g)(4)=16−8−1=7(f - g)(4) = 16 - 8 - 1 = 7, the same as f(4)−g(4)=16−9f(4) - g(4) = 16 - 9.
Why it happensWhen gg has a single term, as g(x)=x2g(x) = x^2 in Difference of Functions, no brackets are needed, and the habit carries over to a gg with several terms.
How to checkEvaluate at one point by both methods of Notation and Evaluation at a Point; the results must agree. Here f(4)−g(4)=16−9=7f(4) - g(4) = 16 - 9 = 7 exposes the 99.
4Taking the union of the domains
The domains of ff and gg are combined by union, as if an input only had to work in one of the two functions.
Wrong turn
Error here
f(x)=xf(x) = \sqrt{x} has domain [0,∞)[0, \infty) and g(x)=4−xg(x) = \sqrt{4 - x} has domain (−∞,4](-\infty, 4]; their union is all real numbers, which is given as the domain of f+gf + g.
Right path
(f+g)(x)=x+4−x(f + g)(x) = \sqrt{x} + \sqrt{4 - x} needs both square roots, so x≥0x \geq 0 and x≤4x \leq 4. The domain is [0,∞)∩(−∞,4]=[0,4][0, \infty) \cap (-\infty, 4] = [0, 4].
Why it happens"the domain of ff and the domain of gg" sounds like putting the two sets together.
How to checkTest an input that lies in one domain but not the other. At x=5x = 5 the term 4−5=−1\sqrt{4 - 5} = \sqrt{-1} is not a real number, and at x=−1x = -1 the term −1\sqrt{-1} appears in ff, so neither input belongs to the domain.
5Excluding the zeros of the numerator
In the domain of f/gf/g, the inputs where f(x)=0f(x) = 0 are removed together with those where g(x)=0g(x) = 0, as if a zero anywhere in the fraction made it undefined.
Start
For f(x)=x+3f(x) = x + 3 and g(x)=x2−4g(x) = x^2 - 4,
Wrong turn
Error here
The inputs x=−3x = -3, x=−2x = -2 and x=2x = 2 are all excluded.
Right path
Only the denominator matters. Since g(−3)=9−4=5g(-3) = 9 - 4 = 5, the quotient at x=−3x = -3 is 05=0\dfrac{0}{5} = 0, a value. The domain excludes only x=2x = 2 and x=−2x = -2: (−∞,−2)∪(−2,2)∪(2,∞)(-\infty, -2) \cup (-2, 2) \cup (2, \infty).
Why it happensThe rule against division by zero is remembered as a rule against zero in a fraction, without noting which part of the fraction it is about.
How to checkSubstitute the doubtful input. If the denominator is not zero, the quotient has a value; here x=−3x = -3 is a zero of f/gf/g, not a gap in its domain.
Common pitfalls in combining functions·/functions/arithmeticLearn Math Class
Each slip loses part of what combining two functions means. (fg)(x)(fg)(x) multiplies the outputs and does not compose; a quotient keeps the zeros of its original denominator out of the domain, even after cancelling, and only those; a difference subtracts all of gg; and a sum is defined only where both functions are, on the intersection of their domains. Evaluating at one input by both methods, or substituting a doubtful input, catches each slip.

The Four Operations at a Glance

This summary sets the four arithmetic operations on functions side by side, one card each: sum, difference, product and quotient. Every card gives the pointwise definition, an example that combines two specific functions into one formula, and a line naming the key algebraic properties, with a link to the section that explains the operation.

The sum and the product behave like the same operations on numbers: both are commutative and associative, and the product distributes over addition. The difference and the quotient are neither, and swapping the order of a difference only flips its sign. The quotient alone carries a badge, because the function in the denominator must not be zero.
DownloadPNG2×PDF
Sum
(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)
Add the two outputs at each input. The sum is commutative and associative, as the sum of functions shows.
f=x2,  g=5x−3  ⇒  x2+5x−3f = x^2,\; g = 5x - 3 \;\Rightarrow\; x^2 + 5x - 3
Difference
(f−g)(x)=f(x)−g(x)(f - g)(x) = f(x) - g(x)
Subtract the second output from the first. It is neither commutative nor associative, and (g−f)(x)=−(f−g)(x)(g - f)(x) = -(f - g)(x), from the difference of functions.
f=3x+7,  g=x2  ⇒  −x2+3x+7f = 3x + 7,\; g = x^2 \;\Rightarrow\; -x^2 + 3x + 7
Product
(fg)(x)=f(x)⋅g(x)(fg)(x) = f(x) \cdot g(x)
Multiply the two outputs. The product is commutative and associative and distributes over addition, as the product of functions shows.
f=x+2,  g=x−3  ⇒  x2−x−6f = x + 2,\; g = x - 3 \;\Rightarrow\; x^2 - x - 6
Quotient
(fg)(x)=f(x)g(x)\displaystyle \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}
Divide the first output by the second. It is neither commutative nor associative, as the quotient of functions explains.
f=x2−1,  g=x+1  ⇒  x−1    (x≠−1)f = x^2 - 1,\; g = x + 1 \;\Rightarrow\; x - 1 \;\; (x \neq -1)
!requires g(x)≠0g(x) \neq 0
The four operations on functions·All function formulasLearn Math Class
Every operation works the same way: evaluate both functions at the same input, then combine the two outputs. Order matters for the difference and the quotient, and for the quotient the zeros of the denominator stay excluded even when the simplified formula hides them.
DownloadPNG2×PDF
Before you read
Combining two functions
Functions are added, subtracted, multiplied and divided value by value. Each operation keeps or loses a familiar property.
Function arithmetic4 operations
Sum(f+g)(x)(f + g)(x)
Ordercommutative
Difference(f−g)(x)(f - g)(x)
Ordernot commutative: g−f=−(f−g)g - f = -(f - g)
Product(fg)(x)(fg)(x)
Ordercommutative; distributes over the sum
Quotient(f/g)(x)(f/g)(x)
Ordernot commutative

needs g(x)≠0g(x) \neq 0

Takeaway
Watch the order and the zeros
Difference and quotient depend on the order of ff and gg, and the quotient is undefined wherever g(x)=0g(x) = 0.
The four operations on functions·/functions/arithmeticLearn Math Class

Skills You Should Learn

Each skill opens its step-by-step method page.
Functions methods
  • Add, subtract, multiply or divide two functionsSingle ruleTwo functions are combined with an operation sign: (f+g)(x)(f + g)(x), (f−g)(4)(f - g)(4), (fg)(x)(fg)(x), (fg)(x)\left(\frac{f}{g}\right)(x).
  • Compose two functionsFeed the inner function into the outer one: substitute the whole formula, simplify, then check the domain.
  • Find the domain of a functionList every operation that can fail (denominators, even roots, logs), solve each condition, and intersect the results.

Function Arithmetic FAQ

How is combining functions different from composing them?

+
Arithmetic evaluates both functions at the same input and then combines the two outputs. Composition feeds the output of one into the other as its input. Adding two functions gives one value plus another value; composing them applies one rule after the other, which is an entirely different operation.Read more →

Does simplifying a combined function change its domain?

+
The formula may simplify but the domain does not follow. If a factor cancels, the input it excluded is still excluded, because the original expression was undefined there. The domain must be determined from the unsimplified form, otherwise the simplification silently adds points that were never in the function.Read more →

Is the product of two increasing functions always increasing?

+
No. Both f(x)=xf(x) = x and g(x)=xg(x) = x rise across all of R\mathbb{R}, yet their product x2x^2 falls on (−∞,0)(-\infty, 0): there both heights are negative and shrink toward 00, so their positive product shrinks too. Sums behave better, since adding two increasing functions always gives an increasing function, and a product of two increasing functions does increase on any interval where both stay positive.Read more →

Can the domain of a combined function be empty?

+
Yes. The combined domain is the intersection of the two domains, and two domains need not overlap. If ff is defined only for x>0x > 0 and gg only for x<0x < 0, as with ln⁡x\ln x and ln⁡(−x)\ln(-x), no input works in both, so f+gf + g, f−gf - g, fgfg and f/gf/g are defined nowhere. The formula still looks reasonable on paper; it simply has no input to act on.Read more →

How do you combine functions given as tables or graphs?

+
Point by point: evaluate each function first, then combine, because there is no formula to combine. Look up f(a)f(a) and g(a)g(a) at the same input and add, subtract, multiply or divide the two values. On a graph, read the two heights above x=ax = a; that is how f(3)=2f(3) = 2 and g(3)=5g(3) = 5 put the point (3,7)(3, 7) on f+gf + g. The result exists only at inputs where both values are known.Read more →

Where is a quotient of two functions equal to zero?

+
Where the numerator is zero and the denominator is not. For f(x)=x+3f(x) = x + 3 over g(x)=x2−4g(x) = x^2 - 4, the input x=−3x = -3 gives 05=0\frac{0}{5} = 0, so it is a zero of f/gf/g and stays in the domain; only x=2x = 2 and x=−2x = -2, the zeros of the denominator, are removed. Where both are zero, as at x=−1x = -1 in x2−1x+1\frac{x^2 - 1}{x + 1}, the quotient has no value at all.Read more →