- Foundation
- About 16 min
- 5 practice questions
Algebra of real functions: sum, difference, product and quotient
Add, subtract, multiply and divide real functions point by point, multiply a function by a scalar, and state the domain of each new function, including the extra condition for a quotient.
If something looks wrong, please tell us.
By the end of this lesson you can
- Define f + g, f − g, αf, fg and f/g for real functions on a common domain X.
- Compute these new functions from formulas.
- State the domain of f/g by removing the points where g(x) = 0.
- Evaluate combined functions at given points without error.
Just as numbers can be added and multiplied, real functions with a common domain can be combined to make new functions. This is how complicated formulas are built from simple pieces, and in calculus you will differentiate sums, products and quotients of functions using exactly these definitions.
The five operations
Let f : X → R and g : X → R be real functions, where X ⊂ R, and let α be a real number (a scalar). Each new function is defined pointwise: at each x we just combine the two numbers f(x) and g(x).
| New function | Definition | Domain |
|---|---|---|
| Sum f + g | (f + g)(x) = f(x) + g(x) | X |
| Difference f − g | (f − g)(x) = f(x) − g(x) | X |
| Scalar multiple αf | (αf)(x) = α f(x) | X |
| Product fg | (fg)(x) = f(x) g(x) | X |
| Quotient f/g | (f/g)(x) = f(x)/g(x) | {x ∈ X : g(x) ≠ 0} |
(f/g)(x) = f(x)/g(x) is defined only where g(x) ≠ 0. Every other combination keeps the common domain X.
Working out a combined function
- Find the common domain X Where both f and g are defined.
- Combine the formulas Add, subtract, multiply or divide f(x) and g(x).
- Simplify carefully Use brackets when subtracting.
- Remove zeros of g for f/g Exclude every x with g(x) = 0.
Worked example 1: all five operations
Let f(x) = x² and g(x) = 3x − 2 on R. Working: (f + g)(x) = x² + 3x − 2. (f − g)(x) = x² − (3x − 2) = x² − 3x + 2; note how the bracket changes −2 into +2. (5f)(x) = 5x². (fg)(x) = x²(3x − 2) = 3x³ − 2x². (f/g)(x) = x²/(3x − 2), defined for x ≠ 2/3, because g(2/3) = 0. So the domain of f/g is R − {2/3}.
Worked example 2: a square root and a linear function
Let f(x) = √x and g(x) = x − 1, both considered for x ≥ 0, where √x is defined. Working: (f + g)(x) = √x + x − 1, (f − g)(x) = √x − x + 1, and (fg)(x) = √x (x − 1) = x√x − √x. For the quotient, (f/g)(x) = √x/(x − 1), but only where x − 1 ≠ 0. So the domain of f/g is [0, ∞) − {1}, even though f and g are both defined at 1. Note that x = 0 is allowed: (f/g)(0) = 0/(−1) = 0.
Worked example 3: evaluating at a point
Let f(x) = x + 2 and g(x) = 3x − 6. Find (f + g)(4), (f − g)(4), (fg)(4) and (f/g)(4). Working: f(4) = 6 and g(4) = 6. So (f + g)(4) = 12, (f − g)(4) = 0, (fg)(4) = 36 and (f/g)(4) = 1. In general (f/g)(x) = (x + 2)/(3x − 6) with x ≠ 2.
Worked example 4: a difference quotient
If f(x) = x², find [f(1.5) − f(1)]/(1.5 − 1). Working: f(1.5) = 2.25 and f(1) = 1, so the numerator is 1.25 and the denominator is 0.5. The value is 1.25/0.5 = 2.5. Expressions like this measure the average rate of change of a function, an idea that leads to derivatives in Chapter 12.
Worked example 5: a quotient with two excluded points
Let f(x) = x + 4 and g(x) = x² − 4 on R. Then (f/g)(x) = (x + 4)/(x² − 4). Since x² − 4 = (x − 2)(x + 2) is zero at x = 2 and x = −2, the domain of f/g is R − {−2, 2}. Note that f(−4) = 0 does not matter: a zero in the numerator is allowed, only a zero in the denominator is excluded.
Common mistakes
- Forgetting the bracket in f − g: x² − (3x − 2) is x² − 3x + 2, not x² − 3x − 2.
- Cancelling first and forgetting the excluded point: √x/x simplifies to 1/√x, but the domain is still x > 0 because the original quotient needs x ≠ 0.
- Excluding zeros of the numerator: only g(x) = 0 is a problem in f/g.
Key takeaways: combine functions pointwise on their common domain; sums, differences, scalar multiples and products keep that domain, while the quotient f/g also removes every point where g(x) = 0. Use brackets when subtracting and decide the domain before you simplify.
Check your understanding
-
1. If f(x) = x + 4 and g(x) = 3x − 1, what is (f − g)(x)?
- −2x + 3
- 4x + 3
- −2x + 5
- 2x − 5
Show answer
Answer: C. (f − g)(x) = (x + 4) − (3x − 1) = x + 4 − 3x + 1 = −2x + 5. Forgetting to change the sign of −1 gives the wrong answer −2x + 3.
-
2. If f(x) = x² and g(x) = 4x + 2, what is the domain of f/g?
- R
- R − {−1/2}
- R − {0}
- R − {1/2}
Show answer
Answer: B. f/g = x²/(4x + 2) is undefined where 4x + 2 = 0, that is at x = −1/2. So the domain is R − {−1/2}. The zero of the numerator, x = 0, is allowed.
-
3. If f(x) = 3x and g(x) = x² − 1, what is (fg)(2)?
- 9
- 15
- 18
- 12
Show answer
Answer: C. f(2) = 6 and g(2) = 4 − 1 = 3, so (fg)(2) = 6 × 3 = 18.
-
4. If f(x) = x², what is [f(1.2) − f(1)]/(1.2 − 1)?
- 2.2
- 0.44
- 2
- 4.4
Show answer
Answer: A. f(1.2) = 1.44 and f(1) = 1. The numerator is 0.44 and the denominator is 0.2, so the value is 0.44/0.2 = 2.2.
-
5. Assertion (A): If f(x) = √x and g(x) = x − 1 for x ≥ 0, then the domain of f/g is [0, ∞) − {1}. Reason (R): A quotient f/g is defined only where g(x) ≠ 0.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true, but R is false.
- A is false, but R is true.
Show answer
Answer: A. f and g are both defined on [0, ∞), but g(1) = 0, so 1 must be removed from the domain of f/g, leaving [0, ∞) − {1}. R states the rule that produces A, so both are true and R explains A.
Sign in to keep track of the lessons you finish.