Adding and subtracting functions is a fundamental skill in algebra that allows you to combine two or more functions into a single new function. Mastering this operation builds the foundation for more advanced topics such as function composition, transformations, and calculus. In this guide we’ll walk through the concept, the step‑by‑step process, key properties, illustrative examples, common mistakes, and practical applications—all while keeping the language clear and approachable for learners of any background And that's really what it comes down to..
What Does It Mean to Add or Subtract Functions?
When we talk about adding functions we create a new function whose output at any input x is the sum of the outputs of the original functions at that same x. Likewise, subtracting functions produces a function whose output is the difference of the original outputs. Formally, if f and g are two functions with domains Dₓ and Dᵧ, then:
- Sum: (f + g)(x) = f(x) + g(x)
- Difference: (f − g)(x) = f(x) − g(x)
The domain of the resulting function is the intersection of the domains of f and g because we need both original functions to be defined at a given x in order to add or subtract their values And it works..
Italic note: The operation is performed point‑wise; we do not add the formulas themselves unless they are already expressed in the same variable Practical, not theoretical..
Step‑by‑Step Procedure for Adding and Subtracting Functions
Follow these clear steps to combine functions correctly:
-
Identify the functions
Write down f(x) and g(x) explicitly. If they are given in different forms (e.g., one as a table, another as a graph), convert them to a common algebraic expression when possible Took long enough.. -
Determine the domain of each function
List any restrictions (e.g., denominators ≠ 0, radicands ≥ 0 for even roots, arguments of logarithms > 0). -
Find the intersection of the domains
The new function will only be defined where both original functions are defined. Write this as D = D_f ∩ D_g. -
Write the combined expression
- For addition: h(x) = f(x) + g(x)
- For subtraction: h(x) = f(x) − g(x)
Combine like terms if the expressions are polynomials or rational functions.
-
Simplify the result
Factor, reduce fractions, or rewrite in a preferred form (standard polynomial, factored form, etc.). -
State the final function with its domain
Present h(x) together with the domain D found in step 3.
Properties of Function Addition and Subtraction
Understanding the algebraic properties helps you manipulate expressions quickly and avoid errors And that's really what it comes down to. Which is the point..
| Property | Description | Example |
|---|---|---|
| Commutative | f + g = g + f; f − g ≠ g − f (subtraction is not commutative) | (2x + 3) + (x²) = (x²) + (2x + 3) |
| Associative | (f + g) + h = f + (g + h); similarly for subtraction when rewritten as addition of a negative | ((f+g)+h) = (f+(g+h)) |
| Additive Identity | The zero function z(x)=0 satisfies f + z = f | f(x) + 0 = f(x) |
| Additive Inverse | For any f, the function −f defined by (−f)(x) = −f(x) fulfills f + (−f) = z | f(x) + (−f(x)) = 0 |
| Distributive over Scalar Multiplication | c(f + g) = cf + cg | 3*(f+g) = 3f + 3g |
It sounds simple, but the gap is usually here.
These properties mirror those of real numbers, which is why function operations feel familiar once you grasp the point‑wise nature That's the whole idea..
Worked Examples
Example 1: Adding Polynomial Functions
Let f(x) = 2x² − 5x + 3 and g(x) = −x² + 4x − 7 And that's really what it comes down to..
- Domains: Both are polynomials → all real numbers ℝ. Intersection = ℝ.
- Sum:
(f + g)(x) = (2x² − 5x + 3) + (−x² + 4x − 7)
= (2x² − x²) + (−5x + 4x) + (3 − 7)
= x² − x − 4 - Result: h(x) = x² − x − 4, domain ℝ.
Example 2: Subtracting Rational Functions
Let f(x) = \frac{3x}{x‑2} and g(x) = \frac{5}{x+1} It's one of those things that adds up. Nothing fancy..
- Domains:
- f: x ≠ 2
- g: x ≠ −1
Intersection: ℝ {−1, 2}.
- Difference:
(f − g)(x) = \frac{3x}{x‑2} − \frac{5}{x+1}
Find common denominator (x‑2)(x+1):
= \frac{3x(x+1) − 5(x‑2)}{(x‑2)(x+1)}
= \frac{3x² + 3x − 5x + 10}{(x‑2)(x+1)}
= \frac{3x² − 2x + 10}{(x‑2)(x+1)} - Result: h(x) = \frac{3x² − 2x + 10}{(x‑2)(x+1)}, domain ℝ {−1, 2}.
Example 3: Adding
Example 3 – Adding Two Rational Functions
Let
[ f(x)=\frac{2x+1}{x-3},\qquad g(x)=\frac{x-4}{x+2}. ]
1. Determine the domains
- For (f), the denominator (x-3\neq0) ⇒ (x\neq3).
- For (g), the denominator (x+2\neq0) ⇒ (x\neq-2).
Thus
[ D_f=\mathbb{R}\setminus{3},\qquad D_g=\mathbb{R}\setminus{-2}. ]
2. Find the intersection of the domains
[ D = D_f\cap D_g = \mathbb{R}\setminus{-2,,3}. ]
3. Write the combined expression
[ h(x) = (f+g)(x)=\frac{2x+1}{x-3}+\frac{x-4}{x+2}. ]
4. Simplify the result
Find a common denominator ((x-3)(x+2)):
[ \begin{aligned} h(x) &= \frac{(2x+1)(x+2) + (x-4)(x-3)}{(x-3)(x+2)}\[4pt] &= \frac{2x^2+5x+2 + x^2-7x+12}{(x-3)(x+2)}\[4pt] &= \frac{3x^2-2x+14}{(x-3)(x+2)}. \end{aligned} ]
The numerator does not factor further over the reals, and no cancellation with the denominator occurs, so this is the simplest form That's the part that actually makes a difference..
5. State the final function with its domain
[ \boxed{h(x)=\frac{3x^{2}-2x+14}{(x-3)(x+2)}},\qquad \text{Domain } D=\mathbb{R}\setminus{-2,,3}. ]
Example 4 – Subtracting a Polynomial from a Rational Function
Let
[ f(x)=\frac{5x-2}{x+1},\qquad g(x)=2x^{2}-3x+7. ]
1. Determine the domains
- (f) requires (x\neq-1).
- (g) is a polynomial, so (D_g=\mathbb{R}).
Thus
[ D_f=\mathbb{R}\setminus{-1},\qquad D_g=\mathbb{R}. ]
2. Intersection of the domains
[ D = D_f\cap D_g = \mathbb{R}\setminus{-1}. ]
3. Write the combined expression
[ h(x) = (f-g)(x)=\frac{5x-2}{x+1};-;(2x^{2}-3x+7). ]
4. Simplify the result
Express the polynomial over the common denominator (x+1):
[ \begin{aligned} h(x) &= \frac{5x-2}{x+1} - \frac{(2x^{2}-3x+7)(x+1)}{x+1}\[4pt] &= \frac{5x-2 - \bigl[2x^{3}-3x^{2}+7x + 2x^{2}-3x+7\bigr]}{x+1}\[4pt] &= \frac{5x-2 - 2x^{3}+x^{2}+4x-7}{x+1}\[4pt] &= \frac{-2x^{3}+x^{2}+9x-9}{x+1}. \end{aligned} ]
Factor the numerator if possible:
[ -2x
Factoring the numerator yields
[ -2x^{3}+x^{2}+9x-9=-(2x^{3}-x^{2}-9x+9) =-2,(x-\tfrac{3}{2}),(x^{2}+x-3) =(-2x+3),(x^{2}+x-3). ]
Hence the simplified form of the combined function is
[ h(x)=\frac{(-2x+3),(x^{2}+x-3)}{x+1},\qquad \text{Domain } D=\mathbb{R}\setminus{-1}. ]
Because the denominator vanishes only at (x=-1) while the numerator is non‑zero there, the graph possesses a vertical asymptote at (x=-1) Less friction, more output..
To expose the long‑term behavior, divide the numerator by the denominator:
[ \frac{-2x^{3}+x^{2}+9x-9}{x+1}= -2x^{2}+3x+6+\frac{-15}{x+1}. ]
Thus, as (|x|\to\infty),
[ h(x)\sim -2x^{2}+3x+6, ]
so the function approaches the quadratic “parabolic” asymptote (y=-2x^{2}+3x+6).
The zeros of (h) are obtained from the factored numerator:
[ -2x+3=0 ;\Longrightarrow; x=\frac{3}{2}, ] [ x^{2}+x-3=0 ;\Longrightarrow; x=\frac{-1\pm\sqrt{13}}{2}. ]
All three solutions lie outside the excluded point (x=-1), so the function is zero at (x=\frac{3}{2}) and at the two irrational points (\frac{-1\pm\sqrt{13}}{2}) Nothing fancy..
Summarising, the subtraction of the polynomial from the rational function produces a single rational expression whose domain is determined solely by the original restriction (x\neq-1). The resulting function exhibits a vertical asymptote at (x=-1), a quadratic asymptote for large (|x|), and three real zeros, illustrating how algebraic manipulation and domain considerations together reveal the essential characteristics of the graph Most people skip this — try not to..
Example 5 – Multiplying Two Rational Functions
Let
[ f(x)=\frac{x^{2}-4}{x-1},\qquad g(x)=\frac{x+1}{x^{2}-x-2}. ]
1. Determine the domains
- (f) requires (x-1\neq0 ;\Longrightarrow; x\neq1).
- (g) requires (x^{2}-x-2\neq0). Factoring gives ((x-2)(x+1)\neq0), so (x\neq2) and (x\neq-1).
Thus
[ D_f=\mathbb{R}\setminus{1},\qquad D_g=\mathbb{R}\setminus{-1,,2}. ]
2. Intersection of the domains
[ D = D_f\cap D_g = \mathbb{R}\setminus{-1,,1,,2}. ]
3. Write the combined expression
[ h(x) = (f\cdot g)(x)=\frac{x^{2}-4}{x-1}\cdot\frac{x+1}{x^{2}-x-2}. ]
4. Simplify the result
Factor every polynomial first:
[ x^{2}-4=(x-2)(x+2),\qquad x^{2}-x-2=(x-2)(x+1). ]
Substitute and cancel common factors:
[ \begin{aligned} h(x) &= \frac{(x-2)(x+2)}{x-1}\cdot\frac{x+1}{(x-2)(x+1)}\[4pt] &= \frac{(x-2)(x+2)(x+1)}{(x-1)(x-2)(x+1)}\[4pt] &= \frac{x+2}{x-1},\qquad \text{for } x\in D. \end{aligned} ]
5. Analyse the simplified form
The simplified expression (\frac{x+2}{x-1}) is defined for all (x\neq1). Even so, the domain of the product function (h) must still exclude the values that made the original denominators zero, namely (x=-1) and (x=2). At these points the original factors cancelled, creating removable discontinuities (holes).
- Vertical asymptote: The factor (x-1) remains in the denominator, so there is a vertical asymptote at (x=1).
- Holes:
- At (x=-1): (h(-1)) would be (\frac{-1+2}{-1-1}=-\frac{1}{2}). Hole at (\left(-1,-\frac{1}{2}\right)).
- At (x=2): (h(2)) would be (\frac{2+2}{2-1}=4). Hole at ((2,4)).
- Horizontal asymptote: Since the degrees of numerator and denominator are equal, (y=\frac{1}{1}=1) is a horizontal asymptote.
- Intercepts:
- (y)-intercept: (h(0)=\frac{2}{-1}=-2).
- (x)-intercept: (x+2=0 ;\Longrightarrow; x=-2) (which is in the domain).
Final result:
[ (f\cdot g)(x)=\frac{x+2}{x-1},\qquad \text{Domain } \mathbb{R}\setminus{-1,,1,,2}, ]
with a vertical asymptote at (x=1), a horizontal asymptote at (y=1), and holes at ((-1,-1/2)) and ((2,4)).
Example 6 – Dividing a Rational Function by Another
Let
[ f(x)=\frac{3x^{2}+5x-2}{x^{2}-4},\qquad g(x)=\frac{x^{2}+3x+2}{x^{2}-x-6}. ]
1. Determine the domains
- (f): (x^{2}-