Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 65

[MATHS FOR COMPUTING]

Godrick Naveen
[COMPANY NAME]  [Company address]
Student Name/ID P.V. Godrick Naveen
Unit Title Unit 11 : Maths for Computing
Assignment Number 1 Assessor Ms.Shyamali
Date Received 1st
Submission Date
submission
Date Received 2nd
Re-submission Date
submission

Assessor Feedback:
LO1 Use applied number theory in practical computing scenarios.

Pass, Merit & Distinction


P1 P2 M1 D1
Descripts
probability theory and probability distributions
LO2 Analyse events using
P3 P4 M2 D2
Pass, Merit & Distinction
of graphical examples using geometry and vector methods
Descripts
P5 P6 M3 D3

LO3 Determine solutions ncerning differential and integral calculus

Pass, Merit & Distinction P7 P8 M4 D4


Descripts
LO4 Evaluate problems co

Pass, Merit & Distinction


Descripts

Grade:
Assessor Signature: Date:

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 1
Resubmission Feedback:

Grade:
Assessor Signature: Date:
Internal Verifier’s Comments:

Signature & Date:


Higher Nationals - Summative Assignment Feedback Form

* Please note that grade decisions are provisional. They are only confirmed once internal and external
moderation has taken place and grades decisions have been agreed at the assessment board.

Higher Nationals in Computing Unit 11 : Maths for Computing

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 2
General Guidelines
1. A Cover page or title page – You should always attach a title page to your assignment.
Use previous page as your cover sheet and be sure to fill the details correctly.
2. This entire brief should be attached in first before you start answering.
3. All the assignments should prepare using word processing software.
4. All the assignments should print in A4 sized paper, and make sure to only use one side
printing.
5. Allow 1” margin on each side of the paper. But on the left side you will need to leave
room for binging.

Word Processing Rules


1. Use a font type that will make easy for your examiner to read. The font size should be 12
point, and should be in the style of Time New Roman.
2. Use 1.5 line word-processing. Left justify all paragraphs.
3. Ensure that all headings are consistent in terms of size and font style.
4. Use footer function on the word processor to insert Your Name, Subject, Assignment
No, and Page Number on each page. This is useful if individual sheets become detached for any
reason.
5. Use word processing application spell check and grammar check function to help edit
your assignment.

Important Points:
1. Check carefully the hand in date and the instructions given with the assignment. Late
submissions will not be accepted.
2. Ensure that you give yourself enough time to complete the assignment by the due date.
3. Don’t leave things such as printing to the last minute – excuses of this nature will not be
accepted for failure to hand in the work on time.
4. You must take responsibility for managing your own time effectively.
5. If you are unable to hand in your assignment on time and have valid reasons such as
illness, you may apply (in writing) for an extension.
6. Failure to achieve at least a PASS grade will result in a REFERRAL grade being given.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 3
7. Non-submission of work without valid reasons will lead to an automatic REFERRAL. You
will then be asked to complete an alternative assignment.
8. Take great care that if you use other people’s work or ideas in your assignment, you
properly reference them, using the HARVARD referencing system, in you text and any
bibliography, otherwise you may be guilty of plagiarism.
9. If you are caught plagiarising you could have your grade reduced to A REFERRAL or at
worst you could be excluded from the course.

Student Declaration

I hereby, declare that I know what plagiarism entails, namely to use another’s work and to present it as
my own without attributing the sources in the correct way. I further understand what it means to copy
another’s work.

1. I know that plagiarism is a punishable offence because it constitutes theft.


2. I understand the plagiarism and copying policy of the Edexcel UK.
3. I know what the consequences will be if I plagiaries or copy another’s work in any of the
assignments for this program.
4. I declare therefore that all work presented by me for every aspects of my program, will
be my own, and where I have made use of another’s work, I will attribute the source in the
correct way.
5. I acknowledge that the attachment of this document signed or not, constitutes a binding
agreement between myself and Edexcel UK.
6. I understand that my assignment will not be considered as submitted if this document is
not attached to the attached.

kana013536@esoft.academy
Student’s Signature: Date:
(Provide E-mail ID) (Provide Submission Date)

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 4
Assignment Brief

Student Name /ID Number

Unit Number and Title Unit 11 : Maths for Computing

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 5
Academic Year 2020/21

Unit Tutor

Assignment Title Importance of Maths in the Field of Computing

Issue Date

Submission Date

IV Name & Date

Submission Format:

This assignment should be submitted at the end of your lesson, on the week stated at the front of this
brief. The assignment can either be word-processed or completed in legible handwriting.

If the tasks are completed over multiple pages, ensure that your name and student number are present
on each sheet of paper.

Unit Learning Outcomes:

LO1 Use applied number theory in practical computing scenarios


LO2 Analyse events using probability theory and probability distributions
LO3 Determine solutions of graphical examples using geometry and vector Methods
LO4 Evaluate problems concerning differential and integral calculus.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 6
Assignment Brief and Guidance:

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 7
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 8
Activity 02

Part 1
1. Define ‘conditional probability’ with suitable examples.

2. A school which has 100 students in its sixth form, 50 students study mathematics, 29 study biology
and 13 study both subjects. Find the probability of the student studying mathematics given that the
student studies biology.

3. A certain medical disease occurs in 1% of the population. A simple screening procedure is available
and in 8 out of 10 cases where the patient has the disease, it produces a positive result. If the patient
does not have the disease there is still a 0.05 chance that the test will give a positive result. Find the
probability that a randomly selected individual:
(a) Does not have the disease but gives a positive result in the screening test
(b) Gives a positive result on the test
(c) Nilu has taken the test and her result is positive. Deduce the conditional probability that she has the
disease.
Let C represent the event “the patient has the disease” and S represent the event “the screening test gives a
positive result”.

4. In a certain group of 15 students, 5 have graphics calculators and 3 have a computer at home (one
student has both). Two of the students drive themselves to college each day and neither of them has a
graphics calculator nor a computer at home. A student is selected at random from the group.

(a) Find the probability that the student either drives to college or has a graphics calculator.
(b) Show that the events “the student has a graphics calculator” and “the student has a
computer at home” are independent.
Let G represent the event “the student has a graphics calculator”
H represent the event “the student has a computer at home”
D represent the event “the student drives to college each day”
Represent the information in this question by a Venn diagram. Use the above Venn diagram to answer the
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 9
questions.

