Professional Documents
Culture Documents
FUNCTIONS
A. Definition of Function
A function relates an input to an output.
We will see many ways to think about functions, but there are always
three main parts:
The input
The relationship
The output
Example: "Multiply by 2" is a very simple function.
Inpu Relationshi
Output
t p
0 ×2 0
1 ×2 2
7 ×2 14
10 ×2 20
... ... ...
x2 (squaring) is a function
x3+1 is also a function
Sine, Cosine and Tangent are functions used in trigonometry
and there are lots more!
Names
The most common name is "f", but we can have other names like "g" ...
or even "marmalade" if we want.
f(x) = x2 shows us that function "f" takes "x" and squares it.
an input of 4
becomes an output of 16.
Don't get too concerned about "x", it is just there to show us where the
input goes and what happens to it.
It could be anything!
So this function:
f(x) = 1 - x + x2
f(2) = 1 - 2 + 22 = 3
y = x2
an input (x)
a relationship (squaring)
and an output (y)
Relating
h(age) = age × 20
h(10) = 10 × 20 = 200 cm
Here are some example values:
... which numbers?
A Function is Special
(one-to-many) (many-to-one)
This is NOT OK in a But this is OK in a
function function
X: x Y: x2
3 9
1 1
0 0
4 16
-4 16
... ...
It is a function, because:
(But the fact that "6" in Y has no relationship does not matter)
My examples have just a few values, but functions usually work on sets
with infinitely many elements.
Example: y = x3
We can't show ALL the values, so here are just a few examples:
X: x Y: x3
-2 -8
-0.1 -0.001
0 0
1.1 1.331
3 27
and so
and so on...
on...
We have a special page on Domain, Range and Codomain if you want to
know more.
So Many Names!
Functions have been used in mathematics for a very long time, and lots
of different names and ways of writing functions have come about.
Here are some common terms you should get familiar with:
Example: z = 2u3:
Example: f(4) = 16:
Example: h(year) = 20 × year:
We often call a function "f(x)" when in fact the function is really "f"
Ordered Pairs
They are called ordered pairs because the input always comes first, and
the output second:
(input, output)
( x, f(x) )
Example:
(4,16) means that the function takes in "4" and gives out "16"
"2 is related to 4", "3 is related to 5" and "7 is related 3".
"if it contains (a, b) and (a, c), then b must equal c"
Which is just a way of saying that an input of "a" cannot produce two
different results.
So a set of coordinates is also a function (if they follow the rules above,
that is)
Explicit vs Implicit
y = x3 − 3
Graphing
Addition
The only other thing to worry about is the Domain (the set of numbers
that go into the function), but I will talk about that later!
Subtraction
Multiplication
Division
(f/g)(x) = (2x+3)/x2
Function Composition
There is another special operation called Function
Composition, (g º f)(x)
read that page to find out more!
Domains
It has been very easy so far, but now we must consider the Domains of
the functions.
The function must work for all values we give it, so it is up to us to make
sure we get the domain correct!
{x | x ≥ 0}
"the set of all x's that are a member of the Real Numbers,
such that x is greater than or equal to zero"
[0,+∞)
If we choose any other value, then one or the other part of the new
function won't work.
Note: we can put this whole idea into one line using Set
Builder Notation :
Here is an example:
(f/g)(x) = √x / √(3−x)
Summary
C.Composition of Functions
"Function Composition" is applying one function to the results of
another:
It is written: (g º f)(x)
Which means: g(f(x))
Example: f(x) = 2x+3 and g(x) = x2
g(input) = (input)2
Let's start:
(g º f)(x) = g(f(x))
(g º f)(x) = (2x+3)2
(f º g)(x) = f(g(x))
(f º g)(x) = 2x2+3
Symbol
(g º f)(x)
Example: f(x) = 2x+3
(f º f)(x) = f(f(x))
(f º f)(x) = 2(2x+3)+3 = 4x + 9
(f º f)(x)= f(f(x))
= f(2x+3)
= 2(2x+3)+3
= 4x + 9
Domains
It has been easy so far, but now we must consider the Domains of the
functions.
The function must work for all values we give it, so it is up to us to make
sure we get the domain correct!
{x | x ≥ 0}
[0,+∞)
Example: f(x) = √x and g(x) = x2
(g º f)(x)= g(f(x))
= (√x)2
= x
Now, "x" normally has the Domain of all Real Numbers ...
... but because it is a composed function we must also consider
f(x),
Well, imagine the functions are machines ... the first one melts a hole
with a flame (only for metal), the second one drills the hole a little bigger
(works on wood or metal):
De-Composing Function
Example: (x+1/x)2
f(x) = x + 1/x
g(x) = x2
And we get:
(g º f)(x)= g(f(x))
= g(x + 1/x)
= (x + 1/x)2
This can be useful if the original function is too complicated to work on.
Summary
The set of possible input values for a function is called its domain, and
the set of possible output values is called the codomain. The term
“range” is sometimes used instead of “codomain,” but “range” is also
sometimes used to mean “image” (see below), so “range” is confusing and
NAQT generally avoids it. The domain and codomain of a function could
be any set at all — consisting of numbers, matrices, people, flowers, etc.
— but most of high school and earlier math, and this article, are
concerned with functions whose domain and codomain are both sets of
numbers (especially the set of all real numbers).
There are formulas to find those roots for linear, quadratic, cubic,
and quartic polynomials, though the latter two formulas are extremely
complicated. The Abel-Ruffini theorem, also called Abel’s impossibility
theorem, is the statement that there is no way to find a formula for the
solutions of all quintic or higher-degree polynomials, if the formula must
be based on the traditional operations (addition/subtraction,
multiplication/division, and exponentiation/taking roots). That
impossibility is the topic that began an area of study called Galois gal-
wah theory, which is part of abstract algebra.
E. Graph of a Function
The graph of a function f is the set of all points in the plane of the form
(x, f(x)). We could also define the graph of f to be the graph of the
equation y = f(x). So, the graph of a function if a special case of the graph
of an equation.
Example 1.
Let f(x) = x2 - 3.
x -2 -1 0 1 2
f(x) 1 -2 -3 -2 1
Exercise 1:
(a) Plot the five points on the graph of f from the table above,
and based on these points, sketch the graph of f.
Example 2.
(5 - x^2)*(xLE2) + (x - 1)*(2Lx).
Exercise 2:
Suppose that we are given the graph of the equation. There is an easy
way to see if this equation describes y as a function of x.
Example 3.
Think of the vertical line test this way. The points on the
graph of a function f have the form (x, f(x)), so once you know
the first coordinate, the second is determined. Therefore,
there cannot be two points on the graph of a function with
the same first coordinate.
|f(x)−L|<ε,
whenever
0<|x−a|<δ.
limx→af(x)=limx→a−0f(x)=limx→a+0f(x).
Example 1.
Solution.
Let ε>0 be an arbitrary positive number. Choose δ=ε3. We see that if
0<|x−3|<δ,
then
|f(x)−L|=|(3x−2)−7|=|3x−9|=3|x−3|<3δ=3⋅ε3=ε.
Example 2.
Solution.
For convenience, we will suppose that δ=1, i.e.
|x−2|<1.
∣∣x2−4∣∣<ε,⇒|x−2||x+2|<ε,⇒|x−2|(x+2)<ε.
5|x−2|<ε(if |x−2|<1),or|x−2|<ε2.
δ=min(ε2,1).
Example 3.
limx→7√x+2=3,ε=0.2
Solution.
According to the definition of limit,
|f(x)−3|<ε,if|x−7|<δ.
Substituting f(x) and ε, we get
∣∣√x+2−3∣∣<0.2,⇒−0.2<√x+2−3<0.2,⇒3−0.2<√x+2<3+0.2,⇒2.8<√x+2<3.2
Square all three parts of the inequality.
7.84<x+2<10.24,⇒5.84<x<8.24,⇒−1.16<x−7<1.24,
|x−7|<1.16
Example 4.
Prove that limx→∞x+1x=1.
Solution.
We can apply the similar techniques to limits at x→∞. Assume ε>0. We
must have
∣∣∣x+1x−1∣∣∣<ε,⇒∣∣∣(1+1x)−1∣∣∣<ε,⇒∣∣∣1x∣∣∣<ε.
|x|>1ε=N.
limx→∞x+1x=1.
Figure 1.
Example 5.
Prove that limx→∞2x−3x+1=2.
Solution.
We assume that ε>0. Find a number N such that for any x>N the
following inequality is valid:
∣∣∣2x−3x+1−2∣∣∣<ε.
∣∣∣2x−3x+1−2∣∣∣<ε,⇒∣∣∣2x−3−2(x+1)x+1∣∣∣<ε,⇒∣∣∣2x−3−2x−2x+1∣∣∣<ε,
⇒∣∣∣−5x+1∣∣∣<ε,⇒|x+1|>5ε.
x+1>5εorx>5ε−1.
∣∣∣2x−3x+1−2∣∣∣<εfor allx>N.
limx→∞2x−3x+1=2.
C. Theorems on Limits
We will now prove that a certain limit exists, namely the limit
of f (x) = x as x approaches any value c. (That f(x) also
approaches c should be obvious.)
THEOREM. If f (x) = x, then for any value c that we might name:
1 (f + g) = A + B.
)
2 (f g) = AB.
)
A
3 f
g = , if B is not 0.
)
B
In other words:
1) The limit of a sum is equal to the sum of the limits.
2) The limit of a product is equal to the product of the
limits.
3) The limit of a quotient is equal to the quotient of the
limits,
3) provided the limit of the denominator is not 0.
To see that, let x approach 4: e.g.,
1 1 1 1 1
4 . . .
4 4 4 4
2 4 8 1 3
6 2
Then the value of 5 -- or any constant -- does not change. It is
constant!
When c is a constant factor, but f depends on x, then
5
)
A constant factor may pass through the limit sign. (This follows
from Theorems 2 and 4.) For example,
B. Complex Numbers
A Complex Number
But just imagine such numbers exist, because we will need them.
The "unit" imaginary number (like 1 for Real Numbers) is i, which is the
square root of −1
And we keep that little "i" there to remind us we need to multiply by √−1
Complex Numbers
Examples:
But either part can be 0, so all Real Numbers and Imaginary Numbers are also
Complex Numbers.
Complex Imaginary
Real Part
Number Part
3 + 2i 3 2
5 5 0 Purely Real
−6i 0 −6 Purely Imaginary
Complicated?
A Visual Explanation
Adding
(3 + 2i) + (1 + 7i)
= 3 + 1 + (2 + 7)i
= 4 + 9i
(3 + 5i) + (4 − 3i)
= 3 + 4 + (5 − 3)i
= 7 + 2i
Multiplying
To multiply complex numbers:
Firsts: a × c
Outers: a ×
di
Inners: bi ×
c
Lasts: bi ×
di
(a+bi)(c+di) = ac + adi + bci + bdi2
Like this:
= −11 + 23i
And this:
Example: (1 + i)2
= 0 + 2i
This rule is certainly faster, but if you forget it, just remember the FOIL method.
Let us try i2
Example: i2
= −1 + 0i
= −1
Conjugates
Example:
5 − 3i = 5 + 3i
Dividing
The trick is to multiply both top and bottom by the conjugate of the bottom.
2 + 3i4 − 5i
2 + 3i4 − 5i×4 + 5i4 + 5i = 8 + 10i + 12i + 15i216 + 20i − 20i − 25i2
Add Like Terms (and notice how on the bottom 20i − 20i cancels out!):
= −7 + 22i41
= −7 41 + 2241i
DONE!
The middle terms (20i − 20i) cancel out! Also i2 = −1 so we end up with this:
2 + 3i4 − 5i
= −7 + 22i41
= −7 41 + 2241i
DONE!
Notation
C. Complex Plane
No, not that complex
plane ...
... this complex plane:
A plane for complex num
bers!
22 = 2 × 2 = 4
12 = 1 × 1 = 1
02 = 0 × 0 = 0
?2 = −1
Squaring −1 does not work because multiplying negatives gives a positive : (−1)
× (−1) = +1, and no other Real Number works either.
... but we can fill the gap by imagining there is a number that, when
multiplied by itself, gives −1
(call it i for imaginary):
i2 = −1
.
Examples: 5i, -3.6i, i/2, 500i
And together:
Let's have the real number line go left-right as usual, and have the imaginary
number line go up-and-down:
This is a vector.
It has magnitude (length) and direction.
as a Vector:
Adding
Polar Form
Let's use 3 +
4i again:
So the complex number 3 + 4i can also be shown as distance (5) and angle
(0.927 radians).
Let's see how to convert from one form to the other using Cartesian to Polar
conversion :
From 3 + 4i :
Back again:
So we can write:
Summary
r = √(x2 + y2)
θ = tan-1 ( y / x )
x = r × cos( θ )
y = r × sin( θ )