BAM Book PDF
BAM Book PDF
BAM Book PDF
Gregor Passolt
All material herein is
2008
c by Gregor Passolt except for the NECTA problems
which are
by the National Examination Council of Tanzania.
c
Permission is given freely to copy any portion or the entirety of this book for edu-
cational purposes so long as the author is credited.
Contents
1 The Basics 8
1.1 Expanding and Factoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3 Exponents and Logarithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.4 Coordinate Geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.5 Trigonometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.6 The Unit Circle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.7 Chapter Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2 Differential Calculus 33
2.1 Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.2 Derivatives from First Principles . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.3 Derivatives of Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.4 Derivatives of Other Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.5 Product and Quotient Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.6 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2.7 Implicit Differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2.8 The First Derivative Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.9 The Second Derivative Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.10 Applications of Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.11 Chapter Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3 Integral Calculus 58
3.1 Integrals as Antiderivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.2 Integration Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.3 Area and the Definite Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.4 U-Substitution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.5 Integration by Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.6 Volume by Revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.7 Applications of Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
3.8 Chapter Revision and Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
iii
iv CONTENTS
B Notation 125
• Eric Malm, for his help with all LATEX issues involved in typesetting, and setting me up
with some nifty scripts that were extremely useful.
• Craig Landry, for tirelessly and cheefully downloading all the LATEXpackages, other utili-
ties, and Futurama episodes required.
• Peter Finin, for writing the section on Linear Programming and his support.
• The students and teachers at Ulayasi Secondary School for creating a lovely home and
work environment for me from 2006 to 2008.
• Peace Corps Tanzania and its staff for supporting me in my endeavors here.
• ‘Uncle Bill,’ and his NGO for giving me the laptop I used to write this.
Nashukuru sana.
Gregor Passolt
v
Preface
There is a great need for A-Level textbooks in Tanzania that have been written to exactly
address the syllabi. The whole country is plagued by a lack of teachers, but especially A-level
science and mathematics teachers are hard to come by. It’s horrible to deprive the country’s
best and brightest students of a good chance at education. I think that an inexpensive Basic
Applied Mathematics textbook could greatly help A-Level science students, especially at those
schools where there is no BAM teacher.
This book is written specifically to meet the needs of the BAM student:
• It should be inexpensive.
• It goes straight to the point. For better or for worse, BAM students want to learn enough
mathematics to do problems in their subjects, currently and should the continue studying,
so that they can spend more time studying their combination subjects.
• It should address especially those topics which frequently appear on NECTA exams.
• In addition to the A-Level syllabus topics, it should provide a quick review of important
O-Level topics.
• It should be light on the theory behind the math, but have many worked examples and
exercises, included many problems from past NECTA exams.
vi
To The Student
BAM is an important subject. It’s not one of your combination subjects, but it will help you
with them. This book was written so that you can learn even if you don’t have a teacher. Of
course it’s better if you do have a teacher to guide you through the subject. But even if you
are in a place where there is no teacher, you can still learn lots by reading this book and doing
the exercises.
I have included many exercises, both for practice and from past NECTA papers. In the
back, you will find solutions to some problems, and hints to others. Please, try your level best
before looking for the answer, because on the NECTA exam there are no answers in the back.
In Appendix D, you can find instructions on how to use a condom. This is not related to
mathematics, but all the education in the world will not help you live through AIDS. The best
way to avoid AIDS is abstinence. However, if you do have sex, you can still protect yourself
by using a condom. Using a condom protects you, protects your partner, protects your future
husband or wife, and your future children. Using a condom some of the time is only a little
better than never using a condom. To completely protect yourself, you must use a condom
every time you have sex.
Some advice for all your NECTA exams:
• When it’s time to take the exam, you have been studying for 2 years. The night before
the exam, do not study late at night, 1 more hour of sleep will help you more than 1 more
hour of studying.
• In the morning just before the exam, eat something! Not a full meal to make you tired,
but something to give you some energy. If you are hungry, you will not be able to think
well.
• Also try to get a little exercise right before the exam, like jogging for 10 minutes. It will
help to wake up your body and your mind.
• When you sit down to take the exam, first read the entire test and choose which problems
you want to do. Try not to waste time on problems you don’t know well until you have
already finished the ones you can do easily.
Good Luck!
vii
Chapter 1
The Basics
Every student of Basic Applied Mathematics should know the contents of this chapter thor-
oughly. Most of the topics covered are in the O-Level syllabus, they have been selected as
the most important topics from O-Level that form the foundation that we will build upon in
covering the BAM syllabus.
Of course, in your O-Level studies you may not have thoroughly covered all of these topics,
but the time to learn is now. This knowledge is necessary to succeed in A-Level, and if you
are uncomfortable or slow in performing calculations from O-Level, you will find yourself out of
time on your A-Level NECTA exam. Also, some O-Level topics like functions and their inverses
(Form III) appear again in the A-Level syllabus, so they are covered here.
So, go through this chapter quickly, but if you find a topic or a method you are not familiar
with, get adequate practice. Especially look at the factoring and unit circle sections. If you are
an expert in these areas, you will find yourself able to complete problems much faster.
We will not write here the mistake that is made. So many people forget about the 2ab term,
you should be smarter than them! Similarly,
However,
a2 − b2 = (a + b)(a − b) (1.3)
Look at the difference between Equations 2 and 3. They are different! Know both of these, but
don’t confuse them! For more detail on expanding (a + b)n see section 6.4.
8
1.1. EXPANDING AND FACTORING 9
or even both. Factoring takes this one step farther. If (x + a)(x + b) = 0, then (x + a) is 0 or
(x + b) is 0, which means that x = −a or x = −b.
If we expand (x + a)(x + b) we get (x + a)(x + b) = x2 + ax + bx + ab = x2 + (a + b)x + ab.
Factoring is doing this backwards. For example, to factor x2 + 3x + 2 we want to make it look
like (x + a)(x + b). If we line it up,
x2 + 3 x + 2
x2 + (a + b) x + ab
so we need to think of numbers a and b such that (a + b) = 3 and ab = 2. Can you think of any?
The product a · b is a good place to start looking. What numbers multiply to make 2? There
are two possibilities, 2 = 1 × 2 and 2 = −1 × −2. Now, what are the sums? −1 + −2 = −3,
that is not what we want, but 1 + 2 = 3, so it fits! Therefore
x2 + 3x + 2 = (x + 1)(x + 2)
This helps us find the roots, or the values of x to make the polynomial 0 because if
x2 + 3x + 2 = (x + 1)(x + 2) = 0
Ex 1: Factor x2 + 4x − 5.
Solution: Think of numbers a and b such that a + b = 4 and ab = −5. Starting with the
product, possibilities are 1 and −5 or −1 and 5. The sum tells us that the answer is −1
and 5. Thus
x2 + 4x − 5 = (x + 5)(x − 1)
is our factored polynomial. z
Ex 3: Factor 3x2 − x − 2.
Solution: Sometimes, like here, we cannot divide by 2, but because there is a coefficient of x2
we can start with
(3x + a)(x + b)
But we know that ab = −2, and that a + 3b = −1. A little thought, and we find that
a = 2, b = −1. Just try a few numbers and you can usually get it. Thus
z
Expanding is the opposite. In expanding, you must be careful to get everything.
10 CHAPTER 1. THE BASICS
z
Another technique for simplifying things is ‘rationalizing the denominator.’ If the denomi-
nator of a fraction is a square root (or other root), it is nice to put it in the numerator instead.
This is how it’s done:
Exercises
1.1.1: Expand: (a) (z + p)2 (b) (x + y)2
(c) (x + 1)2 (d) (x − 3)2
y)3
1.1.2: Expand: (a) (x + √ √ (b) (t√+ 4)3 √
(c) (x + 2)(x − 2) (d) ( 2 + x)( 2 − x)
1.1.3: Factor: (a) x2 − 4x + 3 (b) x2 + 5x + 4
(c) x2 − 5x + 6 (d) 2x2 + 5x − 3
1.1.4: Factor: (a) x2 − 16 (b) 9 − x2
(c) x2 + 2x − 3 (d) 3x2 + 18x + 24
1.1.5: Factor: (a) 5x2 − 18x − 8 (b) x2 − 6x + 9
(c) x2 − 2x + 1 (d) x2 + x − 6
1.1.6: Factor and solve for x: (a) x2 − 10x − 24 = 0 (b) x2 + 10x − 24
(c) x2 + 11x + 24 = 0 (d) x2 − x − 20 = 0
√ √
1.1.7: Rationalize the denominators of the following: (a) 3/2 (b) (4x + 2)/ x + y
2
(c) √ x
2x+1
(d) y 8−t
1.2. FUNCTIONS 11
1.2 Functions
There are relations, and there are functions. Any equation involving two variables is a relation
between them. We are more concerned with functions.
Definition: A function is a relation that is many-to-one or one-to-one.
• Note On N otation •
We can write a function in several ways. The most common is
f (x) = 3x + 1,
which we read ‘f of x is equal to 3 x plus 1.’ But we can also write this as
f : x 7→ 3x + 1,
which is read ‘f maps x to 3 x plus 1.’ They mean the same thing. It is uncommon, but also
possible, to write the function as a set relation:
f = {(x, y) : y = 3x + 1},
which we read ‘f is equal to the set of ordered pairs (x, y), such that y is equal to 3 x plus 1.’
When writing sets, the description of the set goes inside curly braces { }, and the colon, ‘:’, is
read ‘such that’.
• Never divide by 0.
The reason we don’t do these things is that they are not defined, so it is meaningless to do
them. Remembering these is very useful in finding the domain of functions.
Definition: The domain of a function is the set of all possible inputs.
This means that if a function f is a function of x, i.e. f (x), then the domain of f is the
set of all possible values of x. In most cases, for example f (x) = 2x + 1, the domain is ‘All
real numbers’, which means x can be anything. The rules listed above are useful for telling you
what values of x are not in the domain in certain cases. Sometimes the domain will be limited,
and you will be told explicitly what the domain is.
x
Ex 1: Find the domain of f (x) = x−1 .
Solution: Look at the rules list. There is one rule about division, one rule about logarithms,
and one rule about square roots. Which rules apply to our question? Well, we have no
logs and no roots, but we do divide. The rule says we cannot divide by 0. What do we
divide by? x − 1. So, the rule says that x − 1 6= 0. From there it’s easy to get that x 6= 1.
12 CHAPTER 1. THE BASICS
So 1 is not in the domain, but everything else is. To write this in words, we can say ‘The
domain is all real numbers except 1.’ To write it in math:
Domain(f ) = {x : x 6= 1}
z
Also note that a positive number raised to any power is always positive. 2x is always positive,
for any x whatsoever, because 2 is positive. In the same way, ex is always positive, because
e = 2.71828 . . . > 0.
Can you think of anything else that is always positive? Well, there are square roots, for one.
√
The notations x is defined as positive. It’s true that if x2 = 9 then x can √ be either 3 or −3,
and that is why to correctly solve that equation, you should write x = ± 9 = ±3. But if the
± is not there, then it is positive. Also, absolute values, like |x|, are always positive.
These ‘always positive’ things are useful for finding the range of functions.
Definition: The range of a function is the set of all possible outputs.
The range is the set of all possible values of f (x) or of y, depending on how the function
is defined. Just like domain, often the range is ‘All real numbers.’ If we write y = 2x + 1
or f (x) = 2x + 1 then it is possible for y or f (x) to be anything, so the range of f is all real
numbers. However, if we see one of the ‘always positive’ things, then maybe the range is smaller.
x2 ≥ 0
x2 + 1 ≥ 0 + 1
x2 + 1 ≥ 1
f (x) ≥ 1
So the range of f is all real numbers greater than or equal to 1. To write it in math,kwa
kihisabati :
Range(f ) = {y : y ≥ 1}
z
If the domain is limited or restricted, and is a small set, the best way to find the range is
just to find where each domain element is mapped. This set is your range.
Ex 4: If f (x) = x + 2 and g(x) = x2 , find (a) f (g(x)) and (b) g(f (x)).
1.2. FUNCTIONS 13
Solution: This is not f (x) · g(x)! This is f of g of x. And this is how we do it:
(a)
f (g(x)) = g(x) + 2 Start by doing the outer function on the inner function.
2
=x +2 Then substitute in the inner function.
(b)
2
g f (xbigr) = f (x) Same as above.
2
= [x + 2]
= x2 + 4x + 4
Ex 5: If f (x) = cos x and g(x) = x2 + 1, find (a) f (g(x)) and (b) g(f (x)).
Solution: (a) f (g(x)) = cos(g(x)) = cos(x2 + 1).
(b) g(f (x)) = [f (x)]2 + 1 = cos2 x + 1. z
1.2.3 Inverses
Definition: A function f (x) has an inverse, written f −1 (x), which ‘un-does’ f , such that
f −1 (f (x)) = x.
To find the inverse of a function algebraically there is an easy procedure:
1. Write f (x) = as y = (if necessary).
2. Switch x and y everywhere they occur.
3. Make y the subject.
4. Write f −1 (x) for y (if Step 1 was necessary).
If you wonder about the ±, see part about square roots on page 12. z
Exercises
1.2.1: ate the domain and range for the following functions:
(a) f (x) = x12 − 1 (b) g(x) = 4 cos x − 2 12
(c) h(x) = x2 +x−6
2x
√
(d) f (x) = e − 3 (e) g(x) = |8x − 3| (f ) h(x) = x − 4
(t)
1.2.2: Find the inverses of the following functions:
√
(a) f (x) = 3x − 6 (b) f (x) = − x + 4 (c) y = (x + 3)2
(d) y = x2 + 3 (e) f (x) = −x/5 + 3 (f ) g(x) = −x2
1.2.3: Let f (x) = 3x + 1, g(x) = −x/2 − 4, and h(x) = x2 . Find the following compositions:
(a) f ◦ g (b) g ◦ f (c) f ◦ h
(d) h ◦ f (e) g ◦ h (f ) h ◦ g
1.2.4: (NECTA 2006)
(a) Find f −1 (x) if f (x) = ex .
(b) Sketch the graph of y = ex and its inverse using the same xy-plane.
(c) What is your conclusion about the value of loge N if N ≤ 0? (3 marks)
1.2.5: (NECTA 2005) A function f is defined as:
xwhen 0 < x ≤ 1
f (x) =
x(x − 2)when 1 < x < 3
Sketch the graph of f (x). (6 marks)
1.2.6: (NECTA
p 2002) Let g be the function which is the set of all ordered pairs (x, y) such
that g(x) = x(x − 2).
1.3. EXPONENTS AND LOGARITHMS 15
1.3.1 Exponents
Recall the meaning of exponents:
a2 = a · a, a3 = a · a · a, a4 = a · a · a · a, . . .
an = |a · a ·{z. . . · a}
n
ax · ay = ax+y
What about (a2 )3 ? Well, (a2 )3 = (a2 ) · (a2 ) · (a2 0 = (a · a) · (a · a) · (a · a) = a6 . Thus another
rule:
(ax )y = axy
And what if we have more than just a? It’s still easy:
(bc)x = bc
| · bc ·{z. . . · bc} = b| · b {z . . . · }c = bx · cx .
. . . · }b · c| · c {z
x x x
The rule:
(bc)x = bx cx
Negative exponents are just the same as long as we define a−1 = 1
a .
Now we can see that a−2 = a−1 · a−1 = a1 · a1 = a12 , the rule is
1
a−x = .
ax
a0 = 1.
Even 00 = 1!
Our last exponent rule is for non-integer exponents. How about a1/2 ? Once again we can
use the other rules to find the answer. Because a1/2 · a1/2 = a1/2+1/2 = a1 , we can see that
√
a1/2 = a. And, in general,
√
a1/n = n a
√
when n is positive. If n is negative, then a1/n = 1/ |n| a.
And those are the rules of exponents! They should be easier this time. The good thing about
learning things twice is that the second time you can understand better, easier, and faster.
16 CHAPTER 1. THE BASICS
1.3.2 Logarithms
Definition:
y = logb x means x = by
Do not forget it. Know it. Use it. This much is nothing special, it is just the definition.
On the logarithmic side, b is called the base of the logarithm, so you can read it as ‘log base
b of x,’ or as ‘log of x base b.’ These two equations are the same, just in different forms. We
call y = logb x logarithmic form, and we call x = y b exponential form. It is easy to remember
because the base of the logarithm becomes the base of the exponent. We will start with some
examples to show how useful this definition is by itself, then we will find some rules that are
also helpful.
Ex 2: 5log5 π =?
Solution: Using just the definition, let y = log5 π. Do not be scared to call part of an equation
by a new name. Now write y = log5 π in exponential form: 5y = π. But what is y? Again, we
write y = log5 π. But 5y = π. Substituting in for y, we get that 5log5 π = π. And this is exactly
the answer we are looking for. z
Ex 3: 8log8 2 =?
Solution: Using the definition, if we let y = log8 2 then, changing to exponential form, 8y = 2.
Therefore 8log8 2 = 8y = 2. z
Nice and easy! These first 2 examples are almost the same, so let’s write it in variables now.
blogb x = x.
A description in words is that the number logb x is the power to which you can raise b to get x.
There are just two constraints: both b and x must be greater than 0. Neither b nor x can be 0
or negative. Now we can go even faster:
Ex 4: 23log23 30 =?
Solution: 23log23 30 = 30 z
It is tedious to always write out a log’s base, so for 2 especially common cases we use
abbreviations:
• Note On N otation •
If the base is 10, we just leave it off, thus log(x) = log10 (x). Logarithms base e are called
‘natural logarithms’ and written like this: ln(x) = loge (x).
y = ln x means y = ex
Ex 5: eln 8.24 =?
Solution: eln 8.24 = 8.24. Why? Because blogb x = x, and ln 8.24 = loge 8.24. z
And how about logb b? We know that blogb b = b, so it must be that
logb b = 1.
1.3. EXPONENTS AND LOGARITHMS 17
Also related is that logb (An ) = logb A + logb A + · · · + logb A so logb (An ) = n logb A. In the
| {z }
n
same manner it is easy to show that
and that
logb A−1 = − logb A.
Logarithms are also used for simplifying complicated products and quotients, or if there is
an unwanted exponent.
ln N = ln No e−λt
ln N = ln No + ln e−λt
ln N = ln No + −λt ln e
ln N = ln No − λt
No
λt = ln No − ln N λt = ln
N
ln NNo
t=
λ
18 CHAPTER 1. THE BASICS
z
The last formula for logarithms we will not derive, just present. If you are interested in the
derivation, please do ask your teacher or find a bigger textbook (or even try it yourself!), it’s
not too difficult. But here is the Change of Base Formula:
logb2 x
logb1 x = or logb2 (b1 ) · logb1 (x) = logb2 (x)
logb2 b1
log4 123
log16 123 =
log4 16
Ex 9: Change (a) log7 6 and (b) log11 3 to both base 10 and base e.
Solution: (a) First let’s do base 10. Just apply the change of base formula, with b1 = 7,
b2 = 10, and x = 7.
log 6
log7 6 = .
log 7
For base e, it’s just the same.
ln 6
log7 6 =
ln 7
And, these do not contradict each other, if you use a calculator you will find that
log 6 ln 6
log7 6 = = = 0.920782221
log 7 ln 7
log 3 ln 3
log11 3 = = = 0.45815691
log 11 ln 11
z
Logs are strange. We have seen that log(ab) = log a + log b, but it does not distribute! This
means that if y = a + b, then
This is another common mistake that is so easy not to make. Do not lose points on your NECTA
exam for something so silly. As a quick reference, the logarithm rules are summarized at the
end of the chapter on page 31.
1.3. EXPONENTS AND LOGARITHMS 19
Exercises
1.3.1: Write the following in logarithmic form:
(a) x = by (b) x = 24 (c) 8 = 2n
(d) π = e x (e) a = 10z (f ) ab = (xy)n+1
(g) 4 = 22 (h) 1024 = 210 (i) b0 = 1
1.3.2: Write the following in exponential form:
(a) log2 4 = 2 (b) logb c = 8 (c) ln 2.9 = 1.06471
(d) ln 2.71828 = 1 (e) log 4 = x (f ) logg (ab) = 2
1.3.3: You should also be proficient at using a calculator to take logarithms. Use a calculator
(or your brain in some cases, if you can) to compute the following to 3 decimal places. Look
for patterns. What characterizes logarithms of numbers less than the base?
(a) log 5.286 (b) log 0.321 (c) log 10000
(e) ln 12
(d) ln 1 (f ) ln 2
1.3.4: Solve for x:
(a) 2 log5 x = log5 18 − log5 2 (b) log4 (x − 1) + log4 (x + 2) = 1
(c) log4 x − log4 (2x − 1) = 1 (d) 3 log7 2 = 2 log7 3 + log7 x
1.3.5: Make x the subject: (a) I = Io e−µx (b) 4y 2 = 102x
(c) A = P eix (d) 42 = 35 · 6x
1.3.6: Expand by taking natural logs of both sides.
(x2 − 3)4 (x3 − 1)8 sin4 (x) · cos3 (x) · e2x
(a) y = (b) y =
(x2 + 2x + 1)6 (x3 − 1)3/2
1.3.7: Solve forp
x:
√ √
log x
(a) log3 x = log3 x (b) x = 108 (c) log2 (log2 x) = 3
1.3.8: Change the following to natural logs (ln):
(a) log 82 (b) log3 9
(c) log2 256 (d) logb x
1.3.9: Find the domain and range for the following functions:
2
(a) f (x) = x−5 (b) f (x) = x22−4
√
(c) f (x) = x4 + 5 (d) f (x) = x − 2
1.3.10: (NECTA 2008) Find without using tables (or calculators): (2 marks)
1.3.11: (NECTA 2008) Find the minimum natural number N which satisfies the inequality
0.4N < 0.001. (4 marks)
1.3.12: (NECTA 2008) (a) Evaluate without using tables or calculators:
1 1 3
log10 + + 2 log10 2 + log10 .
3 4 7
(b) Given that log10 2 = 0.3010 and log10 3 = 0.4771, find the values of:
(i) log10 12.
(ii) log10 5. (6 marks)
1.3.13: (NECTA 2006) Solve for the real number x if log10 x = log5 2x. (3 marks)
√
1.3.14: (NECTA 2005) Solve for x: 4 loga x − loga 27x = loga x−2 . (3 marks)
20 CHAPTER 1. THE BASICS
√
1.3.15: (NECTA 2005) Find y in terms of x: 2 ln y − 3 ln x2 = ln x + ln x. (2 marks)
1.3.16: (NECTA 2003) Solve for x in the equation (logx 3)2 + 3 logx 3 − 4 = 0. (2 marks)
1.3.17: (NECTA 2003) Simplify
27n+2 − 6 × 33n+3
3n × 9n+2
(2 marks)
1.3.18: (NECTA 2002) Use common logarithms to find the value of the following:
(7.04)2
(a) √
(31.7) 1.09
(b) (115)1/2 + 35.22/3
(Note: It is not apparent why logs are necessary. For part (a) you could use logs and a Four-
Figure Table to approximate. For part (b), because it is addition, logarithms don’t help. You
are better off just evaluating with a calculator.) (6 marks)
1.3.19: (NECTA 2002) Solve the following equations:
(6 marks)
1.4.1 Slope
Definition: The slope of a line, usually called m is a measure of how steep it is. It is defined
as the ratio of vertical distance over horizontal distance between 2 point on the line, often called
‘rise over run’.
y2 − y1
m=
x2 − x1
Functions of the form y = mx + b are straight lines. They have constant slope, m, and b
is the y-intercept, the y-value when x is 0. This way of writing the equation, y = mx + b, is
called slope-intercept form, because to write it you must know the slope and the y-intercept of
the line.
If the slope is 0, then the line is horizontal. If the slope is undefined, then the line is
vertical. Vertical lines are written x = c, where c is a constant. This slope formula is only
good for straight lines. In Chapter 2 you will learn how to find slope for other functions,
like parabolas. There are other ways to write a straight line. Perhaps the easiest way, called
1.4. COORDINATE GEOMETRY 21
point-slope form says that the equation of a line with slope m passing through a point (xo , yo )
is
y − yo = m(x − xo ).
Point-slope form is nice because if you know slope and any other point, you can write the
equation. It works because for any other point on the line, (x, y), the slope between that point
and the point you know, (x0 , y0 ) is
y − yo
m= ⇒ y − yo = m(x − xo ).
x − xo
Ex 1: Write the equation for the line of slope 3 passing through the point (8, 4) (a) in point-slope
form, (b) in slope-intercept form, and (c) in the form y + Ax + B = 0.
Solution:
(a) For point-slope form, it is too easy. y − 4 = 3(x − 8).
(b) For slope-intercept form, we know it will be y = 3x + b, we just need to find b. But,
we do know that (8, 4) is point on the line, so we substitute these values in and solve for
b:
y = 3x + b
4=3·8+b
4 − 24 = b
−20 = b
(c) To find this last form, we just take the slope-intercept form and put everything on one side:
y = 3x − 20
y − 3x + 20 = 0
z
The downside to point-slope form is that for every point on the line, you can write an
equation for the line that looks different, but is really the same as all the others. In slope-
intercept form, because the line has only 1 slope and only 1 y-intercept, there is only 1 equation,
it is unique.
Two lines with the same slope are parallel, they either are the same at every point, or they
never intersect. All other lines will intersect at exactly one point. You can find the point of
intersection by setting the y’s equal to each other and solving. (Or any method for simultaneous
linear equations.)
If two lines have slope m1 and m2 , and m1 · m2 = −1, then the lines are perpendicular.
‘Normal’ is another word that, when used in maths, also means perpendicular.
the area of the square? There are two good ways to calculate the area. The first is just the
normal formula for the area of a square, A = (a + b)2 . The second way is to add up the area
of all the small shapes. There are 4 triangles of area A∆ = 12 ab, and there is one square of
side-length c, A = c2 , so the area of the whole figure is A = 4 · 12 ab + c2 . These are just two
different methods of calculating the same thing, so they must be equal. A = A!
1
(a + b)2 = 4 · ab + c2
2
4
a + 2ab + b = ab + c2
2 2
2
a + 2ab + b − 2ab = 2ab + c2 − 2ab
2 2
a2 + b2 = c2
1.4.3 Distance
We use the Pythagorean Theorem to tell us the direct straight-line distance between two points.
If there are two points in the plane, (x1 , y1 ) and (x2 , y2 ), then the straight line between them
makes the hypotenuse of a right triangle. The base of the triangle is the horizontal distance
between them, x2 − x1 , and the height of the triangle is the vertical distance, y2 − y1 . So, by
the Pythagorean Theorem, the distance between these two points is
p
d = (x2 − x1 )2 + (y2 − y1 )2 .
Ex 3: Find the distance between (−1, 3) and (5, 1), and find the point that is halfway between
them.
Solution: To find the distance between them, we just use the formula above:
p p √
d = (5 − −1)2 + (1 − 3)2 = 62 + (−2)2 = 36 + 4 = 6.325
The point that is halfway between them has an x-coordinate halfway between -1 and
5, and a y-coordinate halfway between 3 and 1. To find these halfway values, we just
average:
−1 + 5 3+1
x= =2 y= =2
2 2
So the midpoint, the point halfway between them, is (2, 2). z
A couple more useful definitions:
1.4. COORDINATE GEOMETRY 23
Definition: The midpoint of a line segment, or the midpoint between two points, is the point
that is halfway between the ends of the line segment, or halfway between the two points.
The midpoint can be found by averaging the x-coordinates and averaging the y-coordinates.
The mid point of (x1 , y1 ) and (x2 , y2 ) is given by:
x1 + x2 y1 + y2
,
2 2
Definition: The perpendicular bisector of a line segment is the line that is perpendicular to
the line segment and passes through the midpoint of the line segment.
Ex 4: Find the perpendicular bisector of the line segment connecting points (−3, −2) and
(−9, 2).
Solution: To start, let’s find the midpoint of this line segment.
−3 − 9 −2 + 2
x= = −6 y= =0
2 2
The midpoint is (−6, 0). Next, we should find the slope of the line segment.
y2 − y1 2 − −2 4
m1 = = = = −2/3
x2 − x1 −9 − −3 −6
The slope of the line segment m1 = −2/3. The line we are looking for is perpendicular
to the segment, so that means it has slope m2 such that m1 · m2 = −1. Thus m2 = 3/2.
Now we have a slope, 3/2, and a point, (−6, 0). Thus an equation for the perpendicular
bisector, in point-slope form, is
3
y = · (x + 6).
2
z
Exercises
1.4.1: (NECTA 2008) (a) A, B, and C are three points such that B is the midpoint of AC.
Given that A is (−1, 6) and B is (2, 4), find the coordinates of C.
(b) Determine the slope of the line perpendicular to the line segment AC. (2.5 marks)
24 CHAPTER 1. THE BASICS
1.4.2: (NECTA 2008) (a) Show, by using Pythagoras’ theorem, that the points A(1, 6),
B(−1, 4), and C(2, 1) form three vertices of a right-angled triangle.
(b) Find the equation of the perpendicular bisector to the line segment BC in (a) above.
(3.5 marks)
1.4.3: (NECTA 2005) The equations of two straight lines L1 and L2 are 5x − 8y − 80 = 0
and 8x + 5y − 128 = 0, respectively. Show that L1 and L2 are perpendicular. (2 marks)
1.4.4: (NECTA 2005) The points A(p, q) and B(p − 1, q + 2) lie on the line 2x − y + 3 = 0.
Find the values of p and q. (2 marks)
1.4.5: (NECTA 2005) The points P (4, −3), Q(−3, 4), R(−2, 7), and S are the vertices of a
parallelogram. With the help of the coordinates of the midpoint of the diagonal P R, find the
coordinates of point S. (2 marks)
1.4.6: (NECTA 2003) A and B are two points whose coordinates are (2, 1) and (6, 5), respec-
tively. Find the equation of the line meeting AB perpendicularly at its midpoint. (2 marks)
1.4.7: (NECTA 2003) Given the points A(2, −4) and B(−4, 2), find the equation of a line
which is a perpendicular bisector of AB. (2 marks)
1.4.8: (NECTA 2002) Find the equations of the straight lines which pass through the centre
of the circle x2 + y 2 − 4x − 6y − 5 = 0 and at the points where the given circle cuts the x-axis
(each line at one point). (6 marks)
1.4.9: (NECTA 2001) Find the equation of a circle which circumscribes the triangle with
vertices (1, 0), (2, 1)) and (0, 2). (4 marks)
1.4.10: (NECTA 2000) Find the centre and diameter of the circle x2 + y 2 − 4x + 6y − 3 = 0.
(2 marks)
1.4.11: (NECTA 2000) Find the perpendicular distance from the line 4y = 3x − 4 to the
origin. (4 marks)
1.5 Trigonometry
This material is summarized at the end of the chapter on page 31.
We start with some simple word definitions. Adjacent means next to, kanda ya, au ya jirani.
Opposite means away from, on the other side, mkabala. We use these as a memory aid for the
basic trigonometric functions. Imagine a right triangle with angle θ and sides a adjacent to θ,
o opposite from θ, and h the hypotenuse as in the figure We define the trigonometric ratios as
follows:
cos θ = a/h sin θ = o/h tan θ = cos θ/ sin θ = o/h
A story to remember this:
There once was a math student studying trigonometry. He was walking home from
school, and he was very confused because he had just learned all about sine, cosine,
and tangent. He was thinking so hard to remember their definitions, that he did
not look where he was going, so he hit his toe very hard on a big rock.
1.5. TRIGONOMETRY 25
‘Ouch!’ he yelled, and he ran to his neighbor, who is also a doctor. The doctor
wanted to tell him that he should ‘soak his toe’ in some warm water and it would
feel better. But this doctor came from a different country, so he spoke in a strange
accent. Thus, when the doctor tried to say ‘Soak the toe,’ what he actually said was
‘Soh cah toa.’
The student thought for a moment, and then said ‘Aha! I know how to remember
trigonometry!’ He forgot all about his hurt toe because he was so happy. ‘Thank
you so much, doctor! Because of you I will surely get Division 1 on my exams!’
The key is in what the doctor said. ‘Soh’ means sin = o/h, ‘cah’ means cos = a/h, and ‘toa’
means tan = o/a. So if you have trouble remembering, just think of ‘soh cah toa.’
A common mistake is to forget that sin x or cos x is a function. By itself, cos has no meaning.
You must always have cosine of something, be it x or r or θ or π or T anzania. cos x, fine,
sin($), sure, tan(T anzania), great! But just cos by itself is very bad.
While we are defining things, we should also include the other 3 trigonometric functions,
secant (sec), cosecant (csc), and cotangent (cot). They are defined in terms of the original three:
1 1 1 cos θ
sec θ = csc θ = cot θ = =
cos θ sec θ tan θ sin θ
1.5.1 Radians
Definition: Radians are the SI unit for measuring angles. Radians are defined so that if an
angle is θ radians, then the length of the arc produced is r · θ, where r is the radius. In a full
circle there are 2π radians, because the circumference is 2πr. Therefore,
2π rad = 360◦ .
For a general circle of radius r, the arc length s of a piece of the circle of angle θ is given as
s = rθ if θ is in radians,
2πr
s= ·θ if θ is in degrees.
360
Also nice is that ‘radians’ is not actually a unit, it is just a ratio of lengths (s/r). Most angles
in radians will not have ‘rad’ explicitly written. If an angle has no degree sign (◦ ), then it is in
radians. Using the equality above, you can convert from radians to degrees and back again just
like any other conversion.
Solution:
2π 2π π
(a) θ = 60◦ ◦
= =
360 6 3
360 ◦
(b) φ = 4π = 2 · 360◦ = 720◦
2π
2π 2π
(c) α = 180◦ = =π
360◦ 2
3π 360◦ 3
(d) β= · = · 360◦ = 270◦
2 2π 4
z
The proofs of the Law of Sines and Law of Cosines are not here, but they are not too difficult.
Try to prove the Law of Sines, maybe you are able!
Exercises
1.5.1: (NECTA 2005) Solve the equation 4 cos θ − 3 sec θ = 2 tan θ for −180◦ ≤ θ ≤ 180◦ .
(3 marks)
1.5.2: (NECTA 2005) Solve the equation cos 40◦ + x) = sin(2x − 10◦ ) when 0◦ < x < 90◦ .
(3 marks)
1.5.3: (NECTA 2002) Eliminate θ from the following: (2.5 marks)
x = cos 2θ + 1
y = sin θ + 1
1.5.4: (NECTA 2002) Solve the equation sin 2θ−sin θ = 0 for θ between 0◦ and 180◦ inclusive.
(3.5 marks)
1.5.5: (NECTA 2001) Eliminate x from a sin x = b and tan x = c. (2 marks)
1.5.6: (NECTA 2001) Solve the following equation for 0◦ < x < 360◦ : (2 marks)
sin 2x + cos x = 0
Check out this picture of the unit circle. The first thing to notice is that the points (1, 1),
(−1, 1), (−1, −1), and (1, −1) are not on the circle. Let’s look at a point that is on the circle.
How about this point (x, y) where the line connecting the point to the origin makes an angle
θ with the x-axis. How can we find out what x and y are in terms of θ? Sine and cosine! In
terms of θ and radius r, x = r cos θ and y = r sin θ. But we know that r = 1 because it’s a unit
circle! So, for any point on the circle, the coordinates are given by
where θ is the angle made with the x axis. In other words, for the unit circle cos θ correspond to
x which is horizontal distance from (0, 0), and sin θ corresponds to y which is vertical distance
from (0, 0).
Note: If you need more review about the basic trigonometric functions, look at the previous
section for details or, for a summary on page 31.
This works for all values of θ. If θ is positive, you move anticlockwise from the x axis, if θ is
negative, you move clockwise. If θ > 360◦ = 2π radians, then you go around once and keep on
going around again. Thus the unit circle can be used like a complete graph of cos θ and of sin θ.
If you want cos θ, just look at the x coordinate. If you want sin θ, just look at y. A useful fact
is that the values of cos θ and sin θ are always in between -1 and 1. You can see it on the unit
circle because the maximum and minimum values for x and y are 1 and -1. So we can write
−1 ≤ sin θ ≤ 1 − 1 ≤ cos θ ≤ 1,
Which is nice. Let’s see what else we can find. What did we start with, what’s the equation of
this circle? x2 + y 2 = 1. And x = cos θ, and y = sin θ. So what happens if we substitute in for
x and y? We get The Most Important Identity Ever:
cos2θ + sin2 θ = 1
This identity is used all the time. Also, think about some angle θ along with −θ. Starting at
the x-axis, if you go up by some angle and also down by the same angle, the x coordinates are
the same, but the y coordinates are opposite. This means that
The Unit Circle also can tell us about radians, which is another unit for measuring angles.
Radians are better than degrees in almost every way; their one downside is that you aren’t
familiar with them already. What is the perimeter of the Unit Circle? Probably you remember
the formula for perimeter, C = 2πr. Here, r = 1 so the perimeter is 2π. And how many radians
are in a full circle? 2π!
As we saw in the previous previous section, if θ is in radians, the arc-length s of a section
of angle θ of a circle of radius r is given by s = rθ. For the unit circle, r = 1 so s = θ!
A very easy thing that you can do to enable yourself to do problems much faster is to
memorize the sines and cosines of all the basic angles, both in radians and degrees. Basic angles
are the multiples of π/6 and π/4 radians, (30◦ and 45◦ , respectively). If you completely know
the full unit circle, as pictured, then you will be able to do many problems quickly in your head,
instead of slowly with a calculator.
z
For proofs, there is no procedure that will always work. My advice is this:
• Put everything thing in terms of sine and cosine. Tangents, secants, etc, just confuse
things.
• If you have two separate terms, combine them. Find a common denominator and put
fractions together.
• Expand! If you have (1 + sin θ)(cos θ − 1), multiply it out, see what it really is.
• Often, in a question that asks ‘Show that this = that,’ one side is more simple than the
other. Take the complicated side and try to make it like the simple side. It is better to
simplify something that is complex than to complicate something that is simple.
Ex 2: Simplify
sin θ
1 + cot2 θ
1.6. THE UNIT CIRCLE 29
Solution:
sin θ sin θ
2 = 2θ Put everything in terms of sine and cosine.
1 + cot θ 1 + cos
sin2 θ
sin θ
= Find a common denominator...
sin2 θ cos2 θ
sin2 θ
+ sin2 θ
sin θ
= and combine terms.
sin2 θ+cos2 θ
sin2 θ
sin θ
= 1 Remember sin2 θ + cos2 θ = 1,
sin2 θ
3
= sin θ and there it is.
Solution: For this kind of question, you are given 2 equations with 3 variables, x, y, and
θ. The answer is 1 equation with 2 variables: just x and y. (Eliminate is like kimbiza
au fukuza. We want to chase away the θ.) To do this, we will use the best identity:
sin2 θ = cos2 θ = 1. But first we need to make sin θ and cos θ the subjects of the given
data.
x = 3 cos θ
cos θ = x/3 Now cos θ is the subject.
y = 5 sin θ
sin θ = y/5 And sin θ is the subject here.
x 2 y 2
cos2 θ + sin2 θ = + Substituting in,
3 5
x 2 y 2
1= + And now we have 1 equation without θ.
9 25
z
Ex 4: If cos θ = −2/3 and θ is in quadrant III, find the exact value of sin θ without using a
calculator.
Solution: Without using a calculator! We need, once again, to use the best identity:
sin2 θ + cos2 θ = 1
sin2 θ = 1 − cos2 θ
−2 2
sin2 θ = 1 −
3
2 4
sin θ = 1 −
9
5
sin2 θ =
9√
5
sin θ = ±
3
30 CHAPTER 1. THE BASICS
Now we use the other data, that θ is in quadrant III. If you look at the unit circle, you
will see that in quadrant III, both sine and cosine are negative. Therefore
√
− 5
sin θ =
3
z
z
• Note On N otation •
We usually put a filled-in square at the end of a proof to show that we are done. Sometimes
this is called a ‘booyah box’, as in ‘Booyah! I finished the proof!’
Ex 6: Solve the equation 2 sin2 θ − cos θ = 1 for values of θ between 0 and 2π.
Solution: First we will make the substitution sin2 θ = 1 − cos2 θ:
2 sin2 θ − cos θ = 1
2(1 − cos2 θ) − cos θ = 1
2 − 2 cos2 θ − cos θ = 1
−2 cos2 θ − cos θ + 1 = 0 It’s a quadratic!
(−2 cos θ + 1)(cos θ + 1) = 0 Factoring the quadratic.
1
cos θ = or cos θ = −1
2
Use the unit circle to find all possible values for θ. For cos θ = 12 , we find θ = π/3 or θ = 2π/3.
For cos θ = −1, θ = π. Thus θ = π/3, 2π/3, or π. z
Exercises
1.6.1: (NECTA 2005) Show that
sin 2θ
= tan θ
1 + cos 2θ
1.7. CHAPTER REVISION 31
(3 marks)
1.6.2: (NECTA 2005) Prove that (sin θ + csc θ)2 = sin2 θ + cot2 θ + 3. (3 marks)
1.6.3: (NECTA 2003) Solve for x in the equation tan 6x = √1
3
where x is between −180◦ and
180◦ . (2 marks)
sin2 x + cos2 x = 1
The identity above, as well as the next three, are all easily derived from the Unit Circle.
sin(α + β) = sin α cos β + cos α sin β cos(α + β) = cos α cos β − sin α sin β
sin(2θ) = 2 sin θ cos θ cos(2θ) = cos2 θ − sin2 θ = 1 − 2 sin2 θ = 2 cos2 θ − 1
1 1 − cos θ 1 1 + cos θ
sin2 θ = cos2 θ =
2 2 2 2
Logarithms
logb x = y ⇔ by = x ln x = y ⇔ ey = x
a
log(ab) = log a + log b log( ) = log a − log b log(an ) = n log a
b
logb2 b1 · logb1 x = logb2 x
Change of Base Formula : logb2 x
logb1 x =
logb2 b1
Exercises
1.7.1: (NECTA 2008) Prove that csc 2θ + cot 2θ = cot θ. (2.5 marks)
1.7.2: (NECTA 2006) Find an equation (in the form Ax+By+C = 0) of the line which passes
through the point (2, −1) and through through the point of intersection of the line 3x−7+7 = 0
and 10x − 7y + 38 = 0. (3 marks)
1.7.3: (NECTA 2006) Find the equation of the perpendicular bisector of the line joining
points A(2, −3) and B(6, 5).
32 CHAPTER 1. THE BASICS
1.7.4: (NECTA 2006) Using the same xy plane, sketch the graphs of f : x 7→ 5 − x and
g : x 7→ x, and hence calculate the area of the triangle enclosed by the two graphs and the
x-axis. (3 marks)
1.7.5: (NECTA 2006) Given that 2A + B = 45◦ , show that:
1 − tan2 A − 2 tan A
tan B = .
1 − tan2 A + 2 tan A
Hence, find the value of tan(−15◦ ) without using a calculator or mathematical tables. Simplify
your answer, and rationalize the denominator. (6 marks)
1.7.6: (NECTA 2003) The straight line x − y − 6 = 0 cuts the curve y 2 = 8x at P and Q.
Calculate the length of P Q. (2 marks)
1.7.7: (NECTA 2003) Show that
cos 2A
= cos A − sin A
cos A + sin A
(2 marks)
1.7.8: (NECTA 2003) Simplify
x x
+ 1/2
y 1/2 +x 1/2 y − x1/2
(2 marks)
1.7.9: (NECTA 2003) Find the set of values of x such for which
4x + 8
> 3.
x−1
(3 marks)
1.7.10: (NECTA 2001) Find the set of values of x for which
2x + 3
> 5.
2x − 1
(3 marks)
Chapter 2
Differential Calculus
Differentiation finds the exact rate of change of a function. The concept of a ‘derivative’,
‘gradient’, ‘slope’, ‘rate of change’, are all about the same. Finding the slope of a straight line is
easy because it is constant. The slope is the same at any two points on the line. But a function
just slightly more complicated, a parabola, has a slope that is different at every point. But with
derivatives, we can find what it is at any point. To find this exact slope, we will need to learn
limits, then we will learn to differentiate.
Derivatives are incredibly useful. You will take lots and lots of derivatives, you should
practice until you can do it quickly and easily. When beginning, show lots of work so that you
do not make mistakes, but with practice you will be able to skip some steps, doing them in your
head.
2.1 Limits
A limit is a description of what a function does as you look closer and closer to a point, without
ever looking at the point. A good example is ‘at infinity’. You can never put ∞ in an equation
and get an answer, but you can find out what a function does as you get close to infinity.
For example, what happens to the value of y as x approaches ∞ if y = 4 − x1 ? We write
1
lim 4 −
x→∞ x
and say ‘The limit of 4 − x1 as x approaches infinity.’ Obviously, as x gets bigger and bigger
4 will remain as 4, but x1 will get smaller and smaller, approaching 0. Thus we can say that
limx→∞ 4 − x1 = 4 − 0 = 4, or that the limit of 4 − x1 as x approaches infinity is 4.
For limits, we never ‘arrive,’ we just approach. We get closer and closer. This is important
because it avoids problems like dividing by 0. But, also realize that the direction of approach
matters. In our first example, we were approaching infinity. Because it is impossible to be
greater than infinity, we were obviously approaching from below infinity. However, if we want
to approach something that is not infinite, like 0, then we can choose to approach from below
or from above. We denote these with a + to indicate coming from above or a − to indicate
coming from below. For example
1
lim
x→0 x
+
is the limit of 1/x as x approaches 0 from above. So we think: when x is 1, 1/x is 1. Then x gets
closer to 0, say x = 1/2, then 1/x is 2. Then, if x = 1/100, even closer to 0, then 1/x = 100.
As x approaches closer and closer to 0, we can see 1/x getting very big, very positive. And you
can imagine, however big a number you can think of, there is some value for x such that 1/x is
33
34 CHAPTER 2. DIFFERENTIAL CALCULUS
x 1/x
1 1
1/2 2
1/4 4
1/100 100
1/10000 100000
1
lim =∞
x→0+ x
But what if we come from the other side of 0? If instead the values we pick for x are −1,
then −1/2, −1/4, −1/100000, then again 1/x will get very big, but it will be negative. Thus
the limit coming from below is negative infinity.
1
lim = −∞
x→0− x
Definition: The limit of a function f (x) at a point p is the value that f (x) approaches as x
approaches p. The left-hand limit denoted by limx→p− f (x) is the limit as x approaches p from
below, i.e. x < p. The right-hand limit denoted by limx→p+ f (x) is the limit as x approaches p
from above, i.e. x > p. The actual limit only exists if all of the following are true:
• limx→p− f (x) = limx→p+ f (x), the left-hand limit equals the right-hand limit.
Ex 1: What is limx→3 x3 − x2 ?
Solution: This is a nice easy one. x3 − x2 is just a polynomial, and polynomials are always
continuous. This means we can just substitute in 3 for x and get the answer.
lim x3 − x2 = 33 − 32 = 27 − 9 = 18
x→3
z
Limits work very nicely, you can add, subtract, multiply, divide, and take powers just like
normal. Unfortunately, if a function is not continuous at the place where you are taking the
limit, things are more complicated.
2
Ex 3: Find limx→1 x x+x−2
2 −x .
Exercises
Evaluate the following limits:
−x3 2
2.1.1: (a) limx→1 x3 − x2 (b) limx→1 xx−1
(c) limx→∞ x3 − 11000000 x2 (d) limx→−∞ x3 + x2
2.1.2: (a) limy→0 1/y (b) limz→0 1/|z|
2 2 3 3
(c) limh→0 (x+h)h −x (d) limt→0 (x+t)t −x
√ √
2.1.3: (a) limx→0+ x (b) limx→−1+ 3 x
√ √
(c) limx→0− x (d) limx→−1− 3 x
Okay, that’s a good start, now let’s look closer. If we move p even closer to (1, 1), say, maybe
at x = 1.25, so the horizontal distance h = 0.25 from p to (1, 1). Now our point is (1.25, 1.252 ).
Now
1.252 − 1 0.5625
m= = = 2.25.
1.25 − 1 .25
Even better. We’re going to keep getting closer, but we need a better method. Let’s do
everything in terms of h, the
distance from x. Our first point is always (1, 1). Our second point
is always x + h, (x + h)2 . So that means that the slope we calculate is
And, since x = 1, and we are trying to make h as small as possible, when we approach h = 0,
we get m = limh→0 2x + h = 2x. So, when x = 1, m = 2 · 1 + 0 = 2. So this is the exact slope,
or the derivative of y = x2 at the point (1, 1).
To write an exact definition, if we have a function f (x), and we want to know the slope, we
can calculate the slope of a straight line connecting the point (x, f (x)) with a point a distance
h away. This slope is
f (x + h) − f (x) f (x + h) − f (x)
m= = .
(x + h) − x h
Then, to find the exact slope, rather than just an approximation, we take the limit as h ap-
proaches 0.
Definition: The derivative of f (x) is defined as
d f (x + h) − f (x)
f (x) = lim .
dx h→0 h
What we did above, finding the derivative at a certain point is fine, but it is so much better
to do it in general. Let’s see how:
d 2 (x + h)2 − x2
x = lim
dx h→0 h
x + 2xh + h2 − x2
2
= lim
h→0 h
2xh + h2
= lim
h→0 h
= lim 2x + h = 2x.
h→0
d 2
Thus dx x = 2x. Sweet! z
• Note On N otation •
There are a lot of ways to write derivatives. It’s because they are so useful. The shortest way to
write them was created by Newton. He used a tick mark, called a ‘prime’. Thus the derivative
of y is y 0 , read ‘y prime,’ the derivative of f (x) is f 0 (x), read ‘f prime of x,’ etc. Newton’s
notation is very easy, but it has limitations. Mostly in that it doesn’t tell you which variable
you are differentiating with respect to. Sometimes a function will depend on more than one
variable, for example both time and distance, or both vertical and horizontal displacement.
Derivatives were created simultaneously by both Isaac Newton, working in England, and
Gottfried Leibnitz, working in Germany. Leibnitz created his own notation, called Leibnitz
2.2. DERIVATIVES FROM FIRST PRINCIPLES 37
d
notation, which is more detailed. It is what we used in the example above. It starts with dx ,
which is called the differential operator, it tells you to take the derivative with respect to x
of what follows, just like cos tells you to take the cosine of what follows. But it’s flexible. If
d
you want to differentiate with respect to time, t, you write dt . So, the instruction ‘take the
d
derivative of y with respect to x’ is written dx y, which is read ‘d dx of y.’ Then, once the
dy
derivative is taken, we write dx , and say ‘dy dx,’ or maybe df
dt and say ‘df dt.’
Newton’s notation is short and easy, Leibnitz notation is longer and exact. The one thing
dy
you must remember is that it is a notation, not a fraction, you cannon cancel the d’s. dx 6= xy .
dy
The d means an infinitely small change, so dx really means ‘infinitely small change in y divided
by infinitely small change in x,’ which is exactly what our derivative is, by definition: slope,
but the change in x is infinitely small.
Ex 2: If y = x3 − 2x, find y 0 .
Solution: Here f (x) = y = x3 − 2x, so by definition
f (x + h) − f (x)
y 0 = lim
h→0 h
(x + h)3 − 2(x + h) − (x3 − 2x)
= lim
h→0 h
x + 3x h + 3xh2 + h3 − 2x − 2h − x3 + 2x
3 2
= lim
h→0 h
2 2 3
3x h + 3xh + h − 2h
= lim
h→0 h
= lim 3x2 + 3xh + h2 − 2
h→0
= 3x + 3x · 0 + 02 − 2
2
= 3x2 − 2
Thus y 0 = 3x2 − 2. z
√
Ex 4: Find the derivative of f (x) = x + 3.
Solution:
√ √
0 x + h + 3 − ( x + 3)
f (x) = lim
h→0 h
√ √
x+h− x
= lim
h→0 h
Now we are going to rationalize the numerator. When you have square roots added or
subtracted, this trick works. It uses the fact that (a + b)(a − b) = a2 − b2 .
√ √ √ √
0 x+h− x x+h+ x
f (x) = lim · √ √
h→0 h x+h+ x
(x + h) − x
= lim √ √
h→0 h( x + h + x)
h
= lim √ √
h→0 h( x + h + x)
1
= lim √ √ Canceling h,
h→0 x+h+ x
1
= √ √ Taking the limit
x+ x
1
= √
2 x
1 −1/2
= x
2
z
This is the method of taking derivatives by definition, or by first principles. For the rest
of this chapter we will learn faster ways of differentiating. But, never forget where derivatives
come from and what they mean: slope, gradient, rate of change. If a question says to find the
derivative ‘by definition’ or ‘from first principles,’ then you must use this method.
Exercises
Find the derivatives for the given functions from the definition:
2.2.1: f (x) = x2 − x
2.2.2: g(x) = x2 + x − 4
√
2.2.3: y = x + 1
2.2.4: f (x) = x3
2.2.5: h(x) = x3 − x2 + 5
2.2.6: (NECTA 2006) Given that f (x) = x2 − 21 x + 3, find the value of f 0 (x) from first
principles. (3 marks)
2.2.7: (NECTA 2003) Find f 0 (x) from first principles, given that f (x) = x3 − 3x2 + x + 2.
(2 marks)
d n
Power Rule : x = nxn−1
dx
d
cf (x) = cf 0 (x)
Constant Multiple Rule :
dx
d
f (x) ± g(x) = f 0 (x) ± g 0 (x)
Addition/Subtraction Rule :
dx
(d) y 0 = −3x−4 z
And that gives us our last rule: the Constant Rule:
For any constant c,
d
Constant Rule : c =0
dx
40 CHAPTER 2. DIFFERENTIAL CALCULUS
When taking these derivatives, remember the meaning: slope, gradient, rate of change. A
common type of problem asks you to find the equation of a line tangent to a curve at a given
point. The way to do this is to differentiate to find the slope in general, then evaluate the
derivative at the given x to get the slope of the tangent line at that point. Then, you have the
slope of the line, and a point, so it is easy to write the equation for the line in point-slope form.
Ex 5: Find an equation for the line tangent to the curve y = x3 − 2x2 + 3 at the point (3, 12).
Solution: As explained, we start by differentiating:
y 0 = 3x2 − 4x + 0
Now we put the x value from our point into the derivative to find the slope at that point.
y 0 (3) = 2 · 32 − 4 · 3 = 18 − 12 = 6. Basi! We have our point:(3, 12) and our slope, 6, so
in point-slope form our line is:
y − 12 = 6(x − 3).
z
Sometimes one derivative just isn’t enough. You can differentiate again and again. If you
differentiate twice, you get the second derivative, three times and you get the third derivative,
etc. In general these are called higher order derivatives.
• Note On N otation •
Higher order derivatives are written easily in Newton’s notations, if a function is y, then y 0 is
the first derivative, y 00 is the second derivative, y 000 is the third derivative...
For Leibnitz notation, higher order derivatives are written as follows:
d dy
y= First derivative,
dx dx
d2 y
d d
y = Second derivative,
dx dx dx2
d3 y
d d d
y = Third derivative.
dx dx dx dx3
This makes sense because the dx in the denominator is one part, and the d in the numerator is
one part, and there are many of these. But there is only one y, which is the reason that the y
is never squared or cubed.
The meaning of derivatives continues to be the same. If you have a function f (x), then
f 0 (x), the first derivative, is the rate of change of f (x). Then, f 00 (x) is the rate of change of
f 0 (x), and f 000 (x) is the rate of change of f 00 (x). The best way to understand this is to think of
physics. If the position of a particle at time t is given by s(t), then s0 (t) is the rate of change
of position, called velocity. The second derivative, s00 (t), is the rate of change of velocity, called
acceleration. So, in general, we can write that
s(t) = position,
0
s (t) = v(t) = velocity,
s (t) = v 0 (t) = a(t) = acceleration,
00
and we can understand the second derivative as the ‘acceleration’ of the function.
Exercises
If you have trouble with something, try to write it in the form cxn . Remember that 1
xn = x−n ,
√
and that n x = x1/n .
2.4. DERIVATIVES OF OTHER FUNCTIONS 41
d
sin(x) = cos(x)
dx
d
cos(x) = − sin(x)
dx
Then, there are logarithms. The natural logarithm is like an abused child. When you hit
42 CHAPTER 2. DIFFERENTIAL CALCULUS
d 1
ln x =
dx x
Logarithms of different bases (other than e) are a little bit more complicated, and you don’t
need to know them for BAM. And, just as before, all of these rules can be proved just from the
definition of derivative, but some of them are rather difficult. If you’re interested, look for a
bigger math book or ask your teacher, the proofs are difficult, but understandable.
We should also present the derivative for tangent:
d
tan x = sec2 x,
dx
1
R0 (θ) = 3 · + 3θ−4 .
θ
Exercises
Just apply the derivatives of these new functions along with the rules you already learned for
polynomials. Differentiate the following:
u = x2 v = cos x
0
u = 2x v 0 = − sin x
y 0 = uv 0 + vu0
= x2 (− sin x) + cos x(2x)
= 2x cos x − x2 sin x
z
Using the Quotient Rule is similar, but the rule is just a little longer.
d u vu0 − uv 0
Quotient Rule : =
dx v v2
u = 3x2 v = sin x
0
u = 6x v 0 = cos x
vu0 −uv 0
The quotient rule says that f 0 (x) = v2
.
vu0 − uv 0
f 0 (x) =
v2
sin x · 6x − 3x2 cos x
=
sin2 x
6x sin x · −3x2 cos x
=
sin2 x
z
A good way to remember the Quotient Rule is in a song. We call the numerator ‘hi’, because
it is up high, and the denominator ‘lo’, because it is down low. And we put a ‘d’ in front of
something to show a derivative. Then,
d hi lo dhi − hi dlo
=
dx lo lo lo
Or in words: The derivative of hi over lo is lo dhi minus hi dlo over lo lo. It is very
good to use this song because, for the Quotient Rule, order matters. There is a minus in the
44 CHAPTER 2. DIFFERENTIAL CALCULUS
numerator, and the first term must be lo dhi. With the Product Rule there is only addition and
multiplication, order does not matter. But in the Quotient Rule, because of the subtraction,
the order does matter.
4x3 −2x
Ex 3: Find the derivative of y = x2 +1
Solution:
hi = u = 4x3 − 2x lo = v = x2 + 1
dhi = u0 = 12x2 − 2 dlo = v 0 = 2x
Exercises
Find the derivatives using the Product Rule:
2.5.1: (a) u = 3x + 4 (b) v = sin x
(c) y = (3x + 4) sin x
2.5.2: (a) u = 8x3 − x2 + 1 (b) v = 2x2 − x
(c) f (x) = (8x3 − x2 + 1)(2x2 − x)
2.5.3: (a) g(x) = ex cos x (b) y = cos x sin x
(c) R = cos θ · tan θ (d) y = 5x−3 cos x
2.5.4: (a) y = 6x ln x (b) f (x) = (x3 + 3x − 1)(x3 + 3x − 1)
(c) g(x) = (x + 3)(x − 3) (d) h(x) = ( 31 x3 − 2x) tan x
2.5.5: Simplify these into a form such that you can use the product rule, then find the deriva-
tives.
(a) y = ln x2x (b) y = e( 2x)
(c) y = sin(2θ)
Use the Quotient Rule to find differentiate the following:
2.5.6: (a) u = 2x2 (b) v = 3x + 1
2x2
(c) y = 3x+1
d
2.5.11: Use u = sin θ and v = cos θ to prove that dθ (tan θ) = sec2 θ.
2.5.12: Use both rules together to find the derivatives:
2 3 −x2 )
5xex 3x2
(a) y = (x +1)(2x
2x−5 (b) y = 2x 2 −1 (c) y = cos x · ln x
2.5.13: (NECTA 2008) Find the gradient of the curve
4x2 + x − 1
f (x) =
2x
when x = 1. (2 marks)
Ex 2: Differentiate y = cos(x3 ).
Solution: To use the Chain Rule, we need to find a good u. Most of the time, if you look
inside parentheses ( ) you will find a good u. But, u needs to be bigger than just x. Or,
we know how to differentiate cos of something, so whatever that something is needs to
be our u. In this case, that something is x3 , so we say,
‘Let u = x3 .’
and we see that now our problem is to differentiate y = cos u.
y = cos u u = x3
y 0 = − sin u · u0 u0 = 3x2
Substituting u back in so that our answer is just in terms of x,
y 0 = − sin(x3 ) · 3x2
= −3x2 sin(x3 )
46 CHAPTER 2. DIFFERENTIAL CALCULUS
z
• Note On N otation •
Be careful on with the difference between products and composition (functions of functions).
Now look at this table of derivatives, all the rules we have learned so far, but with the Chain
Rule explicitly written in to them.
d
(k) = 0
dx
d du
(u) = = u0
dx dx
d du
(ku) = k = ku0
dx dx
d n du
(u ) = nun−1 = nu0 un−1
dx dx
d u du
(e ) = eu · = u0 eu
dx dx
d du u0
(ln u) = 1u · =
dx dx u
d du
(cos u) = − sin(u) · = − sin u · u0
dx dx
d du
(sin u) = cos(u) · = cos u · u0
dx dx
d du
(tan u) = sec2 (u) · = sec2 u · u0
dx dx
These are fairly straightforward. Notice the u’s, the Chain Rule applies to all of these. We’ll
have some more examples with the Chain Rule.
Ex 5: If y = ecos x , what is y 0 ?
Solution: From the chart dx d
(eu ) = u0 · eu . Let u = cos x, and then u0 = − sin x. Thus
0
y = − sin x · e cos x . z
Notice that you must differentiate u, but in the solution you must use both the differentiated
u and the original u. Be careful to look for when you have a function of a function, as in the
examples above, and when you have a product of functions, as in the next example.
d
Solution: Here we need the Quotient Rule. It states that dx (u/v) = (vu0 − uv 0 )/v 2 . On top we
have u = sin x and underneath v = x3 + 2x. Differentiating, u0 = cos x and v 0 = 3x2 + 2.
Thus
(x3 + 2x) cos x − 3x2 + 2 sin x
y0 = .
(x3 + 2x)2
z
All the rules work like this. The mistake people make is to use the wrong rule. If you just
look carefully, it won’t be a problem. This next example illustrates when to use the Power Rule
versus when to use the Chain Rule. Look at the differences in the way the functions are written.
In the very first example in this section, for the derivative of y = tan2 x, the solution said
that both Product Rule and Chain Rule work, but that the Chain Rule is better. Let’s see why:
Ex 8: Differentiate y = tan2 x
(a) Using the Product Rule.
(b) Using the Chain Rule.
(c) Now differentiate tan5 x.
Solution:
(a) Using the product rule, we begin by writing out that y = tan2 x = tan x · tan x. Now
we can let u = tan x and v = tan x, and the Product Rule states that y 0 = uv 0 + vu0 .
Because u = v = tan x, then u0 = v 0 = sec2 x, so
(b) Now, using the Chain Rule we will also rewrite. But this time we say y = tan2 x =
(tan x)2 . Now we can let u = tan x, so y = u2 , y 0 = 2u · u0 , and u0 = sec2 x. Then, by the
Chain Rule
du
y0 = 2 · = 2u sec2 x = 2 tan x · sec2 x.
dx
(c) So far, perhaps it looks about the same to use the Product Rule and the Chain Rule.
But if our exponent is higher, then if you use the product rule you have to use it again
and again and again. But with the Chain Rule, you only need to apply it once. Just the
dy
same as in part (b), y = tan5 x = (tan x)5 . Now let u = tan x, so y = u5 . Then du = 5u4
and du 2
dx = sec x. Then, by the Chain Rule
The Chain Rule also has the advantage because it works for negative and non-integer powers
like −4 and 2/3 for which the Power Rule is useless. z
Exercises
Find the derivatives of the following using the Chain Rule:
2.6.1: (a) y = (4 − 2x)6 = cos(3x2 + x)
(b) f (x)p
4
(c) g(x) = tan (x) (d) y = (x3 − x + 1)
2.6.2: (a) v = 4 cos(3t − 6) (b) h = ln(4x2 − x)
(c) y = e3x+1 (d) X = (2 + t2 )4
2.6.3: (a) y = (x3 − x2 + x)9 (b) y = (3t21−t)4
(c) y = sin(x2 ) (d) y = sin2 x
2.6.4: (a) y = sin(x3 ) (b) y = sin3 x
(c) y = sin(x4 ) (d) y = sin4 x
√
2.6.5: (a) f (x) = 3 x3 + 1 (b) g(r) = ln(r3 + r2 )
2
(c) h(t) = 3e2t (d) y = cos(x2 )
2.6.6: (a) y = cos(x2 + x) (b) f = cos(sin(x))
(c) g = cos2 (x2 ) (d) A(t) = P eit
For the following problems, you need to first find if you should use the Chain Rule, the
Product Rule, or the Quotient Rule.
2.6.7: (a) y = xex (b) f (x) = x2 ex
(c) g(x) = xe 2x (d) h(x) = x2 e2x
2.6.8: (a) y = (xex )2 (b) f (x) = √x22 +1
(c) g(x) = sin x · cos x (d) h(x) = sin(cos(x))
sin(2x) 4
2.6.9: (a) y = cos(x 2) (b) f = cos x
x2 −1
(c) g = cos x · sin2 x
2 (d) h = sin(2x) tan(x)
2
2.6.10: (a) y = ln 3x x−1 (b) y = ln (x + 1)4 · cos(x)
2. d
dx (y) = y 0 . Therefore:
2.7. IMPLICIT DIFFERENTIATION 49
d d d
(xy) = x · (y) + y · (x)
dx dx dx
= x · y0 + y · 1
= x · y0 + y
d 2 d
(x + y 2 ) = 1 Differentiating both sides,
dx dx
d 2 d 2
(x ) + (y ) = 0 Using the Sum Rule and the Constant Rule
dx dx
2x + 2yy 0 = 0 Chain Rule!
2yy 0 = −2x
−2x
y0 =
2y
−x
=
y
z
Let’s look closer and the differentiation in the example above. We differentiate both x2 and
y2 with respect to x. Differentiating x2 is just as normal, because the variable in the function
d 2
matches what we’re differentiating with respect to. Thus dx x = 2x.
d 2
But when we have dx y , then the variable of differentiation, x, is different from the variable
of the function, y. So we use the Chain Rule. In this case, the Chain Rule would tell us that
d 2 dy 2 0
(y ) = y ·y
dx dy
= 2y · y 0
Ex 2: Find y 0 . 2x = xy − cos y
50 CHAPTER 2. DIFFERENTIAL CALCULUS
Solution:
d d d
(2x) = (xy) − (cos y) Differentiating both sides,
dx dx dx
2 = xy 0 + y + sin y · y 0 Product Rule for xy, Chain Rule for cos y,
0
2 − y = (x + sin y)y Collecting terms and factoring,
2−y
y0 = And solving.
x + sin y
z
y = cos−1 x
cos y = x
d d
cos y = x Now we start the normal process.
dx dx
− sin y · y 0 = 1 Using the Chain Rule,
0
y = −1/ sin y And making y 0 the subject.
So that’s good, but in this case we can do better. We’d really like to know what this
is in terms of x, so we need to write sin y in terms of x. Recall also our first step, that
cos y = x. Using our favorite identity,
cos2 y + sin2 y = 1
So, we have slope, now we need to find what it is at the given point. Using the original
equation, when x = 2, 6 = 12 y − 1 · 2y = y − 2y = −y. Therefore y = −6, and slope, y 0
is given by
(2 · 2 · −6) + (−2 · −6) −12
y0 = 2
= = −12
2·1−1 1
z
Exercises
Use implicit differentiation to find y 0 :
2.7.1: (a) xy = 1 (b) x2 y 2 = 1
(c) x3 y 3 = 1 (d) x2 y 2 + xy = x
2.7.2: (a) x = y 2 (b) x−1 y + y −1 x = y 2
(c) (x + y)2 = 4 (d) (x + y)3 = 8
2.7.3: (a) cos x = sin y (b) 3x2 + 2xy − y 2 = 1
3x2
(c) y = sin−1 x (d) ln y = ln (x−1) 3
dy
2.7.4: (NECTA 2008) Find dx when x3 + 3xy + y 3 = 6. (2 marks)
dy
2.7.5: (NECTA 2005) Find dx for the following equation: x2 sin y − y cos x = 0. (3 marks)
dy
2.7.6: (NECTA 2002) Find the value of dx at the point (1, −1) if x2 − 3xy + 2y 2 − 2x = 4.
(2.5 marks)
2.7.7: (NECTA 2001) Differentiate with respect to x: ln(xy 2 ) − x + y = 2. (3 marks)
Maximum means the highest point. Nothing can be higher. If the slope at the maximum
were positive, that would mean f (x) is increasing, so as x increased, f (x) would go higher than
the maximum. But you can’t go higher than the maximum. Therefore the slope isn’t positive
at the maximum. Similarly, if the slope is negative, that means that f (x) is decreasing. So if
you look back, if you decrease x a little, f (x) will be higher. But again, f (x) cannot be higher
than it’s maximum! Therefore, at the maximum value, the slope of f (x) is neither positive nor
negative.
So what is it? If it’s not positive or negative, it’s got to be 0. And that’s the lesson. Extreme
values, both maxima and minima, occur only at the x-value when the gradient/slope/rate of
change is 0.
Definition: The x-values of a function f (x) for which f 0 (x) = 0 or f 0 (x) does not exist are
called critical points.
52 CHAPTER 2. DIFFERENTIAL CALCULUS
We will only look at situations where f 0 (x) = 0, though it it good to know that if f 0 (x) does
not exist it is also a critical point.
z
Only at critical points can a function ‘turn,’ go from increasing to decreasing or from de-
creasing to increasing. Unfortunately, a function does not turn at every critical point. If the
derivative is negative, then 0, then positive, that means that the function has a local minimum
and it looks like this: ‘^.’ If the derivative is positive, then 0, then negative, that means the
function has a local maximum and it looks like this: ‘_.’ (If the critical point is where f 0 (x)
does not exist, then they function may look like ∨ or ∧.)
Definition: We use the term local to describe a minimum or maximum because there may be
other points that are bigger or smaller, but locally, nearby, in the neighborhood, a local minimum
or local maximum is the lowest point or highest point, respectively.
It is also possible for the derivative to be positive, go down to touch 0, but then return to
positive-ness (or be negative-0-negative), in which case there is no maximum or minimum.
A function can only change from increasing to decreasing or from decreasing to
increasing at a critical point. So all local maxima and local minima occur at critical
points. But not every critical point is a local minimum or maximum.
Thus, the way to find out whether a critical point marks a local maximum, a local minimum,
or neither is to look at the sign (positive or negative) of f 0 (x) before and after the critical point,
and see if the function it ^ or _. This is called the First Derivative Test.
Ex 2: Find the critical points of the following functions, and see if they are local maxima, local
minima, or neither:
(a) f (x) = x2 + 4x − 3
(b) f (x) = −x4 /4 + 27x − 5
(c) f (x) = 4x3 − 9x2 − 12x + 3
Solution: (a) First, we need to find critical points. To do this we take the derivative, set it
equal to 0, and solve for x:
f (x) = x2 + 4x − 3
f 0 (x) = 2x + 4 Take the derivative,
0 = 2x + 4 Set it equal to 0
x = −4/2 = −2 And solve for x
We have 1 critical point: x = −2. Now we need to find out what is the sign of f 0 (x) =
2x + 4 before and after x = −2. It often helps to make a small table:
2.8. THE FIRST DERIVATIVE TEST 53
Before −2 At −2 After −2
x-values x < −2 x = −2 −2 < x
Sign of f 0 (x) 0
Slope of f (x) 0
Shape of f (x) —
To fill it in, we need to find the sign of f 0 (x) when x < −2. Any x value will work. How
about x = −8 million. When x =-8 million, 2x + 4 will be negative. That’s all we
need to do there. And, when −2 < x? Let’s pick x = 0, that’s usually an easy one.
f 0 (0) = 2 · 0 + 4 = 4, which is positive. Now we can fill in the table:
x-values x < −2 x = −2 −2 < x
Sign of f 0 (x) –ve 0 +ve
Slope of f (x) decreasing 0 increasing
Shape of f (x) \ — /
And now it’s pretty clear that we have a ^, a local minimum. To find the actual value of the
minimum, we take our critical point, x = −2 and point it back in the original function,
not the derivative. f (−2) = (−2)2 + 4 · −2 − 3 = 4 − 8 − 3 = −7. So we say that
f (x) = x2 + 4x − 3 has a local minimum at (−2, −7).
(b) Same procedure:
f (x) = −x4 /4 + 27x − 5
f 0 (x) = −x3 + 27 Take the derivative,
3
0 = −x + 27 Set it equal to 0
x3 = 27 And solve for x
x=3
Again, we have 1 critical point: x = 3. Let’s make our small table:
x-values x<3 x=3 3<x
Sign of f 0 (x) 0
Slope of f (x) 0
Shape of f (x) —
At the critical point x = 3 we already know that the derivative is 0 and that the shape is
a horizontal tangent –. We need to find the sign of f 0 (x) when x < 3. Let’s choose
x = 0. f 0 (0) = −03 + 27 = 27, so positive. Now for 3 < x, after 3: Let’s pick x = 4.
f 0 (4) = −43 + 27 = −64 + 27 = −37, which is negative. Now we finish the table:
x-values x<3 x=3 3<x
Sign of f 0 (x) +ve 0 –ve
Slope of f (x) inc. 0 dec.
Shape of f (x) / — \
There is a maximum at x = 3. What is it’s value? f (3) = −34 + 27 · 3 − 5 = −5. Thus
f (x) = −x4 /4 + 27x − 5 has a local maximum at (3, −5).
(c) And again:
f (x) = 4x3 − 9x2 − 12x + 3
f 0 (x) = 12x2 − 18x − 12 Take the derivative,
2
0 = 12x − 18x − 12 Set it equal to 0,
0 = 2x2 − 3x − 2 Simplify,
0 = (2x + 1)(x − 2) And solve for x.
x = 2 or − 1/2 These are the critical points.
54 CHAPTER 2. DIFFERENTIAL CALCULUS
This time, we have 2 critical points: x = −1/2 and x = 2. Because of 2 critical points,
our table will be bigger. We need to find the behavior before x = −1/2, in between −1/2
and 2, and after x = 2. It looks like this:
x-values x < −1/2 x = −1/2 −1/2 < x < 2 x=2 2<x
Sign of f 0 (x) 0 0
Slope of f (x) 0 0
Shape of f (x) — —
At both critical points the derivative is 0 and that the shape is a horizontal tangent. We
need to find the sign of f 0 (x) when x < −1/2. Let’s choose x = −1. Then f 0 (−1) =
12 · −12 − 18 · −1 − 12 = 12 + 18 − 12 = 18, so positive. Next, in between x = −1/2
and x = 2, we will use x = 0. f 0 (0) = −12, negative. Last, 2 < x, let’s pick something
really big. If x is huge, then +12x2 is much much bigger than −18x − 12, because of the
squared. So it will be positive.
x-values x < −1/2 x = −1/2 −1/2 < x < 2 x=2 2<x
Sign of f 0 (x) +ve 0 –ve 0 +ve
Slope of f (x) inc. 0 dec. 0 inc.
Shape of f (x) / — \ — /
There is a maximum at x = −1/2 and a minimum at x = 2. f (−1/2) = 25/4 and f (2) = −10.
Thus f (x) = 4x3 − 9x2 − 12x + 3 has a local maximum at (−1/2, 25/4) and a local minimum
at (2, −10). z
Just one more example for the case where the critical point is neither a minimum nor a
maximum.
Ex 3: Find the critical points of y = x5 and evaluate whether they are maxima, minima, or
neither.
Solution: Finding critical points:
y = x5
y 0 = 5x4
0 = 5x4
x=0
For x < 0 choose x = −1. f 0 (−1) = 5 · (−1)4 = 5 is positive. For 0 < x choose x = 1,
f 0 (1) = 5 · 14 = 5 is also positive. The chart then is:
x-values x<0 x=0 0<x
Sign of f 0 (x) +ve 0 +ve
Slope of f (x) inc. 0 inc.
Shape of f (x) / — /
Because f (x) is never decreasing, there is no maximum or minimum. This critical point is not
a turning point, it is just a point where there is a horizontal tangent. z
Exercises
(a) y = 32 x3 − 3x2 + 4x − 5 (b) f (x) = 3x2 − 4
2.8.1: Find all critical points of the following functions:
(c) R(θ) = sin θ (d) S(θ) = cos θ
2.8.2: For each of the functions, find the critical points, then evaluate if they are local maxima,
(a) X(t) = −4t2 + 2t (b) f (x) = x3
local minima, or neither. 3
(c) y = x − 4x (d) R(θ) = sin θ
2.9. THE SECOND DERIVATIVE TEST 55
2.8.3: (NECTA 2008) A farmer has 120 metres of fencing with which to enclose a rectangular
sheep-pen, using a wall for one side. Find that maximum area that can be enclosed. (5 marks)
2.8.4: (NECTA 2005) A farmer encloses sheep in a rectangular field using hurdle for 3 sides
and a long wall for the fourth side. If he has 100m of hurdles, find the greatest area he can
enclose. (5 marks)
2.8.5: (NECTA 2002) A rectangular block has a square base whose length is x centimetres.
Its total surface area is 150 cm2 .
(a) Show that the volume of the block is 21 (75x − x3 ) cm3 .
(b) Calculate the dimensions of the block when its volume is maximum. (6 marks)
The only weakness here is that if f 00 (x) = 0 at a critical point, then the test is inconclusive.
It might be a local maximum. It might be a local minimum. Or it might be neither. You’ll
have to use the First Derivative Test.
Ex 1: Use the Second Derivative Test to find all local extrema for f (x) = x2 + 4x − 3
Solution: We start out the same old way: find critical points.
f (x) = x2 + 4x − 3
f 0 (x) = 2x + 4 Take the derivative,
0 = 2x + 4 Set it equal to 0,
x = −4/2 = −2 Critical Point.
56 CHAPTER 2. DIFFERENTIAL CALCULUS
f 0 (x) = 2x + 4
f 00 (x) = 2
So, that’s nice and easy. f 00 (x) = 2 always, so the second derivative is always positive. That
means our critical point is a local minimum. Again, to find the actual point, we use the original
function. f (−2) = (−2)2 + 4 · −2 − 3 = −7. Thus f (x) = x2 + 4x − 3 has a local minimum at
(−2, −7). z
−1 3
Ex 2: Find local extrema of f (x) = 3 x + 2x2 + 4x + 1.
Solution: First we find critical points.
−1 3
f (x) = x + 2x2 + 4x + 1
3
f 0 (x) = −x2 + 4x + 4 Take the derivative,
0 = −x2 + 4x + 4 Set it equal to 0
x = (−x + 2)(x + 2) Factoring,
x = −2 or 2 Critical Points.
f 0 (x) = −x2 + 4x + 4
f 00 (x) = −2x + 4
How does it look at our critical points? When f 00 (−2) = 8, so f (x) has a local minimum
at x = −2. However, f 00 (2) = 0, so the Second Derivative Test is inconclusive. For this
critical point, we have to use the First Derivative Test. When x is between -2 and 2, say,
x = 0, then f 00 (0) = 4. And when 2 < x, say x = 3, then f 00 (3) = −2.
Exercises
2.9.1: (NECTA 2005) A farmer encloses sheep in a rectangular field using hurdle for 3 sides
and a long wall for the fourth side. If he has 100m of hurdles, find the greatest area he can
enclose. (5 marks)
2.9.2: (NECTA 2002) A rectangular block has a square base whose side-length is x cm. Its
total surface area is 150 cm2 .
(a) Show that the volume of the block is 1/2(75x − x3 ) cm3 .
(b) Calculate the dimensions of the block when its volume is maximum. (6 marks)
2.10. APPLICATIONS OF DERIVATIVES 57
d
(k) = 0
dx
d du
(u) = = u0
dx dx
d du
(ku) = k = ku0
dx dx
d n du
(u ) = nun−1 = nu0 un−1
dx dx
d u du
(e ) = eu · = u0 eu
dx dx
d du u0
(ln u) = 1u · =
dx dx u
d du
(cos u) = − sin(u) · = −u0 sin u
dx dx
d du
(sin u) = cos(u) · = u0 cos u
dx dx
d du
(tan u) = sec2 (u) · = u0 sec2 u
dx dx
Chapter 3
Integral Calculus
Z
d
f (x) dx = F (x) means F (x) = f (x)
dx
If the integral of f (x) is F (x), then it means that the derivative of F (x) is f (x).
• Note On N otation •
In the expression Z
f (x) dx
R
is the integral sign, f (x) is called the integrand, and dx is the variable of integration, or the
variable that you are integrating R with respect to.
For example, when you see 2x dx the answer is all functions that you can differentiate to
d 2 d
get 2x. So what is the answer? x2 ! Because dx x = 2x. But that’s not all. dx (x2 + 1 = 2x),
d 2 d 2 7
and dx (x + 2 = 2x), and even dx (x − π + 23 = 2x). So there isn’t just one answer, there are
infinitely many answers. What we do to avoid this problem is to use a constant, c, called the
constant of integration.
R
Ex 1: Evaluate 2x dx.
Solution: Z
2x dx = x2 + c
d 2
This is true because whatever the constant value of c, dx (x + c = 2x). z
Integration is very nice in that you can (and should) always differentiate your answer. If
you get the integrand, then your answer is right. It is so easy to check that you should never
get an answer wrong without knowing that it is wrong.
Ex 2: Z
sin x dx
Solution: Think, what can you differentiate to get sin x? Of course, it’s cos x!, but be careful,
positive or negative? Z
sin x dx = − cos x + c
58
3.2. INTEGRATION RULES 59
d
Checking the answer: dx (− cos x + c) = − − sin x = sin x, so it’s good. z
Ex 3:
Z
1
3x2 + dx
x
Solution: What can you differentiate to get 3x2 ? x3 . What about 1/x? It’s ln x. Thus
Z
1
3x2 + dx = x3 + ln x + c.
x
d 3
Differentiating to check the answer: dx (x + ln x + c) = 3x2 + 1/x. z
Exercises
Just think about what these look like the derivatives of. Don’t forget about ‘+c’ !
3.1.1:
Z Z
3 2
(a) 4x + 3x dx (b) ex dx
Z Z
1
(c) dx (d) cos x dx
x
3.1.2:
Z Z
(a) 100x99 dx (b) 3x2 dx
Z Z
3 2 1 2
(c) x dx (d) x dx
2 2
3.1.3: (NECTA 2006) A curve that passes through the origin has a gradient 2x − 1. Find
the equation of this curve in terms of x and y. (2 marks)
And now you just need practice at applying them again and again.
Ex 1: Z
3x8 − sin x dx
Solution:
Z Z Z
8 8
3x − sin x dx = 3x dx + − sin x dx
Z Z
8
= 3 x dx − sin x dx
3
= x9 − (− cos x) + c
9
1 9
= x + cos x + c
3
z
Ex 2: Z
200x99 − 30x5 + 8x dx
Solution:
Z Z Z Z
200x9 9 − 30x5 + 8x dx = 200x99 dx − 30x5 dx + 8x dx
200 100 30 6 8 2
= x − x + x +c
100 6 2
100 6 2
= 2x − 5x + 4x + c
z
And so forth. These are not difficult, but you need lots and lots of practice!
3.3. AREA AND THE DEFINITE INTEGRAL 61
Exercises
3.2.1: (NECTA 2008) Integrate the following
R expression with respect to x: sec x.
Note: This is impossible. The integral sec x dx is not defined. You should write this on a
NECTA Exam, and maybe instead perform the integral of sec2 x with respect to x. (1 mark)
dy
3.2.2: (NECTA 2001) Find y in terms of x given that dx = x(1 − x) and that y = 1/2 when
x = 0. (4 marks)
Z b
f (x) dx = F (b) − F (a)
a
We call a and b the lower bound and upper bound, respectively, or the limits of integration.
Ex 1: Evaluate
Z 6
x dx
2
Solution:
6 6
x2
Z
x dx = We integrate like normal, keeping the bounds
2 2 2
62 22
= − But then plug in the upper and lower bounds,
2 2
= 36/2 − 4/2 And subtract the lower from the upper.
= 18 − 2 = 16
Ex 2: Evaluate
Z 3
x2 + 1 dx
0
Solution:
3 3
x3
Z
2
x + 1 dx = +x We integrate like normal,
0 3 0
33 03
= +3 − +0 But then plug in the upper and lower bounds,
3 3
=9+3−0 And subtract the lower from the upper.
= 12
z
For definite integrals, there is no need for +c. Watch what happens if we put it in (using
62 CHAPTER 3. INTEGRAL CALCULUS
6 6
x2
Z
x dx = +c If we use +c,
2 2 2
62 22
= +c − +c It stays around a little while,
2 2
= 36/2 + c − 4/2 − c But then goes away in the last step,
= 18 − 2 = 16 Leaving the answer with no c.
And it will always work that way. It will always go away. So, for definite integrals, we do not
use +c.
Integration as Area
the actual meaning of the integral is to take little rectangles of height x2 and width dx, multiply
to get their area (x2 dx), and then add them up. Thus the integral above is actually a formula
for finding the total area between x2 and the x-axis from x = 0 to x = 1. I encourage an
interested student to find a more comprehensive book that will prove this.
The area under the curve f (x), between f (x) and the x-axis, from x = a to x = b is given
by
Z b
A= f (x) dx .
a
Ex 3: Find the area between the x-axis and the curve y = x2 + 1 from x = −1 to x = 1
Solution:
Z 1
A= x2 + 1 dx
−1
1
x3
= +x
3 −1
1 −1
= +1 − −1
3 3
2 8
= +2=
3 3
Solution:
Z 2
A= 8x3 − 2x dx
0
2x2 2
4
8x
= −
4 2 0
2
= 2x − x2 0
4
= (2 · 24 − 22 ) − 0
= 32 − 4 = 28
Exercises
3.3.1: (NECTA 2005) Find the area under the curve y = x2 (x − 2) from x = 0 to x = 8/3.
(5 marks)
3.3.2: (NECTA 2001)
Z x
a
Evaluate sin ax dx
0
(2 marks)
3.3.3: (NECTA 2001) Find the area enclosed by the curve y = x3 + 5x2 + 4x and the x-axis
between x = 0 and x = 4. (3 marks)
3.4 U-S(U)bstit(U)tion
In many ways, the U-Substitution in integration is similar to how we used the Chain Rule back
in Section 2.6. All of the integration rules we have seen are just as good for u and du as they are
for x and dx. For example, we can take the power rule, and change it to use u and du instead
of x and dx:
R
Ex 2: Find cos(x + 1) dx.
Solution: Almost always, we look inside parentheses ( ) to find a u. Here, x + 1 is inside
parentheses, so we say
Let u = x + 1.
Now we need differentiate to find du.
u=x+1
du
=1
dx
du = dx
u = x2
du
= 2x Differentiating,
dx
du = 2x dx
= sin u + c
= sin(x2 ) + c
z
And, sometimes, things are even more complicated with the dx bit. Look at the differences
between the previous example and the next example. The only difference is a 2,
Solution: Inside the parentheses, u = x2 , but looking at the integral, we can substitute u = x2
into cos(x2 ), getting cos u, and then what’s left over, zinazobaki, is x dx. However,
du
= 2x
dx
du = 2x dx
du/2 = x dx
3.4. U-SUBSTITUTION 65
Z
du
= cos(u)
2
Z
1
= cos u dx
2
1
= sin u + c
2
1
= sin(x2 ) + c
2
z
The most important thing to remember with u-substitution is that you must do it completely.
You cannot integrate something that has both u and x, or u and dx, it must be completely u’s
with a du or completely x’s with a dx. No mixing of u’s and x’s!
Exercises
Evaluate the integrals.
3.4.1:
Z Z
(a) (x + 1)3 dx (b) (x + 2)−3 dx
Z Z
(c) 2x(x2 + 4)2 dx (d) 2x cos(x2 ) dx
3.4.2:
9x2 + 4x
Z Z
2
(a) sec (x + π) dx (b) dx
3x3 + 2x2 + 1
Z Z
x+2
(c) 4e dx (d) sin x cos x dx
3.4.3:
Z Z
2
(a) xex dx (b) (6x2 − 4)(x3 − 2x)−1 dx
Z Z
2
(c) x sin(ωx + φ) dx (d) x(3x2 − 4)3 dx
ln x
3.4.4: (NECTA 2008) Integrate the following expression with respect to x: x . (1 mark)
3.4.5: (NECTA 2008) Evaluate
Z 1
x
√ dx
0 3x2 + 1
(4 marks)
66 CHAPTER 3. INTEGRAL CALCULUS
(2 marks)
3.4.8: (NECTA 2003) By using a suitable substitution, find
Z
1
p dx
(x − 3)
(2 marks)
3.4.9: (NECTA 2002) Evaluate
Z 2
x
dx
0 (x2 + 1)2
(3 marks)
3.4.10: (NECTA 2000) Z
sin x cos x dx
(2 marks)
3.4.11: (NECTA 2000) Find Z
5
5x4 ex dx
(3 marks)
Ex 1: Z
xex dx
Solution: We need to find a u and a dv in our equation, xex dx. We want to find them so
that v du will be easy to integrate. It looks like u = x is a very good choice because then
du = dx so v du is simple. So, we start like this:
u=x v =?
du =? dv = ex dx
du x
Now, we fill in the ?’s.
R u =Rx xso dx =x 1, which means that du = dx. dv = e dx, we
integrate to find v = dv = e dx = e . Now we can complete our substitution chart:
u=x v = ex
du = dx dv = ex dx
Ex 2: Z
x ln x dx
Solution: A first guess might be to let u = x and dv = ln x dx. But, then you remember that
we can’t integrate ln x dx! Haiwezakani! So that can’t possibly work as dv. So, switch it
around.
Let u = ln x and dv = x dx. Then du = 1/x dx and v = x2 /2.
u = ln x v = x2 /2
1
du = dx dv = x dx
x
Substituting in and integrating:
Z Z
u dv = uv − v du
x2
Z Z 2
x 1
x ln x dx = ln x − dx
2 2 x
x2
Z
x
= ln x − dx
2 2
x2 x2
= ln x − +c
2 4
68 CHAPTER 3. INTEGRAL CALCULUS
z
When integrating by parts, just like in U-Substitution, you must substitute completely.
Every part of the original integral needs to be either in u or in dv. It’s a long process, but it is
the only way to integrate some functions.
Ex 3: Z 1
x
√
0 x+1
Solution: Definite integration by parts
√ is no different.−1/2
We will use u = x, because it’s derivative
is easy. That leaves dv = dx/ x + 1 = (x + 1) dx.
Exercises
If you have too much trouble one way, try a different u and dv.
3.5.1: (NECTA 2003) By using a suitable substitution, find (2 marks)
Z
x
p dx
(x − 3)
Note: By saying ‘suitable substitution’ you may think it is possible using u-substitution.
Kumbe, it is not possible with u-substitution. You must integrate by parts.
about one of its edges will give a cylinder. If you take a notebook, and spin it around its edge,
you can maybe see the cylinder. Even try leaving some of the pages open, and they will be like
an ‘outline’ of the cylinder.
These solids are a little difficult to imagine, but it is very easy to find their volumes using
integration. it is analogous to finding area with definite integrals. In finding area, we have
infinitely many small rectangles of height f (x) and width dx, and then, when we integrate
Rb
a f (x) dx, we get the sum of all these little areas, the area under the curve.
To find volume, we look at little disks of radius f (x). The disks have this radius, and width
dx, so to calculate their volume, it is π[f (x)]2 dx, and when we integrate the volume of all these
Rb
little disks, a π[f (x)]2 dx, we get the sum, which is the volume of the revolution.
Definition: If a solid is obtained by revolving the area under f (x) from x = a to x = b about
the x-axis, the volume of the resulting solid is given by
Z b 2
V = π f (x) dx.
a
√
Ex 1: The area between the x-axis and the curve y = x for 4 ≤ x ≤ 9 is revolved around the
x-axis to obtain a solid. Find the volume.
Solution: Using our formula,
Z 9
√ 2
V = π x dx
4
Z 9
=π x dx
4
2 9
x
=π
2 4
= π[81/2 − 16/2]
65π
=
2
z
This can also be used to find some general formulas. For example, a right circular cone:
corresponds to the height of the cone, because the x-axis runs down the center of the solid
of revolution. So we are concerned with the interval from x = 0 to x = h. Now, what
about that radius. When x = 0 the radius is 0, that’s the point of the coin. Therefore, at
the other end, when x = h we want the radius to be its full value f (h) = r. So we want
to choose a slope m such that f (x) = mx and f (h) = r. Now we can see that f (x) = hr x,
and when x = h, f (h) = r. So that is our function. To find volume, we use the formula:
Z h
r
V = π[ x]2 dx
0 h
r2 h 2
Z
=π 2 x dx
h 0
r 2 x3 h
=π 2
h 3 0
r 2 h3
=π ·
h2 3
1
= πr2 h,
3
Which, if you look in a geometry book, is indeed the volume of a cone. It is very difficult to
find this formula through geometry. Archimedes was the first to do it, people had been trying
for almost 1,000 years before him. But he didn’t have calculus. With the technique of volume
by revolution, we can do it in half a page! z
Exercises
3.6.1: (NECTA 2004, 2008) Find the volume of the solid formed when the area between the
x-axis, the lines x = 2 and x = 4, and the curve y = x2 is rotated once about the x-axis. Leave
your answer in terms of π. (5 marks in 2008, 7 marks in 2004)
Exercises
3.7.1: (NECTA 2003) Find the mean of y = sin x over the interval from 0 to π. (2 marks)
3.8. CHAPTER REVISION AND EXERCISES 71
Exercises
3.8.1: (NECTA 2002) Find an expression for the area under the curve y = x2 (2x3 + 3)5 .
(Note: This is silly without knowing the range of x values. It would be best to do it in general,
from x = a to x = b.) (4 marks)
Chapter 4
Vectors are how we deal with physical quantities in more than 1-dimension. We will look at only
2-dimensional and 3-dimensional vectors, but everything we do can be scaled up to as many
dimensions as you want!
and there are more. It is best to choose one. In this book, we will use ~a.
Ex 1: Identify the following as vector or scalar: (a) 3kg, (b) 2m up, (c) 9eV/m3 , (d) East,
(e) 30m/s South.
Solution: (a) 3kg is a scalar.
(b) 2m up is a vector.
(c) 9eV/m3 is a scalar.
(d) East is just a direction, neither vector nor scalar.
(e) 30m/s South is a vector. z
Vectors, as we said, have magnitude and direction. They do not have a specific starting
place. Thus 2 vectors are equal if their magnitudes are equal and their directions are equal,
even if they are in different places.
We often write vectors in terms of unit vectors. Just like the unit circle is a circle of radius
1, a unit vector is a vector of magnitude 1. We use a ‘hat’ ˆ instead of an arrow ~ to denote
a unit vector. The 3 main unit vectors are î, ĵ, and k̂. Usually we think of î as being in the
x-direction, ĵ in the y-direction, and k̂ perpendicular to them both, in the z-direction.
If you are looking at a paper, usually we think of x and y as being just like normal 2-
dimensions, but if there is z then imagine the z-axis as coming straight up out of the paper
towards your face. That is the way to imagine it, but when we draw it, we must do it like in
the diagram.
There are two good ways to write a specific vector. If a certain vector is 2 units in the
positive x-direction, 3 units in the −y-direction, and 4 units in the positive z direction, we can
72
4.1. BASIC VECTOR OPERATIONS 73
write either
2
2î − 3ĵ + 4k̂ or −3v .
4
These mean the same thing. Sometimes we want to write vectors just as the definition states
them, as a magnitude and a direction. This is most common in two dimensions. For example
you might have a vector 5 units at a 45◦ angle. As usual, we measure angles from the x-axis.
Ex 2: The line from (1, 2) to (5, 5) is a vector, call it ~v . Find its magnitude, |~v |, its direction,
and write it in î, ĵ form.
Solution: The horizontal distance between the points is 5 − 1 = 4, and the vertical distance
between the points is 5 − 2 = 3. Because the vector starts at (1, 2) and goes to (5, 5), it
is positive in both horizontal and vertical directions. Thus we can write it
4î + 3ĵ.
Finding its magnitude is just using the distance formula or Pythagorean Theorem, like
way back in Section 1.4. So p
|~v | = 42 + 32 = 5.
To find its direction, we use trigonometry. The angle θ it makes with the horizontal is
given by tan θ = 3/4, which yields
θ = 36.87◦ .
z
Every
√ 2-dimensional vector can be expressed as ~u = aî + bĵ, and its magnitude will be
|~u| = a2 + b2 .
Every√3-dimensional vector can be expressed as ~v = aî + bĵ + ck̂, and its magnitude will be
|~v | = a2 + b2 + c2 .
If a vector is given as a magnitude and a direction, you can use sine and cosine to find the
î, ĵ (and k̂) components.
Which is to say each component adds and nothing strange happens. In alternative notation:
a d a+d
b + e = b+e
c f c+f
Subtraction is just the same, but with − instead of +. Vector addition and subtraction is only
defined if the vectors have the same number of dimensions. If they are different sizes, it is
74 CHAPTER 4. VECTORS AND MATRICES
undefined.
3
+ −1 =
1
−4 Undefined
1
6
~a 3 2 1
â = = √ î − √ ĵ + √ k̂
|~a| 14 14 14
z
~r = ~a + λm,
~
where ~r is the position vector for any point on the line, and λ is any real number. The vector
equation for a line is a lot like point-slope form. All you need to know is the position vector of
one point ~a, and the slope in vector form m. ~ It is also good because it works just the same in
2-dimensions as in 3-dimensions.
Ex 5: Find the vector equation of a line parallel to m ~ = 2î − ĵ + 3k̂ that goes through the point
with position vector 5î − 2ĵ + 4k̂.
Solution: ~r = 5î − 2ĵ + 4k̂ + λ(2î − ĵ + 3k̂) is the vector equation of the line. z
We can take the vector equation in the last example and write it out using î as x, ĵ as y,
and k̂ as z, and find a parametric equation of the line, like this:
x = 5 + 2λ
y = −2 − λ Parametric Equations for a Line in 3-D
z = 4 + 3λ
Ex 6: Find equation in (a) vector form, (b) parametric form, and (c) slope-intercept form for
~ = 3î − 4ĵ.
a line passing through (−1, 2) and parallel to the vector m
Solution: (a) Vector form is nice and easy: ~r = −î + 2ĵ + λ(3î − 4ĵ).
(b) After we have vector form, we just need to separate the î and ĵ components to find
parametric form. (
x = −1 + 3λ
y = 2 − 4λ
∆y −4
(c) We have two options, we can calculate slope as ∆x = 3 and go straight to point
76 CHAPTER 4. VECTORS AND MATRICES
slope form: y − 2 = −4/3(x + 1) and then make y the subject to find slope-intercept
form. Or, we can use the parametric form, and find that
Exercises
4.1.1: (NECTA 2006) Given the points A(2, −1) and B(−3, 3), find:
(a) A vector from point A to point B in terms of unit vectors î and ĵ.
−−→
(b) The length of vector AB.
−−→
(c) The unit vector in the direction of vector BA. (5 marks)
4.1.2: (NECTA 2005) If ~a = 4î − 3ĵ, ~b = 2î + 4ĵ, and ~c = 22î − 11ĵ, find the value of scalars
m and n for which m~a + n~b = ~c. (4 marks)
2 −1
4.1.3: (NECTA 2003) Given ~a = −1 and ~b = 5 , find ~a + ~b. (1 mark)
3 −3
4.1.4: (NECTA 2003) If ~a = 2î + 3ĵ and ~b = 3î + ĵ are position vectors of A and B,
respectively, find the position vector ~c of C, which divides AB internally in the ration 1:2.
(Note: This problem is unclear about the ratio. I assume it means to find the position vector
of point C such that the ratio of lengths AC : BC = 1 : 2.) (4 marks)
where θ is the angle between them. Usually the simplest way to find the dot product is to use
the following formula:
If ~v1 = a1 î + b1 ĵ + c1 k̂,
And ~v2 = a2 î + b2 ĵ + c2 k̂,
Then ~v1 · ~v2 = a1 a2 + b1 b2 + c1 c2 .
4.2. THE DOT PRODUCT 77
Notice that the answer is a scalar. Dot product takes two vectors input, and the output
is a scalar.
What the dot product does is give you a number that is bigger when the vectors are bigger,
and when they are in the same direction. In fact, the dot product is in the true definition of
work in physics.
Definition: Work is defined as F~ · d~ where F~ is the force applied and d~ is the distance moved.
There are two ways to calculate the dot product, so it is often very useful for finding the
angle θ between two vectors. Because ~a · ~b = |a||b| cos θ, if the vectors are perpendicular, then
θ = π/2 = 90◦ , so cos θ = 0. Thus
Also useful, because ~a · ~b = |a||b| cos θ we can make cos θ the subject and find that
~a · ~b
cos θ = .
|~a| · |~b|
Ex 1: For ~a = 2î − 3ĵ + 5k̂ and ~b = î − 3ĵ + k̂ find (a) ~a · ~b, and (b) the value of the angle
between them.
Solution: (a) ~a · ~b = 2 · 1 + (−3)(−3) + 5 · 1 = 16.
(b)
p √
|~a| = 22 + (−3)2 + 52 = 38,
√ ~a · ~b
|~b| = 12 + (−3)2 + 12 = 11
p
Thus, we know that: cos θ =
|~a| · |~b|
16
cos θ = √ √ We can now use a calculator to find θ,
11 · 38
θ = 38.5◦ .
~u · ~v = 4 − y = 0
4x = y
Any solution to this equation will be perpendicular to ~u. There are infinitely many
solutions, just like there are infinitely many vectors perpendicular to ~u. So, let’s pick
one, like x = 1 and y = 4, thus ~v = î + 4ĵ. This is a vector perpendicular to ~u, but we
need a unit vector, so we just divide by magnitude:
~v î + 4ĵ 1 4
v̂ = =√ = √ î + √ ĵ
|~v | 2
1 +4 2 17 17
78 CHAPTER 4. VECTORS AND MATRICES
~a · (~b + ~c) = ~a · ~b + ~a · ~c
The proofs of these are easy. You can do them if you try! Another nifty dot product fact is
that ~a · ~a = |~a|2 , since the angle between ~a and itself is 0◦ .
4.2.1 Projections
The dot product is also useful for finding the projection of one vector on another. A projection
is like a shadow, it shows you how much a certain vector goes in the direction of a different
vector. If you hold a ruler up at an angle from the desk, the shadow of the ruler on the desk
shows you how far the ruler goes in the direction of the desk.
Definition: The projection of a vector ~b onto another vector ~a is written:
proj ~a ~b.
The magnitude of the projection we can find from simple trigonometry: it will be |~b| cos θ. But
Projection Diagram
we know that
~a · ~b = |~a||~b| cos θ,
~a · ~b ~a ~a · ~b
proj ~a ~b = = ~a
|~a| |~a| |~a|2
Ex 3: Find the projection of ~v = 3î − 4ĵ + 2k̂ onto ~u = −î + 3ĵ − 5k̂.
4.3. THE CROSS PRODUCT 79
~u · ~v
proj ~u ~v = ~u
~u · ~u
(−3) + (−12) + (−10)
= (−î + 3ĵ − 5k̂)
1 + 9 + 25
−25
= (−î + 3ĵ − 5k̂)
35
5 15 25
= î − ĵ + k̂
7 7 7
z
Exercises
4.2.1: (NECTA 2008) If A, B, and C are points (−1, 3, −1), (3, 5, −5), and (2, −2, 1), re-
−−→ −→
spectively, find the cosine of the angle θ between AB and AC. (4 marks)
x 2
4.2.2: (NECTA 2005) Find the value of x which makes 2 perpendicular to −1.
3 −4
(2 marks)
4.2.3: (NECTA 2005) Determine the value of λ so that ~a = 2îλ ĵ + k̂ and ~b = 4î − 2ĵ − 2k̂
are perpendicular. (2 marks)
4.2.4: (NECTA 2005) For any two non-zero vectors ~a and ~b, is ~a −~b is perpendicular to ~a +~b,
show that ~a = ~b. (4 marks)
4.2.5: (NECTA 2003) For the vectors ~a = î + ĵ and ~b = 3î + ĵ, find
(a) the acute angle θ between ~a and ~b.
(b) the resolved part of ~a in the direction of ~b. (6 marks)
4.2.6: (NECTA 2001) Find the angle between the lines
√ √
y =x 3+2 and y 3 = x − 4.
(2 marks)
4.2.7: (NECTA 2001) Given that ~r = 2î = 3ĵ, find the length of vector ~r and the angle it
makes with ~i. (3 marks)
4.2.8: (NECTA 2001) Find the projection of vector ~a on vector ~b given that ~a = î + 3ĵ − 4k̂
and ~b = 4î − ĵ + k̂. (3 marks)
4.2.9: (NECTA 2000) Find to the nearest degree the angle between vectors P~ = 8î + ĵ + 3k̂m
and ~q = 2î + 8ĵ − 3k̂. (2 marks)
4.2.10: (NECTA 2000) Find the value of the scalar t if the vectors tî = 4ĵ +3k̂ and 3î+5ĵ +tk̂
are orthogonal. (2 marks)
Cross Product is also sometimes called ‘vector product’ because it is the only way to multiply
two vectors and have your result be a vector. We write
~u × ~v = w,
~
Right-Hand Rule.
product only works in 3-dimensions. The cross product is not defined for 2-dimensions.
• Note On N otation •
Some books will write ~u ∧ ~v instead of ~u × ~v . They mean the same thing, but we will continue
to use ×.
Definition: If ~a = xa î + ya ĵ + za k̂, and ~b = xb î + yb ĵ + zb k̂, then the cross product ~a × ~b is
defined as the determinant of the matrix
î ĵ k̂
x a ya z a ,
xb yb zb
which is given by
(ya zb − za yb )î + (xa zb − za xb )ĵ + (xa yb − ya xb )k̂.
This is not so easy to memorize, so a good way to remember it is as follows: First, you rewrite
the first two columns of the matrix after the matrix:
î ĵ k̂ î ĵ
xa ya za xa ya ,
xb yb zb xb yb
Then you multiply along the diagonals, adding the down-right products (&), and subtracting
the up-right products (%), getting
î ĵ k̂ î ĵ
1 2 −1 1 2 ,
−1 2 −1 −1 2
4.4. VECTOR APPLICATIONS 81
î × ĵ = k̂ ĵ × k̂ = î k̂ × î = ĵ
ĵ × î = −k̂ k̂ × ĵ = −î î × k̂ = −ĵ
Imagine a parallelogram with sides ~a and ~b. The area of a parallelogram is base times height,
just like a square. The height of the parallelogram is ~a sin θ, so the area of the parallelogram is
given by ~a × ~b. This is a good way to understand the magnitude of a cross product.
You can see that the cross product is the strangest thing you have yet seen. Remember that
it does not commute: ~a × ~b 6= ~b × ~a. Matrix multiplication is also like this, as you will see soon.
Exercises
Integrating vectors can be difficult, but differentiating is pretty easy, and even shows up on
BAM NECTA exams sometimes, so this section will focus on differentiating vectors and some
other simple applications.
To start off, we need to remember some basic calculus/physics concepts. We will now use
‘vector functions’ to represent vector quantities. For example, instead of talking about velocity
v(t) at time t, we will talk about the vector velocity ~v (t) at time t.
• If position is given by ~s(t), then velocity ~v (t) = ~s 0 (t) and acceleration ~a(t) = ~v 0 (t) = ~s 00 (t).
• Momentum, a vector, is defined as p~ = m~v mass times velocity.
• Kinetic Energy, a scalar, is defined K = 21 m|~v |2 , as half the mass times the magnitude of
the velocity squared. And |~v |2 = ~v · ~v .
• Force, a vector, is F~ = m~a = d
dt p
~, mass times acceleration, which is also equal to the
derivative of momentum.
~ the force vector dot the displacement over which that force
• Work, a scalar, is W = F~ · d,
acts.
• Power, a scalar, is defined as P = F~ · ~v = d
dt W , the dot product of force and velocity, or
the derivative of work.
~ = ~r × p~, the radius cross the linear momen-
• Angular Momentum, a vector, is defined as L
tum of the particles.
• Torque (or moment), a vector, is defined as ~τ = ~r × F~ = dt
d ~
(L), where ~r is the displacement
vector from the axis of rotation to where the force F~ acts, or the rate of change of Angular
Momentum.
• In Electricity and Magnetism, the force F~ on a charge q moving at velocity ~v in a magnetic
~ is given by F~ = q~v × B.
field B ~ Charge q is a scalar, the rest are vectors.
Now, obviously, we need to see what exactly does a vector function look like, and how do
you differentiate it? It’s pretty easy.
Ex 1: The position of a particle of at time t is given by ~s(t) = 3tî − 2t2 ĵ + 5k̂. If the particle
has mass 5 kg, find it’s velocity and kinetic energy at time t.
Solution: We differentiate just like normal.
~v (t) = ~s 0 (t) = 3î − 4tĵ + 0k̂
= 3î − 4tĵ m/s
From here, kinetic energy is easy, we just need to find the magnitude of velocity and
square it.
K(t) = m|~v |2
p 2
= 5 32 + (−4t)2
= 5(9 + 16t2 )
= 45 + 80t2 J
z
Ex 2: If a force of 30 N is applied to a box while it is pushed 12m, and the force is applied at
a 30◦ angle to the motion, how much work is done?
Solution: W = F~ · d~ = |F~ | · |d|
~ cos θ, so we can just multiply 30 N · 12 m · cos 30◦ = 311.8 J. z
4.5. BASIC MATRIX OPERATIONS 83
Exercises
4.4.1: Methane, CH4 , has geometry with its 4 Hydrogen atoms arranged in a tetrahedron,
with the Carbon atom at the center. To get the right shape, we can give the Hydrogen atoms
coordinates (1, 0, 0), (0, 1, 0), (0, 0, 1), and (1, 1, 1), with the Carbon at (1/2, 1/2, 1/2). Use dot
products of displacement vectors (Carbon to Hydrogen) to show that the bond angle, that is
the H-C-H angle, is about 109.5◦ for any two of the Hydrogen atoms.
4.4.2: A conical pendulum is swinging about the origin in a circle of radius 15cm. It’s position
at time t is given by the position vector ~r(t) = 15 cos tî + 15 sin tĵ, where t is in seconds. If its
mass is 0.25kg, find (a) is linear momentum at time t, and (b) its angular momentum at time
t. Angular momentum, L ~ = ~r × p~, is the cross product of position (displacement from the axis
of rotation) and linear momentum.
4.4.3: (NECTA 2006) A particle of unit mass moves so that its position vector ~r at time t
seconds is given by
1
~r = (cos t)î + (sin t)ĵ + t2 k̂.
2
Find the (a) Momentum at time t, (b)Kinetic energy at time t, (c) Force acting on the particle
at time t, (d) Power exerted by the force in (c) above, at time t.
4.4.4: (NECTA NECTA 2006) At time t, the position vectors of two particles P and Q are
given by:
Matrices are also sometimes written with square brackets [ ] instead of parentheses. They mean
the same thing.
" #
x π
A= is a 2 × 2 matrix.
800 −6/7
You can put anything you want in a matrix: numbers, fractions, positive, negative, variables,
anything is okay. Normally, we call matrices with capital letters, like A, B, C, etc.
Definition: The transpose of a matrix is what you get when you switch its rows and columns.
If A is a matrix, then AT , read ‘A transpose,’ is the matrix with rows equal to A’s columns.
84 CHAPTER 4. VECTORS AND MATRICES
Solution:
1 4
T 1 3 1 3 5 7
A = , BT = 2 6 , C =T
2 4 2 4 6 8
3 6
z
Notice that if a matrix is m × n, then its transpose will be n × n; the number of rows and
columns is switched.
The matrix size does not matter at all, it is always like this. But, you can only add or subtract
matrices that are the same size.
Ex 2: Find A + B, A − B, C + D, and B + C, if
1 −3 3 2 0 2 4 1 1 1
A= , B= , C= , D= .
2 0 −10 −5 −4 −2 0 −1 −1 −1
Solution:
1 −3 3 2 4 −1
A+B = + =
2 0 −10 −5 −8 −5
1 −3
3 2 −2 −5
A−B = − =
2−10 −5
0 12 5
0 2 4 1 1 1 1 3 5
C +D = + =
−4 −2 0 −1 −1 −1 −5 −3 −1
And, just like with vectors (and regular numbers), scalar multiplication distributes over matrix
addition, which means that
k(A + B) = kA + kB,
where k is a scalar and A and B are matrices.
If you look at the result, C, the entry in the i’th column and the j’th row is the dot product of
the i’th row of A and the j’th column of B. If A has rA rows and cA columns, and B has rB
rows and cB columns, then
ArA ×cA × BrB ×cB = CrA ×cB
C will have the number of rows of A and the number of columns of B. We’ll have a couple
small examples, and then some bigger examples.
z
This last example demonstrates a very important point about matrix multiplication:it does
not commute. This means that most of the time, even for square matrices,
AB 6= BA
1 −1 0 1
Ex 4: Find AB and BA if A = and B =
2 0 1 2
Solution:
−1 −1
AB =
0 2
2 0
BA =
5 −1
Once again, AB 6= BA. z
This is very important when working with equations of matrices. If you are given that
PQ = B
and you want to multiply through by A, you must matrix multiply from the same side!
Ex 5: Find P Q if
1 2
7 8
P = 3 4 and Q=
9 0
5 6
Solution: Here we see that P is 3 × 2 and Q is 2 × 2, so P Q will be 3 × 2.
1·7+2·9 1·8+2·0 25 8
PQ = 3 · 7 + 4 · 9 3·8+4·0 = 57 24
5·7+6·9 5·8+6·0 89 40
z
There is a special square matrix called the identity; it has 1’s on the diagonal and 0’s
everywhere else, and we write it I. Multiplying by the identity is like multiplying by 1, AI = A
and IA = A. To show this:
a b 1 0 a·1+b·0 a·0+b·1 a b
· = =
c d 0 1 c·1+d·0 c·0+d·1 c d
There is an identity matrix for every square size, 1 × 1, 2 × 2, 3 × 3 identities are shown.
1 0 0
1 0
1 , , 0 1 0
0 1
0 0 1
4.6. DETERMINANTS AND INVERSES 87
Exercises
Use the following for problems 1-21.
1 0
2 0 3 6 1 2 0
A= , B= , C= , D= 2 2 ,
1 −1 0 −3 −1 −2 0
−1 −1
2 0
1 1
E= 4 4 , F =
−1 −1
−2 −2
Calculate the following, if possible:
(a) A + B (b) A + B T
4.5.1:
(c) C + D (d) D + E
(a) E + C T (b) 3D
4.5.2:
(c) 2A + B (d) F T + F
(a) B T − 3F (b) 2A + 4(B + F T )
4.5.3:
(c) AB (d) BA
(a) BF (b) F B
4.5.4:
(c) DC (d) CD
(a) AD (b) DB
4.5.5:
(c) (A + B)C (d) AC + BC
4.5.6: Find a scalar x such that 2D + xE = 0.
4.5.7: Find a matrix M such that (AB)T + M = F .
1 1 0 1
4.5.8: If A = and B = , find
1 0 1 0
(a) A2 (b) A3 (c) B 2 (d) B 3
4.5.9: (NECTA 2008) Find the value of x and y in the following relation:
3 −5 1 y 4 6
+ =
2 x 3 2 5 −2
(2 marks)
2 1 1 1 −1 1
4.5.10: (NECTA 2008) If A = 1 0 1 and B = 0 0 −1, find AB. (2 marks)
0 −1 0 −1 2 −1
But, since you divide by the determinant to find the inverse, if the determinant is 0 then there
is no inverse. It doesn’t exist.
So what we can do is find the inverse of the big matrix, and then use matrix algebra to
solve. Let’s call
3 −2 x 3
A= , X= , and M = .
−1 2 y 4
AX = M
4.6. DETERMINANTS AND INVERSES 89
A−1 AX = A−1 M
IX = A−1 M
X = A−1 M
So, to find A−1 first we need to take the determinant. |A| = 3 · 2 − (−2) · (−1) = 4. Thus
−1 1 2 2 2/4 2/4 1/2 1/2
A = = =
5 1 3 1/4 3/4 1/4 3/4
So x = 7/2 and y = 15/4. Whenever possible, you should check your answer. For linear
equations checking is very easy, so 3x − 2y = 21/2 − 15 − 2 = 6/2 = 3, the first one is good,
and −x + 2y = −7/2 + 15/2 = 8/2 = 4 the second checks, we’re good! z
x0
x
M =
y y0
This is used for linear equations and functions, like
x 7→ ax + by
y 7→ cx + dy
Ex 3: Find the images of the points (a) (1, 0) and (b) (3, −4) under the linear transformation
defined by
2 −1
M=
−3 4
Solution:
2 −1 1 2
(a) =
−3 4 0 −3
The image of (1, 0) is (2, −3).
2 −1 3 10
(b) =
−3 4 −4 −25
90 CHAPTER 4. VECTORS AND MATRICES
We also talked about composition of functions back in Section 1.2. For linear transfor-
mations, composition is easy. If you have two matrices M and N , and you want to find M
composed with N , M ◦ N , it’s just M times N , M N .
Ex 4: Let R be the matrix for a rotation of 90◦ around the origin, and let M be the matrix
corresponding to the transformation
x 7→ 2x − 3y
y 7→ x + y
4.6.3 3 × 3 Determinants
Finding the determinant of a 3 × 3 matrix is a little more difficult. The process is just like
taking a cross product:
Definition: The determinant of a 3 × 3 matrix is given as follows:
a b c
d e f = aei + bf g + cdh − gec − hf a − idb.
g h i
You can remember this formula in the same way as a cross product, first you rewrite the
first two columns
a b c a b
d e f d e ,
g h i h i
then you multiply across all the diagonals, adding down-right & and subtracting up-right %,
ending up with & + & + & − % − % − %.
Solution: (a) First we will rewrite P with it first two columns added again at the end:
2 4 0 2 4
1 3 9 1 3
5 7 6 5 7
|P | = 2 · 3 · 6 + 4 · 9 · 5 + 0 · 1 · 7 − 5 · 3 · 0 − 7 · 9 · 2 − 6 · 1 · 4
= 36 + 180 + 0 − 0 − 126 − 24
= 66
(b) For this one we must be very careful about what is negative and what is positive.
Rewrite Q with it first two columns added again at the end:
0 −1 2 0 −1
1 1 3 1 1
−2 5 −4 −2 5
And then, once again, we multiply along diagonals, adding & and subtracting %.
z
Finding the inverses of 3 × 3 matrices is considerably more difficult and will not be covered
in this book.
92 CHAPTER 4. VECTORS AND MATRICES
Exercises
4.6.1: (NECTA 2006) Use the inverse matrix method to solve: (5 marks)
2y + 3x − 15 = 0
2x − 20 + 3y = 0
a b
4.6.2: (NECTA 2006) If T is a linear transformation such that T = and T (, y) =
c d
(3y, 5x), find the matrix T , then evaluate T (0, 0). (5 marks)
4.6.3: (NECTA 2005) Solve the following system of equations by using the matrix method:
4x + 3y = 31
9y − x = 41
(4 marks)
2 k
4.6.4: (NECTA 2003) Given that A = is a singular matrix, find the value of k if
k 8
k ∈ R+ . (1 mark)
2 1
4.6.5: (NECTA 2003) (a) Find the inverse of B given B = .
4 −1
(b) Use part (a) to solve the following system of system of simultaneous equations:
2x + y = 8
4x − y = 10
(5 marks)
4.6.6: (NECTA 2003) Solve the following system of equations by using inverse of matrices:
x + 2y = 10
2x − y = 5
(3 marks)
4 1
4.6.7: (NECTA 2002) A transformation M is given by the matrix M where M = .
2 3
Find:
(a) The image of point (−2, 5) under M .
(b) The inverse of M . (5 marks)
2 1
4.6.8: (NECTA 2001) Let A = represent a transformation. Find the image of the
3 2
2
vector under this transformation. (2 marks)
−2
K −1
4.6.9: (NECTA 2001) Find the inverse of the matrix A = . (2 marks)
−1 0
e b a e
f d c f
x= and y=
a b a b
c d c d
In words, to find x, the first variable, replace the first column of the matrix with the solution
vector. Take the determinant and divide by the determinant of the original matrix, and you
get x. To find y, the second variable, replace the second column of the matrix with the solution
vector. Take the determinant and divide by the determinant of the original matrix, and you
get y.
−1 2
10 −3 3 − 20
x= = =1
3 2 −9 − 8
4 −3
3 −1
4 10 30 − −4
y= = = −2
3 2 −9 − 8
4 −3
3 · 1 + 2 · (−2) = −1 Check!
4 · 1 − 3 · (−2) = 10 Check!
So it’s good. z
Cramer’s Rule works just the same in 3-dimensions. A general system of 3 linear equations
is:
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2 ,
a3 x + b3 y + c3 z = d3
94 CHAPTER 4. VECTORS AND MATRICES
= −22
= 22
1 0 −3 = 1 · 0 · (−1) + 0 · 2 · 2 + (−3) · 3 · 2
∆2 = 3 0 2
2 2 −1 − 2 · 0 · (−3) − 2 · 2 · 1 − (−1) · 3 · 0
= −22
1 −2 0 = 1 · 5 · 2 + (−2) · 0 · 2 + 0 · 3 · 3
∆3 = 3 5 0
2 3 2 − 2 · 5 · 0 − 3 · 0 · 1 − 2 · 3 · (−2)
= 22
4.7. CRAMER’S RULE 95
∆1 22 ∆2 −22 ∆3 22
x= = = −1, y= = = 1, z= = = −1,
∆ −22 ∆ −22 ∆ −22
As always, we should check our answers:
x − 2y − 3z = −1 − 2 · 1 − 3 · (−1) = 0 Check!
3x + 5y + 2z = 3 · (−1) + 5 · 1 + 2 · (−1) = 0 Check!
2x + 3y − z = 2 · (−1) + 3 · 1 − (−1) = 2 Check!
So it’s good. z
Just like in finding inverses, when we use Cramer’s Rule we divide by a determinant. Here,
if the determinant ∆ = 0, that means that either there is no solution, or there is no unique
solution. Obviously, there is no solution to:
(
x+y =1
,
x+y =2
x + y can be either 1 or 2, but it can’t be both. If we try to use Cramer’s Rule we will find that
1 1
= 1 − 1 = 0,
1 1
These equations are not really different. If x + y = 1 then it must be true that 2x + 2y = 2, so
the second equation doesn’t add any new information. Once again, if we try Cramer’s Rule, we
will get a 0 determinant:
1 1
= 2 − 2 = 0,
2 2
in this case indicating that there is not a unique solution. Instead, there are infinitely many.
Exercises
4.7.1: (NECTA 2008) Solve the following system of equations by Cramer’s Rule.
x+y+z =6
3x − 2y − z = −1
2x + 4y + 3z = 19
(6 marks)
4.7.2: (NECTA 2003) Solve the following system of equations:
x+y+2=6
3x − 2y − z = −1
2x + 4y + 3z = 19
(4 marks)
96 CHAPTER 4. VECTORS AND MATRICES
4.7.3: (NECTA 2002) Solve the following system of equations by the matrix method:
2x − 3y + z = 3
−x + 4y + 3z = 16
3x + 2y − 2z = 1
(5 marks)
4.7.4: (NECTA 2001) Use Cramer’s Rule to solve the following system of simultaneous
equations.
2x − 2y = 6
x + 2y = 0
(2 marks)
Exercises
4.8.1: (NECTA 2008)
(a) Show that the vectors 3î + 4ĵ − 2k̂ and 4î + ĵ + 8k̂ are perpendicular.
(b) Given the vectors ~a = 3î + 4ĵ − 2k̂ and ~b = 4î + ĵ + 8k̂, find the projection of ~a onto ~b.
(6 marks)
4.8.2: (NECTA 2006) A line passes through the point (2, −1, 4) and is in the direction of
vector î + ĵ − 2k̂. Find the:
(a) vector equation of the line.
(b) angle the line makes with the positive x axis. (5 marks)
4.8.3: (NECTA 2005) A, B, and C are the points (−1, 3, −1), (3, 5, −5), and (2, −2, 1),
respectively. Find the
(a) Distance AB.
(b) Cosine of the angle θ between AB and AC. (4 marks)
4.8. CHAPTER REVISION AND EXERCISES 97
5 7 4 −5 2 −3
4.8.4: (NECTA 2003) If A = ,B= , and C = , show that
−2 3 9 7 1 1
A + B − 2C is a singular matrix. (3 marks)
4.8.5: (NECTA 2002) Given the vectors ~a = 2î + ĵ − 2k̂ and ~b = ĵ − k̂,
(a) Find the vector ~c such that ~a + 2~b + ~c = 0.
(b) What is the sine of the acute angle enclosed by the vectors ~a and ~b?
(c) Find the unit vector perpendicular to the vectors ~a and ~b. (10 marks)
4.8.6: (NECTA 2000) If P and Q are the points (8, 1, 3) and (2, 8, −3), respectively, find a
−−→
unit vector parallel to the displacement vector P Q. (2 marks)
4.8.7: (NECTA 2000) Use the matrix inverse method to solve the following simultaneous
equations:
x + 2y = 8
4x + 3y = 22
(3 marks)
4.8.8: (NECTA 2000) Solve the following system of equations:
3x − y + z = −2
x + 5y + 2z = 6
2x + 3y + z = 0
(6 marks)
Chapter 5
Ex 2: 10 girls are running in a race. How many possibilities are there for the 1st, 2nd, and 3rd
places?
Solution: It’s not just a factorial, because we are not looking at all 10 places, only the first,
second, and third. For first place, there are 10 possibilities, then for second place there are
9 possibilities, and for third place 8 possibilities. Thus the total number of possibilities is
10 · 9 · 8 = 720. z
There’s also a better way to do problems like our last example. How many ways can we
permute (arrange) r objects if there are n total objects? Just like in the race example, we for
the first one we have n choices, for the second n − 1, so it starts like factorial, but we have to
stop after r choices. Thus it is
n · (n − 1) · (n − 2) · . . . · (n − r + 1)
For example, in the race, we had
10 · (10 − 1) · (10 − 2).
This is all fine, but it is a little hard to calculate if r is big. But we can write a formula for this
in terms of factorial. See how
n · (n − 1) · (n − 2) · . . . · (n − r + 1) · (n − r) · . . . · 2 · 1
n · (n − 1) · (n − 2) · . . . · (n − r + 1) = ,
(n − r) · (n − r − 1) · (n − r − 2) · . . . · 2 · 1
because everything after (n − r + 1) will cancel with the bottom. We can write the same thing
using factorial notation:
n!
=
(n − r)!
98
5.1. FACTORIAL AND PERMUTATIONS 99
Definition: The number of ways to permute r objects from n total objects is called ‘n permute
r,’ and is written as
n n!
Pr =
(n − r)!
Probably there is a button on your calculator to do this also. If not, you can just use factorials.
Exercises
5.1.1: (NECTA 2006) Two dice are thrown together. What is the probability of a score of
an 8? (4 marks)
5.1.2: (NECTA 2006) Two of my friends and I play a game of pure chance three times. What
is the probability of me winning:
i. Every time? ii. Only the third time? (6 marks)
5.1.3: (NECTA 2003) The probability that Juma will be alive in 20 years to come is 0.85,
and the probability that his wife will be alive is 0.90. Fid the probability that both will be alive
in 20 years to come. (3 marks)
5.1.4: (NECTA 2003) How many different arrangements can be made of the letters in the
word “AMEFANIKIWA”? (3 marks)
5.1.5: (NECTA 2003) Over a period of time it is found that 10% of the fuses produced by a
certain manufacturing process are defective. Using binomial distribution, find the approximate
probability that in a sample of 10 fuses chosen at random, there will be at most 1 which is
defective. (Note: The binomial distribution has not been covered, but you can still find the
answer using other methods.) (4 marks)
5.1.6: (NECTA 2000) Find the number of permutations of the letters of the word YANGA.
(2 marks)
5.1.7: (NECTA 2000) Find whether, when a die is thrown, the following pairs of events are
mutually exclusive or not.
(a) {1, 3, 5}, {4, 5}
(b) {1, 2, 3}, {4, 5, 6} (4 marks)
5.1.8: (NECTA 2008) A bag contains 3 white balls and 2 black balls. Two balls are taken
from the bag. What is the probability that one is white and the other is black? (3 marks)
5.1.9: (NECTA 2008) A committee of 5 principals is to be selected from a group of 6 male
principals and 8 female principals. If the selection is made randomly, find the probability that
there are 3 female principals and 2 male principals. (5 marks)
5.1.10: (NECTA 2002) If P (A) = 0.5, P (B) = 0.3, and P (A ∩ B) = 0.2, find
(a) P (A ∪ B).
(b) P (A\B). (2 marks)
5.1.11: (NECTA 2001) The events A and B are such that P (A) = 0.43, P (B) = 0.48, and
P (A∪B) = 0.78. Show that the events A and B are neither mutually exclusive nor independent.
(3 marks)
5.1.12: (NECTA 2001) A bag contains 10 red balls, 9 blue balls, and 5 white balls. Three
balls are taken from the bag at random and without replacement. Find the probability that all
three balls are of the same colour. (3 marks)
100 CHAPTER 5. PROBABILITY AND STATISTICS
5.2.1 Ordering
We begin with factorials, the number of ways of ordering n different things.
Definition: The number of ways of arranging n different objects is given by n!, which is read
‘n factorial,’ and is given by the formula:
n! = n · (n − 1) · (n − 2) · (n − 3) · . . . · (2) · (1)
Why is this it? It all depends on the number of choices, the number of ways, the namba ya
chaguzi. For example, if we have the letters A, B, and C, how many ways can we arrange these
3 objects?
Three is not too many, so we can just make a list:
There are 6 ways. But what if we look at the letters A, B, C, D, E, and F ? There are far too
many to just make a list, we need a way to calculate it.
However we do it, there will be a first letter, and second letter, and a third letter. How
many choices are there for the first letter? If we have 6 letters, there are 6 choices for the first
letter. Then, after picking the first letter, how many choices are remaining for the second letter?
Zinabaki 5. We have already picked one for the first, so there are 5 choices remaining for the
second letter. And now how many for the 3rd letter? 4 choices. And we can keep on going...
The total number of possibilities is the product of all these choices. So, if we have 6 letters to
arrange, we have 6 · 5 · 4 · 3 · 2 · 1 = 6! = 720 ways to arrange them. I’m glad we didn’t try to
make a list! And before, when we had 3 items, our list showed 6 ways. Kumbe, 3! = 3 · 2 · 1 = 6.
5.2.2 Permuting
5.2.3 Choosing
5.2.4 Doing All Three
5.2.5 Exercises
5.5 Statistics
Statistics is a very important topic. In university, any science-related field, from medicine
to forestry to engineering, requires a study of statistics. It is also used in business, for both
marketing and quality control. The topics in the BAM syllabus cover just a brief introduction.
It’s a relatively easy topic, and well worth a little bit of time to learn it.
5.5.1 Data
If you ask 10 A-Level students, ‘How old are you?’ you may get responses like these: 18, 19,
20, 19, 23, 21, 18, 21, 21, 20. These are data.
Definition: Data, which can be singular or plural, is a set of observations or measurements of
a certain quality. A single number is a ‘piece of data’ or a ‘datum’.
By themselves, our data is not very useful, so we have several ways to make it more useful.
A frequency distribution table shows, for each data point x, the number of times it occurs, called
its frequency. For example, using the age data above, the frequency distribution table would
be:
Age (x) Frequency (f )
18 2
19 2
20 2
21 3
22 0
23 1
Definition: The sample size is the number of data points, usually written n. The relative
frequency for a certain data point is its frequency f divided by n. If you multiply relative
frequency by 100%, the result is the percent frequency.
If n is not given, an easy way to calculate it is to add all the frequencies. This is abbreviated
Σf = n. The capital Greek letter Sigma (Σ) means sum. For our data above, n = 10, which
we can check by adding the frequencies: Σf = 2 + 2 + 2 + 3 + 0 + 1 = 10. We can add these
columns to our table:
Age Freq Relative Freq Percent Freq
(x) (f ) (f /n) (f /n · 100%)
18 2 0.2 20%
19 2 0.2 20%
20 2 0.2 20%
21 3 0.3 30%
22 0 0.0 0%
23 1 0.1 10%
If there is lots of data, it can be too much to put into a frequency distribution table like
this. In this case, we group the data into different classes. A class covers several data points,
and we usually want an equal number of data points in each class. For the ages listed above,
we could make classes such as 18 − 19, 20 − 21, and 22 − 23, where two ages are in each class, or
we could put 18-20 and 21-23, with 3 ages in each class. Here is a diagram for the first option:
Age (x) Frequency (f )
18 − 19 4
20 − 21 5
22 − 23 1
The frequencies just add. This is how we organize our data. There are two main ways we
102 CHAPTER 5. PROBABILITY AND STATISTICS
6, 7, 8, 9, 12, 19, 22
Ex 3: The scores on a certain BAM exam are as follows: 37, 44, 46, 49, 54, 58, 63, 64, 64,
65, 71, 74, 83, 91. What is the range of the scores?
Solution: The highest score is 91, the lowest score is 37, the highest score is 91, so the range
is 91 − 37 = 54. z
Definition: The standard deviation of a data set is the average difference from the mean.
To calculate the standard deviation, σ, first you must find the mean, x̄. Then, for every
point, you take it’s distance from the mean, x − x̄, and square it, (x − x̄)2 . Add up all of these,
(xi − x̄)2 , divide by n, and take the square root. The easiest formula is:
P
rP
x2i
σ= − (x̄)2
n
P 2
The sum xi is the sum of the squares of all the data points. We divide this by n to get the
average of the squares. Then we subtract the mean squared. Take the square root, and we get
the standard deviation.
The purpose of the squaring is to make all the differences positive. But the end result is the
average distance of a data point to the mean. Thus a large standard deviation tells you that the
data is spread out, and a small standard deviation tells you that the data is all tight together.
Exercises
5.5.1: (NECTA 2008) The following table shows the marks of 100 students at Mzumbe
University.
Marks Frequency
60-62 5
63-65 18
66-68 42
69-71 27
72-74 8
i 1 2 3 4 5
xi 13 14 15 16 17
fi 1 4 12 2 1
P5
i=1 xi fi
i. P5
i=1 fi
v
u P5 2
t i=1Pxi − x̄ fi ,
u
ii. 5
i=1 fi
66, 87, 79, 74, 84, 72, 81, 78, 68, 74,
80, 71, 91, 62, 77, 86, 87, 72, 80, 77,
76, 83, 75, 71, 83, 67, 94, 64, 82, 78,
77, 67, 76, 82, 78, 88, 66, 79, 74, 64.
Marks 50 65 70 75 80 85 90 95
Frequency 4 3 10 4 1 2 1 1
(a) Determine
i. The mean.
ii. The frequency.
(b) Determine the cumulative frequency, then draw an ogive.
(c) Compute the mean and standard deviation to two decimal places of the following distribution
by using the coding method. Take A = 170.
Value 150 155 160 165 170 175 180 185 190
Frequency 5 11 13 17 26 21 9 5 3
(10 marks)
5.5.5: (NECTA 2002) The following table summarises the masses measured to the nearest
kg of 200 animals of the same species:
Calculate:
(a) The mean using a deviation approach. (b) The standard deviation of masses correct to two
decimal places. (10 marks)
5.5.6: (NECTA 2001) Consider the following distribution table:
Class Mark 7 12 17 22 27 32
Frequency 4 9 16 22 6 3
Determine
(a) The mean. (b) The mode. (c) The median.
(6 marks)
5.5.7: (NECTA 2000) The table below shows the IQs of 480 children at a certain school.
The topics in this chapter are mostly unrelated to each other. They can be studied individually
at most any time in the course.
√
6.1 Roots of Quadratics
A polynomial P (x) has roots. The roots are the values of x for which P (x) = 0. In the case of
quadratics, you know very well how to find the roots by either factoring or using the quadratic
formula.
Definition: The roots of a polynomial P (x) are the values of x for which P (x) = 0. They are
the solutions of the equation P (x) = 0.
A polynomial of degree n has at most n different, real roots. Remember that the degree of
a polynomial is the biggest exponent of x. We will look closely at quadratics. The focus of this
section is learning about the roots without actually solving for them.
b2 − 4ac = 0 − 4 · 1 · 1 = −4 < 0
106
6.1. ROOTS OF QUADRATICS 107
So, if we take a general quadratic, ax2 + bx + c, and call the roots α and β, then we can say
that
ax2 + bx + c = 0 which can be written as
b c +
x2 + x + =0
a a These are the same!
x2 − (α + β)x + αβ = 0
So, matching up the corresponding parts,
b c
α+β =− and αβ =
a a
This is big information, and this one line is all you need to remember to be able to solve most
problems.
Ex 2: The roots of 3x2 + 4x − 5 = 0 are α and β. Find the values of (a) 1/α + 1/β, and (b)
α2 + β 2 .
Solution: It is a puzzle. We don’t know α or β, but we do know α + β and αβ. We want to
write 1/α + 1/β and α2 + β 2 in terms of what we know. Starting with part (a):
β α
1/α + 1/β = + Finding a common denominator
αβ αβ
α+β
= Adding the fractions
αβ
−b/a
= Substituting in what we know
c/a
−b
= Simplifying
c
This is all done in general. Now that we have a general answer, 1/α + 1/β = −b c ,
we can substitute in the values of b and c from the quadratic given in the problem,
3x2 + 4x − 5 = 0. We see that b = 4 and c = −5, so 1/α + 1/β = −b −4 4
c = −5 = 5 .
Now on to part (b). Our method is the same. We know α + β and αβ, we want to write α2 + β 2
in terms of what we know.
α2 + β 2 = α2 + β 2 + 2αβ − 2αβ This is a neat trick
2 2
= α + 2αβ + β − 2αβ Because (a + b)2 = a2 + 2ab + b2
= (α + β)2 − 2αβ Isn’t that cool?
2
= (−b/a) − 2(c/a) Substituting in what we know
b2 c
= −2 Simplifying
a2 a
108 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
And, like before, now that we are done with variables we can substitute in our values a = 3,
b = 4, and c = −5. Thus
b2 c 42 −5 16 10 46
α2 + β 2 = 2
− 2 = 2
−2 = + = .
a a 3 3 9 3 9
z
This is the most common style of problem you will see on this topic. The procedure is
always the same. First, using the variables α and β, find a way to write what you want to know
in terms of what you know. Then substitute in to get the answer.
Ex 3: The roots of 2x2 − 7x + 4 = 0 are α and β. Find an equation with integer coefficients
whose roots are α/β and β/α.
Solution: We don’t need to find α/β and β/α, rather what we need is the equation x2 − ( αβ +
β α β β β
α )x + β α = x2 − ( αβ + α )x + 1. So, really all we need is α
β + α .
α2 β2
α/β + β/α = + Finding a common denominator
αβ αβ
2
α +β 2
= Adding the fractions
αβ
α + β 2 + 2αβ − 2αβ
2
= Using the same trick as in part (b) above.
αβ
2
(α + β) − 2αβ
= It’s a very useful trick.
αβ
( 7 )2 −2·2
We know that α + β = − −7 7 4
2 = 2 and that αβ = 2 = 2. Thus α/β + β/α =
2
2 = 338 .
2 33
And now our equation is x + 8 x + 1 = 0. Unfortunately this doesn’t have integer coefficients!
But, if we multiply through by 8, then we get 8x2 + 33x + 8 = 0, which does.
Note: We can multiply by any constant without changing the roots. We used 8 here because it
is the easiest, but other answers like 16x2 + 66x + 16 = 0 and 24x2 + 99x + 24 = 0 are just fine
too. z
Exercises
6.1.1: (NECTA 2002) Show that 2x2 − 3x + 4 = 0 has no real roots. (2 marks)
6.1.2: (NECTA 2002) If 3x2 − 6x + 8 = 0 has roots α and β, find the equation whose roots
are 1/α and 1/β. (4 marks)
6.1.3: (NECTA 2003) Given that α and β are roots of the function f (x) = ax2 + bx + c,
where a, b, and c are real and a 6= 0, (a) write down the values of α + β and αβ in terms of a,
b, and c. (b) State the conditions that the roots α and β in (a) above are equal in magnitude
but opposite in sign. (2 marks)
Ex 1: A school is trying to plan meals for its students. A student requires 20g of protein and
200g of carbohydrates each day to be healthy. The school will feed the students beans and rice.
Beans contain 360g of protein and 400g of carbohydrates per kilogram. Rice contains 10g of
protein and 900g of carbohydrates per kilogram. Beans cost 1400/= per kilogram, and rice costs
1000/= per kilogram. What quantity of beans and of rice should the school give to each student
in order to feed them adequate food for the lowest cost?
Solution:
In this problem, we are choosing values of two variables. Our two variables are the quantity
of beans and the quantity of rice to give each student. These variables are subject to linear
constraints, because the total amount of protein (which is a linear function of the two variables,
quantity of beans and quantity of rice) must be above a certain level, and the total amount of
carbohydrates (also a linear function of our two variables) must be above a certain level as well.
Finally, our goal is to minimize the total cost, which is a linear function of our variables. So we
see that this is the sort of problem that linear programming can be used to solve.
Linear programming questions are usually presented like this, as a paragraph of writing. Once
we’ve identified it as a problem that we can use linear programming to solve, our first task is
to identify our variables, our constraints, and our metric.
Draw a sketch
Let’s draw a quick sketch to better understand our constraints. We draw a pair of axes using
our two variables, B and R. Our first constraint is B · 150g + R · 50g ≥ 20g. We draw the line
B · 360g + R · 10g = 20g, and shade in the region below. This shaded region does not satisfy
our constraint, and thus none of the points in this region is a possible solution. Next we draw
the line B · 400g + R · 900g = 200g and shade the region below that for our second constraint.
110 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
We also draw the line B = 0 and shade the region to its left, and the line R = 0 and shade the
region below it. We can now see the remaining region of allowable solutions. In this case, it’s
in the upper right-hand part of our sketch.
Point B
Point C
Exercises
6.2.1: A smuggler is transporting two types of supplies to a black-market purchaser: plutonium
and human kidneys. He is riding his bicycle. If the mass of plutonium exceeds 10kg the
plutonium will melt down, which is unsafe. The kidneys must be stored in a special cooler and
rushed to the purchaser at high speed or they will spoil. The cooler can hold 10kg of kidneys.
If the total mass of the supplies exceeds 15kg the smuggler will not be able to ride his bicycle
fast enough, and the kidneys will spoil. If the smuggler can earn a profit of 10,000 euros per kg
of plutonium, and 15,000 euros per kg of kidneys, what is his maximum profit?
6.2.2: A certain daladala can take two kinds of passengers. Mamas weigh 100kg, carry 10kg
luggage, and pay 500/=. Students weigh 50kg, carry 20kg luggage, and pay only 400/=. All
passengers sit in the vehicle and all luggage is strapped to the roof. If the total weight in the
vehicle exceeds 2500kg, the floor of the daladala will collapse on the highway, killing everyone.
If the total weight on the roof exceeds 500kg, the roof will collapse, killing everyone. If the total
number of passengers exceeds 30, they will riot and kill the driver and the conductor. How
many of each type of passenger should the conductor choose to maximize his profit without
dying?
6.2.3: A safari company offers two kinds of safaris, driving and walking safaris. A driving safari
requires a car and one employee to drive. A walking safari requires two employees, one guide
and one porter to carry lunch boxes. The guide must be armed with a rifle so that the tourists
won’t be too afraid of animals. The company earns a profit of 30,000/= for each driving safari
and 80,000/= for each walking safari. If the company has 6 cars, 6 rifles, and 16 employees,
what is the maximum profit it can earn?
6.2.4: A student calculates that each cup of tea that she drinks immediately before her exam
will improve his score by 3 marks, and each cup of coffee she drinks before her exam will improve
her score by 5 marks. Each cup of tea has 60g sugar and 40mg caffeine. Each cup of coffee has
20g sugar and 80mg caffeine. If the student consumes more than 240g of sugar, she will go into
diabetic shock and fail her exam. If the student consumes more than 400mg of caffeine, she will
suffer from heart palpitations and fail her exam. If the student consumes more than 6 cups of
fluid total her bladder will rupture and she will fail her exam. How many cups of each coffee
and tea should she drink to maximize her score?
6.2.5: An mchawi is payed by clients to put curses on victims. A Jealous Wife will pay
40,000/= to have her Cheating Husband made impotent. This requires 15g of Albino Eye,
20g of Little Child Brain, and 1 cauldron. A Frustrated Teacher will pay 50,000/= to have a
NECTA Employee turned into a slug. This requires 5g of Albino Eye, 40g of Little Child Brain,
and 1 cauldron. The mchawi has only 120 g of Albino Eye , 320g of Little Child Brain, and 10
cauldrons. What is the maximum amount of money he can earn?
6.2.6: (NECTA 2008) A firm makes two types of furniture: chairs and tables. The contribu-
tion of each product as calculated by the accounting department is 20/= and 30/= per chair
112 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
and per table, respectively. Both products are processed on three machines M1 , M2 , and M3 .
The time required in hours per week on each machine is as follows (see table). How should the
y ≤ 2x, x + y ≤ 6, x + y ≥ 3, y ≥ 0, x ≥ 0, x ≤ 5.
(4 marks)
6.2.10: (NECTA 2003) (a) Shade the unrequired region of the following inequalities:
2x + y ≤ 10
4x + 3y ≤ 24
x≥0
y≥0
(b) Find the maximum value of f (x, y) = 2x + 4y in the reqion required in (a) above. (7 marks)
6.2.11: (NECTA 2002) Students are about to take a test that contains questions of type A
worth 10 points and questions of type B worth 25 points. They must do at least 3 questions of
type A but not more than 12. They must do at least 4 questions of type B but not more than
15. In total they cannot do more than 20 questions. How many of each type of question must
a student do to maximize the score? What is the maximum score? (10 marks)
6.2.12: (NECTA 2001) Graph the feasible set for the system of inequalities:
x≥0
y≥0
x + 2y ≤ 4
4x − 4y ≥ −4
6.3. SEQUENCES AND SERIES 113
(3 marks)
Definition: A sequence is a list—a set with a certain order—that follows a rule or pattern.
Definition: A series is a sequence where the terms are added together.
For example, a good sequence is
1 1 1 1
1, , , , ,...
2 3 4 5
and its corresponding series is
1 1 1 1
1+ + + + + ···
2 3 4 5
This particular series is called the Harmonic Series.
The first sequence is called the Fibonacci Sequence. The first two terms are 1, and then each
term is the sum of the previous two. 1 + 1 = 2, 1 + 2 = 3, 2 + 3 = 5, 3 + 5 = 8, 5 + 8 = 13,
so the next term is 21 because 8 + 13 = 21. The second sequence is a puzzle. Think about it,
maybe you will find the answer. I will tell you that, if you find the answer, you will have no
doubt, bila shaka, that your answer is correct.
Sometimes the rule is obvious, sometimes it isn’t. Mostly we will deal with sequences that
have easy rules. They come in two types: Arithmetic Progressions and Geometric Progressions.
• Note On N otation •
We use the Greek capital letter sigma, Σ, to indicate a sum. Usually it will look something like
this:
n
X
a1 + a2 + a3 + · · · + an = ai ,
i=1
Ex 2: Write (a) a1 + a2 + a3 + a4 + a5 , and (b) a23 + a24 + a25 + · · · + a100 in sigma sum
notation.
Solution: (a)
X5
a1 + a2 + a3 + a4 + a5 ai
i=1
114 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
(b)
100
X
a23 + a24 + a25 + · · · + a100 ai
i=23
z
Definition: An arithmetic progression (A.P.) is a sequence where there is a common difference
between successive terms.
If the common difference is d, then we can write
an+1 = an + d,
which means that if you have a term an , to find the next term, you add d. If the first term is
a1 , then the sequence is
a1 , a1 + d, a1 + 2d, a1 + 3d, . . .
The formula is (n-1) because the 1st term is a1 + 0d, the 2nd term is a1 + 1d, the 3rd term is
a1 + 2d, etc.
The sum of the first n terms of an A.P. is given by
n
X n
Sn = ai = a1 + an .
2
i=1
Ex 3: Identify the first term, a1 , the common difference d, and find the sum of the first 10
terms for the following sequences:
(a) 1, 2, 3, 4, . . .
(b) 7, 4, 1, −2, . . .
Solution: (a) The first term a1 = 1, the common difference is 1, so the sum of the first 10
terms is given by
n 10
S10 = 2a1 + (n − 1)d = 2 · 1 + (10 − 1) · 1 = 55.
2 2
(b) The first term a1 = 7, the common difference is −3, so the sum of the first 10 terms
is
n 10
S10 = 2a1 + (n − 1)d = 2 · 7 + (10 − 1) · (−3) = −65.
2 2
z
Ex 4: An arithmetic progression has first term 3 and 14th term 55. Find the common difference
and the sum of the first 14 terms.
6.3. SEQUENCES AND SERIES 115
Solution: First we’ll find the common difference, d. What we know is that a1 = 3 and a14 = 55.
But we also know that a14 = a1 + (14 − 1)d. Thus
a14 = a1 + (14 − 1)d (6.1)
55 = 3 + 13d (6.2)
52 = 13d (6.3)
d=4 (6.4)
As for the sum, we don’t even need to know d.
14
S14 = (a1 + a1 4)
2
= 7(3 + 55)
= 406
z
Definition: A geometric progression (G.P.) is a sequence where there is a common ration
between successive terms.
If the common ratio is r, then
an+1 = ran ,
to find the next term, just multiply by r. If the first term is a1 , then the sequence is
a1 , ra1 , r2 a1 , r3 a1 , . . .
and the nth term is given by
an = rn−1 a1 .
The sum of the first n terms of a G.P. is given by
n
X 1 − rn
Sn = ai = a1
1−r
i=1
for any r 6= 1. (If r = 1 then the sequence is a1 , a1 , a1 , . . . , and the series a1 +a1 +· · ·+an = na1 .)
Ex 5: Identify the first term, a1 , the common ratio r, and find the sum of the first 10 terms
for the following sequences:
(a) 2, 6, 18, 54, . . .
(b) 1/2, 1/4, 1/8, 1/16, . . .
Solution: (a) The first term is a1 = 2, the common ratio r = 3, so the sum for the first 10
terms:
1 − rn 1 − 310 1 − 59049
Sn = a1 =2 =2 = 59048
1−r 1−3 −2
(b) The first term a1 = 1/2, the common ration is r = 1/2, so the sum is:
10
1 1 − (1/2)10 1 1
S10 = · =1− =1− = 0.99902348
2 1 − (1/2) 2 1024
z
Definition: Some geometric series are convergent, if we take the limit as n → ∞, we will get
a real number. Others are divergent, they do not approach any specific value.
A geometric series with common ratio r is convergent if |r| < 1. If |r| ≥ 1 then the series is
divergent. If geometric series is convergent, then its sum is
∞
X a
ai =
1−r
i=1
116 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
Exercises
6.3.1: (NECTA 2005) The sum of the first and fifth terms of an arithmetic progression is 18,
while the fifth term is 6 more than the third term. Find the sum of the first 10 terms. (3 marks)
6.3.2: (NECTA 2005) A biscuit factory starts producing biscuits at the rate of 50,000 per
hour. This rate decreases by 10% every hour. Calculate the total number of biscuits produced
in the first 3 hours. (3 marks)
6.3.3: (NECTA 2001) The 9th term of an A.P. is twice as great as the third term, and the
15th term is 27. Find the sum of the first 25 terms of the series. (4 marks)
6.3.4: (NECTA 2001) Find the seventh term of an A.P. whose first term, second term, and
fifth term are in a G.P. and whose first term is 2. (2 marks)
6.3.5: (NECTA 2001) Show that log3 x + log9 x + log81 x + . . . is a geometric progression with
a common ration of 1/2. (3 marks)
6.3.6: (NECTA 2000) In a geometrical progression the common ration is 2. Find the value
of n for which the sum of 2n terms is 33 times the sum of n terms. (2 marks)
6.3.7: (NECTA 2000) The first term of an A.P. is −12 and the last term is 40. If the sum of
the progression is 196, find the number of terms and the common ratio. (2 marks)
6.4. PASCAL’S TRIANGLE 117
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
etc.
The start and end of each row is a 1. For the middle of a row, each number is the sum of the
two numbers above it. For example, the row after 1 3 3 1 begins with 1, then the next number
is 1 + 3 = 4, then 3 + 3 = 6, then 3 + 1 = 4, and it ends with 1.
Now, let’s look at (a + b)n .
(a + b)0 = 1 n=0
(a + b)1 = 1a+1b n=1
2 2 2
(a + b) = 1a + 2ab + 1b n=2
(a + b)3 = 1a3 + 3a2 b+3ab2 + 1b3 n=3
4 4 3 2 2 3 4
(a + b) = 1a + 4a b + 6a b + 4ab + 1b n=4
5 5 4 3 2 2 3 4 5
(a + b) = 1a + 5a b + 10a b +10a b + 5ab + 1b n=5
6 6 5 4 2 3 3 2 4 5 6
(a + b) = 1a + 6a b + 15a b + 20a b + 15a b + 6ab + 1b n=6
0
C0 = 1 n=0
1
C0 , 1 C1 = 1, 1 n=1
2 2 2
C0 , C1 , C2 = 1, 2, 1 n=2
3
C0 , 3 C1 , 3 C2 , 3 C3 = 1, 3, 3, 1 n=3
4 4 4 4 4
C0 , C1 , C2 , C3 , C4 = 1, 4, 6, 4, 1 n=4
5 5 5 5 5 5
C0 , C1 , C2 , C3 , C4 , C5 = 1, 5, 10, 10, 5, 1, n=5
6 6 6 6 6 6 6
C0 , C1 , C2 , C3 , C4 , C5 , C6 = 1, 6, 15, 20, 15, 6, 1 n=6
Look at these until you see the pattern. The pattern is stated kwa kihisabati as the Binomial
Expansion Theorem:
n
n
X
n
Ci an−i bi
(a + b) =
i=0
118 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
Basically, it says that you take the numbers from Pascal’s Triangle as the coefficients and that
the powers of a are n, n − 1, n − 2, . . . 0, and the powers of b are 0, 1, 2, . . . n.
(x + 3)5 =
= 1x5 · 30 + 5x4 · 31 + 10x3 · 32 + 10x2 · 33 + 5x1 · 34
+ 1x0 · 35 x5 + 15x4 + 90x3 + 270x2 + 405x + 243
Ex 2: Write out the binomial expansion of (1 − x)7 in ascending powers of x until the term
with x3 . Then approximate 0.987 .
Solution: Once again, we look to Pascal’s Triangle for the coefficients. The row that has 7 in
it goes 1, 7, : 21, 35, . . ., and that will be enough because we only need to go until x3 .
Because of the minus x, we will treat it as (1 + (−x))7 .
(1 − x)7 =
= 1 · 17 · (−x)0 + 7 · 16 · (−x)1 + 21 · 15 · (−x)2 + 35 · 14 · (−x)3 + · · ·
= 1 − 7x + 21x2 − 35x3 + · · ·
Then, to approximate (0.98)7 , we see that 0.98 = 1 − 0.02. So we put in 0.02 for x, and
we get that
0.985 = (1 − 0.02)7
≈ 1 − 7(0.02) + 21(0.02)2 − 35(0.02)3 + · · ·
≈
Exercises
6.4.1: Write out Pascal’s Triangle until the line that begins ‘1 8 28 . . .’.
6.4.2: Write the binomial expansions for the following:
(a) (a + b)6
(b) (1 + x)6
(c) (1 − x)6
6.4.3: Write the first 4 terms of the binomial expansion of (1 + x)7 in ascending powers of x.
Hence approximate (1.1)7 correct to 3 significant figures.
6.4.4: (NECTA 2003) Expand (x − 1)5 in ascending powers of x up to the term x3 , hence
use the expansion to evaluate (0.95)5 to three significant figures. Note: This does not work. Do
not use (x − 1)5 ; instead use (1 − x)5 . (2 marks)
6.4.5: (NECTA 2001) Write the first 3 terms of the binomial expansion of (1 + x)6 . Hence
approximate (1.001)6 correct to 4 significant figures. (2 marks)
6.5. SET THEORY 119
Ex 1: If 12 students say they like Fiddy Q, and 7 students say they like Banana, and there are
15 students total, how many like both Fiddy Q and Banana?
Solution: We let A be the set of students who like Fiddy Q, and B be the set of students who
like Banana. The data tells us that the total number of students, |A ∪ B| = 15, and what
we want to find is the number of students who like both Fiddy Q and Banana, |A ∩ B|.
|A ∪ B| = |A| = |B| − |A ∩ B|
15 = 12 + 7 − |A ∩ B|
15 = 19 − |A ∩ B||A ∩ B| =4
4 students like both Fiddy Q and Banana. z
Definition: The null set or empty set is the set with no elements. It is written as ∅.
If C = {1, 2, 3} and D = {4, 5, 6}, then C ∩ D = ∅.
Definition: The complement of a set is everything not in the set.
The complement of A is written as AC or A0 .
De Morgan’s Laws:
(A ∩ B)0 = A0 ∪ B 0 and (A ∪ B)0 = A0 ∩ B 0
Distributive Laws also hold:
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
120 CHAPTER 6. MISCELLANEOUS OTHER TOPICS
Exercises
6.5.1: (NECTA 2002) In a certain school, there is an equal number of boy and girl students.
1/4 of the boys and 1/10 of the girls go to school on foot. 1/3 of the boys and 1/2 of the girls
go to school by bicycle, and the rest go by daladala. Find the proportion of students:
(a) That are girls who go by daladala.
(b) That go by daladala. (10 marks)
6.5.2: (NECTA 2001) 64 Students were questioned about their favourite subject from Geog-
raphy, Mathematics, and Chemistry. 40 liked Geography, 36 like Mathematics, 30 liked Chem-
istry, and 10 liked all three subjects. If 4 liked both Geography and Mathematics, and assuming
that each student liked at least one subject, how many liked Chemistry only? (2 marks)
6.5.3: (NECTA 2001) Draw a Venn diagram and shade the portion corresponding to the set
(S ∩ T 0 ) ∪ (S ∩ T )
(2 marks)
6.5.4: (NECTA 2000) By using set operations, simplify the following (A ∪ B)0 ∩ (A ∩ B)0 .
(2 marks)
6.5.5: (NECTA 2000) Out of 130 students of a certain school, 10 of them study economics
and mathematics while 20 study neither of these two subjects. Those who study economics
alone are three times as many as those who study mathematics only. How many students study
economics? (4 marks)
Ex 1: You take out a loan of 600, 000/ = for 2 years at 8% annual simple interest. After these
2 years, how much do you need to pay the bank?
Solution: ‘Annual’ means 1 time per year. (Semi-annual means 2 times per year, because
‘semi’ means half.) Thus P = 600, 000, and expressing the interest rate as a decimal we
get i = 0.08, and after 2 years means n = 2. Therefore
A = P (1 + in)
= 600, 000(1 + 0.08 · 2) = 696, 000
6.6. INTEREST AND EXPONENTIAL FUNCTIONS 121
i mt
Compound Interest : A=P 1+
m
where m is the number of times it is compounded per year, t is the number of years, i is the
annual interest rate as a decimal (not percentage!), P is the principle, and A is the amount.
Ex 2: You take out the same loan of 600, 000/ = for 2 years at another bank. At this one you
must pay 8% annual interest which is compounded 4 times per year. After 2 years, how much
do you owe the bank?
Solution:
i mt 0.08 4·2
A=P 1+ = 600, 000 1 + = 702, 996
m 4
1 x
e = lim 1 +
x→∞ x
Ex 3: You take the same 600,000/= loan for two years, this time the interest rate is 8%
continuously compounded. After 2 years, how much money do you owe the bank?
Solution:
A = P eit
= 600, 000 · e0.08·2
= 704, 107
No e−λt , where N is the amount of radioactive isotopes remaining, No is the original amount,
t is time, and λ is the decay constant. Or, for absorption of x-rays, used both in physics and
medicine, I = Io e−µx , where Io is the intensity of x-rays that hit a body, I is the intensity of
the rays after passing through the body, µ is a constant that depends on the material, called
the absorption coefficient, and x is the thickness of the material. In physiology, Y = Yo e−kt can
be the concentration of some medicine in the bloodstream at time t, where Yo is the original
concentration and k is a constant related to how efficiently the organs are cleaning the blood.
The interesting thing about exponential functions is that, if they are decreasing, there is a
time called the ‘half-life’, which is constant, and after every half-life the amount is cut in half.
(In the case of x-ray absorption it is a half-distance, a length, not a time.) If the function is
increasing, then there is a doubling time, which is also constant. We will use the example of
radioactive decay.
N = No e−λt
And then we think. After one half-life, the amount remaining N should be half of the
original amount. N = 12 No . Thus
1
No = No e−λt
2
1
= e−λt
2
1
ln = −λt Applying natural log to both sides,
2
1
− ln = λt
2
−1
1
ln 2 = λt Because = 2,
2
ln 2
=t
λ
Using a calculator, you can find that ln 2 ≈ 0.69315. z
6.6.1 Exercises
6.6.1: You invest 300, 000/ = in a bank that will pay you 10% compound interest. After 5
years, how much money will you have
(a) If the interest is compounded annually (once per year)?
(b) If the interest is compounded quarterly (4 times per year)?
(c) If the interest is compounded monthly (12 times per year)?
6.6.2: You have a credit card, and you buy a pikipiki for 800, 000/ =. Unfortunately, at the
end of the month, you can pay only 600, 000/ =, so you still owe the credit card company
200, 000/ = (this is the principle). On this debt, they charge you 15% monthly (not annual)
interest, compounded 2 times per month. After 2 months of this, how much do you owe the
credit card company?
6.6.3: A businessman is choosing investments. He has 1, 000, 000/ = to invest. Bank S offers
him 15% annual simple interest. Bank C offers him 10% annual compound interest, compounded
twice per year. Bank E offers him 9.5% annual compound interest, compounded continuously.
Which bank should he choose (a) if he plans to wait 10 years? (b) if he plans to wait 30 years?
6.6. INTEREST AND EXPONENTIAL FUNCTIONS 123
6.6.4: A certain malaria medicine has a absorption constant k = 0.231 days−1 . What is the
half-life of its concentration in the blood stream?
6.6.5: A biologist isolates a bacteria and keeps it in a petri dish. She finds that every 4.6 hours,
the bacteria population has doubled. Write an equation for the bacteria population P in terms
of its initial population Po .
6.6.6: (NECTA 2006) Juma wants to invest Sh. 150,000 at a rate of 10% compounded
annually and accumulate the principal to Sh. 250,000. Using a calculator with a log key, find
how long this will take given that:
S = P (1 + i)n
Where i = interest, n = number of years, and P = principal. (6 marks)
(Note: To be technically correct, Juma’s principal does not change. Rather, it is his amount
that accumulates to 250,000/=.)
6.6.7: (NECTA 2002) The population of a sample is given by P (t) = 10.000e0.4t , where t is
in years. Use a non-programmable calculator to find the time to the nearest whole number on
which the population of the sample will double. (6 marks)
Appendix A
Here are all the letters of the Greek alphabet, which we use so much as variables. You can see
here the capital, lowercase, name, and common uses for each letter.
124
Appendix B
Notation
Sets
The set of all real numbers is written R. Sometimes this is modified to R+ for positive real
numbers or R− for negative real numbers. The set of integers, {. . . − 3, −2, −1, 0, 1, 2, 3 . . .} is
written Z. The ‘null set’ or ‘empty set’, which has no elements, is written ∅. If you want to
take things out of a set, you can use a backslash, \. For example R \ 0 is the set of all real
numbers except 0.
Sets are usually called capital letters, A, B, C, etc. The complement of A can be written as
A or A0 . In defining sets ∈ means ‘in’, and a colon, ‘:’, means ‘such that’. Thus {x ∈ R : x > 4}
{
is the set of all real number x such that x is greater than 4. Another example for the use of ∈
is π ∈ R, pi is in the real numbers.
The set operations are ∪ union, and ∩ intersection.
General Math
Sometimes common phrases are abbreviated. ‘Therefore’ can be written as ∴, ‘implies that’ is
⇒, and ‘if and only if’ as ⇔. Many people write a ‘booyah box’, , at the end of a proof to
celebrate, ‘Booyah! I finished the proof!’
Relations include =, >, ≥, <, ≤. Any relation with a slash / through it means ‘not’. Thus
6= is not equal to and ∈ / means ‘not in’. Approximately equal to is ≈ or '. Proportional to is
∝. Much less than is and much greater than is .
A function f is often written f (x) = . . ., but can also be written f : x 7→ . . .. The
domain of f (x) can be written dom(f (x)), and the range ran(f (x)). The composition of 2
functions, f and g is written as f (g(x)) or f ◦ g(x). The inverse of f (x) is written f −1 (x). This
holds also for trigonometric functions, hence if sin θ = A, it is correct that sin−1 A = θ. But
sin−1 θ 6= csc θ = sin1 θ . Another notation for the inverse trigonometric functions is to write ‘arc’
as a prefix. Thus sin−1 A = arcsin A = θ, cos−1 B = arccos B = θ, and tan−1 C = arctan C = θ.
‘Right’, ‘perpendicular’, ‘orthogonal’, and ‘normal’ all refer to a 90◦ or π/2 radian angle.
This can be written ⊥. Parallel can be written as //.
In a fraction nd , the top is called the ‘numerator’ and the bottom the ‘denominator’. Loga-
rithms of base 10 and and base e are abbreviated as log x (or sometimes lg x) and ln x, respec-
tively.
The sum a1 + a2 + a3 + · · · + an can be written as
n
X
ai
i=1
125
126 APPENDIX B. NOTATION
Calculus
The limit of f (x) as x approaches a is written
lim f (x)
x→a
If under the limit it is written x → a+ then the approach is from above, from the right. If it is
x → a− then the approach is from below, from the left.
A capital delta, ∆, usually means ‘change’. Thus
∆y
m=
∆x
is defining slope as change in y divided by change in x. A lower case delta, δ, is a very small
change, usually used before taking a limit to make a derivative. Another way of writing the
concept of the derivative would be
δy
lim
δx→0 δx
Newton’s Notation: The derivative of y is y 00 and the derivative of f (x) is f 0 (x), these are
read ‘y prime’ and ‘f prime of x’. Second derivatives are y 00 of f 00 (x).
Leibnitz Notation is more exact because it indicates the variable that is differentiated with
d
respect to. dx is the differential operator, it tells you to take the derivative of what follows with
d
respect to x. For example dx (y) or f racddt(s(t)). The derivatives, once taken, can be written
dy df d2 y d
as dx or dx or dsdt. Second derivative are written as dx 2 because there are 2 dx ’s, but only one
y.
Other notation: Sometimes, especially for derivatives with respect to time, a dot is used.
Thus, if horizontal position is x, horizontal velocity would be ẋ, and horizontal acceleration ẍ.
For integration,
Z b
f (x) dx
a
R
is the ‘integral from a to b of f (x) with respect to x’. is an integral sign, a and b are the bounds
or limits of integration: a is the lower bound, b is the upper bound; f (x) is the integrand, and
dx indicates that x is the variable of integration.
127
128 APPENDIX C. EXERCISE HINTS AND SOLUTIONS
2.5.12. (a) y 0 = (2x − 5)[(x2 + 1)(6x2 − 2x) + 4x4 − 2x3 ] − 2(x2 + 1)(2x3 − x2 ) · (2x − 5)−2 ,
(2x2 −1)(5x+5)−20x2
(b) y 0 = ex · (2x2 −1)2
,
2
(c) y 0 = cos
3x
x +
6x cos x+3x sin x
cos2 x
· ln x.
0 4x2 +1
2.5.13. First, find f (x) = 2x2 , then f 0 (1) = 5/2 is the gradient.
2.6.3. (a) y 0 = (27x2 − 18x + 9)(x3 − x2 + x)8 , (b) y 0 = −(24t − 4)(3t2 − t)−5 , (c) y 0 = 2x cos(x2 ),
(d) y 0 = 2 sin x cos x.
2.6.4. (a) y 0 = 3x2 cos(x3 ), (b) y 0 = 3 sin2 x · cosx, (c) y 0 = 4x3 cos(x4 ), (d) y 0 = 4 sin3 x · cosx.
2
2.6.5. (a) f 0 (x) = x2 (x3 + 1)−2/3 , (b) g 0 (r) = 3r+2 r2 +r
, (c) h0 (t) = 12te2t , (d) y 0 = −2x sin(x2 ).
2.6.6. (a) y 0 = −(2x+1) cos(x2 +x), (b) f 0 = − sin(sin(x))·cos(x), (c) g 0 = −4x cos(x2 )·sin(x2 ),
(d) A0 (t) = iP eit .
2.6.7. (a) y 0 = xex + ex , (b) f 0 (x) = x2 ex + 2xex , (c) g 0 (x) = e2x + 2xe2x , (d) h0 (x) =
2x2 e2x + 2xe2x . √
2 2 (x2 +1)−1/2
2.6.8. (a) y 0 = 2e2x (x)(x + 1), (b) f 0 (x) = 2 x +1−2x x+1 , (c) g 0 (x) = cos2 x − sin2 x, (d)
h0 (x) = − cos(cos x) · sin x.
2 sin(2x) sin(x2 ) 2 3 sin(x)−2x cos4 (x)
2.6.9. (a) y 0 = 2 cos(x ) cos(2x)+2x
cos2 (x2 )
, (b) f 0 = −4(x −1) cos (x(x) 2 −1)2 , (c) g 0 =
2 sin(x) cos(x)[cos2 (x) − sin2 (x)], (d) h0 = 2 cos(2x) tan x + sec2 x sin(2x).
3x2 −1 4 cos x−(x+1) sin x
2.6.10. (a) y 0 = 3x6x 1 0
2 −1 − x = 3x3 −x , (b) y = x+1 − tan x =
4
(x+1) cos x .
2.6.11. y 0 = −3 cos2 x sin x
2.6.12. Hint: First use logarithm rules to simplify.
Answer: y 0 = 3x−2 3 1
− x+1
2.6.13. (1 + 3x)e 3x
2.6.14. 2sin(2x)
cos(2x)
√
2.6.15. 34 x−2/3 csc( 3 x)
3.2.2. y = 31 x3 − 21 x2 + 12
Either the man or the woman can put the condom on the penis. Both
can put it on, both can buy it.
Mwanamume au mwanamke anaweza kuweka kondomu uumeni. Wote
wawili wanaweza kuiweka, wote wawili wanaweza kuinunua dukani.
Condoms must be used only once, because if they are used twice or three
times they will not protect well from pregnancy and sexually transmitted
diseases. Condoms must not be washed and reused. They must be thrown
into a pit-toilet or burnt after 1 use. Condoms are made to be used only
once.
Kondomu inapaswa kutumika mara moja tu kwa kila mshinda wakati
wa kujamiiana, kwa sababu ikitumika mara 2 au 3, uhakika wa kuzuia
mimba wala uambukizo wa magonjwa ya zinaa unatoweka. Kondomu isi-
fuliwe ali mara baada ya kutumika itupwe kwenye choo cha shimo au
ichomwe moto. Kondomu zimetengenezwa kwa kutumiwa mara 1 tu.