5. A bag contains 6 blue balls, 5 green balls and 4 red balls. Three are selected at random without
replacement. Find the probability that
(a) they are all blue
(b)two are blue and one is green
(c) there is one of each colour

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 10
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 11
(b) Calculate the mean of this probability distribution.
(c) Find the variance and standard deviation of this probability distribution.
11. A surgery has a success rate of 75%. Suppose that the surgery is performed on three patients.
(a) Calculate the probability that the surgery is successful on exactly 2 patients?

(b) Let X be the number of successes. What are the possible values of X?
(c) Create a probability distribution for X.

(d) Graph the probability distribution for X using a histogram.


(e) Calculate the mean of X.

(f) Find the variance and standard deviation of X.

12. Colombo City typically has rain on about 16% of days in November.
(a) Calculate the probability that it will rain on exactly 5 days in November? 15 days?

(b) Calculate the mean number of days with rain in November?


(c) What is the variance and standard deviation of the number of days with rain in November?

13. From past records, a supermarket finds that 26% of people who enter the supermarket will make a
purchase. 18 people enter the supermarket during a one-hour period.
(a) What is the probability that exactly 10 customers, 18 customers and 3 customers make a
purchase?
(b) Calculate the expected number of customers who make a purchase.

(c) Find the variance and standard deviation of the number of customers who make a purchase.

14.On a recent math test, the mean score was 75 and the standard deviation was 5. Shan got 93. Would his
mark be considered an outlier if the marks were normally distributed? Explain.

15.For each question, construct a normal distribution curve and label the horizontal axis and answer each
question.
The shelf life of a dairy product is normally distributed with a mean of 12 days and a standard deviation of 3
days.
(a) About what percent of the products last between 9 and 15 days?

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 12
(b) About what percent of the products last between 12 and 15 days?
(c) About what percent of the products last 6 days or less?

(d) About what percent of the products last 15 or more days?

16.Statistics held by the Road Safety Division of the Police shows that 78% of drivers being tested for their
license pass at the first attempt.
If a group of 120 drivers are tested in one Centre in a year, find the probability
that more than 99 pass at the first attempt, justifying the most appropriate distribution to be used for this
scenario.

Part 4

17.Evaluate probability theory to an example involving hashing and load balancing.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 13
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 14
Activity 03

Part 1

1. If the Center of a circle is at (2,


-7) and a point on the circle (5,6) find the formula of the circle.

2. Identify thesurfaces in R
3
that are represented by the following equations?
z=3
y=5

3. Determine theequation of a sphere with radius r and center C(h, k, l).

4. Show thatx2 + y2 + z2 + 4x – 6y + 2z + 6 =0 is the equation of a sphere. Also, find its center and
radius.

Part 2

5. 3y= 2x-5 , 2y=2x+7 evaluate the x, y values using graphical method.

6.

a=(2i+3j) , b=(4i
-2j) and c=(1i+4j) evaluate the volume of the shape.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 15
Activity 04

Part 1

1. Determine the function whose tangent has slope 4x + 1 for each value of x and whose graph
passes through the point (1, 2).
2. Determine the function whose tangent has slope 3x 2 + 6x − 2 for each value of x and whose
graph passes through the point (0, 6).

Part 2

3. It is estimated that t years from now the population of a certain lakeside community will be
changing at the rate of 0.6t 2 + 0.2t + 0.5 thousand people per year. Environmentalists have found that the
level of pollution in the lake increases at the rate of approximately 5 units per 1000 people. Use integral
calculus to find by how much will the pollution in the lake increase during the next 2 years?

4. An object is moving so that its speed after t minutes is v(t) = 1+4t+3t 2 meters per minute. Use
integral calculus to find far does the object travel during 3rd minute?
Part 3

5. Sketch the graph of f(x) = x − 3x 2/3 , analyse maxima and minima where the graph is
increasing/decreasing.

6. Analyse maxima and minima of the graph of f(x)= 3x 4-6X3+3x2 by using the extreme points from
differentiation.
Part 4

7. For the function f(x) = cos 2x, 0.1 ≤ x ≤ 6, find the positions of any local minima or maxima and
distinguish between them.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 16
8. Determine the local maxima and/or minima of the function y = x 4 −1/3x3

9. Justify by further differentiation, the minimum lines of y = 12 x 2 − 2x, y = x 2 + 4x + 1,


y = 12x − 2x 2 , y = −3x 2 + 3x + 1.

Activity 1

Part 1

Q1

GCF (Greatest Common Divisor) is the largest common factor of two or more numbers.

a)

120

120 = 2 x 60
120 = 2 x 6 x 10
120 = 2 x 2 x 3 x 2 x 5

30
30 = 2 x 15
30 = 2 x 3 x 5

Prime 2 3 5
#

120 23 31 51

1 1 1
30 2 3 5
GCF 2 3 5
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 17
GCF of (120, 30) = 2 x 3 x 5 = 30 students

Mr. Steve possibly have 30 students in his class. Each student will receive 1 piece of paper and 4
pastel sticks.

b) The technique used to solve the problem in (a) above is as follows:


Step 1 - The numbers 120 and 30 are prime factorized.

120
120 = 2 x 60
120 = 2 x 6 x 10
120 = 2 x 2 x 3 x 2 x 5

30
30 = 2 x 15
30 = 2 x 3 x 5
Step 2 - Both of the common factors 120 and 30 are obtained and arranged in a table as shown
below.

Prime 2 3 5
#

120 23 31 51

1 1 1
30 2 3 5

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 18
GCF 2 3 5

Step 3 - The lowest product from each column is obtained. After that they are multiplied
together to obtain the GCF.

GCF of (120, 30) = 2 x 3 x 5 = 30

Q2
Prime factorization of 16 and 24

16
16 =8x2
16 =2x4x2
16 =2x2x2x2

24
Prime 2 3
24 = 8 x # 3
24 = 2 x 4 0 4x3
16 2 3
24 = 2 x 2 x 2 x 3
3 1
24 2 3

GCF 8 1

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 19
GCF (16, 24) = 8 x 1 = 8
The largest tile Maya can use is 8 x 8 inches.
Part 2
Q3
Total number of rows of seats = 40
There are 20 seats in the first row and the seats are increasing progressively in the next two rows.
Hence:
a1 (first term of the sequence) = 20
n (number of terms in the sequence) = 40
d (difference) = 21 – 20 = 1

Using the arithmetic series formula:


