A function is a rule that assigns each input value from one set to exactly one output value in another set.
If X and Y are sets of real numbers, a real-valued function f from X to Y assigns every x in X to one and only one value y in Y. The value y is written as f(x), which is read as "f of x."
The set X is called the domain of the function. It contains all values that may be used as inputs. The set of all actual output values produced by the function is called the range. The input variable x is called the independent variable, while the output variable y is called the dependent variable.
A relation is not necessarily a function. It becomes a function only when each input has exactly one output.
If f(x) = x2 - 7, evaluate f(3), f(-2), f(3a), and f(b - 1).
Solution:
f(3) = 32 - 7 = 9 - 7 = 2
f(-2) = (-2)2 - 7 = 4 - 7 = -3
f(3a) = (3a)2 - 7 = 9a2 - 7
f(b - 1) = (b - 1)2 - 7
= b2 - 2b + 1 - 7
= b2 - 2b - 6
Function notation is a convenient way of showing dependence between two variables. In y = f(x), the value of y depends on the value chosen for x.
An equation may define a function explicitly or implicitly.
An explicit function is written directly in the form y = f(x). For example:
y = x2 - 4x + 7
An implicit equation relates x and y without first isolating y. For example:
x2 + 2y = 1
To write it explicitly, solve for y:
2y = 1 - x2
y = 1 - x2⁄2
Therefore, the function may be written as:
f(x) = 1 - x2⁄2
If f(x) = 2x2 - 5x + 1 and h ≠ 0, simplify:
f(a + h) - f(a)⁄h
Solution:
First find f(a + h):
f(a + h) = 2(a + h)2 - 5(a + h) + 1
= 2(a2 + 2ah + h2) - 5a - 5h + 1
= 2a2 + 4ah + 2h2 - 5a - 5h + 1
Also:
f(a) = 2a2 - 5a + 1
Now substitute:
f(a + h) - f(a)⁄h = 2a2 + 4ah + 2h2 - 5a - 5h + 1 - (2a2 - 5a + 1)⁄h
= 4ah + 2h2 - 5h⁄h
= h(4a + 2h - 5)⁄h
= 4a + 2h - 5
The domain of a function is the set of all input values for which the function is defined.
The range of a function is the set of all possible output values produced by the function.
A domain may be explicitly stated or implied by the formula.
An explicitly stated domain is given directly with the function. For example:
f(x) = 1⁄x2 - 4, 4 ≤ x ≤ 5
Here, the domain is 4 ≤ x ≤ 5.
An implied domain is the largest set of real numbers for which the formula makes sense. For example:
g(x) = 1⁄x2 - 4
Here, x cannot be 2 or -2 because those values make the denominator zero. Therefore, the domain is all real numbers except x = -2 and x = 2.
Find the domain and range of:
f(x) = √(x + 2)
Solution:
The expression inside the square root must be non-negative:
x + 2 ≥ 0
x ≥ -2
So the domain is:
[-2, ∞)
Since square roots are always non-negative, the range is:
[0, ∞)
Find the domain and range of:
g(x) = 1⁄x2 - x
Solution:
Factor the denominator:
x2 - x = x(x - 1)
The denominator must not be zero:
x(x - 1) ≠ 0
So:
x ≠ 0 and x ≠ 1
The domain is:
(-∞, 0) ∪ (0, 1) ∪ (1, ∞)
To find the range, let:
y = 1⁄x2 - x
Then:
x2 - x = 1⁄y
So:
x2 - x - 1⁄y = 0
For real x-values to exist, the discriminant must be non-negative:
1 + 4⁄y ≥ 0
This gives:
y > 0 or y ≤ -4
Therefore, the range is:
(-∞, -4] ∪ (0, ∞)
A piecewise-defined function is a function described by different formulas on different parts of its domain.
For example:
f(x) = 1 - x, if x < 1
f(x) = √(x - 1), if x ≥ 1
This means that the rule used depends on the value of x.
Given:
f(x) = 1 - x, if x < 1
f(x) = √(x - 1), if x ≥ 1
Evaluate f(-2), f(0), and f(5). Then find the domain and range.
Solution:
Since -2 < 1:
f(-2) = 1 - (-2) = 3
Since 0 < 1:
f(0) = 1 - 0 = 1
Since 5 ≥ 1:
f(5) = √(5 - 1) = √4 = 2
The function is defined for x < 1 and x ≥ 1. These intervals cover all real numbers. Therefore, the domain is:
(-∞, ∞)
For x < 1, the expression 1 - x is positive. For x ≥ 1, the expression √(x - 1) is non-negative. The smallest output is 0, which occurs at x = 1. Therefore, the range is:
[0, ∞)
A composite function is formed when the output of one function becomes the input of another function.
If f and g are functions, then the composite of f with g is written as:
(f ∘ g)(x) = f(g(x))
This means that g is applied first, and then f is applied to the result.
The domain of f ∘ g is the set of all x-values in the domain of g for which g(x) is in the domain of f.
In general:
(f ∘ g)(x) ≠ (g ∘ f)(x)
Given:
f(x) = x2
g(x) = x - 3
Find f ∘ g and g ∘ f.
Solution:
(f ∘ g)(x) = f(g(x))
= f(x - 3)
= (x - 3)2
Also:
(g ∘ f)(x) = g(f(x))
= g(x2)
= x2 - 3
Therefore:
(f ∘ g)(x) = (x - 3)2
(g ∘ f)(x) = x2 - 3
These are not the same function.
Let:
f(x) = √x
g(x) = √(2 - x)
Find each composite function and its domain.
1. f ∘ g
(f ∘ g)(x) = f(g(x))
= f(√(2 - x))
= √(√(2 - x))
For this to be defined:
2 - x ≥ 0
x ≤ 2
Domain:
(-∞, 2]
2. g ∘ f
(g ∘ f)(x) = g(f(x))
= g(√x)
= √(2 - √x)
For √x to be defined:
x ≥ 0
For √(2 - √x) to be defined:
2 - √x ≥ 0
√x ≤ 2
x ≤ 4
Therefore, the domain is:
[0, 4]
3. f ∘ f
(f ∘ f)(x) = f(f(x))
= f(√x)
= √(√x)
The domain is:
[0, ∞)
4. g ∘ g
(g ∘ g)(x) = g(g(x))
= g(√(2 - x))
= √(2 - √(2 - x))
First:
2 - x ≥ 0, so x ≤ 2
Second:
2 - √(2 - x) ≥ 0
√(2 - x) ≤ 2
2 - x ≤ 4
x ≥ -2
Therefore, the domain is:
[-2, 2]
Even and odd functions describe symmetry in a function.
A function f is even if:
f(-x) = f(x)
for every x in the domain.
The graph of an even function is symmetric about the y-axis.
A function f is odd if:
f(-x) = -f(x)
for every x in the domain.
The graph of an odd function is symmetric about the origin.
If neither condition is satisfied, the function is neither even nor odd.
Determine whether:
f(x) = x5 + x
is even, odd, or neither.
Solution:
f(-x) = (-x)5 + (-x)
= -x5 - x
= -(x5 + x)
= -f(x)
Therefore, f is odd.
Determine whether:
g(x) = 1 - x4
is even, odd, or neither.
Solution:
g(-x) = 1 - (-x)4
= 1 - x4
= g(x)
Therefore, g is even.
Determine whether:
h(x) = 2x - x2
is even, odd, or neither.
Solution:
h(-x) = 2(-x) - (-x)2
= -2x - x2
This is not equal to h(x), and it is not equal to -h(x). Therefore, h is neither even nor odd.
A periodic function is a function whose values repeat at regular intervals.
A function f is periodic if there exists a positive constant p such that:
f(x + p) = f(x)
for every x in the domain.
The smallest positive value of p that satisfies this condition is called the period of the function.
The sine function is periodic:
y = sin x
Its period is:
2π
This means:
sin(x + 2π) = sin x
The tangent function is also periodic:
y = tan x
Its period is:
π
This means:
tan(x + π) = tan x
A function assigns each input exactly one output.
f(x) means the value of f at x.
The domain is the set of permitted input values.
The range is the set of output values actually produced.
For √A to be real:
A ≥ 0
For A⁄B to be defined:
B ≠ 0
(f ∘ g)(x) = f(g(x))
Domain of f ∘ g:
x must be in the domain of g, and g(x) must be in the domain of f.
f(-x) = f(x)
f(-x) = -f(x)
f(x + p) = f(x), where p > 0.
Before an examination, make sure you can: