0% found this document useful (0 votes)
415 views33 pages

Tutorial Letter 101/3/2020: Numerical Methods I

Ms N Mabaso Telephone: 011 670 9111 Email: [email protected] 3.2 Department Department of Mathematical Sciences University of South Africa PO Box 392 UNISA 0003 Telephone: 011 670 9111 Fax: 011 670 9183 Email: [email protected] 5 COS2633/101/3/2020 3.3 University University of South Africa PO Box 392 UNISA 0003 Telephone: 011 670 9111 Website: www.unisa.ac.za

Uploaded by

sal27adam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
415 views33 pages

Tutorial Letter 101/3/2020: Numerical Methods I

Ms N Mabaso Telephone: 011 670 9111 Email: [email protected] 3.2 Department Department of Mathematical Sciences University of South Africa PO Box 392 UNISA 0003 Telephone: 011 670 9111 Fax: 011 670 9183 Email: [email protected] 5 COS2633/101/3/2020 3.3 University University of South Africa PO Box 392 UNISA 0003 Telephone: 011 670 9111 Website: www.unisa.ac.za

Uploaded by

sal27adam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

COS2633/101/3/2020

Tutorial letter 101/3/2020

NUMERICAL METHODS I
COS2633

Semesters 1 and 2

Department of Mathematical Sciences

This tutorial letter contains important information


about your module.

BARCODE

university
Define tomorrow. of south africa
CONTENTS

Page

1 INTRODUCTION .................................................................................................................4
1.1 my Unisa ...............................................................................................................................4
1.2 Tutorial Matter.......................................................................................................................4
2 PURPOSE AND OUTCOMES ............................................................................................4
2.1 Purpose ...............................................................................................................................4
2.2 Outcomes ............................................................................................................................5
3 LECTURER(S) AND CONTACT DETAILS .........................................................................5
3.1 Lecturer(s) ...........................................................................................................................5
3.2 Department .........................................................................................................................6
3.3 University .............................................................................................................................6
4 RESOURCES ......................................................................................................................6
4.1 Prescribed book(s) ..............................................................................................................6
4.2 Recommended book(s) .......................................................................................................6
4.3 Electronic reserves (e-reserves) .........................................................................................6
4.4 Library services and resources information ........................................................................7
5 STUDENT SUPPORT SERVICES ......................................................................................7
6 STUDY PLAN ......................................................................................................................7
7 PRACTICAL WORK ...........................................................................................................9
8 ASSESSMENT ..................................................................................................................10
8.1 Assessment criteria......................................................................................................10
8.2 Assessment plan ...............................................................................................................11
8.3 Assignment numbers .........................................................................................................12
8.3.1 General assignment numbers ...........................................................................................12
8.3.2 Unique assignment numbers .............................................................................................12
8.4 Submission of assignments ...............................................................................................13
8.5 The assignments ...............................................................................................................13
8.6 Other assessment methods ..............................................................................................13
8.7 The examinations ..............................................................................................................13
8.7.1 Examination admission ......................................................................................................14
8.7.2 Examination period.............................................................................................................14

2
COS2633/101/3/2020

8.7.3 Examination paper .............................................................................................................14


9 FREQUENTLY ASKED QUESTIONS ...............................................................................14
10 IN CLOSING .....................................................................................................................15
11 ADDENDUM ......................................................................................................................16
ADDENDUM A: ASSIGNMENTS - SEMESTER 1 .......................................................................16
ADDENDUM B: ASSIGNMENTS - SEMESTER 2 .......................................................................25

3
1 INTRODUCTION
Dear Student

Welcome to the COS2633 module in the Department of Mathematical Sciences at Unisa. We trust
that you will find this module both interesting and rewarding.

Some of this tutorial matter may not be available when you register. Tutorial matter that is not
available when you register will be posted to you as soon as possible, but is also available on the
myUnisa module site.