Sn = n/2 [ 2 a1 + (n-1) d]
S40 = 40/2 [ 2 x 20 + (40-1) x 1]
S40 =20 [ 40 + 39]
S40 = 1,580
There are 1,580 seats in all 40 rows.
Q4
Using the arithmetic rule:
an = a1 + (n-1) d
IF:- a1 = 2 km, d = ½ km, an = 8 km, n =?
a8 = 2 + (n-1) 0.5
8 = 2 + (n-1) 0.5
8 = 2 + 0.5n – 0.5
6.5 = 0.5n
n = 13
Hence, at week 13, 8 km will be run.
Q5
Using the Geometric rule:
an = a1r(n-1)
IF: - a1 (first term) = 100,000 rupees
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 20
n (number of terms to be determined) = 5 years
r (common ratio between terms) = 115/100 = 1.15
an = a1r(n-1)
a5 = 100,000 x 1.15(5-1)
a5 = 100,000 x 1.15(4)
a5 = 100,000 x 1.74900625
a5 = 174,900.625
Hence, Rs.174,900.625 will be owed to the bank over a period of 5 years.
Part 3
Question 6
Multiplicative inverse of 8 mod 11:
8x mod 11 ≡ 1
x=7

Hence, the multiplicative inverse of 8 mod 11 = 7

The Euclidean algorithm includes a set of instructions for finding the greatest common divisor of
any two positive integers. It makes use of repeated use of integer division.
The Euclidean formula is a = bq + r where a and b are two positive integers, q is the quotient
and r is the remainder. It is assumed that 0 < r < b.
Repeated division is used until the remainder is zero, as follows:
a = bq1 + r1 where 0 < r1 < b
b = r1q2 + r2 where 0< r2 < r1
r 1 = r2q3 + r3 where 0 < r3 < r2
The following process continues until remainder is zero.
Therefore, GCD(Greatest Common Divisor) (a,b) = last non-zero remainder in the division
process.
Hence, applying the Euclidean algorithm:
11=8(1)+3
8=3(2)+2
3=2(1)+1
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 21
2=1(2)
Re-arranging the equations above:
3 = 11-8(1)
2 = 8-3(2)
1 = 3-2(1)
GCD (8,11) = 1
If the above equations are reversed (using extended Euclidean algorithm):
1 = 3-2(1)
1 = 3-(8-3(2)) (1)
= 3-(8-(3(2))
= 3(3)-8
1 = (11-8(1)) (3)-8
= 11(3)-8(4)
= 11(3) +8(-4)
Hence, 1 = 11(3) + 8(-4) which is 1 = 8(-4) mod 11
Multiplicative inverse would be 1=8(7) mod 11

Part 4
Q7
Importance Of Prime numbers within the field of Computing
Are used in the following areas in computing.
Cryptography and Encryption
Most modern computer cryptography works by using the prime factors of large numbers.And
also Prime numbers are used in the RSA (Rivest–Shamir–Adleman) system in cryptography to
calculate public and private keys as a means of encrypting data within messages in a computer
system.
Hash codes
Prime numbers are also used in calculating hash codes in computing.

Activity 2
Part 1
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 22
Q1
Conditional probability is the probability of an event occurring given that another event has
already occurred. The concept is one of the quintessential concepts in probability theory. Note
that conditional probability does not state that there is always a causal relationship between the
two events, as well as it does not indicate that both events occur at the same time.
For example,
Two dies are thrown at once and the sum of the numbers obtained is found to be 7. What is the
probability that the number 3 has appeared at least once?
Solution: The sample space S would consist of all the numbers possible by the combination of
two dies. Hence, S consists of 6 × 6 i.e. 36 events.
Event A indicates the combination in which 3 has appeared at least once.
Event B indicates the combination of the numbers which sum up to 7.
A = {(3, 1), (3, 2), (3, 3)(3, 4)(3, 5)(3, 6)(1, 3)(2, 3)(4, 3)(5, 3)(6, 3)}
B = {(1, 6)(2, 5)(3, 4)(4, 3)(5, 2)(6, 1)}
P(A) = 11/36
P(B) = 6/36
A∩B=2
P(A ∩ B) = 2/36

Applying the conditional probability formula we get,


2
36 1
P(A|B) = P(A∩B)P(B) = =
−¿ 6 3
−¿ 36

Q2
By using a Venn diagram,

Mathematics Biology

37 13|Maths 16
Godrick Naveen - HND in Computing for Computing Assignment 01
Page | 23

34
n (s) = 100
P (B) = Probability that a student studies Biology
P (M) = Probability that a student studies Mathematics
P (B ∩ M) = Probability that a student studies both Biology and Mathematics Hence,
P (B) = 29/100
P (M) = 50/100
P (B ∩ M) = 13/100

Hence using Conditional probability,


P(M|B) = P (M ∩ B)
P(B)
13/100
29/100
= 13/29

Q3
IF:
C represents ‘Patient has disease’
S represents ‘Screening test gives a positive result’
C’ represents ‘Patient does not have a disease’
S’ represents ‘Screening test does not give a positive result’
Using a tree diagram:

S CS
0.8

0.01 0.2 |Maths forSComputing Assignment


Godrick Naveen - HND in Computing CS’ 01
Page | 24
S C’S
0.05
0.99
a) Probability that a randomly selected individual does not have the disease but gives a
positive result in the screening test :-

P (C’∩ S) = 0.99 x 0.05


= 0.0495

b) Probability that a randomly selected individual gives a positive test result :-

P(S)=P(C∩S) + P(C’∩S)
= (0.01 x 0.8) + 0.0495
= 0.0575
c) Probability that Nilu has the disease :-
P (C ∩ S)
P(C|S) =
P(S )
0.008
=
0.0575
= 0.139
Q4

IF:-
G = Event that the student has a graphics calculator
H = Event that the student has a computer at home
D = Event that the student drives to college everyday
This information can be displayed using a Venn diagram as given below:-

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 25
4 4

2
6 H

G and D are equally exclusive events hence P (G ∩ D) = 0


a) The probability that the student either drives to college or has a graphics calculator.
P(G∪D)=P(G)+P(D)
= 5/15 + 2/15
= 7/15
= 0.4667

b) From the Venn diagram above, it can be deduced that:-


P(G∩H)=1/15
P (G) = 5/15 = 1/3
P (H) = 3/15 = 1/5
Hence, the events G and H are independent as P(G) x P(H) = P (G ∩ H)

Q5
n (s) = 15
Sample space = {BBB, RRR, GGG, BBG, GGB, BGB, GBB, RRB, BBR, BRB, RBR, GRR,
RRG, GRG, GGR}

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 26
a) Probability that they are all blue:
P (B1B2B3) = 6/15 * 5/14 * 4/13 = 4/91
= 0.0440

b) Probability that two are blue and one is green: P (B1B2G3) = 6/15 * 5/14 * 5/13 = 5/91
But there are three arrangements of two blues and one green as follows: -
{B1B2G3, B1G2B3, G1B2B3}
Hence, probability = 3 * 5/91 = 15/91
= 0.165

