Functıons
Functıons
DEFINITION
A function ƒ from a set D to a set Y is a rule that assigns
a unique (single) element ƒ(x)∊Y to each element x∊D
The set D of all possible input values is called the domain of the
function.
Function
( – ∞, ∞ ) [ 0, ∞ ) y = x2
1
( – ∞, 0 ) ( 0, ∞) ( – ∞, 0 ) ( 0, ∞) y= x
[ 0, ∞ ) [ 0, ∞ ) y = √x
( – ∞, 4 ] [ 0, ∞ ) y = √ 4−x
[ – 1, 1 ] [ 0, 1 ] y = √ 1−x 2
GRAPHS OF FUNCTIONS
If ƒ is a function with domain D, its graph consists of the points in
the Cartesian plane whose coordinates are the input-output pairs
for ƒ. In set notation, the graph is ;
{ ( x, f(x) ), x D }
EXAMPLE
Graph the function y = x 2 over the interval [ – 2, 2 ].
EXAMPLE
Musical notes are pressure waves in the air. The data associated
with Figure 1.6 give recorded pressure displacement versus time
in seconds of a musical note produced by a tuning fork. The table
provides a representation of the pressure function over time. If we
first make a scatterplot and then connect approximately the data
points (t, p) from the table, we obtain the graph shown in the
figure.
The Vertical Line Test for a Function
Not every curve in the coordinate plane can be the graph of a
function. A function ƒ can have only one value ƒ(x) for each x in
its domain, so no vertical line can intersect the graph of a function
more than once. If a is in the domain of the function ƒ, then the
vertical line x = a will intersect the graph of ƒ at the single point
(a, ƒ(a)).
Piecewise-Defined Functions
Sometimes a function is described in pieces by using different
formulas on different parts of its domain. One example is the
absolute value function
x = x , x≥0 First formula
–x , x0 Second formula
Let’s draw graph of this function.
EXAMPLE **
f(x)= –x , x0
x2 , 0 ≤ x≤ 1
1 , x1
Let’s draw graph of this function.
The function whose value at any number x is the greatest integer
less than or equal to x is called the greatest integer function or the
integer floor function. It is denoted as ⌊ x ⌋ .
Let’s draw graph of y = ⌊ x ⌋
EXAMPLE
Let’s examine the below functions with their graphs.
f ( x ) = x2 + 1
f(x)=x+1
Domain: ( – ∞, ∞ ) range: [ 0, ∞ )
Domain: ( – ∞, ∞ ) range: ( – ∞, ∞ )
Algebraic Functions
Any function constructed from polynomials using algebraic
operations (addition, subtraction, multiplication, division, and
taking roots) lies within the class of algebraic functions. All
rational functions are algebraic.
Trigonometric Functions
Exponential Functions
Functions of the form ƒ(x) = ax , where the base a 0 is a positive
constant and a ≠ 1, are called exponential functions. All
exponential functions have domain (-∞, ∞) and range (0, ∞), so an
exponential function never assumes the value 0.
Logarithmic Functions
These are the functions ƒ(x) = loga x, where the base a ≠ 1 is a
positive constant. They are the inverse functions of the
exponential functions, Below the graphs of four logarithmic
functions with various bases. In each case the domain is (0, ∞) and
the range is (-∞, ∞)
Transcendental Functions
These are functions that are not algebraic. They include the
trigonometric, inverse trigonometric, exponential, and logarithmic
functions, and many other functions as well. A particular example
of a transcendental function is a catenary. Its graph has the shape
of a cable, like a telephone line or electric cable, strung from one
support to another and hanging freely under its own weight.
Composite Functions
DEFINITION
If ƒ and g are functions, the composite function ƒ ∘ g
(“ƒ composed with g”) is defined by (ƒ ∘ g)(x) = ƒ(g(x)).
The domain of ƒ ∘ g consists of the numbers x in the domain of
g for which g(x) lies in the domain of ƒ.
fog≠gof
EXAMPLE
ƒ(x) = √ x and g(x) = x + 1
Composite Domain
(a) (ƒ ∘ g)(x) f (g( x ) ) = √ x+ 1 [–1,∞)
(b) (g ∘ ƒ)(x) g (f( x )) = √ x + 1 [ 0, ∞ )
(c) (ƒ ∘ ƒ)(x)
1
f (f( x ) )=√ √ x = x [ 0, ∞ )
(d) (g ∘ g)(x)
4
g (g( x ) )= x + 1 + 1 = x + 2 (–∞,∞)
f(x)=x2 g ( x ) = √x
(ƒ ∘ g)(x) = f (g( x ) = ( √ x ) = x Domain of (ƒ ∘ g)(x) is
2
Trigonometric Functions
Angles
Degrees −180 −135 −90 −45 0 30 45 60 90 120 135 150 180 270 360
−3 π −π −π π π π π 2π 3π 5π 3π
(radians) − 4 2 4
0 6 4 2 2 3 4 6
2
2
cos 6 = √2
π 1 π 3 π 1 π
sin 6 = 2 tan 6 = √3 cot 6 =√ 3
sin 3 = √2
π 3 π 1 π π 1
cos 3 = 2 tan 3 = √ 3 cot 3 = √3
sin0 = 0 cos0= 1 tan0= 0 cot0= undefined
sin = 0 cos = – 1 tan = 0 cot =undefined
sin 2 = 0 cos 2 = 1 tan 2 = 0 cot 2=undefined
π π π π
sin 2 = 1 cos 2 = 0 tan 2 = undefined cot 2 = 0
3π 3π 3π 3π
sin 2 = –1 cos 2 =0 tan 2 = undefined cot 2 =0
Odd Even
sin ( –x) = – sin x cos (– x) = cos x
tan ( –x) = – tan x sec ( –x) = sec x
csc ( –x) = – csc x
cot ( –x) = – cot x
Trigonometric Identities
Inverse Functions
DEFINITION
Suppose that ƒ is a one-to-one function on a domain D with range R.
The inverse function ƒ -1 is defined by ƒ -1 (b) = a if ƒ(a) = b. The
domain of ƒ -1 is R and the range of ƒ -1 is D.
(ƒ -1 ∘ ƒ) (x) = x, for all x in the domain of ƒ
Only a one-to-one function can have an inverse.
EXAMPLE
1
Find the inverse of y = 2 x + 1 expressed as a function of x.
1 1
y= 2x+1 y–1= 2x 2.( y – 1 ) = x x = 2y – 2
f – 1 ( x ) = 2x – 2
Logarithmic Functions
If a is any positive real number other than 1, the base a
exponential function ƒ(x) = ax is one-to-one. It therefore has an
inverse. Its inverse is called the logarithm function with base a.
DEFINITION
The logarithm function with base a, y = loga x, is the inverse of the
base a exponential function y = ax (a 0, a ≠ 1).
The domain of loga x is (0, ∞), the range of ax . The range of
loga x is (– ∞, ∞), the domain of ax .
Logarithms with base 2 are commonly used in computer
science.
Logarithms with base e and base 10 are so important in
applications that many calculators have special keys for
them.
They also have their own special notation and names: loge x is
written as ln x. log10 x is written as log x.
The function y = ln x is called the natural logarithm function,
and y = log x is often called the common logarithm function.
ln x = y e y = x ln e = 1
Properties of Logarithms
b
lnbx = lnb + lnx ln x = lnb – lnx
1
ln x = – lnx ln xr = r.lnx
=x loga ax = x ( a, x 0, a≠1)
x
a log a