1.1 myUnisa
The platform for teaching and learning at Unisa is my Unisa. You must be registered on my Unisa
(http://my.unisa.ac.za) to be able to submit assignments online, gain access to the library func-
tions, services and various learning resources, download study material, ”chat” to your lecturers
and fellow students about your studies and the challenges you encounter, and participate in on-
line discussion forums. my Unisa provides additional opportunities to take part in activities and
discussions of relevance to your module, assignments, marks and examinations.

1.2 Tutorial Matter


A tutorial letter is our way of communicating with you about teaching, learning and assessment.
You will receive a number of tutorial letters during the course of the module. This particular tutorial
letter contains important information about the scheme of work, resources and assignments for
this module as well as the admission requirements for the examination. We urge you to read
this and subsequent tutorial letters carefully and keep it at hand when working through the study
material, preparing and submitting assignments, preparing for the examination and addressing
queries that you may have about the course (course content, textbook, worked examples and
exercises, theorems and their applications in your assignments, tutorial and textbook problems,
etc.) to your COS2633 lecturers.

2 PURPOSE AND OUTCOMES


2.1 Purpose
This module is available as part of a major in Computer Science and Applied Mathematics. The
abbreviated syllabus comprises the numerical solution of nonlinear equations and systems of equa-
tions, the construction and use of interpolating polynomials, least squares approximation, numeri-
cal differentiation and integration.

In this module you will learn how to develop and use numerical methods to solve mathematical
problems by means of a computer. While the emphasis is on the more practical aspects, a good
mathematical background is essential. We therefore advise you to include second year mathemat-
ics, in particular MAT2611 and MAT2613, in your curriculum.

4
COS2633/101/3/2020

The module that follows Numerical Methods 1 is, of course, Numerical Methods 2 (APM3711)
which is also available as a subject in Computer Science and Applied Mathematics. Although nu-
merical methods are not dependent on any specific programming language, many software pack-
ages are available as an aid to the study of numerical methods. You are therefore expected to
learn one or two programming languages (like Matlab/Octave, Python, C++ or Maple) on your own
and to be able to write relatively simple programs/code in the language. Some of these software
packages are open source or have open source versions that you can download.

2.2 Outcomes
The broad outcomes for this module are as follows:

At the end of this module, you should be able to

1. Draw a rough graph of any given function.

2. Solve various types of nonlinear equations using different kinds of numerical methods and
interpret the results.

3. Solve sets of equations using a variety of numerical methods.

4. Construct interpolating polynomials and fit curves to given data.

5. Perform numerical differentiation and integration.

3 LECTURER(S) AND CONTACT DETAILS


3.1 Lecturer(s)
The primary lecturer for this module is Dr LC Masinga:

Department of Mathematical Sciences


Telephone: 011 670 1953
Email: [email protected]
Additional contact details for the module lecturers will be provided in a subsequent tutorial letter.

All queries that are not of a purely administrative nature but are about the content of this module
should be directed to your lecturer(s). Tutorial Letter 301 will provide additional contact details for
your lecturer. Please have your study material with you when you contact your lecturer by tele-
phone. If you are unable to reach us, leave a message with the departmental secretary (contact
details below). Provide your name, the time of telephone call and contact details. If you have
problems with questions that you are unable to solve, please send your own attempts so that the
lecturers can determine where the fault lies.

Please note: Letters to lecturers may not be enclosed with or inserted into assignments.

5
3.2 Department
You can contact the Department of Mathematical Sciences as follows:

Departmental Secretary: 011 670 9147 (SA) +27 11 670 9147 (International)
Emails: [email protected] [email protected]
Whenever you contact a lecturer, please include your student number to enable the lecturer to help
you more effectively.

3.3 University
If you need to contact the University about matters not related to the content of this module, please
consult the publication, Study @ Unisa that you received with your study material. This booklet
contains information on how to contact the University (e.g. to whom you can write for different
queries, important telephone and fax numbers, addresses and details of the times certain facilities
are open).

Remember to always have your student number at hand whenever you contact the University.

4 RESOURCES
4.1 Prescribed book(s)
Prescribed books can be obtained from the University official booksellers. If you have difficulty
locating your book(s) at these booksellers, please contact the Prescribed Books Section at (012)
429 4152 or e-mail [email protected]

Your prescribed book for this module is:

Title: Numerical Analysis


Author(s): R.L. Burden, D.J. Faires, A.M. Burden
Edition: 10th edition
Publisher(s): Cengage Learning
Year: 2016
ISBN: 978-1-305-25366-7
Please buy the textbook as soon as possible since you have to study from it directly - you cannot
do this module without the prescribed textbook.

4.2 Recommended book(s)


There are no recommended books for this module.

4.3 Electronic reserves (e-reserves)


There are no electronic e-reserves for this module

6
COS2633/101/3/2020

4.4 Library services and resources information


The Unisa Library offers a range of information services and resources:

• for detailed Library information go to


http://www.unisa.ac.za/sites/corporate/default/Library

• for research support and services (e.g. personal librarians and literature search
services) go to
http://www.unisa.ac.za/sites/corporate/default/Library/Library-
services/Research-support

The Library has created numerous Library guides: http://libguides.unisa.ac.za

Recommended guides:
• find recommended reading in the print collection and e-services:
http://libguides.unisa.ac.za/request/undergrad

• request and download recommended material:


http://libguides.unisa.ac.za/request/request

• postgraduate information services:


http://libguides.unisa.ac.za/request/postgrad

• finding, obtaining and using library resources and tools to assist in doing research:
http://libguides.unisa.ac.za/Research_skills

• how to contact the Library/find us on social media/frequently asked questions


about the Library:
http://libguides.unisa.ac.za/ask

• Services to students living with disabilities:


http://libguides.unisa.ac.za/disability

5 STUDENT SUPPORT SERVICES


The Study @ Unisa brochure is also available on myUnisa: www.unisa.ac.za/brochures/studies

This brochure has all the tips and information you need to succeed at distance learning and, specif-
ically, at Unisa.

6 STUDY PLAN
The sections of the tenth edition that are prescribed for examination purposes are:

• Chapter 2: sections 2.1 - 2.6 (Solutions of Equations in One Variable);

• Chapter 3: sections 3.1 - 3.7 (Interpolation and polynomial approximation);

7
• Chapter 4: sections 4.1 - 4.9 (Numerical Differentiation and Integration);
• Chapter 6: sections 6.1 - 6.5 (Direct Methods for Solving Linear Systems);
• Chapter 7: sections 7.1, 7.3 - 7.5 (Iterative Techniques in Matrix Algebra);
• Chapter 8: section 8.1 (Discrete Least Squares Approximation);
• Chapter 10: section 10.2 (Newton’s Method for Nonlinear Systems of Equations)

Although listed in this sequence, the textbook suggests a plan of going through the syllabus for a
coherent flow of concepts. (see Preface of the textbook)

In addition to the textbook you should also study the following:


• Tutorial Letter 102, the use of which we discuss in the preface.
• Additional resources, which may contain a diversity of material deemed fit to enhance your
study. You are advised to check the Additional Resources folder of the myUnisa module site
for material that is uploaded from time to time. This folder contains additional material like
Lecture Notes and any material aimed at enhancing your study journey.
• Tutorial Letters, which include detailed discussions and model solutions of the assignments.
The assignments and the corresponding tutorial letters are important since they give you an
idea of what is expected of you with regard to the types of problems to be solved, and their
solutions. Please note, however that you should not rely solely on the tutorial letters for your
exam preparation. The examination covers the whole syllabus, theory as well as practice,
and you should prepare accordingly. We also give additional explanations in these letters.

The tutorial letters are dispatched to you in the course of the year as they become available
and will also be downloadable from the internet.
• Inventory for the current academic year that you received on registration and which lists the
items available from the Department of Dispatch in Pretoria or the regional offices at the time
of registration. Please check the tutorial matter you have received against this inventory and,
if necessary, take appropriate action to contact the Department of Dispatch.
You should read the entire Tutorial Letter 102, before working through the textbook. You should
work through the sections of the prescribed textbook in the order indicated in Table 1 or 2 and
submit assignments 1, 2 and 3 before the respective due dates as indicated in this Tutorial Letter.

See the brochure Study @ Unisa for general time management and planning skills.

Here is a broad outline of how to plan for your study:


• Tutorial Letter 102, to be studied in addition to the textbook, the use of which we discuss in
its preface.
• Suggested Study Programme
See Table 1 and 2 below.

8
COS2633/101/3/2020

Semester 1
Period Assignment Textbook
(due date) (10th ed.)
20/01 - 26/02 1 (26/02) Study Chapters 1 and 2
26/02 - 23/04 2 (23/04) Study Chapters 3,4,6,7,
8.1,10.2
20/01 - 26/04 3 (26/04) Study all chapters
26/04 - examination date: Revision

Table 1: Suggested study programme for Semester 1

Semester 2
Period Assignment Textbook
(due date) (10th ed.)
15/07 - 04/08 1 (04/08) Study chapters 1 and 2
04/08 - 25/09 2 (30/09) Study chapters 3,4,6,7,
8.1,10.2
15/07 - 05/10 3 (04/10) Study all chapters
05/10 - examination date: Revision

Table 2: Suggested study programme for Semester 2

• Tutorial Letters, which include detailed discussions and model solutions of the assignments.
the assignments and the corresponding tutorial letters are important since they give you an
idea of what we expect of you with respect to the types of problems to be solved, and their
solutions. The examination covers the whole syllabus, theory as well as practice, and you
should prepare accordingly. We also give additional explanations in these letters.
The tutorial letters are dispatched to you in the course of the year as they become available
and will also be downloadable from the internet. It is important to check my Unisa regularly.

• Inventory for the current academic year that you receive on registration and which lists the
items available from the Department of Dispatch in Pretoria or the regional centres at the time
of registration. Please check the tutorial matter you have received against this inventory and,
if necessary, take appropriate action contacting the Department of Dispatch.

You should read the entire tutorial letter 102, before working through the textbook. You should work
through the sections of the prescribed textbook in the suggested order and submit assignments 1,
2, and 3 before the respective due dates.
See the brochure Study @ Unisa for general time management and planning skills.

7 PRACTICAL WORK
There is no practical work in this module.

9
8 ASSESSMENT
8.1 Assessment criteria
Specific Outcome 1: Be able to draw a rough graph of any given function.

Assessment criteria
• Ability to extract relevant information for a function, including existence, discontinuities, sin-
gularities, symmetries, boundedness, behaviour at very small and very large values of x,
behaviour at 0, roots and zeros, turning points, etc.
Specific Outcome 2: Be able to solve different nonlinear equations using different numerical
methods and interpret the results.
Numerical techniques include (but are not limited to) bisection, fixed-point iteration, Newton’s
method and its extensions:secant and regula falsi methods, analysis of convergence and error,
zeros of polynomials and Muller’s method.

Assessment criteria
• give a mathematical formulation of a method;
• identify and understand the meaning of terms in a formulated method;
• perform a few iterations of a numerical method;
• study convergence of a numerical method;
• estimate error of approximation ...
Specific Outcome 3: Be able to solve sets of equations using different numerical methods.
Methods include (but are not limited to) Gaussian elimination, pivoting strategies and matrix fac-
torisation, Jacobi, Gauss-Seidel and SOR iterative techniques, Newton’s method for functions of
several variables.

Assessment criteria

• give a mathematical formulation of a method;


• identify and understand the meaning of terms in a formulated method;
• perform a few iterations of a numerical method;
• study convergence of a numerical method;
• estimate error of approximation ...

Specific Outcome 4: Be able to construct interpolating polynomials and fit curves to given data.
Methods include (but are not limited to) interpolation and Lagrange polynomials, difference meth-
ods, Hermite interpolation, cubic splines, parametric curves, data approximation, discrete least
squares approximation.

Assessment criteria

10
COS2633/101/3/2020

• give a mathematical formulation of a method;

• identify and understand the meaning of terms in a formulated method;

• estimate error of approximation ...

Specific Outcome 5: Be able to perform numerical differentiation and integration.


Methods include (but are not limited to)

• Differentiation: forward difference, backward difference, centered difference and their vari-
ous refinements;

• Integration: trapezoidal rule, Simpson’s rules, mid-point rule, Gaussian quadrature, . . . (standard,
composite, mixed, . . . formats)

Assessment criteria

• give a mathematical formulation of a method;

• identify and understand the meaning of terms in a formulated method;

• estimate error of approximation ...

8.2 Assessment plan


Assessment of this module comprises of both formative in the form of assignments, and summative
assessment in the form of a written examination.

A final mark of at least 50% is required to pass the module. If a student does not pass the module
then a final mark of at least 40% is required to permit the student to access the supplementary
examination.

The final mark for the module comprises the formative/semester mark and the examination mark.
The final mark composition is as follows:

Formative

Formative assessment comprises assignments as follows:

Assignment Number Type of assignment Contribution to the final semester mark (%)
01 MCQ 20
02 Written 60
03 Written 20
Total 100

Summative

There will be a written examination. The details of the dates and duration are published by the
Examinations Department.

11
Final Mark

The final mark will be a composition of the semester mark and the examination mark, composed
as follows:
Type of assessment Contribution to the final mark (%)
Formative 20
Summative 80
Final mark total 100

Example A student obtains the following marks:


Assignment 01: 55%
Assignment 02: 100%
Assignment 03: 65%
Exam: 58%
The year/semester (formative) mark is
55 × 20 + 100 × 60 + 65 × 20
= 84%
100
The final mark for the module is
 
20 80
× 84 + × 58 , i.e. (16.8 + 46.4 = 63.2),
100 100
Please note that the 20% contribution by the assignments makes it extremely important that you
do all the assignments and score high marks, otherwise it is impossible for you to pass the module.

8.3 Assignment numbers


8.3.1 General assignment numbers
The assignments for this module are Assignment 01, Assignment 02, etc.

8.3.2 Unique assignment numbers


Please note that each assignment has a unique 6-digit assignment number (e.g. 102717), which
must be written on the cover of your assignment. The assignment numbers, their unique numbers
and their due dates are given below:

Semester 1
Assignment Number Unique Number Due date
01 770453 26 February 2020
02 635915 23 April 2020
03 579341 28 April 2020

Semester 2
Assignment Number Unique Number Due date
01 814970 7 August 2020....
02 658219 30 September 2020....
03 642183 4 October 2020....

12
COS2633/101/3/2020

8.4 Submission of assignments


You may submit your assignments either by post or electronically via myUnisa (recommended).
Assignments may NOT be submitted by fax or email.

For detailed information on assignments, please refer to the Study @ Unisa


brochure which you received with your study package.

Please make a copy of your assignment before you submit it !

To submit an assignment via myUnisa:

• Go to my Unisa.

• Log in with your student number and password.

• Select the module.

• Click on “Assignments” in the menu on the left-hand side of the screen.

• Click on the assignment number you wish to submit.

• Follow the instructions.

8.5 The assignments


Please make sure that you submit the correct assignment for the relevant module and period (First
Semester, Second Semester or year module) for which you have registered. For each assignment
there is a fixed closing date, the date at which the assignment must reach the University. When
appropriate, solutions for each assignment will be dispatched, as Tutorials Letter 201 (for Assign-
ment 01) and Tutorial Letter 202 (for Assignment 02), etc. a few days after the closing date. The
solutions will also be available on myUnisa. late assignments will not be marked!

Note that Assignment 01 is the compulsory assignment for admission to the examination
and must reach us by the due date.

8.6 Other assessment methods


There are no other assessment methods for this module than those indicated in this Tutorial Letter.

8.7 The examinations


During the relevant semester, the examination Section will provide you with information regarding
the examination in general, examination venues, examination dates and examination times. For
general information and requirements as far as examinations are concerned, see the brochure

13
Study @ Unisa.

8.7.1 Examination admission


Please note the following important details about the final examination;

• You will not be admitted to the examination without submitting an assignment, I therefore
strongly advise you to ensure that the first assignment is in on time for you to gain exam
admission.

• If you score less than 40% in the final examination, the year/semester mark will not be used
to give you a pass.

• The minimum final mark which is required to qualify for a supplementary examination will be
40%. The supplementary examination for 2020 will be written as indicated in the above table.
Please confirm the date and venues on the Unisa website.

• There is no other exam opportunity other than the supplementary examination but a new
enrollment for repeat learning in the module.

8.7.2 Examination period


This module is a semester module. This means that you will write the examination in May/June or
October/November 2020. Supplementary examination dates will be provided by the Examination
Section, according to the periods indicated in the above table.
Here is a guide of the examination periods for the respective registration periods:

Registered for . . . Examination period Supplementary examination period


1st semester module May/June 2020 October/November 2020
2nd semester module October/November 2020 May/June 2021

Specific dates are provided by the Examination Department on the appropriate Unisa websites.

8.7.3 Examination paper


The exam consists of a two hour paper. Note that you are only allowed to use a non-programmable
calculator in the exam.
General guidelines for examinations are published under the Examinations section of the Univer-
sity website.

Information on the examination


The material you have to study for examination purposes is stated clearly in the Assessment sec-
tion of this Tutorial Letter. This comprises the scope of the examination.

9 FREQUENTLY ASKED QUESTIONS


The Study @ Unisa brochure contains an A-Z guide of the most relevant study information.

14
COS2633/101/3/2020

10 IN CLOSING
Remember, you are important to us and we are very willing and available to assist you with your
course content related problems. We hope that you will enjoy COS2633 and we wish you all the
best in your studies at Unisa!

Our best wishes,


Your COS2633 lecturer(s).

15
11 ADDENDUM

ADDENDUM A: ASSIGNMENTS - SEMESTER 1


COMPULSORY ASSIGNMENT FOR EXAM ADMISSION

ASSIGNMENT 01
Due date: 26 February 2020
UNIQUE ASSIGNMENT NUMBER: 770453
Total Marks: 100

ONLY FOR SEMESTER 1


This assignment covers Basic theory of functions material and iterative methods for
solving nonlinear equations of one variable, error analysis for iterative methods.

IMPORTANT

• This is a multiple choice assignment. ALL the questions must be answered on a mark
reading sheet which you then post to the University. Before answering this assignment,
consult the publication Study @ Unisa on how to use and complete a mark reading sheet.
You may, however, choose to complete and submit the assignment online, using myUnisa.

• Keep your rough work so that you can compare your solutions with those that will be sent to
you after the closing date.

• 10 marks will be awarded for every correct answer.

Question 1: [40 Marks]


In this question we consider two curves y1 = 8 sin x and y2 = ex + 4. We want to investigate the
behaviour of y1 and y2 .

Note: The arguments of y1 are given in radians.


Hint: Do exactly 3 iterations for the iterative method x = g(x) wherever needed.

(1.1) Select the correct answer. (10)

(1) The function y2 is continuous and symmetric with respect to the y-axis.
(2) The function y1 is not symmetric with respect to the y-axis and is not bounded.
(3) y1 and y2 both have continuous first derivatives.
(4) y2 has a turning point.
(5) None of the above is true.

(1.2) Select the correct answer. (10)

(1) Using the Bisection method, one needs 10 iterations to find the intersection points of y1
and y2 up to five significant figures, starting with the interval [−1, −5].

16
COS2633/101/3/2020

(2) It is not possible to determine the number of iterations in option (1).


(3) Using the Bisection method, one needs 10 iterations to find the intersection points of y1
and y2 up to three significant figures, starting with the interval [−5, −3].
(4) y1 and y2 have exactly one intersection point for small values of x.
(5) None of the above is true.

Now we consider using the method x = g(x) to find the intersection points of the above
curves.

(1.3) Select the correct condition that guarantees the convergence of this method to a root r. (10)

(1) g(x) and g 0 (x) are continuous on an interval about r


(2) Option (1) above is true, but the condition g 0 (x) > 1 for all x in the interval is also required.
(3) Option (1) above is true, but the interval should contain the initial value x0 .
(4) Option (1) above is true, but the condition |g 0 (x)| < 1 for all x in the interval is also
required.
(5) Option (3) above is true, but the condition |g 0 (x)| < 1 for all x in the interval is also
required.

(1.4) Let f (x) = 8 sin x − ex − 4. Which of the following is correct in applying Newton’s method to
solve the equation f (x) = 0? (10)
xn − 8 sin x + ex + 4
(1) The algorithm is xn+1 = , which converges to 1.3235 in 5 iterations
8 cos x − ex
with x0 = 1.5
8 sin x − ex − 4
(2) The algorithm is xn+1 = xn − , and it converges to 1.3235 in 5 at most 6
8 cos x − ex
iterations with x0 = −7.
8 sin x + ex + 4
(3) The algorithm is xn+1 = xn − , and it converges to 0.9918 after at least 6
8 cos x − ex
iterations with x0 = 0.
8 cos x − ex
(4) The algorithm is xn+1 = xn + , and it converges to 1.3235 after 5 iterations
8 sin x + ex
with x0 = −1.5.
8 sin x − ex − 4
(5) The algorithm is xn+1 = xn − , and it converges to 1.3235 in 5 at most 6
8 cos x − ex
iterations with x0 = 0.

Question 2: [30 Marks]


Consider the function f (x) = xex − 2. We want to study the properties of f (x) so that we can apply
numerical methods to solve the equation f (x) = 0.

(2.1) To have an idea on whether we should apply the regula falsi method to determine the root of
f (x) = 0 in a given interval, we may: (10)

(1) study carefully the continuity of f (x) and f 0 (x) then conclude;

17
(2) check if f (x) and f 0 (x) are differentiable then conclude;
(3) draw the graph of f (x) and observe the graphs then conclude;
(4) apply the functions, f (x) to a finite set of sample values then conclude;
(5) none of the above is true.

(2.2) Applying the regula falsi method, with starting points x0 = 0.5 and x1 = 1 yields the following
result: (10)

(1) 0.847977577064 after at most two iterations


(2) 0.852551206774 after exactly four iterations
(3) 0.852604865962 after exactly four iterations
(4) 0.852599625362 after at least five iterations
(5) all of the above are true

(2.3) Applying the secant method, with starting values x0 = 0.5 and x1 = 1 yields the following
result: (10)

(1) 0.810371774952 after at least three iterations


(2) 0.852604956977 after exactly four iterations
(3) 0.852758254751 after exactly two iterations
(4) 0.847977577064 after at most one iteration
(5) All the above are true

Question 3: [30 Marks]


The function f (x) = x4 − 2x3 − 5x2 + 12x − 5 has four distinct roots.
(3.1) Which option is false? (10)

(1) f (x) has no singularities and no obvious symmetries and f (0) = −5.
(2) f 0 (x) = 4x3 − 6x2 − 10x + 12, f 00 (x) = 12x2 − 12x − 10, and f 000 (x) = 24x − 12
(3) f 00 (x) has a local extremum at x = 0.5.
(4) The two zeros for f 00 (x) are −0.5417 and 1.5417.
(5) f 00 (x) has a local maximum at x = 0.5

(3.2) Applying Muller’s method to compute the zeros of f (x) yields the following result: (10)

(1) −2.4321 with the starting points x2 = −3.5, x0 = −2.5 and x1 = −1.5;
(2) 0.5798 with the starting points x0 = −0.25, x1 = 1 and x2 = −1.5;
(3) 1, 5206 with the starting points x2 = 1, x0 = 1.5 and x1 = 2;
(4) 2.3316 with the starting points x1 = 4, x0 = 3 and x2 = 2
(5) All of the above.

(3.3) Select the appropriate option: (10)

18
COS2633/101/3/2020

(1) Muller’s method determines the next approximation by considering the intersection of a
parabola and the x-axis through three given points.
(2) The secant method yields a complex root even when initial approximation is a real num-
ber.
(3) The secant method and Muller’s method are similar in the sense that they both start with
two initial points.
(4) All of the above.
(5) None of the above.

19
ASSIGNMENT 02
Due date: 23 April, 2020
UNIQUE ASSIGNMENT NUMBER: 635915
Total Marks: 120

ONLY FOR SEMESTER 1

This assignment covers:


Systems of Linear Equations: Direct methods and pivoting strategies, Indirect
methods and Error bounds; Interpolation: Lagrange polynomials, Difference
methods, Hermite interpolation, Cubic splines, Parametric curves, Data ap-
proximation; Discrete least-squares approximation; Numerical differentiation
and integration.

Question 1: 40 marks
Consider the linear system
1.19x1 + 2.11x2 − 100x3 + x4 = 1.12
14.2x1 − 0.122x2 + 12.2x3 − x4 = 3.44
100x2 − 99.9x3 + x4 = 2.15
15.3x1 + 0.110x2 − 13.1x3 − x4 = 4.16

(1.1) Write the system as a matrix equation. (2)


(1.2) Solve the system using:
(a) Gaussian elimination without pivoting. (5)
(b) Gaussian elimination with scaled partial pivoting. (5)
(c) LU decomposition. (5)
(1.3) Determine the number of arithmetic operations (multiplication, divisions and additions) in
(1.2)(a) above. (3)
(1.4) Suppose we are to solve the equation
Ax = b.
We solve this by
1 1 1
x= b= ωb = ωb
A ωA 1−r
where ω 6= 0 is some real number chosen to weight the problem appropriately, and r = 1−ωA.
Now suppose that ω is chosen such that |r| < 1 and A 6= 0. Then the following geometric
expansion holds:
1
= 1 + r + r2 + r3 + . . .
1−r

20
COS2633/101/3/2020

This gives approximate solution to our problem as,

x ≈ [1 + r + r2 + r3 + · · · + rk ]ωb
= ωb + [r + r2 + r3 + · · · + rk ]ωb
= ωb + r[1 + r + r2 + r3 + · · · + rk−1 ]ωb

This suggests an iterative approach to solving the system Ax = b. Let x(0) = ωb be the initial
estimate of the solution, then for the kth iterate we have

x(k) = ωb + rx(k−1)
= ωb + (I − ωA)x(k−1)

If |r| < 1 then the iterate is guaranteed to converge to the true solution.
For some matrix , M and some scaling factor ω, we obtain the following algorithm

M x(k) = ωb + (M − ωA)x(k−1) .

In the following computations use four-digit arithmetic with truncation not rounding and do
three iterations, starting with x(0) = (1, 3, 2, 4)t

(a) (10)
(i) Let A be the matrix from (1.1) and ω = 1, then solve the sytem by choosing M to be
the matrix consisting of the diagonal of A. [4]
(ii) Solve the system using the Jacobi method. [4]
(iii) Compare and comment on the two solutions. [2]
(b) (10)
(i) Let A be the matrix from (1.1) and ω = 1, then solve the system by choosing M to
be the lower triangular part of A including the diagonal entries. [4]
(ii) Solve the system using the Gauss-Seidel method. [4]
(iii) Compare and comment on the two results. [2]
(c) Solve the system in (1.1) using the Successive Over-Relaxation technique with ω = 0.5.
[4]
(d) Which of the iterative methods do you prefer and why? (1)

Question 2: 6 marks
Use Gaussian-type elimination method and work exactly to compute the inverse of
 3 5

−4 4
1
P =  45 7
4
1 
1 −1 −1

21
Question 3: 9 marks
The nonlinear system

x1 + 2x2 = 3
3x1 + x22 = 5

has two solutions.

3.1 Approximate the solutions graphically. (2)

3.2 Use the approximations from part (3.1) as initial approximations for Newton’s method to cal-
culate solutions with an accuraacy of 10−3 in the maximum-magnitude l∞ norm. (7)

Question 4: 20 marks
Consider the following data:
x f (x) f 0 (x)
0.1 −0.62049958 3.58502082
0.2 −0.28398668 3.14033271
0.3 0.00660095 2.66668043
0.4 0.24842440 2.16529366

(4.1) Find an approximation to f (0.37) using the following forms of interpolating polynomial

(a) the Lagrange form. (6)


(b) the Newton backward divided difference form. (6)
(c) the Hermite form. (6)

(4.2) Comment on your observed comparison of the results. (2)

Question 5: 12 marks
Consider the data below:
Flow rate Pressure
94 10
118 16
147 25
180 40
230 60

(5.1) From a theoretical consideration, it is suspected that the rate of flow from a fire hose is
proportional to some power of pressure at the nozzle. Do these data confirm that? (2)

(5.2) Get the least-squares values for the exponent and the proportionality factor. (8)

(5.3) Use the least-squares function to approximate the pressure when the rate of flow is 200. (2)

22
COS2633/101/3/2020

Question 6: 15 marks
Let (x0 , y0 ) = (0, 0) and (x1 , y1 ) = (5, 2) be the end points of a curve. Use the following guide points
to construct parametric cubic approximations (x(t), y(t)). Graph the cubic Bezier polynomials.

(6.1) (1, 1) and (6, 1); (5)

(6.2) (0.5, 0.5) and (5.5, 1.5); (5)

(6.3) (2, 2) and (6, 3). (5)

Question 7: 18 marks
Consider the integral Z 1
4
I= dx
0 1 + x2
(7.1) Compute an approximation to I by means of:
1
(a) Simpson’s 3
rule. (3)
1
(b) The trapezoidal rule, with h = 4
. (4)
(c) A three-term Gaussian quadrature formula. (6)

(7.2) Estimate the respective truncation errors in (7.1(a)) and (7.1(b)). (2)

(7.3) Determine the integral analytically and then compute the actual error in (7.1(c)). (3)

23
ASSIGNMENT 03
Due date: 28 April, 2020
UNIQUE ASSIGNMENT NUMBER: 579341

ONLY FOR SEMESTER 1

Assignment 3 comprises your participation in the online discussion forum through-


out the semester. Details of the discussion topics/questions will be posted under
the Discussions folder of my Unisa. You are advised to watch this folder for new
discussions.

24
COS2633/101/3/2020

ADDENDUM B: ASSIGNMENTS - SEMESTER 2

COMPULSORY ASSIGNMENT FOR EXAM ADMISSION

ASSIGNMENT 01
Due date: 07 August, 2020
UNIQUE ASSIGNMENT NUMBER: 814970
Total Marks: xxx

ONLY FOR SEMESTER 2

This assignment covers:


Basic theory of functions material and iterative methods for solving nonlinear
equations of one variable, error analysis for iterative methods.

IMPORTANT

• This is a multiple choice assignment. ALL the questions must be answered on a mark
reading sheet which you then post to the University. Before answering this assignment,
consult the publication Study @ Unisa on how to use and complete a mark reading sheet.
You may, however, choose to complete and submit the assignment online, using myUnisa.

• Keep your rough work so that you can compare your solutions with those that will be sent to
you after the closing date.

• 10 marks will be awarded for every correct answer.

Question 1: 30 marks
(1.1) Which of the following statements about the function given by f (x) = x4 − 2x3 is true? (10)

(1) The function has no relative extremum.


(2) The graph of the function has one point of inflection and the function has two relative
extrema.
(3) The graph of the function has two points of inflection and the function has one relative
extremum.
(4) The graph of the function has two points of inflection and the function has two relative
extrema.
(5) The graph of the function has two points of inflection and the function has three relative
extrema.

25
(1.2) The position of a particle moving along a line is given by s(t) = 2t3 − 24t2 + 90t + 7 for t ≥ 0.
For what values of t is the speed of the particle increasing? (10)

(1) 3 < t < 4 only


(2) t > 4 only
(3) t > 5 only
(4) 0 < t < 3 and t > 5
(5) 3 < t < 4 and t > 5

(1.3) The function f (x) = x4 − 2x3 − 5x2 + 12x − 5 has four distinct roots. Applying Muller’s method
to compute the roots of f (x) yields the following results: (10)

(1) All of the below


(2) 0.5798 with starting points x2 = −1.5, x0 = −0.25 and x1 = 1
(3) 1.5206 with the starting points x2 = 1, x0 = 1.5 and x1 = 2
(4) 2.3316 with the starting points x2 = 2, x0 = 3 and x1 = 4
(5) −2.4321 with starting points x2 = −3.5, x0 = −2.5 and x1 = −1.5

Question 2: 30 marks
In this question we consider two curves y1 = 8 sin x and y2 = ex + 4. We want to investigate the
behaviour of y1 and y2 .
Note: The arguments of y1 are given in radians.
Hint: Do exactly 3 iterations for the iterative scheme x = g(x) wherever needed.
(2.1) Which of the following is correct. (10)

(1) y1 and y2 intersect in exactly two points.


(2) The only reasonable way to know the number of intersection points of y1 and y2 is to use
an appropriate approximation technique to solve the equation y1 = y2 .
(3) y1 and y2 do not intersect.
(4) y1 and y2 have infinitely many points of intersection.
(5) (2) and (4) above.

(2.2) Select the appropriate answer. (10)


ex + 4
 
−1
(1) The functions g1 (x) = sin and g2 (x) = ln(4(2 sin x − 1)) are not suitable to
8
0
apply
 π πthe iterative scheme x = g(x) because g1 (x) is not continuous on the interval
− 2 , 2 and g2 (x) has a discontinuity on the interval [0, 1].
(2) g2 (x) is not appropriate to find the intersection point of y1 and y2 using the x − g(x)
method.
π
(3) g1 (x) converges to complex fixed point with as the starting point.
2
π
(4) g1 (x) converges with as the starting point.
6

26
COS2633/101/3/2020

(5) None of the above is correct.

(2.3) Select the appropriate answer. (10)

(1) Applying Aiken’s acceleration technique to improve the x = g(x) method either in the
case of x = g1 (x) or x = g1 (x) does not make sense because wherever we expect
convergence for g1 (x) and g2 (x), we get it quickly.
(2) The Aiken’s acceleration technique is in general not applicable to the iterative scheme,
x = g(x).
(3) The Aiken’s acceleration technique is just not applicable here because the problem of
finding the intersection of y1 and y2 is not directly related to the x = g(x) scheme.
(4) Applying Aitken’s acceleration technique to improve the fixed-point iterative scheme, x =
g(x) may help to improve the method in some cases but not all.
(5) None of the above is correct.

Question 3: 40 marks
The sum of two numbers is 20. If each number is added to its square root, the product of the two
sums equals 155.55. We want to determine the two numbers to within 10−4 .

(3.1) The two numbers, say x and y can be determined by: (10)

(1) simply using a non-programmable calculator


√ √
(2) solving the equation (x + x)(10 − x + 20 − x) = 0 then deduce the value of y from the
equation y = 20 − x
√ √
(3) solving the equation (x − x)(20 + x + 20 − x) = 0 then deduce the value of y from the
equation y = 20 − x
√ √
(4) solving the equation (x + x)(20 − x + 20 + x) = 0 then deduce the value of y from the
equation y = 20 − x
(5) None of the above

(3.2) Applying Newton’s method to the appropriate equation yields the following result: (10)

(1) The scheme converges to p = 3.5128487261 with the starting point 2


(2) The scheme converges to p = 6.4859804709 with the starting point 0
(3) The scheme converges to p = 6.5128487261 with the starting point 1
(4) The scheme converges to p = 1.4859804845 with the starting point 1
(5) None of the above

(3.3) Applying the regula falsi method to the same equation used for Newton’s method above,
starting with x0 = 2 and x1 = 7, yields the following result: (10)

(1) pi = 5.4710796427 after at least two iterations


(2) pi = 2.5079661169 after exactly four iterations
(3) pi = 6.5079702516 after about fourteen iterations

27
(4) pi = 6.5279551155 after at least seven iterations
(5) None of the above

(3.4) From the result obtained by applying the two methods: Newton’s and Regula-falsi, we infer
that: (10)

(1) Newton’s method performed fewer iterations than the other method
(2) the regula falsi method performed fewer iterations than Newton’s method
(3) none of the two methods performed better than the others
(4) the two methods cannot be compared because of different starting points
(5) None of the above

28
COS2633/101/3/2020

ASSIGNMENT 02
Due date: 30 September, 2020
UNIQUE ASSIGNMENT NUMBER: 658219
Total Marks: 100
ONLY FOR SEMESTER 2

This assignment covers:


Systems of Linear Equations: Direct methods and pivoting strategies,
Indirect methods and Error bounds; Interpolation: Lagrange polynomials,
Difference methods, Hermite interpolation, Data approximation, Cubic
splines, Parametric curves; Discrete least-squares approximation; Numerical
differentiation and integration.

Question 1: 15 marks
Consider the linear system
0.05x1 + 0.07x2 + 0.06x3 + 0.05x4 = 0.23
0.07x1 + 0.10x2 + 0.08x3 + 0.07x4 = 0.32
0.06x1 + 0.08x2 + 0.10x3 + 0.09x4 = 0.33
0.05x1 + 0.07x2 + 0.09x3 + 0.10x4 = 0.31
(1.1) Write the system in matrix equation form. (2)
(1.2) Solve the the system using four decimal arithmetic with truncation (not rounding) by: (11)
(a) Gaussian elimination without pivoting. [4]
(b) Gaussian elimination with scaled partial pivoting. [4]
(c) LU decomposition. [3]
(1.3) Compute the total number of arithmetic operations in (1.1)(a). (2)

Question 2: 25 marks
Suppose we are to solve the equation
Ax = b.
We solve this by
1 1 1
x= b= ωb = ωb
A ωA 1−r
where ω 6= 0 is some real number chosen to weight the problem appropriately, and r = 1−ωA. Now
suppose that ω is chosen such that |r| < 1 and A 6= 0. Then the following geometric expansion
holds:
1
= 1 + r + r2 + r3 + . . .
1−r

29
This gives approximate solution to our problem as,

x ≈ [1 + r + r2 + r3 + · · · + rk ]ωb
= ωb + [r + r2 + r3 + · · · + rk ]ωb
= ωb + r[1 + r + r2 + r3 + · · · + rk−1 ]ωb

This suggests an iterative approach to solving the system Ax = b. Let x(0) = ωb be the initial
estimate of the solution, then for the kth iterate we have

x(k) = ωb + rx(k−1)
= ωb + (I − ωA)x(k−1)

If |r| < 1 then the iterate is guaranteed to converge to the true solution.
For some matrix , M and some scaling factor ω, we obtain the following algorithm

M x(k) = ωb + (M − ωA)x(k−1) .

In the following computations use four-digit arithmetic with truncation not rounding and do three
iterations, starting with x(0) = (1, 3, 2, 4)t .

(2.1) Let A be the matrix from (1.1). (10)

(a) Solve the system by choosing M to be the matrix consisting of the diagonal of A and
ω = 1. [4]
(b) Solve the system using the Jacobi method. [4]
(c) Compare and comment on the two solutions. [2]

(2.2) Let A be the matrix from (1.1). (10)

(a) Solve the system by choosing M to be the lower triangular part of A including the diag-
onal entries, and ω = 1. [4]
(b) Solve the system using the Gauss-Seidel method. [4]
(c) Compare and comment on the two results. [2]

(2.3) Solve the system in (1.1) using the Successive Over-Relaxation technique with ω = 0.5. (4)

(2.4) Which of the iterative methods do you prefer and why? (1)

Question 3: 10 marks
(3.1) Consider the matrix (4)
 
3 5 1
A =  −1 3 2 
a b −1

Find values of a and b that make A nonsingular.

30
COS2633/101/3/2020

(3.2) Consider the non-linear system (6)


2
ex + y 2 = 5
x3 + y 3 = 2
Write a computer code for using the Newton method to approximate the solution. Use your
code to find an approximate solution, using (0, 0) as the initial solution correct to 4 decimal
places.

Question 4: 15 marks
Consider the following data table:
x f (x)
0.5 −1.1518
−0.2 0.7028
0.7 −1.4845
0.1 −0.14943
0.0 0.13534
(4.1) Use a third degree Lagrange interpolating polynomial to approximate f (0.55). (6)
(4.2) Construct a divided-difference table from the data (without ordering the data) and use a sec-
ond degree Newton’s forward-divided difference formula to approximate the value of f (0.55).
(7)
(4.3) Compare and comment about the result of the approximations in (4.1)-(4.2). (2)

Question 5: 15 marks
Consider the following table:
x y
1.0 1.84
1.1 1.96
1.3 2.21
1.5 2.45
1.9 2.94
2.1 3.18
(5.1) Find the least squares polynomial of degree one and two for the above data. (10)
(5.2) From the normal equations to be solved to find a least-squares polynomial of degree three
for the above data, set up the equations for the Gauss-Seidel algorithm to approximate the
third degree least-squares polynomial. (5)

Question 6: 15 marks
Consider the following data table
d
x cos x dx
= − sin x
(cos x)
0.30 0.95534 −0.29552
0.32 0.94924 −0.31457
0.35 0.93937 −0.34290

31
(6.1) Use the above values and five-digit arithmetic with rounding to construct a cubic spline Q with
boundary conditions (6)

Q0 (x0 ) = f 0 (x0 ) and Q0 (xn ) = f 0 (xn )

which forces the slope of the spline to assume certain values (in our case the values f 0 (x0 )
and f 0 (xn ), respectively) at the two boundaries. Use this spline to approximate cos 0.34.

(6.2) Determine the error for the approximation in (6.1). (3)

(6.3) Use the spline constructed in (6.1) to approximate sin 0.34. (3)

(6.4) Use the spline constructed in (6.1) to approximate (3)


Z 0.35
cos x dx
0.30

Question 7: 15 marks
(7.1) Consider the function f (x) = x sin x. Apply Richardson extrapolation to obtain f 00 (0.32) accu-
rate to five significant figures. Start with h = 0.1 and use central differences. (5)

(7.2) Use a four-term Gaussian quadrature and six-decimal precision to approximate the integral
(10) Z 3
ex dx
0

What is the actual error in the approximation?

32
COS2633/101/3/2020

ASSIGNMENT 03
Due date: 04 October, 2020
UNIQUE ASSIGNMENT NUMBER: 642183

ONLY FOR SEMESTER 1

Assignment 3 comprises your participation in the online discussion forum through-


out the semester. Details of the discussion topics/questions will be posted under the
Discussions folder of myUnisa. You are advised to watch this folder for new discus-
sions.

33

You might also like