








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









April 23, 2012 3.30-6.00pm
Name:
Student Number:
Signature:
Instructor:
Instructions:
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?
(b) Write down the equations required for f (x) to have continuous first and second derivatives. How many equations does this provide?
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.
(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.
(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
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)
(b) Write down a non-zero vector in N (DT^ )
(c) Is it true that N (D) = N (L)? Give a reason.
(d) Write down the Laplacian L.
(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.
(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
and Y =
y 1 , y 2 ,... , yN
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)?
(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> A=[0 2 1;1 0 0 ;0 1 0] A =
2> [S D]=eig(A) S =
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?
(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.
(c) Write down initial values which result in a non-zero periodic sequence where the xn repeatedly cycle through the same values.
P =
(a) The vector [3, 8 , 3]T^ is an eigenvector of P. What is the eigenvalue?
(b) By considering P 2 , what can you say about the other eigenvalues of P? Give a reason.
(c) What is limn→∞ P n[1, 0 , 0]T^? Give a reason.