c) Probability that there is one of each color: P (B1G2R3) = 6/15 * 5/14 * 4/13 = 4/91
However, there are six arrangements of one blue, one green and one red as follows: -
{B1G2R3, B1R2G3, G1B2R3, G1R2B3, R1B2G3, R1G2B3}
Hence, probability = 6 * 4/91 = 24/91
= 0.264

Part 2
Q6
A random variable is a variable whose value is unknown or a function that allocates values to
each of an experiment's outcomes. There are two types of random variables which are: -
Discrete variable
Discrete variables are numeric variables that have a countable number of values between any two
values. A discrete variable is always numeric.
Continuous variable
Continuous variables are numeric variables that have an infinite number of values between any
two values. A continuous variable can be numeric or date/time.

Q7
Let M = the score on the red dice minus the score on the blue dice.
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 27
The total possible outcomes for the two fair cubical dice would be = 36
Outcomes are tabulated as shown below: -

Blue dice
Red 1 2 3 4 5 6
dice 1 0 -1 -2 -3 -4 -5
2 1 0 -1 -2 -3 -4
3 2 1 0 -1 -2 -3
4 3 2 1 0 -1 -2
5 4 3 2 1 0 -1
6 5 4 3 2 1 0

a) The probability distribution of M: -


M -5 -4 -3 -2 -1 0 1 2 3 4 5

P (M = m)
1 2 3 4 5 6 7 4 3 2 1
36 36 36 36 36 36 36 36 36 36 36

b) E(M) = -5 * (1/36) + -4 * (2/36) + -3 * (3/36) + -2 * (4/36) + -1 * (5/36) + 0 * (6/36) + 1


* (5/36) + 2 * (4/36) + 3 * (3/36) + 4 * (2/36) + 5 * (1/36)
E(M) = -0.139 + -0.222 + -0.250 + -0.222 + -0.139 + 0 + 0.139 + 0.222 + 0.250 + 0.222
+ 0.139
E(M) = 0

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 28
c) Variance of M, Var (M) = ∑ M2P

M -5 -4 -3 -2 -1 0 1 2 3 4 5

P(M = m) 1 2 3 4 5 6 5 4 3 2 1

3
36 36 36 36 36 6 36 36 36 36 36

M2P 0.694 0.889 0.75 0.44 0.139 0 0.139 0.44 0.75 0.889 0.694

Var (M) = 0.694 + 0.889 + 0.75 + 0.44 + 0.139 + 0 + 0.139 + 0.44 + 0.75 + 0.889 + 0.694
= 5.824

Q8

a) Probability distribution of X: -
X 0 10 20

P (X = X) 1/4 1/2 1/4

E(X)=20*¼+10*½+0*¼=10

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 29
Var (X) = 202 * ¼ + 102* ½ + 02 * ¼ - 102 = 50
b) E(S)=E(X)–10=10–10=0 E(T)
= ½ E(X) – 5
= ½*10–5
=0

c) Var (S) = Var (X) = 50 Var (T)


= (½)2 Var (X)
= 50/4 = 12.5
d) Susan and Thomas plays a game using two 10p coins. The coins are tossed and Susan
records her score using the random variable S and Thomas uses the random variable
T. After a big number of tosses they compare their scores.
The similarity will be that each of their total scores should approximately be zero and
the difference is that Susan’s score should be more varied than Thomas’s score.

Q9
The probability distribution is given as: -
X 1 2 3 4

P (X=X) 1/3 1/3 k 1/4

a) Since ∑ P (X) = 1

Therefore, P (1) + P (2) + P (3) + P (4) = 1 1/3 + 1/3 + k + ¼ = 1


k = 1 - 1/4 - 1/3 - 1/3
= 1 – 0.25 – 0.33 – 0.33
= 0.09

b) P(X≤3) =P (1) +P (2) + P (3)


Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 30
= 1/3 + 1/3 + 0.09
= 0.33 + 0.33 + 0.09
= 0.75

Part 3

Q 10
Defects (x) 0 1 2 3 4 5

Batches 95 113 87 64 13 8

a) Using the frequency distribution above, the probability distribution for X can be
constructed as follows:
Total number of batches = 95 + 113 + 87 + 64 + 13 + 8 = 380 P(x) can be calculated as
Shown below: -
X 0 1 2 3 4 5

P(X) 95/380 113/380 87/380 64/380 13/380 8/380

Hence, the probability distribution for X is: -


X 0 1 2 3 4 5

P(X) 0.25 0.30 0.23 0.17 0.03 0.02

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 31
b) The mean of this probability distribution can be calculated as shown below: -

X P(X) x*P(X)
0 0.25 0*0.25 = 0
1 0.30 1*0.30 = 0.30
2 0.23 2*0.23 = 0.46
3 0.17 3*0.17 = 0.51
4 0.03 4*0.03 = 0.12
5 0.02 5*0.02 = 0.10
∑P(X) = 1 ∑X*P(X) = 1.49

mean = 1.49

c) The variance and standard deviation for this probability distribution can be calculated as
shown below: -
x P(x) x2 x2*P(x)
0 0.25 0 0*0.25 =0

1 0.30 1 1*0.30 = 0.30

2 0.23 4 4*0.23 = 0.92

3 0.17 9 9*0.17 = 1.53

4 0.03 16 16*0.03 = 0.48

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 32
5 0.02 25 25*0.02 = 0.50

∑P(x) = 1 ∑ x2*P(x) = 3.73

Hence, variance 2 = ∑ x2P(x) - µ2

= 3.73 – (1.49)2
= 3.73 – 2.12
= 1.51

Standard deviation = √ 1.51 = 1.23

Q 11

a) Probability that the surgery is successful on exactly 2 patients. P (2) can be calculated if
the number of successful surgeries, X is represented by a binomial distribution where:

Number of trials, n = 3
Probability of a successful surgery, p = 0.75
Probability of the surgery failing, q = 1 - p
= 1 - 0.75 = 0.25
Therefore, P (2) = nC2p2qn-2
= 3C2(0.75)2*(0.25)1
= 0.422
a) If X is the number of successes, then the possible values of X are 0,1,2,3

c)In order to calculate the probability distribution for X, P (0), P (1), P (2) and P (3) need to
be calculated as shown below: -
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 33
P (0) = nC0p0qn-0
= 3C0(0.75)0*(0.25)3
= 0.016
P (1) = nC1p1qn-1
= 3C1(0.75)1*(0.25)2

= 0.141

P (2) = nC2p2qn-2

