c1f_t1
c1f_t1
w
2.6. Recognizing Functions
toc
In this section we examine the following question:
“Is the variable s a function of the variable t?”
The goal of this section is develop a “feel” for functional relation-
ships, and furthermore, do it in such a way that your understanding
of a functional relationship does not depend on the particular letters
(variables) used. (This is why I have used different letters to denote
the variables – to avoid biasing your thinking towards our special
variables x and y.)
• Equality of Functions
Let f and g be functions. We say that f = g provided:
1. Dom(f ) = Dom(g);
2. f (x) = g(x), for all x ∈ Dom(f ).
More informally, two functions are the same if they have the same
domain of definition (condition 1), and pointwise they have the same
values (condition 2).
The first example illustrates the equality of two functions. It is a two-
step method: (1) Check whether the domains are equal; (2) Check
whether the functions, pointwise, have the same values.
Section 4: Methods of Combining Functions
• Scalar Multiplication
Let f be a real-valued function of a real variable, and let k ∈ R be a
constant. Define a new function, denoted kf , to be a function whose
domain is
Dom(kf ) = Dom(f ),
such that,
(kf )(x) := kf (x), x ∈ Dom(kf ).
The function kf is called a scalar multiple of f (the constant k, in
this context, is referred to as a scalar).
Below is a sequence of simple examples.
f (x) = x2 , x ∈ R
5f (x) = 5x2 , x ∈ R
√
g(x) = x2 − 4, x ∈ [ 4, ∞ )
√
−.23g(x) = −.23 x2 − 4, x ∈ [ 4, ∞ )
h(x) = sin x, x ∈ R
1 1
2 h(x) = 2 sin x, x∈R
Section 4: Methods of Combining Functions
Exercise 4.3. Study the definition of the sum of two functions. Dis-
cuss why the domain of f + g is defined as it is.
Let’s look at some illuminating examples.
√
Example 4.4. Let f (x) = x and g(x) = sin x, then the sum and
difference of f and g are
√
(f + g)(x) = f (x) + g(x) = x + sin x
√
(f − g)(x) = f (x) − g(x) = x − sin x.
What are the domains of these functions?
√ √
Exercise 4.4. Let f (x) = 1 − x and g(x) = x − 2, and let F =
f + g. Is there something strange about this definition?
The sum and difference of functions is extended to sums and differ-
ences of many functions.
Exercise 4.5. Let f , g, and h be functions. Define F = f + g − h.
What is the domain of F , and how do calculate the values of F ?
Section 4: Methods of Combining Functions
f f (x)
(x) := , x ∈ Dom(f /g).
g g(x)
The function is called the quotient of f and g.
Notice the domain of f /g is a bit more involved than the previous
definitions. Obviously, we cannot divide by 0, so we must ensure that
the x we use to evaluate the expression f (x)/g(x), cannot yield 0 in
the denominator; i.e. we require g(x) 6= 0.
A skill level 0 example would be the following.
Example 4.8. Let f (x) = x3 , g(x) = (x2 − 1), and define F = f /g.
Discuss the natural domain of definition of F , and write a calculating
formula for F .
√
x sin(x)
Example 4.9. Decompose the function F (x) = into a
x2 − 3
products and quotients of “elementary functions.” Do a domain anal-
ysis on same.
Section 5: The Composition of Functions
• Comparison of Functions
Comparing functions is quite important in mathematics. It is very
important to understand what is meant by it.
Exercise 4.9. Let f and g be two given functions. Now that you have
seen a large number of definitions, can you give a good definition of
the following phrase:
“f < g over the set A.”
Section 5: The Composition of Functions
Dom(f ◦ g) = Dom(g),
such that,
(f ◦ g)(x) := f (g(x)), x ∈ Dom(f ◦ g).
The function f ◦ g is called the composition of f with g.
Compatible for Composition: Given a pair of functions, f and g,
if Rng(g) ⊆ Dom(f ), we us agree to say that f is compatible with g
for composition.
Section 5: The Composition of Functions
Example 5.2. Consider the two functions f (x) = sin(x) and g(x) =
x2 . (a) Is f compatible with g for composition? (b) Calculate the
domain of the composed function. (b) Compose f with g.
Multiple Compositions. Very often, functions of interest are, in
fact, the composition of several simple functions. The extension from
two function to three is obvious — at least after a few examples.
Section 5: The Composition of Functions
√
Example 5.3. Let f (x) = x5 , g(x) = sin(x), and h(x) = x. Calcu-
late the function (f ◦ g ◦ h)(x) = f (g(h(x))).
Exercise 5.1. Consider the functions
x
f (x) = tan(x) g(x) = h(x) = x2 .
x2 +1
Calculate the composition (f ◦ g ◦ h)(x) = f (g(h(x))). Perform the
calculation two ways: In-to-Out, and Out-to-In.
The concept of composition is independent of the letters used to define
the functions and the variables.
Exercise 5.2. Consider the functions
W (x) = cos(x) M (u) = u2 .
Calculate W ◦ M and M ◦ W .
Composition of Anonymous Functions. Very often, the functions
are given in anonymous form, say y = sin(x) and y = x2 . Now we
have a bit of a syntactical problem: How to explain to the user (you)
Section 5: The Composition of Functions
what we want to do. We could say, that we want to compose the first
function with the second function — until we reverse the order of
the functions, in which case we change our minds and now want to
compose the second with the first.
A popular convention is to relabel the variables so as to suggest our
intentions. Instead of writing y = sin(x) and y = x2 , write instead
y = sin(u) and u = x2 .
Does this now suggest our intention? The composition of the these
two functions is then
y = sin(x2 ),
where now composition is reduced to a process of substitution of vari-
ables; to tell you the truth, that’s all composition is anyway.
Exercise 5.3. Consider the pair of functions w = s2 + 2 and s =
t2 − 1, compose these two functions together in the obvious order to
obtain w as a function of t.
Section 5: The Composition of Functions
keys. When you press two consecutive function keys on your calcula-
tor, you are composing functions together.
For example, suppose you wanted to calculate the expression sin(x2 ),
for some particular number x. How would you do it? You would per-
form a series of calculation steps. Step (1): Use the keypad to enter x
into the display. Step (2): Press the function key labeled x2 . Step (3):
Now press the function key labeled sin(x). You have just composed
functions! Here is a diagram of the sequence of operations:
x −→ x2 −→ x2 −→ sin(x) −→ sin(x2 ).
The “squaring box” squares whatever is input into its box, the “sine
box” take the sine of whatever is input into its box.
Now that I have amazed you with this observation, let me pop you
balloon. You don’t actually have to press two function keys to compose
Section 5: The Composition of Functions
= f (x2 + 2x + 3) / by defn of g
x −→ x2 + 2x + 3 −→ x2 −→ (x2 + 2x + 3)2 .
As you can see, this process is indeed a composition: the output of a
function (x2 + 2x + 3) is input back into another function x2 .
Section 5: The Composition of Functions
g(x) f (g(x))
x x3
x2 (x2 )3
x3 (x3 )3
2 2 3
x
√ +1 (x
√ +3 1)
x ( x)
cos x (cos x)3
cos2 x (cos2 x)3
Of course, some of the entries in the second column can be simplified.
I left them that way so you could see the results of composition.
One more table. This one a little more abstract. Let the function
f (x) = (3x + 1)4 . Compose f with some functions of the form g(x) =
x + h, where h algebraic quantity (unspecified); or g(x) = ax, where,
again a is an algebraic quantity — plus variations on these two.
Section 5: The Composition of Functions
g(x) f (g(x))
x (3x + 1)4
x+h (3(x + h) + 1)4
x−h (3(x − h) + 1)4
ax (3(ax) + 1)4
−ax (3(−ax) + 1)4
ax + h (3(ax + h) + 1)4
ax − h (3(ax − h) + 1)4
x−a x−a
(3( ) + 1)4
h h
Have you gotten the “feel” for composition? As a rough rule, if you
want to compose a function f (x) = sin(x) with another function
g(x) = x2 + 1, that is, if you want to compute the function f ◦ g,
you take the “outer function,” f in this case, and replace its “argu-
ment,” that’s x, with the value, g(x) of g, that’s x2 . Thus,
f ◦ g(x) = f (g(x)) = sin(g(x)) = sin(x2 + 1).
Section 5: The Composition of Functions
Look at a large number of worked out examples, similar to the last ex-
ample, until you finally get a “feel” for the process, or see the pattern
of composition. Or, (2) Imagine how you would calculate the function
on your calculator — the consecutive pressing of function buttons.
Reread the discussion above. Or, (3) uncompose by substitution.
Uncompose by Substitution. The formal technique of substitution
is a way of uncomposing a function. Let me illustrate with a hideous
example:
2 23/3
x sin(x3 ) + 2x = 1
y= √ .
cos(x) − x
Isn’t that ugly now? That base function offends me! Let me mask it
over, or substitute it away. Let u be defined by
x2 sin(x3 ) + 2x = 1
u= √ . (1)
cos(x) − x
Now, my original function is not so bad; it becomes
y = u23/3 , (2)
Section 6: Shifting and Rescaling
y = f (u) = u23/3
x2 sin(x3 ) + 2x = 1
u = g(x) = √
cos(x) − x
This substitution method is a very important tool used in differenti-
ation of complicated functions and in the integration of functions.
Exercise 5.4. Make an appropriate substitution of variables to help
you uncompose the function y = tan(x3 − 2x + 2).
Section 6: Shifting and Rescaling
• Horizontal Shifting
Let y = f (x) be a function of a real variable, and let c > 0 be a
fixed constant. The graph of f is a certain curve in the xy-plane.
Sometimes we want to move the graph horizontally a distance of ‘c.’
We may want to shift horizontally to the right or to the left.
Shift Horizontally to the Right. Define a new function g (whose graph
is going to be the graph of f shifted over c units to the right) by
g(x) := f (x − c), x ∈ Dom(f ).
Section 6: Shifting and Rescaling
• Vertical Shifting
Let y = f (x) be a real-valued function, and let c > 0 be a fixed
constant. The graph of f is a certain curve in the xy-plane. Sometimes
we want to move the graph vertically a distance of ‘c.’ We may want
to shift vertically upward or downward.
Shift Vertically Up. Define a new function g (whose graph is going to
be the graph of f shifted up c units) by
g(x) := f (x) + c, x ∈ Dom(f ).
• Rescaling
Rescaling is a term taken from the applications this technique has
in many of the applied sciences. In the sciences, the variables of in-
terested are observable, perhaps measurable quantities. Quite often
the variables are measured in a certain scale of measurement: inches,
meters, pounds, liters, etc. Sometimes, it is desirable to change a re-
lationship from one scale of measurement to another: this is the origin
of the term.
Let y = f (x) be a function of a real variable, and let c be a fixed
constant (positive or negative). Define a new function g by
g(x) := f (cx), x ∈ Dom(f ).
The constant c is sometimes called the scale factor.
For example, suppose a car travels at a constant speed of v = 55 mi/hr.
As we know, the distance traveled is given by d = vt = 55t, where
it is understood that t is measured in hours. Let’s put this in func-
tional notation: d = f (t), where f (t) = 55t. Suppose now we want
Section 7: Classification of Functions
7. Classification of Functions
A brief discussion some of the very common types of functions seen
in pure and applied mathematics. At this introductory level, we will
survey only the follow types at this time.
1. Polynomials.
2. Rational Functions.
3. Algebraic Functions.
• Polynomial Functions
Let be define a polynomial function in a series of definitions.
Polynomial of degree 0. A polynomial of degree 0 is any function
of the form:
y = a0 ,
where a0 is any constant. For example, y = 2 is considered a polyno-
mial of degree 0.
Section 7: Classification of Functions
y = a0 + a1 x + a2 x2 + · · · + an−1 xn−1 + an xn .
Where, as before, the symbols a0 , a1 , a2 , a3 , . . . , an are constants.
These constants are called the coefficients of the polynomial.
Section 7: Classification of Functions
• Rational Functions
A rational function is any function that can be written as the quotient
of two polynomials. More technically,
• Algebraic Functions
Let’s begin by setting the terminology.
s − 4t + t2 = 1 ⇐⇒ s = 1 + 4t + t2 .
That was simple. Thus, each value of t yields only one value of s; s is
indeed a function of t. We can use the notation
s = f (t) = 1 + 4t + t2 Dom(f ) = R.
This shows that for each value of s (for which the radicand is nonneg-
ative) there is two value of t. Thus, t is not a function of s.
Example Notes: In line (A-2) we used the infamous quadratic formula.
The solution to the equation
ax2 + bx + c = 0
is √
−b ± b2 − 4ac
x= .
2a
This is why I set up the equation in line (A-1). Exercise 2.42.
Solutions to Exercises (continued)
y = mx and x2 + y 2 = 1.
Thus,
x2 + (mx)2 = 1.
Solutions to Exercises (continued)
Now, solving this last equation for x gives the x-coordinate(s) of the
point(s) of intersection.
x2 + (mx)2 = 1 ⇐⇒ x2 + m2 x2 = 1
⇐⇒ x2 (1 + m2 ) = 1
1
⇐⇒ x2 =
1 + m2
√
⇐⇒ x = ± 11 + m2 . (A-3)
Equation (A-3) indicates to me that x is not a function of m: Each
value of m yields two values of x.
Solution to (b): Is m a function of x?
Given that x is the x-coordinate of the point(s) of intersection between
the circle x2 + y 2 = 1 and any line of the form y = mx, we must
determine the value of m.
Solutions to Exercises (continued)
2.45. Perhaps one could call this the horizontal line test?
2.46. Simply restate the Function Line Test using these different
letters:
Solution to (a): C defines s as a function of t provided every line
perpendicular to the t-axis intersects the curve at no more than one
point.
Solution to (b): C defines t as a function of s provided every line
perpendicular to the s-axis intersects the curve at no more than one
point. Exercise 2.46.
Solutions to Exercises (continued)
4.1. Yes.
1 √ √
f (x) = √ √ g(x) = x + 1 + x.
x+1− x
Domains Equal? We must have x + 1 ≥ 0 and x ≥ 0 for the radicals
in the two functions to be real numbers. The next question, is whether
the denominator of f can ever be zero; indeed,
√ √ √ √
x + 1 − x = 0 =⇒ x + 1 = x
=⇒ x + 1 = x
=⇒ 1 = 0
√ √
We have argued
√ that
√ if x + 1 − x = 0, then 1 = 0; therefore, we
conclude x + 1 − x 6= 0 for any x ∈ R.
The domains of these two functions requires x + 1 ≥ 0 and x ≥ 0;
therefore,
Dom(f ) = Dom(g) = [ 0, ∞ ).
Solutions to Exercises (continued)
Dom(f ) 6= Dom(g),
and so,
f 6= g.
All done!
Exercise Notes: However, we can say Dom(f ) ⊆ Dom(g) and that for
all x ∈ Dom(f ) we have f (x) = g(x). In this case, we say that g is an
extension of f . Exercise 4.2.
Solutions to Exercises (continued)
4.3. Look at the calculating formula. The concept is to add the values
of f and g together. So given an x, we need to have defined the value
f (x). This implies x ∈ Dom(f ). Similarly, we need to add f (x) to g(x)
— g(x) needs to be a defined quantity; therefore, x ∈ Dom(g) as well.
We have argued that in order to carry out the concept of summing
two functions together, we must choose an x in both Dom(f ) and in
Dom(g). Thus, x ∈ Dom(f ) ∩ Dom(g). ’Nuff said. Exercise 4.3.
Solutions to Exercises (continued)
4.6. At the first level f can be broken down into two pieces:
√
5x3 sin(x) cos(x), and 3 x tan(x).
At a second level:
√
5, x3 , sin(x), cos(x), 3, x, tan(x).
Each (much simpler) functions are the ones used to “build” the func-
tions f – through a combination of scalar multiplication, addition,
subtraction and multiplication of functions. Exercise 4.6.
Solutions to Exercises (continued)
4.8. Three! But is it the three you had in mind? Define f (x) = x,
g(x) = sin(x), and h(x) = 1. Then,
F = f 4 g2 + g2 − h
or,
F (x) = x3 [sin(x)]2 + [sin(x)]2 − 1, x ∈ Dom(F ).
What is the natural domain of definition of F ? Is there another way
of writing F ? Exercise 4.8.
Solutions to Exercises (continued)
5.1. I’ll leave the details to you. But I will tell you,
1
(f ◦ g ◦ h)(x) = tan(( )2 ).
x2 +1
Verify! Exercise 5.1.
Solutions to Exercises (continued)
5.3. The height of triviality: w = (t2 − 1)2 + 2. I hope you got it.
Exercise 5.3.
Solutions to Exercises (continued)
right-hand side does not evaluate to a real number (as required by the
condition that x be a real variable). This does not mean that x is or
is not a function of y, it simply means that we have chosen a value of
y that is not in the proper domain.
Now look at the
√ case y = −1; substituting this value into the equation
we get x = ± 2. Thus, √ corresponding to
√ a value of y = −1 there are
two values of x – x = 2 and x = − 2. This denies the concept
(definition) of a function. Therefore “x is not a function of y.”
Example 2.14.
Solutions to Examples (continued)
4.1. Solution:
Domains the Same? The domains of these two functions were not
given; therefore, we take their natural domains of definition. In this
case, both functions have domain of R. Thus,
Dom(f ) = Dom(g) = R.
Dom(f + g) = [ 0, ∞ ) ∩ R = [ 0, ∞ ).
Thus,
Dom(f + g) = Dom(f − g) = [ 0, ∞ ) .
That seemed straight forward. Example 4.4.
Solutions to Examples (continued)
√
4.9. Let f (x) = x, g(x) = sin(x), and h(x) = x2 − 3, then F =
(f g)/h.
What about the domain analysis? Can you determine it by inspection?
What is it? Clearly it has to be
Dom(F ) = { x | x ≥ 0 and x 6= 1 }
= [ 0, 1 ) ∪ ( 1, ∞ )
Verify this please using the meticulous methods demonstrated in the
earlier examples/exercises. Example 4.9.
Solutions to Examples (continued)
5.1. Taking the definition are doing symbolic replacement we get the
criterion: for h to be compatible with f for composition we require
Rng(f ) ⊆ Dom(h).
One of the fundamental skills in the mathematical sciences is replace-
ment; that is the ability to take a sentence that uses certain symbolics
in it and replacing those symbolics with another set of symbolics. Here
are some examples:
Any way you cut it, it’s the same. Example 5.3.
Solutions to Examples (continued)
= (g(x))6 / by defn of f
3 6
= (3x − 2x + 1) / by defn of g
= F (x). / by defn of F
Example 5.5.
Solutions to Examples (continued)
= sin(1 + x3 ) / by defn of g
= F (x). / by defn of F
Dom(f ) = { x ∈ R | x 6= 1 and x 6= 2 }
Dom(g) = [ 0, 1 ) ∪ ( 1, ∞ )
Dom(h) = { x ∈ R | x 6= 1 }
Example 7.1.
Important Points
Important Points (continued)