Let f and g be two functions with domains Df and Dg, respectively. The algebra of functions involves combining f and g using operations such as addition, subtraction, multiplication, and division. These operations are performed pointwise, meaning they are applied to each input x where both f(x) and g(x) are defined.
1. Addition of Functions
The sum of two functions, f and g, is defined as:
(f+g)(x)=f(x)+g(x).
This is referred to as pointwise addition because the values of f and g are added for the same input x.
Domain: The domain of f+g is the intersection of the domains of f and g:
Domain of (f+g)=Df∩Dg.
Graphically, the graph of f+g is obtained by adding the y-coordinates of f(x) and g(x) for each x in the common domain.
2. Subtraction of Functions
The difference of two functions, f and g, is defined as:
(f−g)(x)=f(x)−g(x).
Similar to addition, this is also performed pointwise.
Domain: The domain of f−g is the same as for addition:
Domain of (f−g)=Df∩Dg.
3. Multiplication of Functions
The product of two functions, f and g, is defined as:
(f⋅g)(x)=f(x)⋅g(x).
This is referred to as pointwise multiplication since the values of f and g are multiplied for each input x.
Domain: The domain of f⋅g is the intersection of the domains of f and g:
Domain of (f⋅g)=Df∩Dg.
4. Division of Functions
The quotient of two functions, f and g, is defined as:
(gf)(x)=g(x)f(x),for g(x)=0.
This is called pointwise division.
Domain: The domain of gf is the intersection of the domains of f and g, excluding points where g(x)=0:
Domain of (gf)=Df∩Dg∖{x:g(x)=0}.
Key Insights
All operations (addition, subtraction, multiplication, and division) are performed pointwise, meaning the operation is applied to f(x) and g(x) at the same x.
The domain of the resulting function is always the intersection of the domains of f and g, with additional restrictions for division to exclude zeros of g(x).
By combining functions algebraically, we can create new functions that inherit properties from f and g, while their domains depend on the overlap of Df and Dg. Graphical representations show how these operations affect the shape of the resulting function.
Illustrative Example
Let f(x)=x2−1 and g(x)=x+2. The domains of f(x) and g(x) are (−∞,∞).
Addition:
(f+g)(x)=(x2−1)+(x+2)=x2+x+1.
Domain: (−∞,∞).
Subtraction:
(f−g)(x)=(x2−1)−(x+2)=x2−x−3.
Domain: (−∞,∞).
Multiplication:
(f⋅g)(x)=(x2−1)(x+2)=x3+2x2−x−2.
Domain: (−∞,∞).
Division:
(gf)(x)=x+2x2−1.
Domain: (−∞,∞)∖{−2}, since g(x)=0 at x=−2.
Performing Algebra on Piecewise-Defined Functions§
To perform algebraic operations on piecewise-defined functions such as addition, subtraction, multiplication, or division, the process involves a structured approach to ensure correctness. The steps are outlined below.
1. Analyze and Unify Intervals
First, examine the intervals over which each function is defined. If the intervals differ between the two functions, divide the domain into unified intervals that include all boundaries where either function's expression changes. This ensures that the operations are performed consistently across all intervals.
2. Rewrite Functions on Unified Intervals
Once the intervals are unified, rewrite each function on these intervals. For each interval, determine the expression of the function and ensure it is well-defined over the new domain. This step aligns the functions for direct algebraic manipulation.
3. Perform the Desired Operation
Within each unified interval, apply the desired algebraic operation:
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), provided g(x)=0.
4. Combine Results into a New Piecewise Function
The results for each interval are combined to form the new piecewise function. Explicitly define the expression for each interval and specify whether boundaries are included (closed) or excluded (open) to avoid ambiguity.
Let f:A→B and g:C→D be two functions. The composition of f and g is a function, and its concept can be illustrated using the following figures:
The input x is first passed into the function f, which produces an output f(x). This output f(x) then becomes the input of the function g. The final output is g(f(x)), which is written in shorthand as g∘f(x). This process is considered to occur through a single function g∘f, known as the composition of f and g.
If the input instead first goes through g and then through f, the resulting composition is denoted by f∘g(x).
Now consider the composition g∘f. The domain of f is A, but not all inputs from A can necessarily be used in g∘f. Why? Because the output of f might not lie within the domain of g, which is C.
This leads to the following condition for the allowed inputs:
Only those inputs from A are allowed for which the output of f lies in the domain of g.
Thus, the domain of g∘f is not necessarily the same as the domain of f.
The domain of g∘f is:
Domain of (g∘f)={x∈A:f(x)∈Domain of g}.
Similarly, for the composition f∘g, the domain is:
Domain of (f∘g)={x∈C:g(x)∈Domain of f}.
Definition
Let f:A→B and g:C→D be two functions. The composition of functions creates a new function by applying one function to the result of another. The composition g∘f is defined more rigoruously as follows:
g∘f={(x,y):x∈A,f(x)∈C, and y=g(f(x))}.
Similarly, the composition f∘g is defined as:
f∘g={(x,z):x∈C,g(x)∈B, and z=f(g(x))}.
Meaning of the Definition
The definition describes the requirements for composing two functions:
For g∘f:
The input x must belong to the domain of f, which is A.
The output of f(x) must lie within the domain of g, which is C.
The final output of the composition g∘f is given by g(f(x)).
For f∘g:
The input x must belong to the domain of g, which is C.
The output of g(x) must lie within the domain of f, which is B.
The final output of the composition f∘g is given by f(g(x)).
Finding Mathematical Expressions for Compositions
When functions f(x) and g(x) are defined explicitly using mathematical expressions, the composition f∘g(x) or g∘f(x) is determined by substituting the expression of one function into the other. Here’s how to calculate the composition and its exhaustive domain step by step:
Let f(x)=x+1 and g(x)=1−2x. We will compute f∘g(x) and g∘f(x) to demonstrate that composition is not commutative.
f∘g(x)
g∘f(x)
From the above calculations:
f∘g(x)=2−2x,g∘f(x)=−1−2x.
Clearly:
f∘g(x)=g∘f(x).
This example demonstrates that composition is not commutative. The order in which functions are applied affects the resulting expression, making f∘g generally different from g∘f.
Let f:A→B be a function. The composition of f with the identity function satisfies the following properties:
Composition with the identity function on B:
IB∘f=f,
where IB:B→B is the identity function on B defined by IB(y)=y for all y∈B.
Composition with the identity function on A:
f∘IA=f,
where IA:A→A is the identity function on A defined by IA(x)=x for all x∈A.
Proof:
Part 1: IB∘f=f
The composition IB∘f is defined as:
(IB∘f)(x)=IB(f(x)),for all x∈A.
Since IB(y)=y for all y∈B, we have:
IB(f(x))=f(x),for all x∈A.
Thus:
IB∘f=f.
Part 2: f∘IA=f
The composition f∘IA is defined as:
(f∘IA)(x)=f(IA(x)),for all x∈A.
Since IA(x)=x for all x∈A, we have:
f(IA(x))=f(x),for all x∈A.
Thus:
f∘IA=f.
■
Composition of piecewise-defined functions:
f(x)={x+11−2xx≥0,x<0,g(x)={3xx+2x<1,x≥1.
Find f(g(x)) and g(f(x)).
Solution:
f(g(x))=f(g(x))={g(x)+11−2g(x)g(x)≥0,g(x)<0.
Now since g(x) is defined in two pieces, one for x<1 and x≥1, we put each piece one by one. First replace g(x) by 3x every where in the expression, but this is true when x<1. Then replace g(x) by x+2 everywhere again, which is true when x≥1. This results in four rows.
f(g(x))=⎩⎨⎧3x+11−2(3x)(x+2)+11−2(x+2)3x≥0 when x<1,[ as g(x)=3x when x<1]3x<0 when x<1,[ as g(x)=3x when x<1]x+2≥0 when x≥1,[ as g(x)=x+2 when x≥1]x+2<0 when x≥1,[ as g(x)=x+2 when x≥1]
Simplify the inequations in each row:
f(g(x))=⎩⎨⎧3x+11−6xx+3−2x−3x≥0 when x<1,x<0 when x<1,x≥1 when x+2≥0,x≥1 when x+2<0.f(g(x))=⎩⎨⎧3x+11−6xx+3−2x−30≤x<1,x<0,x≥1,x∈∅.[ we can ignore this ]f(g(x))=⎩⎨⎧1−6x3x+1x+3x<0,0≤x<1,x≥1.
Now let us find g(f(x)):
g(f(x))={3f(x)f(x)+2f(x)<1f(x)≥1=⎩⎨⎧3(x+1)(x+1)+23(1−2x)1−2x+2x+1<1 when x≥0x+1≥1 when x≥01−2x<1 when x<01−2x≥1 when x<0=⎩⎨⎧3x+3x+33−6x3−2xx<0 when x≥0x≥0 when x≥0x>0 when x<0x≤0 when x<0=⎩⎨⎧3x+3x+33−6x3−2xx∈∅[ we can ignore this ]x≥0x∈∅[ we can ignore this ]x<0={x+33−2xx≥0x<0
f(g(x))=⎩⎨⎧g(x)g(x)+21−g(x)g(x)<−1−1≤g(x)<2g(x)≥2=⎩⎨⎧3−2x3−2x+21−(3−2x)x−1x−1+21−(x−1)3−2x<−1 when x<0−1≤3−2x<2 when x<03−2x≥2 when x<0x−1<−1 when x≥0−1≤x−1<2 when x≥0x−1≥2 when x≥0=⎩⎨⎧3−2x5−2x2x−2x−1x+12−xx>2 when x<021<x≤2 when x<0x≤21 when x<0x<0 when x≥00≤x<3 when x≥0x≥3 when x≥0=⎩⎨⎧3−2x5−2x2x−2x−1x+12−xx∈∅x∈∅x<0x∈∅0≤x<3x∈∅
Remove empty cases,
={2x−2x+1x<00≤x<3
■
Section 10 of 18 · Relations and Functions
Mark this section complete when you have worked through its proofs.
Type any topic, theorem, or concept to jump directly to the section.