= 3C2(0.75)2*(0.25)1
= 0.422
P(3) = nC3p3qn-3
= 3C3(0.75)3*(0.25)0
= 0.422
Hence, the probability distribution for X is: -

X 0 1 2 3
P (X) 0.016 0.141 0.422 0.422

d) Probability distribution for X using a histogram is as shown below: -

(e)

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 34
e) Mean of X, μ = n * p
= 3 * 0.75
= 2.25

f) The variance and standard deviation of X are as follows: -


Variance, 2= n*p*q
= 3*0.75*0.25
= 0.5625
Standard deviation, = √n*p*q
= √0.5625
= 0.75
Q 12
Colombo City typically has rain on about 16% days in November.
a) Assuming that the weather is independent from one day to the next, binomial
distribution can be used to calculate the probability that it will rain on exactly 5
days in November and in 15 days in November.
If the number of rainy days is X, then: -
Number of days in November, n = 30
Probability of success (rainy day), p = 0.16
Probability of failure (not a rainy day), q = 1 –p = 1-0.16 = 0.84
Hence,
P (5) = nC5p5qn-5
= 30C5(0.16)5(0.84)25
= 0.191
P (15) = nC5p15qn-15
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 35
= 30C15(0.16)15(0.84)15
= 0.00001308

b) The mean number of days with rain in November is: -

μ=n*p
= 30*0.16
= 4.80
c) The variance and standard deviation of the number of days with rain in November are: -
Variance, 2
= n*p*q
= 30*0.16*0.84
= 4.032
= √4.032 = 2.008

Q 13
From past records, a supermarket finds that 26% of people who enter the supermarket will make
a purchase. 18 people enter the supermarket during a one-hour period.
a) Assuming that the customer’s decision to purchase are independent, binomial
distribution can be used to calculate the probability that exactly 10 customers, 18
customers and 3 customers will make a purchase.
If the number of customers who make a purchase is X, then: -
Total number of customers, n = 18
Probability of successful purchase (customer makes purchase), p = 0.26
Probability of failure to purchase (customer does not purchase), q = 1 –p = 1-0.26 = 0.74
Hence,
P (10) = nC10p10qn-10
= 18C10(0.26)10(0.74)8
= 0.00555
P (18) = nC18p18qn-18
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 36
= 18C18(0.26)0(0.74)18
= 0.0000000000295

P (3) = nC3p3qn-3
= 18C3(0.26)3(0.74)15
= 0.157
b) The expected number of customers who make a purchase are: -
μ= n * p
=18*0.26
= 4.68

c) The variance and standard deviation of the number of customers who make a purchase
are: -
Variance, 2= n*p*q
= 18*0.26*0.74
= 3.46
Standard deviation,
= √n*p*q
= √3.46
= 1.86

Q 14
The standardized score or Z score can be calculated as: -
Raw score – mean
Standardized score =
Standard deviation
93 – 75
5
= 3.6
Hence, the score is 3.6 standard deviations above the mean indicating that Shan will be in
the 3 percent outside the 3 standard deviations. Hence, it will be an outlier.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 37
Q 15
The shelf life of a dairy product is normally distributed with a mean μ of 12 days and a
standard deviation of 3 days.
Let x = life of a dairy product.
a) In order to calculate the percent of products that last between 9 and 15 days, the z-
score of the two data points should be calculated to standardize the data. The
z-score is the number of standard deviations above or below the mean value μ.
z = − = 9 – 12 = -1 (value one standard deviation below the mean) 3
= 15–12 = 1 (value one standard deviation above the mean) 3
 Approximately 68% of the distribution will be within one standard deviation
of the mean. Here, the z-scores will be +1 and -1.
 Approximately 99.7% of the distribution will be within three standards
deviations of the mean. Here the z-scores will be +3 and -3.

The graph below shows application of the bell curve according to the empirical rule: -

34% 34%
13.5%
13.5%
2.35%
0.15% 2.35%
0.15%
3 6 9 12 15 18 21 24 27

Hence, the percent of the products that last between 9 and 15 days will be 68%according to the
empirical rule. This is shown graphically as follows: -

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 38
68%

34% 34%
b) In order to calculate the percent of products that last between 12 and 15 days, the z-
score of the two data points should be calculated: -
12 – 12
= =0
3
= 15–12 = 1 (value one standard deviation above the mean) 3
Hence the z-score will be in the range 0 ≤ z ≤1
Hence, the percent of the products that last between 12 and 15 days will be 34% as
shown in the figure below: -

34%

c) In order to calculate the percent of products that last 6 days or less, the z-score of the
should be calculated: z = 6–12= -2 (value two standard deviations below the mean) 3

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 39
Hence the z-score will be z ≤ -2

Hence, the percent of the products that last 6 days or less will be 2.35% + 0.15% = 2.5%

This is shown graphically in the graph below: -

0.15% 2.35%

d) In order to calculate the percent of products that last 15 or more days, the z-score of
the should be calculated = 15–12= 1 (value one standard deviation above the mean) 3
Hence the z-score will be z ≥1
Hence, the percent of the products that last 15 or more days will be 13.5% + 2.35% +
0.15% = 16.0%
This is shown graphically in the figure below: -

13.5% 2.35%
0.15%

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 40
Q 16
Using binomial distribution, let the number of who pass the drivers test is X, then: -
Total number of drivers, n = 120
Probability of passing the test, p = 0.78
Probability of failing the test, q = 1 –p = 1-0.78 =0.22
Required = P (X > 99)

Hence using the binomial formula, the following will need to be calculated: -
P(X=100) + P(X=101) +.... + P(X=120)
However, this is difficult to calculate as n is too large and p is not close to 0 or 1. Therefore, it
would be advisable to use the normal distribution.
Using the normal distribution, the mean and standard deviation can be calculated as follows: -
Mean, μ = n * p
= 120*0.78
= 93.6
Standard deviation, = √n*p*q
= √20.592
= 4.538

Part 4
Q 17

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 41
Activity 3
Part 1
Q1
Using the distance formula, the distance between two points (x, y) and (h, k) on a circle given
as:-
D = √ (x-h)2+(y-k)2

(x,y)

r (h,k)

Where D is the radius of a circle, hence r = √ (x-h)2+(y-k)2


Hence, if the center of the circle is (2, -7) and a point on the circle is (5, 6) as shown in the figure
below, the radius of the circle can be obtained as follows: -

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 42
(2,-7)

r2= (5 –2 )2+ (6 – (-7))2


r2= 32+ 132
r = √ 9 + 169 = √ 178 = 13.34

If the original equation of the circle is expanded, it would be as follows: -

