Professional Documents
Culture Documents
MATH1179 Workbook Part 2 2021-2022
MATH1179 Workbook Part 2 2021-2022
Mathematics for
Computer Science
Part 2
0101 -5𝒊𝒊𝟐𝟐
Workbook 2
Dr Yvonne Fryer
September 2021
MATH1179
Contents
Page No.
3: Algorithms .................................................................................................................................... 10
6: Probability .................................................................................................................................... 27
Formulae ........................................................................................................................................... 32
Sets .......................................................................................................................................... 32
Logic: Propositional Calculus................................................................................................. 32
Number ................................................................................................................................... 34
Formal Languages and Grammars .......................................................................................... 35
Logic: Predicate Calculus ....................................................................................................... 35
Data & Statistics ..................................................................................................................... 36
ii Term 1
MATH1179
10 − 2 3
1. Let p = q = and r = − 2
3 5
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
6 1
1 1
2. Let 𝐴𝐴 = � �, 𝐵𝐵 = �2 −3� , 𝐶𝐶 = (2 0 4)
−2 5
2 1
3
1 −5 8 1 0 2 6
𝐷𝐷 = � 1 �, 𝐸𝐸 = � �, 𝐹𝐹 = � �
2 1 2 −2 5 4 3
−2
Evaluate WHERE POSSIBLE the following, if not possible explain why
i) 2𝐴𝐴 ______________________________________________________________
ii) 𝐴𝐴 + 𝐵𝐵 ___________________________________________________________
v) 𝐷𝐷𝐷𝐷 ______________________________________________________________
vi) 𝐵𝐵 − 𝐴𝐴 ____________________________________________________________
vii) 𝐸𝐸 + 𝐹𝐹 ____________________________________________________________
x) 𝐹𝐹 2 ______________________________________________________________
−1 0
Using F = form the product FV and use it to find the position of R after being
0 1
transformed by V and then F.(note the order of composition). Draw FV(R) and comment on
the result.
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
0 − 1
5. Let q be the matrix
1 0
Construct a multiplication table using this as the starting element.
Show that it is closed (eventually no new matrices appear). X
The start of the table is shown 0 − 1 − 1 0
1 0 0 − 1
__________________________________________________________
3. Draw all trees which have 4 vertices. Draw all trees which have 5 vertices. (no
isomorphisms)
0 1 1 0
6. A graph 𝐺𝐺 with vertices 𝑣𝑣1 , 𝑣𝑣2 , 𝑣𝑣3 and 𝑣𝑣4 has adjacency matrix 𝐴𝐴, 𝐴𝐴 = �1 0 0 0�
1 0 0 1
0 0 1 0
Draw the graph of 𝐺𝐺.
Find the number of walks of length 2 and 3 between vertices 𝑣𝑣1 and 𝑣𝑣3
Identify these walks.
9 4
a c
11
8 7 2
3
f 5 e d
4
Make sure to draw the minimum spanning tree and identify its length.
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
8. Five computers A, B, C, D and E are to be connected. The cost of the possible connections
are
A B C D E
A 52 37 16
B 23 12 15
C 10
D 12
i. Draw this as a graph and using Kruskal's algorithm find a minimum spanning tree for
the graph. Draw the spanning tree.
ii. Hence find the minimum cost of connecting the computers.
iii. If computer A must be connected to computer B, what difference does this make to
your answer ?
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
9. Put the numbers 23, 43, 15, 37, 25, 46, 67, 12, 18 in a binary search tree with 23 as the
root.
10. Find a binary search tree for the words in this sentence. Use 'find' as the root.
11. Using a binary tree evaluate the expression (𝑎𝑎 → ¬𝑏𝑏) ∨ �(¬𝑐𝑐 → 𝑎𝑎) ∧ 𝑏𝑏� when 𝑎𝑎 and 𝑏𝑏 are
true and 𝑐𝑐 is false.
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
3: Algorithms
1. Given that the input(s) for the following algorithms are drawn from the 𝑁𝑁 with additionally
𝑟𝑟 > 2 for EACH (one giving 12 answers)
(i) draw the design for the algorithm,
(ii) describe the output(s) in words explaining what the algorithm does
(iii) perform the algorithm choosing 2 different sets of input values and stating the output
in each case.
__________________________________________________________
__________________________________________________________
__________________________________________________________
Page 10 Algorithms
MATH1179
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
2. In the Linear search algorithm (given below) an ordered list of n items is taken in and each
one compared with the required data to find its position in the list. In the worst case scenario
(last one in the list or not in the list at all) how many comparisons will there be for lists of
i) 8 items ii) 𝑛𝑛 items
e.g. Find position of p
a c g j k l p
LinearSearch p=X(0)?
READ Array(X), w p=X(1)?
i←0
p=X(2)?
Found =false
p=X(3)?
Failure = false
DO p=X(4)?
IF w = X(i) THEN p=X(5)?
DISPLAY i p=X(6)?
Found = true
ELSE
IF w<X(i) THEN
Failure = true
ELSE
i←i+1
ENDIF
IF i>n-1 THEN
Failure = true
ENDIF
LOOP UNTIL Found = true OR Failure = true
End LinearSearch
__________________________________________________________
__________________________________________________________
Page 12 Algorithms
MATH1179
3. In the Binary search algorithm an ordered list of n items is repeatedly halved with one half
discarded until the required data is found. In the worst case scenario (last one in the list or
not in the list at all) how many comparisons will there be for lists of
i) 8 items ii) 9 items iii) 20 items
iv) 56 items v) n items
. Find position of p
a c g j k l p
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
Page 14 Algorithms
MATH1179
4. State the big O for algorithms 2 and 3 ( either work it out or research it on the web).
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
(s0, 0, s1, 1, R), (s0, 1, s1, 0, R), (s0, B, s1, 0, R), (s1, 0, s2, 1, L), (s1, 1, s1, 0, R), (s1, B, s2, 0, L)
For each of the initial tapes determine the final tape when M halts assuming it starts in the
leftmost non-blank position and in state s0
i) B B 0 0 1 1 B B
ii) B B 1 0 1 B B B
iii) B B 1 1 B 0 1 B
𝑑𝑑𝑑𝑑
1. Find in the following cases
𝑑𝑑𝑑𝑑
i. 𝑦𝑦 = 4𝑥𝑥 2 + 3𝑥𝑥 − 2 ii. 𝑦𝑦 = 3 cos 𝑥𝑥 + 4𝑒𝑒 𝑥𝑥
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
3. Find the gradient of 𝑦𝑦 = 𝑥𝑥 2 − 5𝑥𝑥 + 4 when 𝑥𝑥 = 2.5 Sketch the curve and explain your
answer.
_____________________________________
_____________________________________
_____________________________________
_____________________________________
_____________________________________
_____________________________________
_____________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
𝑑𝑑𝑑𝑑
5. Find 𝑑𝑑𝑑𝑑 for each of the following:
i. 𝑦𝑦 2 = 2𝑥𝑥 + 1 ii. 𝑥𝑥 2 + 𝑦𝑦 2 = 4
iii. 𝑥𝑥𝑦𝑦 2 = 16 iv. 𝑥𝑥 2 + 2𝑥𝑥𝑥𝑥 + 3𝑦𝑦 2 = 6
v. sin 𝑥𝑥 cos 𝑦𝑦 = 1 vi. ln 𝑦𝑦 ln 𝑥𝑥 = 3
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
1
iii. 𝑦𝑦 = 2 (𝑥𝑥 2 − 3𝑥𝑥) iv. 𝑦𝑦 = 2𝑒𝑒 𝑥𝑥 – cos 𝑥𝑥
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
9. By sketching the curve for 8.ii. and splitting up the integral find the actual area between the
curve and the x axis.
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
1. Consider the following data which consists of a sample of people and records their height
and weight. Draw a scatter graph of this data in Excel. Does the graph suggest any connection
between height and weight? Would this be expected?
Height (cm) 176 187 152 170 195 158 175 169 190 155
Weight (kg) 80 98 45 76 112 65 78 70 105 50
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
2. Draw a line graph in Excel of the following data, which gives the average London
temperature for each month.
Month Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Temp (°C) 7 7 9 11 14 16 19 19 17 13 10 7
Sketch the graph here
3. Draw a bar chart in Excel of the following data, which gives the number of votes cast for
each candidate in a Computer Society election.
Adam: 17
Bilal: 24
Charlotte: 22
Deborah: 13
Evgeniya: 18
__________________________________________________________
__________________________________________________________
__________________________________________________________
4. Draw a pie chart in Excel of the following data, which gives the predictions of a sample of
football supporters as to who will win the Premier League in 2019/20.
Chelsea: 35%
Manchester City: 25%
Manchester United: 15%
Arsenal: 10%
Tottenham Hotspur: 10%
Others: 5%
__________________________________________________________
6. The company you work for decides to get rid of the 10% worse performers under their
productivity measure. You have a productivity measurement of 5.7. Is it better for you if
a) the company average is 7 and the standard deviation is 1.5
b) the company average is 6 and the standard deviation is 0.1
You may assume the distribution is fairly ‘normal’. Give reasons for your answer.
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
7. The number of children in 50 families (with at least one child are as follows.
4 5 2 2 3 4 4 3 5 4
7 3 3 4 2 2 2 2 2 6
3 2 3 3 1 2 3 2 2 6
5 5 3 2 4 4 2 4 1 2
2 2 1 3 3 2 2 4 5 3
Input the data into a package (usually Excel), draw a bar chart and pie chart.
Construct the frequency distribution and calculate the mean and mode (you can use any of
the methods suitable for your package but must show which formulas have been used).
__________________________________________________________
__________________________________________________________
__________________________________________________________
8. In a class test, the following marks were obtained. Find the mean, median and mode.
5 10 25 25 25 30 30 30 35 35
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
9. The lives of 120 circuit components were recorded in hours to the nearest hour and grouped
as follows
Life (hours) Frequency
660 – 669 3
670 – 679 10
680 – 689 16
690 – 699 23
700 – 709 34
710 – 719 21
720 – 729 9
730 – 739 4
State the class intervals and the class marks.
Construct the cumulative frequency and draw the cumulative frequency curve.
Use this curve to estimate the median.
Display this information in Excel and mark on the inter quartile range
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
10. A zoologist weighs 100 eggs and records the weights in the following frequency table.
Weight (g) 24 - 29 30 - 35 36 - 41 42 - 47 48 - 53
Frequency 11 23 36 21 9
What are the class intervals and the class marks?
Find the mean and standard deviation correct to two decimal places
__________________________________________________________
__________________________________________________________
__________________________________________________________
11. Three groups of students sit a test. Their marks are as follows (out of 50)
Frequencies
Class interval A B C
11 - 15 5 2 1
16 - 20 15 10 2
21 - 25 10 10 5
26 - 30 0 5 10
31 - 35 0 3 10
36 - 40 0 0 1
41 - 45 0 0 1
Using Excel calculate the mean and standard deviation of each group and compare their results.
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
12. Copy and paste the following data into Excel.
Use the data analysis tool to form a histogram choosing suitable classes
By manipulating the chart wizard also draw a frequency polygon from it.
56 74 76 1 69 11 86 68 68 15
52 36 88 47 31 15 83 100 29 96
10 33 28 62 95 71 41 74 73 31
52 30 86 25 11 29 3 29 42 15
43 22 82 71 86 26 77 46 21 44
61 32 2 68 57 59 11 74 59 80
54 29 79 8 56 54 100 81 39 29
68 41 63 96 88 52 4 32 45 58
97 80 30 46 83 84 37 68 3 94
29 11 98 70 86 54 19 44 14 3
__________________________________________________________
__________________________________________________________
6: Probability
3. In a math class of 30 students, 17 are boys and 13 are girls. On a unit test, 4 boys and 5 girls
made an A grade. If a student is chosen at random from the class, what is the probability of
choosing a girl or an A student?
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
4. After throwing a dice, what is the probability that the number of dots on the uppermost side
is divisible by 3?
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
7. On New Year's Eve, the probability of a person having a car accident is 0.09. The probability
of a person driving while intoxicated is 0.32 and probability of a person having a car accident
while intoxicated is 0.15. What is the probability of a person driving while intoxicated or
having a car accident?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
8. A dresser drawer contains one pair of socks with each of the following colours: blue, brown,
red, white and black. Each pair is folded together in a matching set. You reach into the sock
drawer and choose a pair of socks without looking. You replace this pair and then choose
another pair of socks. What is the probability that you will choose the red pair of socks both
times?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Page 28 Probability
MATH1179
9. A jar contains 3 red, 5 green, 2 blue and 6 yellow marbles. A marble is chosen at random
from the jar. After replacing it, a second marble is chosen. What is the probability of choosing
a green and then a yellow marble?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
10. Three cards are chosen at random from a deck of 52 cards without replacement. What is the
probability of choosing 3 aces?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
11 Calculate the following using your calculator and Excel. For any that give an error or an
unexpected answer, can you explain why?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
(i) In the first part of qualifying, the cars race to set the fastest time. The slowest six
cars are eliminated and the others proceed to the next round of qualifying – the
order in which they finish does not matter. In how many ways can the six cars be
eliminated?
(ii) In the second part, another six cars are eliminated and the remainder proceed to the
final stage, order does not matter. Again, in how many ways can the six cars be
eliminated?
(iii) In the final part of qualifying the remaining cars set their fastest time and their order
is decided by this. In many ways can this be done?
(iv) The race now takes place with all 22 cars. In how many ways can the podium be
formed? The podium consists of the first, second and third placed cars in order.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
You roll a die. If you roll a 1 then you immediately win. If you do not, then you get to roll
again. This time if you roll a 1 or 2 then you win, otherwise you lose.
Page 30 Probability
MATH1179
14. What is the expected value of the following?
You are on a game show, with a choice of five boxes. The boxes contain £1, £10, £100,
£1000 and £10000 respectively. You have chosen a box and it contains £1000. You have
the option to take that money, or to reject it and open another box instead.
On a game show there are three closed doors, and only the host Monty knows what is
behind each door. One contains a car and the other two contain goats. Obviously you want
to win the car. You choose a door. One of the other doors is then opened to reveal a goat,
leaving two doors, one with a car and one with a goat. You are then asked whether you
want to stay with the same original choice or switch to the other door.
Are you better to switch, or to stay with original choice? Does it matter?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Formulae
Sets
Formula for A ∪ B
A B
Product Set
Let A and B be sets.
The Cartesian product set A × B is the set of all ordered pairs (a, b) where a ∈ A and b ∈ B.
And Or Not
P q p∧q p q p∨q p ¬p
T T T T T T T F
T F F T F T F T
F T F F T T
F F F F F F
Page 32 Formulae
MATH1179
Laws of Propositional Calculus
Given any propositions p, q and r, tautology t and contradiction f, the following hold:
1 idempotent laws p∧p≡p p∨p≡p
2 associative laws (p ∧ q) ∧ r ≡ p ∧ (q ∧ r), (p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
3 commutative laws p ∧ q ≡ q ∧ p, p∨q≡q∨p
4 distributive laws p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r), p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
5 De Morgan's laws ¬(p ∧ q) ≡ ¬p ∨ ¬q, ¬(p ∨ q) ≡ ¬p ∧ ¬q
6 identity laws p ∧ f ≡ f, p ∧ t ≡ p, p ∨ t ≡ t, p ∨ f ≡ p
7 complement laws p ∧ ¬p ≡ f, p ∨ ¬p ≡ t, ¬t ≡ f, ¬f ≡ t
8 involution laws ¬¬p ≡ p,
Implication
This logical connective is of the form ' p implies q ', or ' if p then q '.
p is called the premise and q the conclusion. We write this p → q.
p q p→q
T T T
T F F
F T T
F F T
Equivalent systems
In general many aspects of logic can be re-expressed using Boolean forms, Set theory or Logic gates.
and or complement
p∧q p∨q ¬p ~p f t
P∩Q P∪Q P P´ ∅ U
P.Q P+Q P 0 1
Number systems
N Z Q R
the set of natural numbers N = {1, 2, 3,...} (note 0 is included in some books)
the set of integers Z = { ..., -2, -1, 0, 1, 2,...} extended to include negatives
the set of rational numbers Q = {p/q : p,q ∈ Ζ, q ≠ 0} extended to include fractions
the set of real numbers R extended to include √2 e.t.c.
Naming conventions
Smallest largest
×10-12 ×10-9 ×10-6 ×10-3 ×10-2 ×10-1 1=100 ×101 ×102 ×103 ×106 ×109 ×1012
Pico nano micro milli centi deci deca hecto kilo mega giga terra
one thousandth of
One millionth of
one thousandth
one hundredth
one millionth
a thousandth
a millionth
a thousand
a thousand
a hundred
a million
one tenth
millionth
thousand
a million
Original
ten
Page 34 Formulae
MATH1179
Changing between Binary, Octal and Hexadecimal
If we compare these three number bases we can see they are all representing powers of 2
MEAN
(x + x 2 + x 3 + .... x n )
∑x
i =1
i
With n values given as x1, x2, ... , xn the mean is = 1 =
n n
If data values are repeated so that value xi occurs fi times, then n = f1 + f2 + ... + fn the total frequency
and
n n
(f1 x 1 + f 2 x 2 + f 3 x 3 + .... f n x n )
∑f x
i =1
i i ∑f x i i
mean = = = i =1
n n n
∑f
i =1
i
MODE
This is defined as the most frequently occurring value and so in a bar chart showing the frequency it will
be the values giving rise to the highest bar.
MEDIAN
The value of the middle term of the sorted data
Measures of dispersion
Range
range = MAXIMUM VALUE - MIN.VALUE
Inter-Quartile Range
If using median use the Inter-Quartile range for the spread
Find Upper Quartile (75% value) and Lower Quartile (25% value)
IQ range = UQ - LQ
∑( x − x ) 2
(Average Deviation)2 =
n
This is also known as the variance written σ2 for a population or s2 for a sample.
∑( x − x ) 2
σ=
n
Page 36 Formulae
MATH1179
The average deviation is given the technical name of the standard deviation
∑ x2
Standard deviation = − x2
n
For grouped data the standard deviation is given by the formula
Standard deviation σ =
∑ fx 2
−x
2
Differentiation
Table of derivatives, where 𝑦𝑦 = 𝑓𝑓(𝑥𝑥), 𝑥𝑥, 𝑦𝑦 ∈ 𝑅𝑅 and 𝐴𝐴 is a constant
𝑑𝑑𝑑𝑑
𝑦𝑦 = 𝑓𝑓(𝑥𝑥)
𝑑𝑑𝑑𝑑
𝑐𝑐 0
𝑥𝑥 1
𝑥𝑥 2 2𝑥𝑥
𝑥𝑥 3 3𝑥𝑥 2
𝑥𝑥 𝑛𝑛 𝑛𝑛𝑥𝑥 𝑛𝑛−1
sin 𝐴𝐴𝐴𝐴 𝐴𝐴 cos 𝐴𝐴𝐴𝐴
cos 𝐴𝐴𝐴𝐴 −𝐴𝐴 sin 𝐴𝐴𝐴𝐴
𝑒𝑒 𝐴𝐴𝐴𝐴 𝐴𝐴𝐴𝐴 𝐴𝐴𝐴𝐴
ln 𝐴𝐴𝐴𝐴 1
(where 𝑥𝑥 ≠ 0) 𝑥𝑥
Chain rule
Start on the outside and work in
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
= ×
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Product rule
A product of two functions, where 𝑢𝑢, 𝑣𝑣 are functions of 𝑥𝑥
𝑑𝑑(𝑢𝑢𝑢𝑢) 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
= 𝑢𝑢 + 𝑣𝑣
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Can be extended to the product of three functions
𝑑𝑑(𝑢𝑢𝑢𝑢𝑤𝑤) 𝑑𝑑𝑤𝑤 𝑑𝑑𝑣𝑣 𝑑𝑑𝑑𝑑
= 𝑢𝑢𝑣𝑣 + 𝑢𝑢𝑤𝑤 + 𝑣𝑣𝑣𝑣
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Parametric differentiation
When 𝑥𝑥, 𝑦𝑦 are defined in terms of a third variable for example 𝑡𝑡, such that parametric differentiation
𝑑𝑑𝑑𝑑
can be used to obtain 𝑑𝑑𝑑𝑑 .
𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
= �𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑
Integration
Table of standard derivatives
cos 𝐴𝐴𝐴𝐴
𝑎𝑎 𝑎𝑎𝑎𝑎 sin 𝐴𝐴𝐴𝐴 −
𝐴𝐴
𝑥𝑥2 sin 𝐴𝐴𝐴𝐴
𝑥𝑥 cos 𝐴𝐴𝐴𝐴
2 𝐴𝐴
𝑥𝑥3 𝑒𝑒 𝐴𝐴𝐴𝐴
𝑥𝑥 2 𝑒𝑒 𝐴𝐴𝐴𝐴
3 𝐴𝐴
𝑥𝑥4 1
𝑥𝑥 3 𝑥𝑥
( 𝑥𝑥 ≠ 0) ln 𝑥𝑥
4
𝑥𝑥 𝑛𝑛+1
𝑥𝑥 𝑛𝑛 (𝑛𝑛 ≠ −1)
𝑛𝑛 + 1 Where 𝐴𝐴 is a constant
Integration by parts
Where 𝑢𝑢, 𝑣𝑣 are functions of 𝑥𝑥
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
� 𝑢𝑢 𝑑𝑑𝑑𝑑 = 𝑢𝑢𝑢𝑢 − � 𝑣𝑣 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Page 38 Formulae
MATH1179
Rough work/Additional notes/Formulae
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
Mathematics for Computer Science Page 39
MATH1179
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
____________________________________
Page 40 Formulae