Topic 2B. Modelling With Functions
Topic 2B. Modelling With Functions
Topic 2B. Modelling With Functions
MATHEMATICS
Applications and Interpretation SL (and HL)
Lecture Notes
Christos Nikolaidis
TOPIC 2
FUNCTIONS
Only for HL
June 2022
TOPIC 2: FUNCTIONS Christos Nikolaidis
1
TOPIC 2: FUNCTIONS Christos Nikolaidis
x 1 2 5 7 10 12
y 6.1 7.2 10.5 12.7 16 18.2
In fact, any pair of points gives the same gradient, and this is the
gradient of the line in question.
2
TOPIC 2: FUNCTIONS Christos Nikolaidis
Two points are enough to find the line passing through them.
First approach
y-y1 = m(x-x1)
y-6.1 = 1.1(x-1)
y-6.1 = 1.1x-1.1
y = 1.1x+5
Second approach
y = 1.1x+5
Notice: any pair of points would give the same result (check!)
Confirm
If we pick another point among our data, say E(10,16), it satisfies
the equation: For x=10,
10+5 = 11+5 = 16
1.1x+5 = 1.1
3
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
The relation between Celsius degrees (°C) and Fahrenheit (°F) is
linear. That is
°F = a °C+ b
We are told that
4°C correspond to 39.2 °F
10°C correspond to 50 °F
Thus
39.2 = 4a+b
50 = 10a+b
The solution is a=1.8 and b=32. Therefore the formula is
°F = 1.8 °C+ 32
In other words in order to convert temperatures in degrees Celsius
to Fahrenheit, multiply by 1.8 (or 9/5) and add 32.
Sometimes in real life the data seem to almost lie on a line. For
example,
Q 10 13 15 20 25
P 15 20 25 33 45
4
TOPIC 2: FUNCTIONS Christos Nikolaidis
P = 2Q - 5
5
TOPIC 2: FUNCTIONS Christos Nikolaidis
6
TOPIC 2: FUNCTIONS Christos Nikolaidis
decreasing if a<0
7
TOPIC 2: FUNCTIONS Christos Nikolaidis
QUADRATIC MODEL
y=2x2-7x+2
8
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
A model approach
Suppose that the length of one side is x. Choose some values for x:
x 5 10 20 25 30 37
A 225 400 600 625 600 481
9
TOPIC 2: FUNCTIONS Christos Nikolaidis
If A=ax2+bx+c then
That is
A=-x2+50x
Indeed, the remaining points satisfy the equation, for example let
us check the point (10,400):
A=-102+5010 = 400
Amax = 500 m2
Notice: Here the analytic approach is easy. But this is not always
the case and sometimes the model approach is our only option.
We chose this example to demonstrate the two different
approaches.
10
TOPIC 2: FUNCTIONS Christos Nikolaidis
But for our particular problem x can be between 0 and 50. So our
model is
A=-x2+50x, 0<x<50
If the points do not perfectly fit into a parabola, we can pick three
representative points and find a quadratic model that describes
quite well our data.
x 5 10 20 25 30 37
A 225 400 600 625 600 481
the points, of course, perfectly fit into a parabola, so the GDC will
give the exact solution. But let us try it just for practice:
11
TOPIC 2: FUNCTIONS Christos Nikolaidis
y=ax3+bx2+cx+d
12
TOPIC 2: FUNCTIONS Christos Nikolaidis
(n 1) ( n 1 )
1
yx y
x
( n 2 )
(n 2)
1
y x2 y
x2
(n 3) ( n 3 )
1
y x3 y
x3
(n 4) ( n 4 )
1
y x4 y
x4
13
TOPIC 2: FUNCTIONS Christos Nikolaidis
or
or
POWER MODELS
In real life applications we meet models of the form
k
y kx n or y n
x
where x is takes only positive values.
For positive exponents the models look like as follows
14
TOPIC 2: FUNCTIONS Christos Nikolaidis
The relation
y kx n
The relation
k
y
xn
shows an inverse variation between (a power of) x and y:
15
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
Consider the relation
P = 5Q 2
Q 1 2 3 4 …
P 5 20 45 80 …
EXAMPLE 2
Consider the relation
5
P =
Q2
Q 1 2 3 4 …
5 5 5
P 5 …
4 9 16
EXAMPLE 3
(a) P is proportional to the cube of Q (i.e. P =kQ3).
Find the relation if we know that P = 5 when Q = 2.
Solution
5
(a) 23k=5 8k = 5 k = = 0.625. Hence P = 0.625Q3
8
(b) 2nk=6.4 and 3nk=48.6. If we divide the two relations
n
3 n k 48.6 3
n
7.59375 . Hence n = 5.
2 k 6.4 2
The first relation gives: 25k=6.4. Hence k = 0.2.
Therefore, P = 0.2Q5
16
TOPIC 2: FUNCTIONS Christos Nikolaidis
A is proportional to B
A is proportional to the square of C
A is inversely proportional to the cube of D
AREA vs LENGTH
Look at the area A for several shapes below
Shape Area
Square
A x2
of side length x
x
Rectangle x
A 2x 2
of sides x and 2x
2x
Right-angled triangle 1 2
a A a
of equal vertical sides a 2
a
Circle r
A πr 2
of radius r
17
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 4
Consider all rectangles of area 50 with side lengths x and y
(a) Describe the relation between the x and y.
(b) Express the perimeter of the rectangle in terms of x.
Solution
50
(a) xy =50 y . Thus y is inversely proportional to x.
x
100
(b) P = 2x+2y = 2x
x
VOLUME vs LENGTH
Look at the volume V for several shapes below
Shape Volumes
18
TOPIC 2: FUNCTIONS Christos Nikolaidis
Consider
x 1 2 3 4 …
y 2 15 50 120 …
Given that the points are well described by a power function model
of the form
y ax n
y 1.98x 2.95
19
TOPIC 2: FUNCTIONS Christos Nikolaidis
y 10 3 x
20
TOPIC 2: FUNCTIONS Christos Nikolaidis
y Ae kx
According to k
y increases if k>0
y decreases if k<0
EXAMPLE 1
y A bx
Then
point (1,30) gives: A b 1 30 (1)
A b 4 810
b 3 27 b 3
A b1 30
A 3 1 30 A 10
21
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 2
Suppose that the exponential function
y Ae kx
has y-intercept (0,25) and passes through the point (5,100).
Then
point (0,25) gives: Ae 0 25 A 25
25e 5k 100
e 5k 4
We can use the natural logarithm ln (or directly GDC):
5k ln4
ln4
k 0.277
5
Hence
y 25e 0.277x
P=Poekt
22
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 3
n=1000e0.2t
Solution
Otherwise,
ln2.5 = lne0.2t
ln2.5 = 0.2t
ln2.5
t = = 4.58 hours
0.2
(d) It’s a similar question to (c). We let n=2000 and find t.
ln2 = lne0.2t
ln2 = 0.2t
ln2
t = = 3.47 hours
0.2
We can also use the graph mode of GDC to answer the questions
23
TOPIC 2: FUNCTIONS Christos Nikolaidis
The function
n=1000e0.2t
has the following graph
For questions (c) and (d) we use GSolv-X calc: y=2500 then x=4.58
y=2000 then x=3.47
EXAMPLE 3
24
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 4
The mass m of a radio-active substance at time t hours is given by
m = 4e–kt
(a) The mass is 1 kg after 5 hours. Find k.
(b) What is the mass after 3 hours?
(c) The mass reduces to a half after t hours. Find t.
Solution
or by using ln:
Again, we can answer the questions (b) and (c) above by using the
graph of m = 4e–0.277t
25
TOPIC 2: FUNCTIONS Christos Nikolaidis
In either case:
The horizontal line y=c is a horizontal asymptote to the graph.
For x=0, the y-intercept is y = A+c
26
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 5
27
TOPIC 2: FUNCTIONS Christos Nikolaidis
t 1 2 3
P 20 30 50
We firstly eliminate c:
Ab 3 Ab 2 20
Ab 2 Ab 10
Ab 2 (A 1)
2 b2
Ab(A- 1)
P 5 2 t 10
28
TOPIC 2: FUNCTIONS Christos Nikolaidis
x 1 2 3 4 …
y 2 15 50 120 …
Power model: y ax n
bx
Exponential model: y ab x (or y ae )
2.95
The power function model we found was y 1.98x
[F1] gives
y 0.707e1.35x
[F2] gives
y 0.707 3.85 x
29
TOPIC 2: FUNCTIONS Christos Nikolaidis
For our purpose we only present some basic notions of the functions
f(x)=sinx, f(x)=cosx and certain modifications of them.
f(x) = sinx°
Look at the graph of the function f(x) = sinx° on your GDC by using
the following settings
We obtain
The following table contains some values of the function which are
also shown on the graph above.
y=sinx° 0 1 0 -1 0
We have:
Domain: x R
Range: y [-1,1] [since ymin=-1 and ymax=1]
30
TOPIC 2: FUNCTIONS Christos Nikolaidis
Furthermore, we define
f(x) = cosx°
y=cosx° 1 0 -1 0 1
Again Domain: x R
Range: y [-1,1] [ymin=-1 and ymax=1]
Central axis: y = 0
Amplitude = 1
Period: T= 360°
NOTICE:
For both functions y=sinx and y=cosx, the horizontal distance
31
TOPIC 2: FUNCTIONS Christos Nikolaidis
Compare the original function f(x)=sinx (in black) with the following
three transformations of sinx (in red)
32
TOPIC 2: FUNCTIONS Christos Nikolaidis
f(x) = AsinBx + C
we have
360
The period is T=
B
Notice:
f(x) ranges between the values C-|A| and C+|A|
Similar observations apply for f(x) = AcosBx +C
The amplitude is 3
360
The period is T= 90
4
33
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
The graph of f(x) = Asin(Bx°) + C is given below. Find A, B, C.
EXAMPLE 2
The graph of f(x) = AcosBx +C is given below. Find A, B, C.
90 180
34
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 3
Express the following graph as a trigonometric function.
-90 90 180
35
TOPIC 2: FUNCTIONS Christos Nikolaidis
the region of A: all the points which are closest to the site A
the region of B: all the points which are closest to the site A
It is pretty obvious that the border of the two regions will be the
perpendicular bisector of the line segment AB.
This is perhaps the simplest Voronoi diagram! The two regions are
called cells. The line between the two cells is called an edge.
36
TOPIC 2: FUNCTIONS Christos Nikolaidis
If the three sites are collinear (they lie on the same line) the
Voronoi diagram is pretty obvious:
If, otherwise, the three sites form a triangle, the Voronoi diagram
looks like
Particularly for this case of three sites, we know that the edges
between the three cells are the perpendicular bisectors of the sides.
We know form Geometry that the three edges meet at the same
point. The point P where the edges meet is called a vertex.
37
TOPIC 2: FUNCTIONS Christos Nikolaidis
Let us add one more site D (see below). We obtain four cells and
the edges meet at the two vertices P and Q.
EXAMPLE 1
Suppose that the four sites in the diagram above have coordinates
A(2,3), B(8,3), C(6,7) and D(10,5).
38
TOPIC 2: FUNCTIONS Christos Nikolaidis
39
TOPIC 2: FUNCTIONS Christos Nikolaidis
In problems with
Interest rates r%
where
EXAMPLE 1
(a) An amount of 2000 euros is invested at 8% per year. What is
the amount returned after 10 years?
Solution
40
TOPIC 2: FUNCTIONS Christos Nikolaidis
r
In fact, this is a geometric sequence with common ratio R=1+
100
r
That is, if an amount increases by r%, we multiply by R=1+
100
2
r
After two years we multiply again by R. Thus FV=PV 1
100
n
r
Thus after n years: FV=PV 1
100
41
TOPIC 2: FUNCTIONS Christos Nikolaidis
Then Then
EXAMPLE 2
There are ten boxes in a row. The first box contains 100€ and any
subsequent box contains 10% more that the previous one. What is
the amount in the 10th box?
Solution
Here u1 =100 and r = 1.10. Thus u10 =100(1.10)9 235.8
This is in fact the FV formula, but say that after 9 boxes FV=100(1.10)9
42
TOPIC 2: FUNCTIONS Christos Nikolaidis
Solution
n
8
FV=2000 1 >5000
100
Therefore, n = 12
Since we are looking for complete years we accept the first integer
above 11.9, that is n = 12
2000(1.08)n = 5000
Method D (by using logarithms: come back after you learn logs!)
Thus n = 12
43
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 4
The current population of a city is 800,000. The population
increases by 5.2% every year. Find
Solution
[short explanation:
for the future we multiply by 1.052 every year
for the past we divide by 1.052 every year, or otherwise we
1
multiply by 1.052-1 every year]
1.052
(c) we solve the equation
FV=2×800,000
n
5.2
800,000 1 = 1,600,000
100
44
TOPIC 2: FUNCTIONS Christos Nikolaidis
45
TOPIC 2: FUNCTIONS Christos Nikolaidis
Rn 1
FV PV R n PMT
R 1
Indeed,
n
r
- PV is invested for n years: PV 1 PV R
n
[1st box]
100
NOTICE
If we don’t wish to include the last payment in our calculations
we just subtract one payment (PMT)
In GDC–Financial mode: Insert PMT = negative value [we pay]
46
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 5
An initial amount of 1000 euros and then an extra amount of
1000 euros at the end of each year is invested with an interest
rate 12% compounded yearly (so R =1.12).
The value of the investment after 7 years is
1.128 1
FV 1000 12299.69
1.12 1
By using GDC–Financial mode
n = 7 PMT= -1000
I% = 12 P/Y =1
PV = -1000 C/Y = 1
FV gives 12299.69.
------------------
Remark: if the last payment is not included we subtract one PMT:
Value = FV-PMT = 12299.69-1000 = 11299.69
EXAMPLE 6
An amount of 1000 euros is invested with an interest rate 12%
compounded yearly (so R =1.12). An extra payment of 300 euros
is added at the end of every year.
The value of the investment after 7 years is
1.127 1
FV 1000 1.127 300 5237.38
1.12 1
By using GDC–Financial mode
n = 7 PMT= -300
I% = 12 P/Y =1
PV = -1000 C/Y = 1
FV gives 5237.38.
------------------
Remark: if the last payment is not included we subtract one PMT:
Value = FV-PMT = 5237.38-1000 = 4937.38
47
TOPIC 2: FUNCTIONS Christos Nikolaidis
NOTICE.
If the annual interest rate r% is compounded in k periods then the
ratio for 1 year is
k
r
R 1
100k
EXAMPLE 7
An amount of 1000 euros is invested with an interest rate 12%
compounded monthly. An extra payment of 300 euros is added at
the end of each year.
12
0.12
R 1 =1.0112=1.12682503
12
R7 1
FV 1000 R 7 300 5397.73
R 1
By using GDC–Financial mode
n = 7 PMT= -300
I% = 12 P/Y =1
PV = -1000 C/Y = 12
FV gives 5397.73.
------------------
Remark: if the last payment is not included we subtract one PMT:
Value = FV-PMT = 5397.73-300 = 5097.73
NOTICE.
If the annual interest rate r% is compounded in k periods and the
regular payments also take place in k periods then
r
R 1
100k
48
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 8
An amount of 1000 euros is invested with an interest rate 12%
compounded monthly. An extra payment of 300 euros is added at
the end of every month.
0.12
R 1 =1.01
12
1.0184 1
FV 1000 1.0184 300 41508.41
1.01 1
By using GDC–Financial mode
n = 712 = 84 PMT= -300
I% = 12 P/Y =12
PV = -1000 C/Y = 12
FV gives 41508.41.
------------------
Remark: if the last payment is not included, we subtract one PMT:
Value = FV-PMT = 41508.41-1000 = 41208.41
ANNUITY – AMORTIZATION
We invest an amount PV but we regularly withdraw an amount
PMT. The only difference is that
we subtract the part of the payments
Now
Rn 1
FV PV R n PMT
R 1
49
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 9
An amount of 1000 euros is invested with an interest rate 12%
compounded monthly. A withdrawal of 150 euros is made at the
end of each year
12
0.12
R 1 =1.0112=1.12682503
12
R7 1
FV 1000 R 7 150 761.22
R 1
By using GDC–Financial mode
n = 7 PMT= 150
I% = 12 P/Y =1
PV = -1000 C/Y = 12
FV gives 761.22
If
(annual withdrawal) > (the annual interest)
150-51.84=98.16 euros.
50
TOPIC 2: FUNCTIONS Christos Nikolaidis
ONLY FOR
HL
51
TOPIC 2: FUNCTIONS Christos Nikolaidis
52
TOPIC 2: FUNCTIONS Christos Nikolaidis
L
f(x)
1 Ce kx
If you increase the upper bound for y you will realise that the
behaviour of graph changes dramatically!
53
TOPIC 2: FUNCTIONS Christos Nikolaidis
This function is called logistic and it is the model in many real life
situations.
L
y
1 Ce kx
looks like
In our example
100
y
1 4e 2x
54
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
L
The logistic model P has a limiting value P=1000.
1 Ce kt
We also know the data
t 0 4
P 160 500
Clearly L=1000.
For t=0, P=160:
L 1000
160 160 1+C = 6.25 C = 5.25
1C 1C
For t=4, P=500:
1000
500 1000 1 5.25e 4k 5.25e 4k 1
1 5.25e- 4k 500
ln5.25
e 4k 5.25 4k ln5.25 k 0.415
4
Therefore,
1000
P
1 5.25e 0.415t
The value of P exceeds 800 when t = 7.34 (use GDC to confirm).
Well, consider the two points of EXAMPLE 1 above and the point
(100,1000) [as a limiting value]. Use GDC: REG: Logistic, to find
the values of L, C and k of the logistic model!
55
TOPIC 2: FUNCTIONS Christos Nikolaidis
y a blnx
56
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
Q 4 8
P 15 18
Then
a+bln4=15 (1)
a+bln8=18 (2)
This is in fact a system of two linear equations.
1 ln4 15
1 ln8 18
For practice, use the two points above to find the model
P 9 4.33lnQ
[Again, for two points only the model is perfect! But given a series
of more points, regression provides the best possible log model]
57
TOPIC 2: FUNCTIONS Christos Nikolaidis
y ex (exponential)
3
yx (power)
y 20 100lnx (logarithmic)
As you can see the graphs of the exponential and power models
look alike. Thus if we are given some series of points as follows
58
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
the function y 3 5lnx
takes the form y 3 5X [where X=lnx]
which is linear!
x 2 3 5 10
y 6.47 8.49 11.0 14.5
If X=lnx then
You see that the points on the second diagram lie on a line.
59
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 2
the function y 3e 2x
takes the form Y ln3 2X [where Y=lny]
which is linear!
2x
Let us select some points of y 3e :
x 1 2 3 5
y 22.2 163.8 1210.3 66079.4
If Y=lny then
x 1 2 3 5
Y=lny 3.1 5.1 7.1 11.1
You see that the points on the second diagram lie on a line.
60
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 3
the function y 3x 5
takes the form Y ln3 5X [X=lnx, Y=lny]
which is linear!
5
Let us select some points of y 3x :
x 1 2 3 5
y 3 96 729 9375
You see that the points on the second diagram lie on a line.
61
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 4
Consider the data
t 3 6 10 12
P 109.417 119.722 134.986 143.333
t 3 6 10 12
lnt ln3 ln6 ln10 ln12
P 109.417 119.722 135.986 143.333
lnP ln(109.417) ln(119.722) ln(135.986) ln(143.333)
t 3 6
lnP ln(109.417) ln(119.722)
We obtain:
3a + b = ln109.417
6a + b = ln119.722
The solution is (by GDC): a = 0.03 b = 4.60516
Therefore,
lnP = 0.03t+4.60516
62
TOPIC 2: FUNCTIONS Christos Nikolaidis
-x + 6, 0x<2
2
f(x) = x , 2x<4
256 2-x , 4 x 10
which is linear in the 1st interval, quadratic in the 2nd interval and
exponential in the 3rd interval.
63
TOPIC 2: FUNCTIONS Christos Nikolaidis
EXAMPLE 1
Peter investigated a series of data (x,y) and observed that
between x=0 and x=10, y is proportional to x
i.e data follow a model of the form ax
between x=10 and x=30, y decreases linearly in rate 2
i.e data follow a model of the form -2x+b
between x=30 and x=50, data follow the quadratic model
0.1(x- 30)2 10,
(a) Write down a piecewise function f(x) that describes the data.
(b) Find the values of a and b given that f(x) is continuous.
(c) Sketch the graph of the function.
Solution
ax, if 0 x 10
(a) f(x) -2x + b, if 10 x 30
0.1(x- 30)2 10, if 30 x 50
(b) At x=10: ax =-2x + b 10a=-20+b
At x=30: -2x + b = 0.1(x- 30)2 10 60+b=10
5x, if 0 x 10
(c) f takes the form f(x) -2x +70, if 10 x 30
0.1(x- 30)2 10, if 30 x 50
and the graph is
64