Docsity

University of British Columbia - Math 307 Final Exam, Exams of Linear Algebra

Toggle sidebar
bg1
1
University of British Columbia
Math 307, Final
April 23, 2012
3.30-6.00pm
Name:
Student Number:
Signature:
Instructor:
Instructions:
1. No notes, books or calculators are allowed. A MATLAB/Octave formula sheet is provided.
2. Read the questions carefully and make sure you provide all the information that is asked for in the
question.
3. Show all your work. Answers without any explanation or without the correct accompanying work could
receive no credit, even if they are correct.
4. Answer the questions in the space provided. Continue on the back of the page if necessary.
Question Mark Maximum
1 12
2 12
3 12
4 16
5 12
6 16
7 12
8 8
Total 100
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download University of British Columbia - Math 307 Final Exam and more Exams Linear Algebra in PDF only on Docsity!

University of British Columbia

Math 307, Final

April 23, 2012 3.30-6.00pm

Name:

Student Number:

Signature:

Instructor:

Instructions:

  1. No notes, books or calculators are allowed. A MATLAB/Octave formula sheet is provided.
  2. Read the questions carefully and make sure you provide all the information that is asked for in the question.
  3. Show all your work. Answers without any explanation or without the correct accompanying work could receive no credit, even if they are correct.
  4. Answer the questions in the space provided. Continue on the back of the page if necessary.

Question Mark Maximum

Total 100

  1. Suppose you are given a set of N data points (xn, yn), with xn increasing, and you wish to interpolate these points with a spline function f , where f (x) is given by a cubic polynomial pn(x) on each interval (xn, xn+1), for n = 1,... , N − 1:

pn(x) = an(x − xn)^3 + bn(x − xn)^2 + cn(x − xn) + dn. [3] (a) Write down the equations required for f (x) to be continuous and to pass through the data points. How many equations does this provide?

[3]

(b) Write down the equations required for f (x) to have continuous first and second derivatives. How many equations does this provide?

  1. Suppose that you want to solve the boundary value problem

f ′′(x) − x^2 f (x) = 1 0 ≤ x ≤ 1 , f (0) = 1, f (1) = 1.

Let F = [f 0 , f 1 ,... , fN ]T^ be the finite difference approximation to the solution f (x) at uniformly spaced points x 0 , x 1 ,... , xN. [2] (a) Write down finite difference approximation to f ′′(x) at an interior point xi.

[6]

(b) The finite difference approximation to the equations and boundary conditions can be written in the matrix form AF = b. Find the matrix A and the vector b for the case N = 4.

[4]

(c) Suppose the boundary condition at x = 0 is changed to

f (0) = 1 − f ′(0).

How do A and b change in this case?

  1. Consider a resistor network arranged in the shape of an octahedron as in this diagram:

1

2

3

The nodes have been labeled with the large numbers and 3 of the edges (resistors) have beeen given orientations and labeled with small numbers. Assume all resistances are equal to 1. Let D be the incidence matrix (for some choice of labeling and arrows for the remaining edges) and let L be the Laplacian. [2] (a) Write down a non-zero vector in N (D)

[2]

(b) Write down a non-zero vector in N (DT^ )

[3]

(c) Is it true that N (D) = N (L)? Give a reason.

[3]

(d) Write down the Laplacian L.

[6]

(e) It seems reasonable to conjecture that the effective resistance between nodes 1 and 6 would remain unchanged if we removed the resistors between 2 and 3, 3 and 4, 4 and 5, 5 and 2. Explain how you could use MATLAB/Octave to test this conjecture. Assume that L has been defined in MATLAB/Octave.

[6]

(c) Suppose instead that you choose to make a least squares fit of the data points to a quadratic polynomial f (x) = c 0 x^2 + c 1 x + c 2. Write down the Matlab/Octave commands you would use to calculate the coefficients, plot the original data points and plot the quadratic fit (you may assume that vectors X =

[

x 1 , x 2 ,... , xN

]T

and Y =

[

y 1 , y 2 ,... , yN

]T

have already been defined).

[4] (^) 6. (a) A continuous measurement of the temperature in Vancouver, y(t), for 0 ≤ t ≤ T , is decomposed

as a Fourier series of the form y(t) =

n=−∞ cne 2 πiωnt, where ωn = n/T. What important property do the set of functions

e^2 πiωnt

have? What is the expression for the Fourier coefficients cn in terms of y(t)?

[4]

(b) Explain the physical significance of the values |cn| and how these relate to ωn. If t is measured in days, and the time period T encompasses several years, which values of cn might you expect to have the largest absolute value? (Think about what time scales you expect temperature to fluctuate over).

  1. Consider the MATLAB/Octave computation

1> A=[0 2 1;1 0 0 ;0 1 0] A =

2> [S D]=eig(A) S =

D =

Diagonal Matrix

1.61803 0 0 0 -1.00000 0 0 0 -0. [4]

(a) Write down a recursion relation for a sequence x 0 , x 1 , x 2 , x 3 ,... that you can analyse using this calculation. How many initial values do you have to specify to define the sequence?

[4]

(b) If you picked initial values at random, what would you expect the large n behaviour of the resulting sequence to be? Give a reason.

[4]

(c) Write down initial values which result in a non-zero periodic sequence where the xn repeatedly cycle through the same values.

  1. Consider the stochastic matrix

P =

[2]

(a) The vector [3, 8 , 3]T^ is an eigenvector of P. What is the eigenvalue?

[3]

(b) By considering P 2 , what can you say about the other eigenvalues of P? Give a reason.

[3]

(c) What is limn→∞ P n[1, 0 , 0]T^? Give a reason.