Professional Documents
Culture Documents
____________________________________________________________________________________
INSTRUCTIONS TO STUDENTS:
1. This examination contains FOUR (4) questions and comprises FIVE (5) printed
pages (including cover page).
If you have used more than one answer book, please tie them together with the string
provided.
Question 1
Discuss the operations and properties of vectors and matrices, including the geometrical
meaning of the operations. Answer part (a) to (e) using cross product and dot product of
vectors.
(a) In the diagram given below, P, Q, and R are points in 3D space such that PQR is
a triangle. P = (1,5,9), Q = (5,6,7) and R = (1,1,4). u and v are vectors indicated
by arrows in the diagram.
(iv) Solve for the length of the cross product u × (u+v). Explain how the
geometrical interpretation of this length relates to the given triangle PQR.
(7 marks)
2 4 −8
[−2 3 8]
1 −3 −3
(10 marks)
The vertices of a triangle are P0(7, 6, 5), P1(3, 4, 7) and P2(5, 9, 3). A ray starts from S(1,
2, 3) and moves in the direction of V(1, 1, 1). Describe the intersection between the ray
and the triangle by completing the following steps.
(b) Calculate the point of intersection between the ray and the plane.
(6 marks)
Question 3
Solve the transformation operation that involves rotating an object by 45o in a 3D space
about a line passing through the origin and the point (3, 5, 8). The transformation involves
the following steps.
(a) Form the matrix Mx that rotates the line about the x-axis so that the line lies in
the x-z plane meaning the y-coordinate is zero.
(5 marks)
(b) Form the matrix My that rotates the line about the y-axis to that the line lies on
the z-axes.
(5 marks)
(c) Compute M = MyMx and verify that M rotates the line onto the z-axis, that
3 0
M[5] = [ 0 ] .
8 √98
(8 marks)
(d) Form the matrix R that rotates the object by 45o about the z axis.
(3 marks)
(e) Form the matrix M-1 and verify that M-1 rotates the line from the z-axis back to
0 3
its original position, that is M-1[ 0 ] = [5].
√98 8
(4 marks)
(a) A light ray travelling in a medium with refraction index 1.33 hits another medium
with refraction index 1. N = (3,7,5) is a normal vector to the surface between the
two mediums. L = (5,7,3) is a vector pointing towards the source of the ray.
Explain the result by calculating the refraction vector T.
(10 marks)
(b) A light ray hits a perfectly shiny surface with L=(5,7,3) and N=(3,7,5). Calculate
the reflection vector in this instance.
(5 marks)
R = 2(N.L)N - L
Ƞ𝐿 Ƞ𝐿 2 Ƞ𝐿
√
𝑇 = ( 𝑁. 𝐿 − 1 − 2 [1 − (𝑁. 𝐿)2 ]) 𝑁 − 𝐿
Ƞ𝑇 Ƞ𝑇 Ƞ𝑇
3) Rotation matrix
1 0 0
Rx(A) = [0 𝑐𝑜𝑠𝐴 −𝑠𝑖𝑛𝐴]
0 𝑠𝑖𝑛𝐴 𝑐𝑜𝑠𝐴
𝑐𝑜𝑠𝐵 0 𝑠𝑖𝑛𝐵
Ry(B) = [ 0 1 0 ]
−𝑠𝑖𝑛𝐵 0 𝑐𝑜𝑠𝐵
𝑐𝑜𝑠𝐶 −𝑠𝑖𝑛𝐶 0
Rz(C) = [ 𝑠𝑖𝑛𝐶 𝑐𝑜𝑠𝐶 0]
0 0 1