Академический Документы
Профессиональный Документы
Культура Документы
Functions
Basic Definition and Properties
Function is a rule (prescription, recipe) which assigns to each number x another number y:
y = f (x)
In other words for a number (x) you get another number (y). This may sound stupid, but is actually
important: there are other “rules” which will produce a function from a function (operators), number from
a function (functionals) etc.
An important property of a function is that for each x you get ONLY ONE y !
For example:
y = x2 is a function, because each x gives one y (never mind that from two different x
you can get the same y)
y = + x or y = x
Functions can be graphed (plotted): pairs (x,y) can be plotted in x-y coordinate system, where the x axis
is horizontal and y axis is vertical (perpendicular to x). We call this a Cartesian coordinate system (there
are other systems and ways to plot functions). In general y = f (x) can be represented as a curve:
1
Important properties of functions:
Interval of definition (domain): for which x the function is defined. Some functions are defined for all
values of x, others are not:
0.9
0.8 0.8
2 0.8
0.6 0.6
0.7
y
y
y
y
0.4 0.4
1.5 0.6
0.2 0.2
0.5
1 0.4 0
0 2 4 6 8 10 0 2 4 6 8 10 0 2 4 6 8 10 0 2 4 6 8 10
x x x x
0.5
y
odd function
even function
-0.5
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
x
for an odd function, it must be true that f(0) = 0: it always goes through
the origin. Even function is symmetric with respect to y-axis.
Periodicity: function is periodic if f(x + T) = f(x) for all x. T is called the period of the
function: after each period the function repeats itself.
Some implicit functions can be turned into explicit by solving for y, but
some cannot and have to stay in an implicit form.
Shifting a function in x: f(x a) will shift the function f (x) in the x direction by +a. (As you can
easily show by substitution of a for a, f(x+a) will shift the function in
the x direction by a)
Shifting a function in y: f(x) + C will shift the function f (x) in the y direction by +C
And of course f(x) C by C.
14
x2
12
(x-1)2
x2 + 2
10
8
y
-3 -2 -1 0 1 2 3 4
x
1 2
1.5 1.5
0.8
1 1
0.6
0.5 0.5
y
y
0.4
0 0
0.2 -0.5
-0.5
0 -1 -1
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2
x x x
3
Inverse Functions: f1(x)
For a function y = f(x) the inverse is f -1(y) = x or x = f -1(y) and by switching x and y (to keep
x as an independent and y dependent variable)
y = f -1(x)
Inverse function essentially means swapping x for y. On the graph (plot) this translates to flipping the
curve around a line that bisects the x-y plane (i.e. line x = y)
8
f(x)
7 f -1(x)
6
5
y
0
0 2 4 6 8
x
-1 1
Be careful, do not confuse inverse function f (x) with
f ( x)
If a function ƒ is not monotonic (i.e. not “one-to-one”) it is necessary to restrict the domain of the inverse
to an interval where f is monotonic. Otherwise f -1 would not be single valued, i.e. it would not be a
function according to the definition.
For example, the function
f ( x) x 2
is not one-to-one, since x2 = (–x)2. However, the function becomes one-to-one if we restrict to the domain
x ≥ 0, in which case
f 1 ( x ) x
(If we instead restrict to the domain x ≤ 0, then the inverse is the negative of the square root of x.)
Alternatively, there is no need to restrict the domain if we are content with the inverse being a multi-
valued function: 1
f ( x) x
2 x2
sqrt(x)
1.5 - sqrt(x)
0.5
y
-0.5
-1
4
Important Types of Functions
1. Polynomials
The highest n for which an 0 is called the degree (or the order) of the polynomial.
Special cases:
f ( x ) a0 constant function
(it is still a function, not just a number!)
f ( x) a1 x a0 linear function
f ( x) a2 x 2 a1 x a0 quadratic function
Polynomial equations f ( x) 0 has exactly n roots (n is the order of the polynomial) if we count
repetitions. The roots, however, may be complex.
For example:
f ( x) x 3 3x 2 3x 1 0 can be written as ( x 1) 3 0 and the three roots are 1, 1, 1.
n n n
n
(a b) n a n a n1b a n2 b 2 ... b n a nk b k
1 2 k 0 k
By definition: 0! =1
2.5 2.5 2 2
1.5
2 linear function cubic function
2
1.5 quartic function
quadratic function 1
1.5
1.5
0.5
1
1 0
1
y
0.5
-0.5
0.5
0.5
-1
0 0
0
-1.5
-0.5
-1.5 -1 -0.5 0 0.5 1 1.5 -2 -0.5
-0.5 -1.5 -1 -0.5 0 0.5 1 1.5 -1.5 -1 -0.5 0 0.5 1 1.5
-1.5 -1 -0.5 0 0.5 1 1.5
x
5
Special cases of polynomial equations:
Linear equation: a1 x a0 0
a0
solution x (the condition is, of course, a1 0)
a1
Quadratic equation: a2 x 2 a1 x a0 0
solution : if a0 = 0:
x(a2 x a1 ) 0
x1 0
a1
x2
a2
if a1 = 0 :
a 2 x 2 a0 0
a0
x2
a2
a0 a0
x , x
a2 a2
(obviously, a0/a2 must be 0)
general:
a1 a12 4a2 a0
x1, 2
2a 2 2a 2
6
2. Rational functions
P( x)
f ( x) where P(x) and Q(x) are polynomials
Q( x)
Examples:
1 x3 2x x3 2
f ( x) f ( x) f ( x)
x 2( x 2 5) x2 1
15 4
8
3
10
6
2
4
5
1
2
0 0
y
y
0
-1
-5 -2
-2
-4
-10
-3
-6
-15 -4
-1.5 -1 -0.5 0 0.5 1 1.5 -8 -6 -4 -2 0 2 4 6 8 -4 -3 -2 -1 0 1 2 3 4
x x
Rational function is NOT defined at points where the Q(x) has roots.
Partial fractions
This is extremely useful for integrating rational functions, as we will see later. In general any rational
P( x)
function f ( x ) where degP(x) < degQ(x) (i.e. the polynomial in the denominator is of a higher
Q( x)
degree than that in the numerator) can be simplified by decomposition into partial fractions as follows:
1. Express the denominator Q(x) in terms of products such as (x a)n and (x2 + bx +c)m
Q( x) ( x a1 ) n1 ( x a 2 ) n2 ...( x 2 b1 x c1 ) m1 ( x 2 b2 x c2 ) m2 ...
a1, a2 … are the roots of the polynomial. Sometimes, it cannot be completely reduced: that is where the
irreducible factors (x2 + bx +c) … arise (note that b can be 0). In general any polynomial can be
expressed in the above form.
7
3. For each (x2 +bx +c)m we obtain partial fractions:
A1 x B1 A2 x B2 Am x Bm
...
(ax bx c) (ax bx c)
2 2 2
(ax 2 bx c) m
where A1, A2, … Am and B1, B2, … Bm are again constants to be determined.
Examples:
3x 5
1.
x 4x 3
2
3x 5 3x 5
x 4 x 3 ( x 1)( x 3)
2
3x 5 A B
( x 1)( x 3) ( x 1) ( x 3)
to determine A and B get rid of the fractions by multiplying the equation by ( x 1)( x 3) :
3 x 5 A( x 3) B ( x 1)
substitute 3 for x (x = 3) - that will kill the term with A - and solve for B:
now substitute 1 for x (x = 1) to similarly get rid of the B and solve for A:
8
2. if there are roots with higher multiplicity, i.e. terms such as (x a)n n >1, the expansion must contain
fractions with all powers of (x a) from 1 to n.
3x 5 A B C
(1 x) 3
(1 x) (1 x) 2
(1 x) 3
3x 5 A(1 x) 2 B(1 x) C
5 A B 8
2 4 A 2B 8
One way to deal with these is to get A from the first equation (dependent on B), plug in the second one,
get B and plug back into the first to finally get A.
Another way is to multiply the first equation by 2 and add the two, so that B subtracts out:
12 6 A 24
A 2
and then substitute A to the first one:
5 2 B 8
B 1
3. If you have irreducible factors (x2 + bx +c)m, the partial fraction has Ax + B in the numerator. If they
have higher multiplicity than one (m > 1), the same rule as in 2. holds: all powers from the first up m must
be included:
3x 2 7 x 2 5 A B Cx D Ex F
2 2
(1 x) ( x 2)
2 2 2
(1 x) (1 x) 2
( x 2) ( x 2) 2
9
What if degP(x) > degQ(x)?
where now degP’(x) < degQ(x). This can be done by polynomial division - an equivalent of long division
of two big complicated numbers. For example:
x 3 12 x 2 42
x2 4
multiply your “intermediate result” by the denominator and write it under the numerator
x 3
12 x 2 42 : ( x 2 4) x
x3 4x
then subtract what you’ve just written from the numerator to get the “remainder after division”
x 3
12 x 2 42 : ( x 2 4) x
x 3
4x
12 x 4 x 42
2
x 3
12 x 2 42 : ( x 2 4) x 12
x 3
4x
12 x 2 4 x 42
12 x 2 48
4 x 90
and you can leave it right there, just write the division of your last remainder as a ratio:
x 3 12 x 2 42 4 x 90
x 12 2
x 4
2
x 4
The last fractional function has degP’(x) < degQ(x) and you can test your skills by decomposing it into
partial fractions.
10
3. Exponential functions
f ( x) a x
a is called the base, x is the exponent. Exponentials are very important throughout physical chemistry. In
particular special cases, where a = 10, and even more when a = e = 2.7182818 … (Euler number).
1
An important one is: a x
ax
Note that
x
1. for any a, a > 0 : exponential function is always positive.
x
2. for x = 0 a = 1 for any a. In other words any exponential function will by 1 for x = 0 and its plot will
cross the y-axis at y = 1.
3. Any exponential for x < 0 will be < 1, for x > 0 it will be > 1:
10
7 ex
6 10x
5
y
11
4. Logarithmic functions
f ( x) log a ( x)
Logarithms are inverse of exponential functions, i.e. if y a x then x log a ( y ) . Like with
exponentials, a is called the base.
If a = e (Euler number), called the natural base of logarithm, log e ( x) is denoted ln(x) called natural
logarithm.
If a =10, log10 ( x) is often denoted as log(x) (i.e. the base is dropped) and called common logarithm.
Important Properties of Logarithms:
2. For x <1 all logarithms are < 0, for x > 1 all logarithms are > 0
1.5
0.5
0
y
-0.5
ln(x)
log10(x)
-1
-1.5
-2
0 1 2 3 4 5 6
x
12
Some more gymnastics with exponentials and logarithms:
Because exponential and logarithmic functions are inverses of each other, the following is true:
log a x
log a (a x ) x and a x
Change of base:
Exponentials and logarithms with different bases are related and often it is convenient to switch from one
to another. Because the natural logarithm is the most frequently used, we will show it for natural
logarithm, but it can be done for any bases.
Exponential:
log a (e x ) x log a (e)
ex a a
or
ln(a x ) x ln(a )
ax e e
The relation adds a constant to the exponent ! Remember: e and a are contants, loga(e) or ln(a) are also
constants.
Logarithm:
take a logarithm (base a) of the following: y ex
log a ( y) log a (e x ) x log a (e)
but because y e x , x = ln(y). Substitute for x into the above and get
Therefore, two logarithms with different bases are directly proportional to each other and differ only by a
multiplicative constant !
13
y ax
Going to other way:
ln( y ) ln(a x ) x ln(a) log a ( y ) ln(a)
1
Now comparing (*) and (**) we should get that ln(a) . Is that true?
log a (e)
To make an even more specific example, consider a =10, i.e. conversion between the natural and common
logarithm:
You can see that logarithms are pretty much equivalent functions: their values for different bases differ
only by a constant that can be easily calculated. That’s why natural (ln) and common (log) logarithms are
sometimes used almost interchangeably.
14
5. Trigonometric functions
f ( x) sin(x) f ( x) cos(x)
f ( x) tan(x) f ( x) cot(x)
These functions are related to the basic trigonometry, i.e. functions of angles in a right-angled triangle.
They can also be “visualized” in terms of a unit circle (circle with radius =1), which provides definitions
for all angles (triangle works only for angles between 0 and /2 (0 and 90o).
a a
sin( ) tan( )
h b
b b 1
cos( ) cot( )
h a tan( x)
Basic properties
15
Graphs of trigonometric functions:
Note that sin and cos are essentially the same, just
shifted in x with respect to each other.
tan(x) cot(x)
Other Important Trigonometric Formulas:
note that in the second one the signs are reversed on the right hand side. From these formulas many others
useful ones can be derived.
For a completely complete list, see e.g. http://en.wikipedia.org/wiki/List_of_trigonometric_identities
16
Trigonometric equations and roots
Trignometric functions can appear in equations and they also have roots. Because they are periodic, there
will be generally an infinite number of solutions (or roots), separated by the period of the function, or the
multiple.
For example
sin(x) = 0
is true for all x = n, where n is any integer (positive or negative), because x crosses zero at any multiple
of . Note that zero is repeated every even though the period of sine is 2. On the other hand,
is true for x = /2 + n.2 with any integer n. In general, if you have some more complicated function
inside sin or cos etc., you can use the following
sin(f(x)) = 0 f(x) = n
tan(f(x)) = 0 f(x) = n
6. Inverse trigonometric functions
These are inverses of the trigonometric functions above. Because sin, cos, tan and cot are non-monotonic
and periodic, their inverses can be defined only for limited domains (or codomains). For this reason, using
inverse trigonometric functions to solve trigonometric equations (such as those above) will not give you
all the solutions or roots, but only one.
17
1.5
3
2.5
arcsin(x) 1
2
arccos(x) arctan(x)
arccot(x)
1.5 0.5
1
0
y
y
0.5
0 -0.5
-0.5
-1
-1
-1.5 -1.5
-1 -0.5 0 0.5 1 -5 -4 -3 -2 -1 0 1 2 3 4 5
x x
7. Hyperbolic functions
e x e x e x e x
sinh( x) cosh(x)
2 2
sinh( x) e x e x 1 cosh(x) e x e x
tanh( x) coth( x)
cosh( x) e x e x tanh( x) sinh( x) e x e x
cosh 2 ( x) sinh 2 ( x) 1
sinh( x y ) sinh( x) cosh( y ) cosh( x) sinh( y )
cosh( x y ) cosh( x) cosh( y ) sinh( x) sinh( y )
Inverse hyperbolic functions can be defined in terms of logarithms (i.e. inverse exponentials).
18