Assesmment APM
Assesmment APM
APM2613
Year module
IMPORTANT INFORMATION:
This Assignment 2 of APM2613 covers direct and indirect
methods of solutions of linear systems. There is a question
related to solving nonlinear systems by Newton’s method. The
relevant sections are as outlined in Tutorial Letter 101. Lessons
3 and 4 will give highlights of the relevant concepts.
Note: This is a fully online module and therefore it is only available on myUnisa.
BARCODE
university
Define tomorrow. of south africa
PLEASE NOTE:
In working out the following exercises, you can use Matlab/Octave to compute but the essential
steps in the computations must be written out. Unless otherwise stated, no computer code is
required to be submitted.
(1.2) Use the appropriate Matlab/Octave command to check what the actual solution is. (2)
(1.4) By comparing the residual vectors based on the approximate solutions obtained in (1.3)(a),
(b) and (c), which method gave the best approximation. (4)
(2.4) Solve the linear system Ax = b using the inverse obtained above. (4)
2
APM2613/A02/0/2023
1.
(3.1) By examining the diagonal dominance of the coefficient matrix, A, determine whether con-
vergence to a solution when using iterative methods to solve the system can be guaranteed.
(3)
(3.2) Obtain approximate solutions to the system using three iterations of each of the following
methods:
(3.3) An iterative algorithm to solve Ax = b, with A and b as defined for Question 1, is derived from
a basic principle and given by
M xk = ωb + (M − ωA)xk−1
(a) Perform three iterations of this algorithm with x(0) = (0, , 0, 0)T (4)
(b) Compare your results with those obtained from the used in (3.2) above. (1)
x2 + y = x
xy + 2y = 1
(4.1) Draw a sketch of the two functions on the same axes and use it to approximate and initial
solution. (7)
(4.2) Write down a computer code for Newton’s method for more than one variable to solve the
above system. (8)
(4.3) Use the algorithm in (4.2) to solve the given system of nonlinear equations with x(0) as ob-
tained in (4.1) above. (5)