r = √ (x-h)2+(y-k)2
r2 = x2–2xh + h2+ y2–2yk + k2

If r and (h, k) are substituted into the equation, the formula of the circle can be obtained
as
follows: -
r2= x2–2xh + h2+ y2–2yk + k2
13.342= x2–2x*(2) + 22+ y2–2y*(-7) + (-7)2
178 = x2–4x + 4 + y2+ 14y + 49
178 = x2–4x + y2+ 14y + 53
178 -53 = x2–4x + y2+ 14y
Hence, formula of the circle with center (2, -7) and a point on the circle (5,6) will be: -
x2–4x + y2+ 14y = 125

Q2
{(x, y, z}, z = 3} represents that set of all points in R3whose z co-ordinate is 3. This is the
horizontal plane that is parallel to the xy plane and it is 3 units above as shown below :
-

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 43
y = 5 represents the set of all points in R3where the y co-ordinate is 5. This is the vertical plane
that is parallel to the xz plane and it is 5 units to the right of this plane as shown below : -

Q3
The equation of a sphere is given as: r2= (x –a)2+ (y –b)2+ (z –c)2
Where the center is (a, b, c) and r is the radius,
Hence, when the center is (h, k, l) and r is the radius, the equation of the sphere will be:
r2= (x –h)2+ (y –k)2+ (z –l)2

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 44
Q4
Using the equation of a sphere r2= (x –a)2+ (y –b)2+ (z –c)2
x2+y2+z2+4x-6y+2z+6 = 0
x2+y2+z2+4x-6y+2z = -6
x2+4x+4+ y2-6y+ 9 + z2+2z + 1 = -6 + 4 + 9
+1 (x2+4x+4) + (y2-6y+ 9) + (z2+2z + 1) = 8
(x + 2) 2+ (y –3) 2+ (z + 1) 2=8
Hence, center of the sphere (x, y, z) =(-2, 3, -1)Radius of the sphere, r = √8 = 2√2

Part 2
Q5
The x and y values in the equations 3y = 2x -5 and 2y = 2x + 7 can be graphically evaluated as
follows:
Letting x be zero in the first equation 3y = 2x –5 gives 3y = 2 *0 –5
y= -5/3
y = -1.67
Hence, one co-ordinate would be (0, -1.67)
If y = 0 in the first equation:
3y= 2x –5
3 * 0 = 2x –5-2x = -5x= -5/-2
x= 2.25
Hence, another co-ordinate would be (2.25,0)

x y
0 -1.67
2.250

For the second equation 2y = 2x + 7:


If x = 0,
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 45
2y = 2 * 0 + 7
2y = 0+7
y = 7/2 x y
y = 3.5 0 3.5
Hence, one co-ordinate -3.5 0 would be (0, 3.5)

If y = 0,
2*0 = 2x + 7
0 = 2x + 7
x= -7/2
x= -3.5
Hence, another co-ordinate would be (-3.5,0)

When the co-ordinates of both equations 3y = 2x -5 and 2y = 2x + 7 are plotted on the x ,y


Cartesian co-ordinate system, they are graphically represented as shown below: -

y Axis
3y = 2x -5
2y = 42x + 7
(0,3.5)
) 3

1
(-3.5,0)
) x Axis
-4 -3 -2 -1 0 1 2 3 4
(2.25,0)
-1 )
(0,-1.67)
) -2
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
-3 Page | 46

-4
The intersection points between the two lines 2y = 2x + 7 and 3y = 2x –5 can be determined as
follows: -

Therefore, the two lines intersect at the point ( -15.5, -12)

y Axis

5
2y = 2x + 7 3y = 2x -5
4

3
(0,3.5)
2
)

1
(-3.5,0) (2.25,0)
-15 -14 -13 -12 -11 -10 -9 -8 -7 -6 ) -5 -4 ) x Axis
-3 -2 -1 0 1 2 3 4
-1
(0,-1.67)
-2 )

-3

-4
-5

-6

-7
-8
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 47
-9

-10
Intersection point
(-15.5,-12)
)

-14
-15

Q6
A tetrahedron’s volume is 1/6 of the volume of a parallelepiped which is formed by vectors a,b,
c.
Volume of a parallelepiped (scalar triple product) = | (a * b) * c |
Hence, the volume of a tetrahedron with a, b. c as co-terminal edges is obtained as: -
Volume = 1/3 * (Area of base) * (height)
Where height = ||c|| * |cos θ|
Hence, Volume = 1/3 * (½* ||a*b||) * ||c||* |cos θ|
= 1/6 * ||a*b|| *|| c ||* |cos θ| Since | (a * b) * c | = ||a*b|| *|| c ||* |cos θ|,
Volume of the tetrahedron = 1/6 * | (a * b) * c |
= 1/6 * [(2i + 3j) * (4i-2j-) * (1i+4j)]
a = (2i + 3j) b = (4i –2j) c = (1i + 4j)

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 48
Activity 4
Part 1
Q1
The slope of the tangent is the derivative of the function f.
Hence, f’(x) = 4x + 1 and f(x) is the indefinite integral f(x) = ∫ f’(x)
Hence, to find the function whose tangent has slope 4x + 1 for each value of x and whose graph
passes through the point (1,2) the integral of the function f(x) will be: -
f(x) = ∫ f ’(x)
f(x) = ∫ 4 + 1
= 2x2+ x + c
Using the fact that the graph of f passes through the point (1,2), to find c, x = 1 and f (1) = 2 is
substituted into the equation, as the graph passes through the point (1,2)
f(x) = 2x2+ x + c
2= 2*(1)2+ 1 + c
2= 3 + c
c = -1
The desired function is f(x) = 2x2+ x–1

