Combining Functions
Just like numbers, functions can be added, subtracted, multiplied, and divided.
Given two functions f(x) and g(x), we can create new functions:
The Four Operations
Addition:
(f+g)(x)=f(x)+g(x)
Subtraction:
(f−g)(x)=f(x)−g(x)
Multiplication:
(f⋅g)(x)=f(x)⋅g(x)
Division:
(gf)(x)=g(x)f(x),g(x)=0
Example
Let f(x)=x2 and g(x)=x+1.
Addition:
(f+g)(x)=x2+(x+1)=x2+x+1 Subtraction:
(f−g)(x)=x2−(x+1)=x2−x−1 Multiplication:
(f⋅g)(x)=x2(x+1)=x3+x2 Division:
(gf)(x)=x+1x2
Evaluating at a Point
To find (f+g)(3), you can either:
Method 1: Combine first, then evaluate
(f+g)(x)(f+g)(3)=x2+x+1=9+3+1=13 Method 2: Evaluate each, then combine
f(3)g(3)(f+g)(3)=9=4=9+4=13 Both give the same result.
Domain of Combined Functions
The domain of a combined function is where both original functions are defined.
Example: f(x)=x and g(x)=4−x
- Domain of f: x≥0
- Domain of g: x≤4
- Domain of f+g: 0≤x≤4
The combined domain is the intersection of the individual domains.
Division Requires Extra Care
For gf, we must also exclude where g(x)=0.
Example: f(x)=x and g(x)=x−2
- Domain of f: all real numbers
- Domain of g: all real numbers
- Domain of gf: all real numbers except x=2
We exclude x=2 because g(2)=0 would make us divide by zero.