Chapter 1
Chapter 1
Chapter 1
1.1
Variables
Quantities which can take a range of values (e.g. the temperature of the air, the concentration of pollutant in a river, etc.) are called variables.
1.2
If there is a process which takes a variable x as an input, and produces another variable
y as a single output, (so that the value of y depends on the value of x) then we say that
y is a function of x. The process, or function, is denoted by a letter (often f ) and this is
written
y = f (x).
For example, the flux of electromagnetic radiation E emitted by a body at absolute
temperature T is given by the Stefan-Boltzmann law:
E = T 4
(1.1)
(1.3)
Usually, one variable is given some value, and another is determined from this using a
function. In the above case the temperature may be given a value and the radiative flux
can be deduced from equation (1.2). We call the first variable the independent variable
and the deduced variable the dependent variable. In the above case, T is the independent
variable and E is the dependent variable.
1.3
Graphs
For a known function f (x) of an independent variable x we can plot a graph as a curve
relative to x- and y-axes.
Figure 1.1: A graph of the function y = f (x). For a given value of x (c for example), we
can read o the value of y (equal to f (c)).
Note that the independent variable is usually plotted on the x-axis and the dependent
variable on the y-axis.
Examples 1, Q3
1.4
Inverse Functions
If y = f (x) then given a value of x, we can find the corresponding value of y. Usually this
process can be reversed and given a value of y, we can find one or more corresponding
values of x. We could write
x = g(y).
We say that the function g is the inverse of the function f . Usually the (sometimes
confusing) notation
x = f 1 (y)
is used, where f 1 means the inverse of the function f .
For example, if
y = ax
where a is a constant, then
y
x= .
a
1.5
Linear Functions
(1.4)
(1.5)
(1.6)
Subtracting these.
and therefore
y2 y1
.
(1.7)
x2 x1
m is called the gradient of the line represented by y = mx + c and c is called the intercept
on the y axis.
m=
Figure 1.2: The function y = mx+c showing the intercept c and how the gradient m may
be found by constructing a right-angle triangle with sides of length y2 y1 and x2 x1 .
Sketching linear graphs: Examples 1, Q5
1.6
Polynomial Functions
(1.8)
1.7
Power Functions
(1.9)
so polynomial functions are composed of power functions. However, n here may take any
real value, including negative values (e.g. n = 1) and non-integer values (e.g. n = 32 ).
Some examples are
1
y = x 2 = x,
y = 3x2
1
and y = x3 = 3 .
x
Some rules for exponents:
xa+b = xa xb ,
(xa )b = xab ,
1
xa = a ,
x
1
x a = a x,
(xy)a = xa y a ,
x0 = 1 if x 6= 0.
1.8
Imagine a sort of bacteria that reproduces itself so that after 1hour it doubles the number
of bacteria that are there (e.g. each bacteria splits into 2 every hour). Starting with 1
bacteria, how many would there be after 3 hours? Each hour, it multiplies by 2, so we
get
2 2 2 = 23 = 8 bacteria
How many after 8 hours?
2 2 2 2 2 2 2 2 = 28 = 256 bacteria
How many after x hours? The answer is 2x .
If, instead, the bacteria managed to multiply by 10 every hour, the answer would
be 103 = 1000 bacteria after 3 hours, 108 = 100, 000, 000 after 8 hours (urgh) and, in
general, 10x after x hours.
Functions like
f (x) = 2x
f (x) = 10x
or, in general
f (x) = ax
where a is just a number are very common in (for example) population growth models.
They are called exponential functions.
5
(1.10)
where e 2.7182818285 . . .. To find out what is so special about this number, see chapter
2!
(1.11)
So if y = ex then x = ln(y). (You can think of ln(y) as asking the question, what power
must e be raised to in order to obtain y?). Hence
ln e2 = 2
ln e5.3 = 5.3
ln (65.3) = 4.1789 because e4.1789 = 65.3
Further, if
y = eax
where a is a constant, then taking the inverse
ax = ln(y)
1
ln(y).
and therefore x =
a
Sometimes the natural logarithm is called the logarithm to base e.
Some rules for manipulating logarithms:
ln(xy)
x
ln
y
ln(xa )
ln(1)
ln(0)
= ln(x) + ln(y),
(1.12)
= ln(x) ln(y),
(1.13)
= a ln(x),
= 0,
= i.e. it is meaningless.
(1.14)
(1.15)
(1.16)
Figure 1.4: The exponential function and its inverse function, the natural logarithm.
Examples 1, Q6
Examples 1, Q7
1.9
1.10
Trigonometric Functions
Firstly, with reference to Fig. 1.5(a) below, we define the angle in radians to be
=
s
r
(1.17)
where s is the length of the arc of radius r. We know that if s forms a complete circle,
then s = 2r (where 3.141592654 . . .). Then clearly, = 2. Hence
2 radians = 360
or 1 =
radians.
180
Figure 1.5: (a) The definition of the angle in radians with reference to the arc of length
s, radius r; (b) The definitions of sin() and cos(); (c) A right-angled triangle with angle
and side lengths x (adjacent to ), y (opposite to ) and r (the hypotenuse).
Refer now to Fig. 1.5(b), showing the circle of radius 1 and a radius indicated making
an angle with the x-axis as shown. Then the trigonometric functions sin(x) and cos(x)
are defined as the lengths of the sides of the right-angled triangle as shown. Finally, with
reference to Fig. 1.5(c), we know from Pythagoras theorem for a right-angled triangle
r2 = x2 + y 2 .
In this figure,
y
y
=p
r
x2 + y 2
x
x
=p
cos() =
r
x2 + y 2
sin()
y
=
.
tan() =
x cos()
sin() =
and
(1.18)
(1.19)
(1.20)
You might also recall definitions of these in terms of the opposite side (O), the adjacent
side (A) and the hypotenuse (H), which you can remember with the word SOHCAHTOA.
O
H
A
cos() =
H
O
.
tan() =
A
sin() =
and
(1.21)
(1.22)
(1.23)
=
=
=
=
=
=
=
sin(x)
cos(x)
1,
sin(x) cos(y) + cos(x) sin(y)
sin(x) cos(y) cos(x) sin(y)
cos(x) cos(y) sin(x) sin(y)
cos(x) cos(y) + sin(x) sin(y).
(1.24)
(1.25)
(1.26)
(1.27)
(1.28)
(1.29)
(1.30)
(1.31)
(1.32)
1.11
(1.33)
(1.34)
(1.35)
If v = sin(x) then given a value of x, we can find v. We would hope also to be able to
perform the reverse operation: given a value of v, we could attempt to find x. We write
x = sin1 v.
In words, this means x is the angle whose sine is v. So for example, since sin( 6 ) = 12 , it
follows that sin1 21 = 6 . But note also that sin( 5
) = 12 and therefore sin1 21 = 5
also.
6
6
1
There are infinitely many other values of x such that sin(x) = 2 , so in fact the function
sin1 v must have infinitely many values. Fig. 1.8 shows the functions y = f (x) = sin1 x,
y = f (x) = cos1 x. Fig. 1.9 shows the function y = tan1 x.
10
Figure 1.8: Graphs of y = sin1 x and y = cos1 x. Note that x cannot lie outside the
range 1 x 1.
11