Q2
The slope of the tangent is the derivative of the function f. Hence,
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 49
f’(x) = 3x2+ 6x –2 and f(x)is the indefinite integral f(x) = ∫ f’(x)
Hence, to find the function whose tangent has slope 3x 2+ 6x -2 for each value of x and whose
graph passes through the point (0,6) the integral of the function f(x) will be: -
f(x) = ∫ f ’(x)
f(x) = ∫ 3x2+6x –2
= x3+ 3x2–2x + c
Using the fact that the graph of f passes through the point (0,6), to find c, x = 0 and f (0) = 6 is
substituted into the equation as follows: -
f(x) = x3+ 3x2–2x + c
f(0) = 03+3*02–2 *0 + c
6=0+c
c=6
The desired function is f(x) = x3+ 3x2–2x + 6
Part 2
Q3
It is estimated that t years from now the population of a certain lakeside community will be
changing at the rate of 0.6t2+ 0.2t + 0.5 thousand people per year. Environmentalists
have found that the level of pollution in the lakeside increases at the rate of approximately 5
units per 1000 people.
Let P(t) denote the population of the community t years from now.
Then the rate of change of the population with respect to time is the derivative
= P’ (t) = 0. 6t2+ 0.2t + 0.5
However, the population function P(t) is an anti-derivative of 0. 6t2+ 0.2t + 0.5 which
is given by: -
P(t) = ∫ P’(t) dt
=∫ (0. 6t2+ 0.2t + 0.5) dt
=0.2t3+ 0.1t2+ 0.5t + C
Where C is a constant
During the subsequent 2 years, the population will grow by: -
P (2) –P (0) = 0.2 * (2)3+ 0.1 * (2)2+ 0.5*2 + C –
C =1.6+0.4+1
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 50
= 3000 people
Hence, the pollution in the lake will increase by 5 units * 3 = 15 units
Q4
If speed of the moving object after t minutes is v(t) = 1 + 4t + 3t2meters per minute, let s(t) be
the displacement of the car after t minutes, Then
v(t) = ds/dt = s’(t)s(t) = ∫ ( )
= ∫ ( 1 + 4t + 3t2)
= t + 2t2+t3+ c
During the third minute, the object travels,
s (3) –s (2) = 3 + 2 * (3) 2+ (3)3+ c –2 + 2*(2) 2–(2)3
= 30 meters
The object travels 30 meters during the third minute.

Part 3
Q5
(x) = x –3x2/3
0 = x –3x2/3
x2/3(x1/3–3) = 0
Hence when f(x) = 0 (y co-ordinate will be 0),
x2/3= 0
x=0

x1/3= 3
x = ∛3= 27
Hence, the x-intercepts are (0,0) and (27,0)
Using the power rule, the first derivative of f(x) is calculated as:-
f ’(x) =(x -3x2/3)
=1 –2x-1/3
= x1/3–2
x1/3

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 51
The intercepts are identified where f ‘(x) = 0
f ’(x) = x1/3–2
x1/3

0 = x1/3–2
x1/3

x1/3= 2
x = 23= 8
Also, when f ‘(x) is undefined, x = 0
As f(x) is continuous without any vertical asymptotes, f(x) = x –3x2/3should have A local
maximum at (0, f (0)) which is (0,0) and a local minimum at (8, f (8)) which is :-
(8, (8-3*(82/3) = (8, -4)
To check the concavity of the graph, the second derivative of f(x) which is f “(x) is calculated as
follows: -
f “(x) =(1 –2x-1/3)
=23x-4/32
=3 4/3

When f ‘ (0) does not exist, x = 0 but x ≠0 when f ’’(x) >0, so the curve is a concave up (slope
increases) on any interval that does not contain x = 0.

As shown in the figure below :

y Axis

12

4 (27,0)
(0,0)
x Axis
4 8 12 16)
0 4 8 12
)
16 20 24 28
-4
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 52
(8,-4)
-8
)
-12

Q6
The graph of f(x) = 3x4–6x3+ 3x2can be drawn by first calculating the first derivative of the
function to locate the stationary points on the graph as follows: f(x) = 3x4–6x3+ 3x2
Factorization of f (x) = 3x2(x2-1) (x2-1)
f ‘(x) = 12x3–18x2+ 6x
According to Fermat’s theorem, if f(x) has a local extremum at x = a and f is differentiable at a,
then f ‘(a) = 0
So when f ‘(x) = 0,
0 = 12x3–18x2+ 6x
By factoring: 0 = 6x (2x2–3x + 1)
x=0
Using the quadratic formula to solve (2x2–3x + 1) results in:

=− ±√ 2−4
2
= −(−3) ± √(−3)2 − (4 ∗ 2 ∗ 1)
2∗2
= 3±√9−8
4
= 3±√1
4
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 53
= 3±√1
4
= ½
Hence, the stationary points on the graph will be at x = 0, x = 1 and x = ½
Using the first derivative test:

x (points neighboring the f ‘(x) Result


stationary point)
x = -1 f ‘(-1) = 12 * (-1)3–18*(-1)2 -36 < 0
+6*(-1) Function is decreasing
= -36 (curving downwards)
x = 0.25 f‘(0.25) = 12 * (0.25)3– 0.5625 >0
18*(0.25)2+ 6 * (0.25) Function is increasing
= 0.5625 (curving upwards)
x = 0.75 f ‘(0.75) = 12 * (0.75)3– -0.5625 <0
18*(0.75)2+ 6 * (0.75) Function is decreasing
= -0.5625 (curving downwards)
x=2 f ‘(2) = 12 * (2)3–18*(2)2+ 36>0
6*(2) Function is increasing
= 36 (curving upwards)

Though, if the second derivative test is applied:dx2


dx2= 36x2− 36x + 6
When x = 1, y = 6
6 > 0 , It is a positive. Thus, the local minimum is at (1,0)
If x = ½ y = -3
−3 < 0 , It is a negative. Thus, the local maximum is at(12, 163)
If x = 0 y = 6
6 > 0 , It is a positive. Thus, the local minimum is at (0, 0)

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 54
In order to identify the points of inflection, the second derivative is solved for f ’’(x) = 0 as
follows:-
dx2= 36x2− 36x + 6
−b ± √b2− 4ac
2a
−(−36) ± √(−36)2− 4 ∗36 ∗6
2∗36
−(−36) ± √1296 – 864
72
36 ± √432
72
3 ± 20.78
72
x = 0.788 or x = 0.211
The points of inflection are (0.211, 0.577) and (0.788, -0.577)
The graph is drawn as shown in the figure below

Part 4
Q7

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 55
In order to find the positions of any local minima or maxima for the function f(x) = cos 2 , 0.1≤x
≤6, the first derivative of the function is calculated in order to locate stationary points, as
follows:
f(x) = cos 2
ⅆxⅆf= -2 sin 2x
Hence, the stationary points are at values of x in the range 0.1≤x ≤6 for which sin 2x = 0 which
will be at:
2x = π or 2x = 2π or 2x = 3π
The stationary points are at x = 2, x = π and x = 23
The second derivative of the function is then calculated as: ⅆ2
f = -4 cos 2

x2

The second derivative is evaluated at each stationary point to locate the local minima and
maxima as follows:
ⅆ2= -4 cos= 4 >0
f
ⅆx
x2=π
2

Hence, x = 2 indicates a local minimum.


ⅆ2f
ⅆx2|x=π
= -4cos 2 = -4<0
Hence, x = π indicates a local maximum.
ⅆ2f
ⅆx2|x=3π
= -4cos 3 = 4>0
Hence, x = indicates a local minimum.

