Due Date : May 10th (Sunday) 11:59PM. Submit online to gradescope.
Policy : You can use textbook and your notes. There should be no discussion or collaborations, since this is suppose to be a exam on your own understanding. If you found some question that is unclear, please let me know via email.
1. Vector spaces and Curvilinear Coordinates (30 pts)
All vectors spaces are finite dimensional over R.
1. True or False (10 pts)
(F) Any vector space has a unique basis.
(F) Any vector space has a unique inner product.
(T) Given a basis e1,⋯,en of V, there exists a basis E1,⋯,En on V∗, such that Ei(ej)=δij.
(F) If we change e1 in the basis e1,⋯,en, in the dual basis only E1 will change.
The correct statement would be, “If we change e1 in the basis e1,⋯,en, in the dual basis, not only E1 will change, all other Ei might also change.”
(F) Given a vector space with inner product, there exists a unique orthogonal basis.
(T) Let V and W be two vector spaces with inner products and of the same dimension.Then there exists a linear map f:V→W, such that for any v1,v2∈V, $$\la v_1, v_2 \ra = \la f(v_1), f(v_2) \ra.$$
(F) If V and W are vector spaces of dimension 3 and 5, then the tensor product V⊗W have dimension 8. (should be 3×5=15)
(T) If V has dimension 5, then the exterior power ∧3V is a vector space with dimension 10.
(T) The solution space of equation y′(x)+x2y(x)=0 forms a vector space.
(F) The solution space of equation y′(x)+xy2(x)=0 forms a vector space.
2. (10 pt) Let Vn be the vector space of polynomials whose degree is at most n. Let f(x) be any smooth function on [−1,1]. We fix f(x) once and for all. Show that there is a unique element fn∈Vn (depending on our choice of f), such that for any g∈Vn, we have
∫−11fn(x)g(x)dx=∫−11f(x)g(x)dx.
Hint:
(1) Equip Vn with an inner product $\la g_1, g_2 \ra = \int_{-1}^1 g_1(x) g_2(x) dx$.
(2) Show that f(x) induces an element in Vn∗: g↦∫−11f(x)g(x)dx.
(3) use inner product to identify Vn and Vn∗.
A remark: if f(x) were a polynomial of degree less than n, then you could just take fn(x)=f(x). But, we have limited our choices of fn to be just degree ≤n polynomial, so we are looking for a 'best approximation' of f(x) in Vn in a sense. Try solve the example case of n=1, f(x)=sin(x) if you need some intuition.
Solution: First some remark about what we are trying to prove: say you have an friend called A who want to challenge you by playing a game:
A provide n and f(x) to you,
then you need to provide fn(x) to A,
then A will examine if your fn pass the quality-check, i.e., A take an arbitrary g(x)∈Vn, and test if ∫−11g(x)f(x)dx=∫−11g(x)fn(x)dx.
Note that, when you produce fn(x), you have no knowledge of what g(x) would be.
Here is a solution, that is of a concrete flavor, not quite following the hint. First, we define an inner product $\la g_1, g_2 \ra = \int_{-1}^1 g_1(x) g_2(x) dx$, whenever the integral make sense. Then, we may take an orthonormal basis e0,⋯,en of Vn (note dimVn=n+1), and then
$$ f_n(x) = \sum_{i=0}^n \la f, e_i \ra e_i. $$
Then, we have for any g∈Vn,
$$ \la f_n, g \ra = \sum_{i=0}^n \la f, e_i \ra \la e_i, g \ra = \la f, \sum_{i=0}^n \la e_i, g \ra e_i \ra = \la f, g \ra. $$
Conceptually, if V denote the space of smooth functions on [0,1] with inner product, then V⊃Vn, then there is an orthogonal projection
Πn:V→Vn.
You have seen this orthogonal projection in different guises, for example the least square regression, the truncation of Fourier series expansion of some function, … Here fn=Πn(f).
3. (10 pt) Let R3 be equipped with curvilinear coordinate (u,v,w) where
u=x,v=y,w=z−x2+y2.
(3pt) Write the vector fields ∂u,∂v,∂w in terms of ∂x,∂y,∂z.
(3pt) Write the 1-forms (co-vector fields) du,dv,dw in terms of dx,dy,dz.
(4pt) Write down the standard metric of R3 in coordinates (u,v,w).
Solution: We write x,y,z in terms of u,v,wx=u,y=v,z=w+u2−v2
then
∂u=∂u(x)∂x+∂u(y)∂y+∂u(z)∂z=∂x+2u∂z=∂x+2x∂z
The others are similar.
dw=dz−2xdx+2ydy
Then finally
g=(dx)2+(dy)2+(dz)2=(du)2+(dv)2+(dz−2xdx+2ydy)2
open up the parenthesis if you wish.
2. Special Functions and Differential Equations (50 pts)
1. (10 pt) Orthogonal polynomials. Let I=[−1,1] be a closed interval. w(x)=x2 a non-negative function on I. For functions f,g on I, we define their inner products as
$$ \la f, g \ra = \int_{-1}^1 f(x) g(x) w(x) dx $$
The normalized orthogonal polynomials P0,P1,⋯ are defined by
Pn(x) is a degree n polynomial.
$\la P_n, P_n \ra = 1$
$\la P_i, P_j \ra = 0$ if i=j.
Find out P0,P1,P2.
P0(x)=±3/2,P1(x)=±5/2x,P2(x)=±14/4(−3+5x2).
2. (10 pt) Find eigenvalues and eigenfunctions for the Laplacian on the unit sphere S2, i.e., solve
ΔF(θ,φ)=λF(θ,φ)
for appropriate λ and F. The Laplacian on a sphere is
Δf=sinθ1∂θ(sinθ∂θ(f))+sin2θ1∂φ2f.
3. (5 pt) Find eigenvalues and eigenfunctions for the Laplacian on the half unit sphere S2 with Dirichelet boundary condition, i.e., solve
ΔF(θ,φ)=λF(θ,φ),F(θ=π/2,φ)=0.
for appropriate λ and F.
Here the trick is that, any eigenfunction on the upper-semisphere, by reflection, can be extended to an eigenfunction on the whole sphere
F(π/2−θ,φ)=−F(π/2+θ,φ)
hence, we want those eigenfunction on the whole sphere that satisfies
P_l^m(x) = - P_l^-x)
this turns out to be satisfies if l+m is odd.
Note that, even though the boundary condition is rotational symmetric, it does not mean the solution is rotational symmetry (after all, the S2 itself is symmetric, but the eigenfunction can have fluctuations).
4. (15 pt) (Heat flow). Consider heat flow on the closed interval [0,1]∂tu(x,t)=∂x2u(x,t), where u(x,t) denote the temperature. \
Let u(0,t)=u(1,t)=0 for all t. Let the initial condition be
u(x,0)={2x2(1−x)x∈[0,1/2]x∈[1/2,1]
(12pt) Solve the equation for t>0.
(3 pt) Does the solution make sense for any negative t? Why or why not?
The problem is standard, I won't repeat the solution.
The solution will diverge for any negative t, no matter how small ∣t∣ is, since
n∑cne−n2t=n∑cnen2∣t∣
will diverge quite fast due to en2, and cn is only decaying as 1/nc for some constant c.
Note that, how much you can go negative in time, depends on how smooth the initial condition is. Here the inital condition is already non-smooth, hence you cannot extend the solution to t∈(−ϵ,+∞) from t∈(0,+infty).
5. (10 pt) (Steady Heat equation). Let D be the unit disk. We consider the steady state heat equation on DΔu(r,θ)=0
(3 pt) Write down the Laplacian Δ in polar coordinate
(5 pt) Show that, if the boundary value is u(r=1,θ)=0, then u=0 on the entire disk.
(2 pt) Is it possible to have a boundary condition u(r=1,θ)=f(θ), such that there are two different solutions u1(r,θ) and u2(r,θ) to the problem?
It is impossible to have a boundary condition u(r=1,θ)=f(θ), such that there are two different solutions u1(r,θ) and u2(r,θ) to the problem. Otherwise, let u1 and u2 be the two solutions, and we may take their difference
u=u1−u2
then
Δu=0,u∣∂D=0
by part (b), u=0.
3. Probability and Statistics (20 pts)
1. (5 pt) Throw a die 100 times. Let X be the random variable that denote the number of times that 4 appears. What distribution does X follow? What is its mean and variance?
Binomial distribution, with n=100,p=1/6. Mean is np, variance is np(1−p).
2. (5 pt) Let X∼N(0,1) be a standard normal R.V . Compute its moment generating function
E(etX).
Use the moment generating function to find out E(X4). Let Y=X2. What is the mean and variance of Y?
Do the integral, we get E(etX)=et2/2.
To compute E(X4), we note that
E(etX)=m0+m1t+2!t2m2+3!t3m3+4!t4m4+⋯
where E(Xk)=mk. Hence, we may get the coefficients of Taylor expansion
et2/2=1+(t2/2)+2!(t2/2)2+⋯=1+t2/2+t4/8+⋯
comparing the t4 coefficients, we see
m4/4!=1/8⇒m4=3
3. (5 pt) There are two bags of balls. Bag A contains 4 black balls and 6 white balls, Bag B contains 10 black balls and 10 white balls. Suppose we randomly pick a bag (with equal probability) and randomly pick a ball. Given that the ball is white, what is the probability that we picked bag A?
Note that
P(white ball)=P(white∣bag A)P(bag A)+P(white∣bag B)P(bag B)=(6/10)(1/2)+(10/20)(1/2)
instead of total number of white ball divided by total number of balls.
4. (5 pt) Consider a random walk on the real line: at t=0, one start at x=0. Let Sn denote the position at t=n, then Sn=Sn−1+Xn, where Xn=±1 with equal probability.
(3pt) What is the variance of Sn?
(2pt) Use Markov inequality, prove that for any c>1, we have
P(∣Sn∣>cn)≤1/c2
Since Sn=X1+⋯+Xn and Xi are independent, we have
Var(Sn)=i=1∑nVar(Xi)=n(12(1/2)+(−1)2(1/2)=n
Then, by Markov inequality, we have
P(∣X∣>cVar(X))≤c21
take X=Sn.
math121b/final-sol.txt · Last modified: 2020/05/17 18:55 by pzhou