Question 8

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 56
To determine the local maxima and or minima of the function y = 4−1/3 3, the positions of the
stationary points should be calculated by finding the first derivative of the function as follows:
f(x) =4 −1/3 3
ⅆx ⅆf= 4x3–x2= x2(4x –1)
Hence, the stationary points are when ⅆx ⅆf= 0, which are at x = 0 or when x = ¼
The second derivative of the function is then calculated as:
ⅆ2f = 12x2–2x
ⅆx2
The second derivative is evaluated at each stationary point to locate the local minima and
maxima as follows:
ⅆ2fⅆx2|x=0= 0 This is inconclusive

ⅆ 2f|= 12–1=1> 0
ⅆx x = 1 16 2 4
2

4
Hence, x = indicates a local minimum.
Q9
By further differentiation,
y =12x2–2x
By taking the derivative of the slope:
f ‘(y) = 24x –2
By factoring 2 (12x − 1) = 0
By dividing all by 4(12x−1) = 0
12 12

Hence, the stationary points when y = 0 are at x = 0 and x = 121


Using the first derivative test:
x (points neighboring the f ‘(x) Result
stationary point)
x = 1/12 f ‘(1) = 24 * (1) –2 = 22 22>0
Function is increasing
(curving upwards)
f ‘(-1) = 24 * (-1) –2 = -26 -26<0
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 57
Function is decreasing
(curving downwards)

x = 1 indicates a local minimum.


12

Using the second derivative test:


ⅆ2x = 24
ⅆx2

Using the second derivative test, the second derivative at x = 12 1when f(x) =0 is 24 which is a
positive value. According to this test, if the second derivative is positive, then this is a local
minimum. Hence, x = 121 is a local minimum
Local minimum
y = x2+ 4x + 1
By taking the derivative of the slope:
f ‘(y) = 2x + 4
By factoring 2(x + 2) = 0
Hence, the stationary points when y = 0 are at x = 0 and x = -2.
Using the first derivative test:

x (points neighboring the f ‘(x) Result


stationary point)
x = -2 f ‘(1) = 2 * (1) + 46 = 6 6 >0
Function is increasing
(curving upwards)
f ‘(-3) = 2 * (-3) + 4 = -2 -2<0
Function is decreasing
(curving downwards)

x = -2 indicates a local minimum.


Using the second derivative test:
ⅆ2x = 2
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 58
ⅆx2

Using the second derivative test, the second derivative at x = -2 when f(x) =0 is 2 which is a
positive value. According to this test, if the second derivative is positive, then this is a local
minimum. Therefore, x = -2 is a local minimum.
Local minimum
y = 12x –2x2
By taking the derivative of the slope:
f ‘(y) = 12x –4x
By factoring 4(3 − x) = 0
Hence, the stationary points when y = 0 are at x = 0 and x = 3.
Using the first derivative test:

x (points neighboring the f ‘(x) Result


stationary point)
x=3 f ‘(-1) = 12 –2 * (-1)2 = 10 10>0
Function is increasing
(curving upwards)
f ‘(3) = 12 –2 * (3)2 = -6 -6<0
Function is decreasing
(curving downwards)

x = 3 indicates a local maximum.


Using the second derivative test:
ⅆ2x= −4
ⅆx2

Using the second derivative test, the second derivative at x = 3 when f(x) =0 is -4 which is a
negative value. According to this test, if the second derivative is negative, then this is a local
maximum. Therefore, x = 3 is a local maximum.
Godrick Naveen - HND in Computing |Maths for Computing Assignment 01
Page | 59
Local maximum
y = -3x2+ 3x + 1
By taking the derivative of the slope:
f ‘(y) = -6x + 3
By factoring
3(−2x + 1) = 0
By dividing all by 4 (−2x+1 ) = 0
-2 -2
Therefore, the stationary points when y =0 are at x = 0 and x = ½
Using the first derivative test:

x (points neighboring the f ‘(x) Result


stationary point)
x=½ f ‘(-1) = -6 * (-1) + 3 = 9 9 >0
Function is increasing
(curving upwards)
f ‘(1) = -6 * (1) + 3 = -3 -3<0
Function is decreasing
(curving downwards)

x = ½ indicates a local maximum.


Using the second derivative test:
ⅆ2x = −6
ⅆx2

Using the second derivative test, the second derivative at x = ½ when f(x) =0 is -6 which is a
negative value. According to this test, if the second derivative is negative, then this is a local
maximum. Therefore, x = ½ is a local maximum.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 60
Acknowledgement
The success and final outcome of this assignment required a lot of guidance and assistance from
Ms.Shyamali and I am extremely fortunate to have got this all along the completion of my
assignment work. Whatever I have done is only due to such guidance and assistance and I would
not forget to thank her. I respect and thank all my colleagues at the Esoft metro campus, for
providing me all support and guidance which made me complete the assignment on time . I am
extremely grateful to be a part of this amazing team. Thanking you,
P.V.Godrick Naveen

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 61
Grading Rubric
Grading Criteria Achieved Feedback

LO1 : Use applied number theory in practical


computing scenarios

P1 Calculate the greatest common divisor and


least common multiple of a given pair of
numbers.
P2 Use relevant theory to sum arithmetic and
geometric progressions.

M1 Identify multiplicative inverses in modular


arithmetic.
D1 Produce a detailed written explanation of the
importance of prime numbers within the field of
computing.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 62
LO2 Analyse events using probability
theory and probability distributions

P3 Deduce the conditional probability of different


events occurring within independent trials.

P4 Identify the expectation of an event occurring


from a discrete, random variable.

M2 Calculate probabilities within both binomially


distributed and normally distributed random
variables.

D2 Evaluate probability theory to an example


involving hashing and load balancing.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 63
LO3 Determine solutions of graphical
examples using geometry and vector
methods

P5 Identify simple shapes using co-ordinate


geometry.
P6 Determine shape parameters using
appropriate vector methods.

M3 Evaluate the coordinate system used in


programming a simple output device.
D3 Construct the scaling of simple shapes that are
described by vector coordinates.
LO4 Evaluate problems concerning
differential and integral calculus

P7 Determine the rate of change within an


algebraic function.
P8 Use integral calculus to solve practical
problems involving area.
M4 Analyse maxima and minima of increasing and
decreasing functions using higher order
derivatives.
D4 Justify, by further differentiation, that a value
is a minimum.

Godrick Naveen - HND in Computing |Maths for Computing Assignment 01


Page | 64

You might also like