This set practises the four lessons on linear algebra: vector spaces and dimension, linear operators and matrices, inner products and bras and adjoints and Hermitian operators. Problems 1 and 2 also use the position and momentum operators of Lecture 3. The problems follow MIT's Problem Set 4, in our own words. MIT publishes no solutions for the problem sets of this course, so the hints and the solutions here are our own.
A few things differ from MIT's sheet. Its due date is left out. MIT's Problem 6 is not here: the sheet gives only its title ("Hermitian matrices and anticommutators") and the number of an exercise in Shankar's textbook, with no statement. The textbook is not used on this site, so the problem is skipped, and with it 5 of MIT's 65 points. The other problems keep MIT's numbers, so Problem 7 follows Problem 5. Problems 1 and 7 are "based on" exercises in the textbooks of Griffiths and Axler, but MIT's sheet states them in full: they are written here from the sheet alone. MIT's Problem 3 has no parts: the labels (a) and (b) there are ours. Problem 2(c) uses the wavefunction as the component of a state along a position state, which this site meets in Lecture 9: what is needed is restated in the problem. In Problem 7 MIT asks for a program that does integrals: any tool will do (a computer algebra system, Python), and the graphs on this page are drawn from formulas.
Most of MIT's parts ask for a proof, which no box can check. So that there is something to check, some boxes are our additions, each marked as such in its part: the Gaussian example in Problem 1(e); both boxes of Problem 2(c); the box of Problem 3 (the matrix example); both boxes of Problem 4(c); in Problem 5 the choice box and the number box of part (a), and the trace of in part (d); and the three boxes of Problem 7(d). The other boxes check what MIT asks for. The sheet's pages are numbered: "p. 1" to "p. 4" below are the printed page numbers.
How to answer#
Work each problem on paper first. Then type your result in the answer box and press Check. A number box accepts any value within the tolerance written next to it. Unless a box asks for more digits, give 3 significant figures and keep 4 in intermediate steps; an answer with only 2 significant figures may or may not be accepted. A formula box takes plain typing, for example sqrt(3/(2*pi^3))*x, and accepts every correct way of writing the answer with the letters of that box. Write the symbols exactly as the box names them: pi stands for , x0 for , ma for and mb for .
MIT gives the points per problem. The splits between parts are ours. Parts that ask you to show something have no box, or only a small one: open the solution and mark yourself. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.
The notation is MIT's. Operators in Problems 1 to 4 are written without hats (, , , , ), except the position, momentum and translation operators of Problem 2(c). The commutator is . The exponential of an operator is defined by its power series, , with the identity operator. No constants of nature are needed: every answer is a formula or a pure number.
Problem 1#
Identities for commutators
Here , and are linear operators, and so are and .
(a)2 points
Prove the identity
In words
( capital A, capital B capital C ) equals ( capital A, capital B ) capital C plus capital B ( capital A, capital C )
It says that taking the commutator with works on a product as a derivative does: first on , then on , with the other factor left in its place.
Hint
Write out both sides with the definition . Keep the order of the operators in every product.
Hint
The right-hand side has four terms. Two of them are the same product with opposite signs.
Solution
The idea. Both sides are sums of products of three operators. Writing them out shows they are equal.
Writing out the right-hand side
In words
( capital A, capital B ) capital C plus capital B ( capital A, capital C ) equals capital A capital B capital C minus capital B capital A capital C plus capital B capital A capital C minus capital B capital C capital A equals capital A capital B capital C minus capital B capital C capital A equals ( capital A, capital B capital C )
The two middle terms cancel, and what is left is the commutator of with the product .
Check the result
If commutes with , the identity says : an operator that commutes with can be moved out of the commutator, to the side it was on. In the same way one finds the partner identity .
(b)2 points
Prove the Jacobi identity
In words
( ( capital A, capital B ), capital C ) plus ( ( capital B, capital C ), capital A ) plus ( ( capital C, capital A ), capital B ) equals 0
Hint
Write out the first double commutator: it has four terms. The other two follow by moving the letters round: .
Hint
There are twelve terms, two for each of the six orders of , , . Check that each order appears once with a plus sign and once with a minus sign.
Solution
The idea. Each double commutator is a sum of four products of the three operators. In the sum of all three, every product appears twice with opposite signs.
The twelve terms
In words
( ( capital A, capital B ), capital C ) equals capital A capital B capital C minus capital B capital A capital C minus capital C capital A capital B plus capital C capital B capital A; ( ( capital B, capital C ), capital A ) equals capital B capital C capital A minus capital C capital B capital A minus capital A capital B capital C plus capital A capital C capital B; ( ( capital C, capital A ), capital B ) equals capital C capital A capital B minus capital A capital C capital B minus capital B capital C capital A plus capital B capital A capital C
Adding the three lines: cancels between the first and second line, between the first and third, between the first and third, between the first and second, and and between the second and third. The sum is zero.
Check the result
The identity must hold when all three operators commute, and it does: every commutator is then zero. It also holds for : the first term is , the second is , and the third has .
(c)2 points
The operators and obey . Use this and part (a) to show that, for ,
In words
( q to the power n, p ) equals i h bar n q to the power n minus 1, end of power
Hint
Part (a) has the product in the second place. Use and write .
Hint
Argue by induction: assume the result for and use part (a) once to reach .
Solution
The idea. Part (a) peels one factor of off the power, so the result for follows from the result for .
The first case
For the claim is , which is given.
From n − 1 to n
Suppose , that is . Part (a) with , and gives
In words
( p, q q to the power n minus 1, end of power, ) equals ( p, q ) q to the power n minus 1, end of power, plus q ( p, q to the power n minus 1, end of power, ) equals minus i h bar q to the power n minus 1, end of power, minus i h bar the quantity n minus 1, q to the power n minus 1, end of power, equals minus i h bar n q to the power n minus 1, end of power
So , and the result holds for every .
Check the result
For , directly: , as the formula says. The pattern is that of a derivative: is what makes of .
(d)2 points
Let be any function with a power series in . Use part (c) to show that
In words
( f(q), p ) equals i h bar f prime (q)
where is the derivative of .
Hint
Write with numbers . The commutator is linear in its first entry.
Solution
The idea. The commutator is linear, so it can be taken term by term in the series, and part (c) handles each term.
Term by term
With (the term is a number times the identity and commutes with ):
In words
( f(q), p ) equals the sum from n equals 1 to infinity of f sub n ( q to the power n, p ) equals i h bar the sum from n equals 1 to infinity of n f sub n q to the power n minus 1, end of power, equals i h bar f prime (q)
The last sum is the series of , differentiated term by term: that is the series of , with the operator in the place of the variable.
Check the result
For this is part (c) again. For a constant both sides are zero.
(e)2 points
On functions of position, the operator multiplies by the function , and acts as . Work out by letting it act on an arbitrary wavefunction .
Then (our addition) take with a constant , write , and give the function .
Hint
has two terms: times , and acting on the product . The second needs the product rule.
Solution
The idea. An operator is known when its action on every function is known. The product rule makes the terms with cancel.
Acting on a wavefunction
In words
( f(x), p ) psi equals f h bar over i, times partial psi over partial x minus h bar over i, times partial over partial x (f psi ) equals minus h bar over i, times partial f over partial x, times psi equals i h bar f prime (x) psi
Since is arbitrary, : the operator that multiplies by .
The Gaussian
For the derivative is , so .
Check the result
The result agrees with part (d), reached there from the commutator alone, without saying how acts. Here no power series was needed: only has to be differentiable. With the result is itself.
Problem 2#
Useful operator identities and translations
Let and be two operators that do not commute: .
(a)2 points
Let be a formal variable. Show that
In words
d over d t e to the power t the quantity capital A plus capital B, end of power, equals the quantity capital A plus capital B, e to the power t the quantity capital A plus capital B, end of power, equals e to the power t the quantity capital A plus capital B, end of power, the quantity capital A plus capital B
Hint
Use the power series of the exponential and differentiate it term by term. Only one operator appears in it: the sum .
Solution
The idea. Call . The series of holds only powers of , and powers of one operator commute with each other. That and do not commute plays no role.
Differentiating the series
In words
d over d t e to the power t capital M equals d over d t the sum from n equals 0 to infinity of t to the power n over the quantity n factorial, times capital M to the power n equals the sum from n equals 1 to infinity of t to the power n minus 1, end of power, over the quantity the quantity n minus 1, factorial, times capital M to the power n equals capital M e to the power t capital M equals e to the power t capital M capital M
In the last sum one factor can be taken out on the left or on the right, because .
Check the result
At both sides are , the coefficient of in the series. What does fail when is the rule for a product of exponentials: is in general not . Problem 4 finds what it is when is a number.
(b)3 points
Now suppose that , where is a complex number times the identity operator. Prove that
In words
e^ capital A capital B e to the power minus capital A equals capital B plus c
MIT's hint: define the operator-valued function . What is ? Find a differential equation for and integrate it.
Hint
Differentiate with the product rule, keeping the order of the operators. Part (a), with alone, gives the derivative of each exponential.
Hint
You should find . A number commutes with everything.
Solution
The idea. The derivative of is the commutator between the same two exponentials. Because the commutator is a number, the exponentials cancel and grows at a constant rate.
The differential equation
Part (a) with in the place of gives and . So
In words
d capital F over d t equals e to the power t capital A capital A capital B e to the power minus t capital A minus e to the power t capital A capital B capital A e to the power minus t capital A equals e to the power t capital A ( capital A, capital B ) e to the power minus t capital A equals c e to the power t capital A e to the power minus t capital A equals c
Here : the two exponentials are built from the same operator, so they multiply like numbers.
Integrating
and the derivative is the constant , so . At this is .
Check the result
To first order in the left-hand side is , which agrees. The result says that this first-order answer is exact when the commutator is a number. Problem 3 finds the terms that follow when it is not.
(c)5 points
Let be a real number and the momentum operator. Show that the unitary translation operator
In words
capital T hat (a) is defined as e to the power minus i a p hat over h bar, end of power
translates the position operator:
In words
capital T hat dagger (a) x hat capital T hat (a) equals x hat plus a
A state has the wavefunction , its component along the position state ; in this language the momentum operator acts as . Show that the state has the wavefunction .
Then two questions of our own. If the expectation value of the position is in the state , what is it in the state ? And how does the expectation value of the momentum change?
Hint
is Hermitian and is real, so . Now use part (b): which operator plays the role of , and what is its commutator with ?
Hint
For the wavefunction, expand in its power series. Each power of becomes a derivative of . Do you know the series that appears?
Hint
For the expectation values, write , and the same with .
Solution
The idea. The operator has the form of part (b), with a commutator that is a number. On wavefunctions, the exponential of a derivative is a Taylor series.
The translation operator is unitary
Taking the adjoint of the series term by term, with and real: . The two exponentials hold the same operator with opposite signs, so .
The position operator
Take and in part (b). The commutator is a number:
In words
( capital A, capital B ) equals i a over h bar, times ( p hat, x hat ) equals i a over h bar, times (-i h bar ) equals a
So .
The wavefunction
Each factor in the series of becomes on the wavefunction:
In words
the matrix element of capital T hat (a) between x and psi equals the sum from n equals 0 to infinity of 1 over the quantity n factorial, times (-a d over d x ) to the power n psi (x) equals the sum from n equals 0 to infinity of (-a) to the power n over the quantity n factorial, times d to the power n psi over d x to the power n equals psi the quantity x minus a
The sum is the Taylor series of about the point , evaluated a distance away. (This step assumes that has a Taylor series. The result holds for other wavefunctions too, but showing it needs the momentum states of Lecture 9.)
The expectation values
In the state ,
In words
the matrix element of capital T hat dagger (a) x hat capital T hat (a) between psi and psi equals the matrix element of the quantity x hat plus a, between psi and psi equals x nought plus a
for a normalized state. is a function of alone, so it commutes with : , and the mean momentum is the same in both states.
Check the result
The two results agree. The wavefunction is moved a distance toward larger (for ): whatever did at the point , the new function does at . So the mean position rises by , as the operator identity says. Moving a wave packet without changing its shape does not change how fast it travels, which fits the unchanged momentum.
Problem 3#
Proof of the Hadamard lemma
For two operators and , with no assumption about their commutator, the Hadamard lemma says
In words
e^ capital A capital B e to the power minus capital A equals capital B plus ( capital A, capital B ) plus 1 over the quantity 2 factorial, times ( capital A, ( capital A, capital B ) ) plus 1 over the quantity 3 factorial, times ( capital A, ( capital A, ( capital A, capital B ) ) ) plus and so on
(a)5 points
Define . Work out its first three derivatives at , and use the Taylor series of to obtain the terms of the lemma that are written out above.
Hint
The first derivative was found in Problem 2(b), before the commutator was set equal to a number: .
Hint
has the same form as , with in the place of . So the same step gives .
Solution
The idea. Differentiating puts a commutator with around and leaves the exponentials in place. Each further derivative adds one more commutator.
One derivative
For any operator that does not depend on , as in Problem 2(b):
In words
d over d t (e to the power t capital A capital X e to the power minus t capital A ) equals e to the power t capital A the quantity capital A capital X minus capital X capital A, e to the power minus t capital A equals e to the power t capital A ( capital A, capital X ) e to the power minus t capital A
Three derivatives
Using this with , then , then :
In words
f prime (t) equals e to the power t capital A ( capital A, capital B ) e to the power minus t capital A, f double prime (t) equals e to the power t capital A ( capital A, ( capital A, capital B ) ) e to the power minus t capital A, f to the power (3) (t) equals e to the power t capital A ( capital A, ( capital A, ( capital A, capital B ) ) ) e to the power minus t capital A
At the exponentials are the identity: , , and .
The Taylor series
In words
e^ capital A capital B e to the power minus capital A equals f(1) equals f(0) plus f prime (0) plus 1 over the quantity 2 factorial, times f double prime (0) plus 1 over the quantity 3 factorial, times f to the power (3) (0) plus and so on
Putting in the derivatives gives the four terms of the lemma.
Check the result
If is a number, the double commutator and all later terms vanish, and the lemma becomes : Problem 2(b).
(b)5 points
Now do it to all orders: find the form of the general term on the right-hand side. To write it neatly, define the operator , which acts on operators and gives operators:
In words
( ad capital A )( capital X ) is defined as ( capital A, capital X )
Confirm that the complete lemma is then
In words
e^ capital A capital B e to the power minus capital A equals e to the power ad capital A ( capital B )
Then an example of our own. Take the matrices
In words
capital A equals 0 s; 0 0, capital B equals 0 0; 1 0
with a number . Use the lemma to find the matrix , and give its top-right entry.
Hint
Prove by induction that the -th derivative is , where means: take the commutator with , times.
Hint
For the matrices: work out , then , then one more. The series stops.
Solution
The idea. The step of part (a) can be repeated without end. The Taylor series of is then the series of an exponential, with "multiply by" replaced by "take the commutator with ".
The n-th derivative
Claim: . It holds for . If it holds for , the basic step of part (a) with gives
In words
f to the power the quantity n plus 1, end of power, (t) equals e to the power t capital A ( capital A, ( ad capital A ) to the power n ( capital B ) ) e to the power minus t capital A equals e to the power t capital A ( ad capital A ) to the power n plus 1, end of power, ( capital B ) e to the power minus t capital A
So : the commutator with , taken times.
The general term
The Taylor series at is
In words
e^ capital A capital B e to the power minus capital A equals the sum from n equals 0 to infinity of 1 over the quantity n factorial, times f to the power (n) (0) equals the sum from n equals 0 to infinity of 1 over the quantity n factorial, times ( ad capital A ) to the power n ( capital B ) equals e to the power ad capital A ( capital B )
The term number on the right-hand side of the lemma is : nested commutators with the factor . The last step only names the sum: it is the series of the exponential, with the operator in the place of a number, acting on .
The matrices
By matrix multiplication,
In words
( capital A, capital B ) equals s 0; 0 minus s, ( capital A, ( capital A, capital B ) ) equals 0 minus 2 s squared; 0 0, ( capital A, ( capital A, ( capital A, capital B ) ) ) equals 0
The double commutator is a multiple of , so the third and all later terms vanish. The lemma gives
In words
e^ capital A capital B e to the power minus capital A equals capital B plus ( capital A, capital B ) plus one half ( capital A, ( capital A, capital B ) ) equals s minus s squared; 1 minus s
The top-right entry is .
Check the result
Here the exponentials can also be found directly. , so and , and
In words
1 s; 0 1 0 0; 1 0 1 minus s; 0 1 equals s 0; 1 0 1 minus s; 0 1 equals s minus s squared; 1 minus s
The two routes agree. The trace is zero on both sides, as it must be: has trace zero, and has the same trace as .
Problem 4#
A special case of the Baker–Hausdorff theorem
Let and be two operators with , where is a complex number and the identity operator. This problem proves the identity
In words
e to the power capital A plus capital B, end of power, equals e^ capital B e^ capital A e to the power c over 2, end of power, equals e^ capital A e^ capital B e to the power minus c over 2, end of power
To do so, consider the operator-valued function
In words
capital G (t) is defined as e to the power t the quantity capital A plus capital B, end of power, e to the power minus t capital A
(a)4 points
Using the identities of Problem 2, show that
In words
capital G to the power minus 1 d over d t capital G (t) equals capital B plus c t
Hint
Differentiate with the product rule and Problem 2(a). Two terms with cancel.
Hint
The inverse of a product is the product of the inverses in the opposite order: . What is left has the form of Problem 2(b), with in the place of .
Solution
The idea. The derivative of leaves a single between the two exponentials. Multiplying by removes the outer exponential, and Problem 2(b) moves through the inner one.
The derivative
By Problem 2(a), and :
In words
d capital G over d t equals e to the power t the quantity capital A plus capital B, end of power, the quantity capital A plus capital B, e to the power minus t capital A minus e to the power t the quantity capital A plus capital B, end of power, capital A e to the power minus t capital A equals e to the power t the quantity capital A plus capital B, end of power, capital B e to the power minus t capital A
Multiplying by the inverse
With :
In words
capital G to the power minus 1 d capital G over d t equals e to the power t capital A e to the power minus t the quantity capital A plus capital B, end of power, e to the power t the quantity capital A plus capital B, end of power, capital B e to the power minus t capital A equals e to the power t capital A capital B e to the power minus t capital A equals capital B plus c t
The last step is Problem 2(b) for the pair and , whose commutator is the number .
Check the result
At the claim is that the derivative of there is . Indeed, to first order in , .
(b)3 points
The result of part (a) is the same as . Verify that the solution of this equation is
In words
capital G (t) equals capital G (0) e to the power t capital B e to the power one half c t squared
Hint
Differentiate the proposed solution. is a number, so it can be moved anywhere.
Solution
The idea. Put the proposed solution into the equation. The number commutes with every operator, so its derivative can be placed where it is needed.
Differentiating the proposed solution
In words
d over d t ( capital G (0) e to the power t capital B e to the power one half c t squared ) equals capital G (0) e to the power t capital B capital B e to the power one half c t squared plus capital G (0) e to the power t capital B e to the power one half c t squared c t equals capital G (0) e to the power t capital B e to the power one half c t squared the quantity capital B plus c t
The right-hand side is the proposed times , and at the proposed solution is . So it obeys the equation and starts at the right value.
Check the result
It is the only such solution. If and both obey the equation, then , where the second term uses . So is constant, and equal to if the two start at the same value.
(c)3 points
Look at to prove the first equality of the identity. Then rename the operators to obtain the second.
Two questions of our own follow. First: by what number does differ from ? Second, an example: on functions of , take and (multiplication by ), with numbers and . Find , and then the function that makes of the constant function 1.
Hint
From its definition and . Part (b) gives in another way.
Hint
For the second equality swap the names and everywhere. What happens to ?
Hint
For the example: acts on a function as . Then use the form of the identity that has next to the function 1: every derivative of a constant is zero.
Solution
The idea. is known in two ways: from the definition of and from the solution of its differential equation. Setting them equal gives the identity.
The first equality
From the definition, and . From part (b), . So
In words
e to the power capital A plus capital B, end of power, e to the power minus capital A equals e^ capital B e to the power c over 2, end of power, which gives e to the power capital A plus capital B, end of power, equals e^ capital B e to the power c over 2, end of power, e^ capital A equals e^ capital B e^ capital A e to the power c over 2, end of power
(multiply by on the right, and move the number to the end).
The second equality
Nothing in the proof depends on the names of the operators. Swapping and changes the commutator to , and stays the same. So the first equality becomes .
The two orders
Setting the two forms equal, , and so . The exponential of the sum lies halfway between the two orders.
The example
On any function , , so . In the form the operator acts first, and on the constant 1 it does nothing: every term of its series beyond the first has a derivative. Then
In words
e to the power capital A plus capital B, end of power, 1 equals e to the power s k over 2, end of power, e to the power k x e to the power s d over d x, end of power, 1 equals e to the power k x plus s k over 2, end of power
Check the result
The other form must give the same. By Problem 2(c), is a translation: it turns into . So , and : the same function. A second check: obeys and is 1 at , which is what must do; at it is the answer.
MIT adds a comment: for general operators and the full Baker–Hausdorff formula goes on without end and has no simple closed form:
In words
e^ capital X e^ capital Y equals e to the power capital X plus capital Y plus one half ( capital X, capital Y ) plus 1 over 12 the quantity ( capital X, ( capital X, capital Y ) ) minus ( capital Y, ( capital X, capital Y ) ), all plus and so on, end of power
When is a number the terms after vanish, and this is the second equality proved above.
Problem 5#
Bras and kets
A three-dimensional Hilbert space has the orthonormal basis , , . With complex constants and , define the kets
In words
ket psi equals a ket 1 minus b ket 2 plus a ket 3, ket phi equals b ket 1 plus a ket 2
(a)1 point
Write down the bras and . Work out and , and check that .
Two boxes of our own: what kind of number is , and its value for and .
Hint
The bra of the ket is : every constant is conjugated.
Hint
The basis is orthonormal: , , and so on. The result has the form for a complex number .
Solution
The idea. Turning a ket into a bra conjugates its constants. The orthonormal basis then leaves only the products of matching components.
The bras
In words
bra psi equals a star bra 1 minus b star bra 2 plus a star bra 3, bra phi equals b star bra 1 plus a star bra 2
The two inner products
Only the components along and meet, because has none along :
In words
the inner product of phi and psi equals b star a minus a star b, the inner product of psi and phi equals a star b minus b star a
The conjugate of the second is , which is the first: .
What kind of number
With the result is : imaginary, or zero when is real (for example when and are both real). For and : and .
Check the result
Directly: . And , its conjugate.
(b)1 point
Write and as column vectors in the basis , , , and repeat part (a) with them.
Hint
A bra is the row of conjugated components, and the inner product is a row times a column.
Solution
The idea. In an orthonormal basis a ket is the column of its components and a bra the conjugated row.
Columns and rows
In words
ket psi equals a; minus b; a, ket phi equals b; a; 0, bra psi equals a star minus b star a star, bra phi equals b star a star 0
The inner products
In words
the inner product of phi and psi equals b star a star 0 a; minus b; a equals b star a minus a star b, the inner product of psi and phi equals a star minus b star a star b; a; 0 equals a star b minus b star a
The same as in part (a), and again each is the conjugate of the other.
(c)1 point
Let . Find the matrix that represents in the given basis. In the box, give its entry in row 1, column 2, with ma for and mb for .
Hint
The entry in row 1, column 2 is : the first component of times the conjugate of the second component of . The whole matrix is the column of times the row of .
Solution
The idea. A ket followed by a bra is an operator. Its matrix is the column of the ket times the row of the bra.
The matrix
In words
capital A equals b; a; 0 a star minus b star a star equals b a star minus the absolute value of b squared b a star; the absolute value of a squared minus a b star the absolute value of a squared; 0 0 0
The entry in row 1, column 2 is .
Check the result
The trace of must be . The diagonal gives , which is the of part (a). The third row is zero because has no component along : whatever acts on, the result is a multiple of .
(d)2 points
Let . Is Hermitian? Give a simple argument, without computing, that has an eigenvalue zero.
Our addition: give the trace of (the sum of its three eigenvalues), with ma for and mb for .
Hint
The adjoint of is .
Hint
Whatever acts on, the result is a combination of and . How many dimensions does the space have?
Solution
The idea. Each term of is its own adjoint. And can only produce vectors in the plane of and , so in three dimensions some vector must be sent to zero.
Hermitian
, and the same for , so for every and .
A zero eigenvalue
The two kets span a subspace of dimension two at most. The space has dimension three, so there is a nonzero ket orthogonal to both. Then
In words
capital Q ket chi equals ket psi the inner product of psi and chi plus ket phi the inner product of phi and chi equals 0
so is an eigenvector of with eigenvalue zero.
The trace
The trace of is , so
In words
tr capital Q equals the inner product of psi and psi plus the inner product of phi and phi equals the quantity 2 the absolute value of a squared plus the absolute value of b squared, all plus the quantity the absolute value of b squared plus the absolute value of a squared, equals 3 the absolute value of a squared plus 2 the absolute value of b squared
Check the result
The diagonal of the matrix of gives the same: its entries are , and . Since one eigenvalue is zero, the trace is the sum of the other two. Both are positive or zero, because for every .
Problem 7#
Orthogonal projections and approximations
Let be a vector space with an inner product, and a subspace of spanned by some simple vectors. (Picture as three-dimensional space and as a plane through the origin.) Given a vector in that is not in , which vector of approximates best? With the norm the question is sharp: for which in is smallest? The answer is the orthogonal projection of onto . Recall from the lesson that every splits in one way into a part in and a part in the orthogonal complement ; is the part in , and with an orthonormal basis of it is
In words
capital P sub U v equals ( e one, v) e one plus and so on plus ( e sub n, v) e sub n
(a)4 points
Prove the claim: for every in ,
In words
the absolute value of v minus u is greater than or equal to the absolute value of v minus capital P sub U v
Hint
Write . In which subspaces do the two parts lie?
Hint
For orthogonal vectors the squared norms add (the "Pythagorean" identity of the notes).
Solution
The idea. The difference splits into a part orthogonal to , which does not depend on , and a part inside . The choice of can only make the second part vanish.
Splitting the difference
is the part of in . Both and are in , so is in . The two parts are orthogonal, and
In words
the absolute value of v minus u squared equals the absolute value of v minus capital P sub U v squared plus the absolute value of capital P sub U v minus u squared is greater than or equal to the absolute value of v minus capital P sub U v squared
Taking the square root gives the claim.
Check the result
Equality holds only when , that is for : the best approximation is unique. In the picture: the point of a plane closest to a point outside it is the foot of the perpendicular.
As an application, take for the infinite-dimensional space of real functions on the interval , with the inner product
In words
(f, g) equals the integral from minus pi to pi of f(x) g(x) d x
and for the six-dimensional subspace with the basis : the polynomials of degree five or less. MIT advises a program that does integrals for what follows.
(b)4 points
Use the Gram–Schmidt procedure, in the order of the basis above, to find an orthonormal basis of . In the boxes, give and (with a positive leading coefficient, as the procedure gives them).
Hint
is the function 1 divided by its norm, and .
Hint
An even function and an odd function are orthogonal on this interval. So needs only to be normalized, and only loses its component along .
Solution
The idea. Gram–Schmidt takes the powers of one at a time, removes the components along the functions already found, and normalizes. Even and odd functions never mix.
The first three
, so . The function is odd, so , and . For : and , and the norm of what is left follows from :
In words
e one equals 1 over the square root of 2 pi, e two equals the square root of 3 over the quantity 2 pi cubed, end of root, x, e three equals the square root of 45 over the quantity 8 pi to the power 5, end of root, the quantity x squared minus pi squared over 3
The other three
Continuing in the same way (here a program helps):
In words
e sub 4 equals the square root of 175 over the quantity 8 pi to the power 7, end of root, the quantity x cubed minus 3 pi squared over 5, times x, e sub 5 equals the square root of 11025 over the quantity 128 pi to the power 9, end of root, the quantity x to the power 4 minus 6 pi squared over 7, times x squared plus 3 pi to the power 4 over 35, e sub 6 equals the square root of 43659 over the quantity 128 pi to the power 11, end of root, the quantity x to the power 5 minus 10 pi squared over 9, times x cubed plus 5 pi to the power 4 over 21, times x
Check the result
Each has norm 1 and is orthogonal to the others: for instance . In terms of the six functions are, up to their constants, , , , , and . These are the Legendre polynomials, rescaled to this interval.
(c)5 points
Find the best approximations in of the functions and . Work them out exactly, as polynomials in whose coefficients hold powers of and other constants. Then write the polynomials with numerical coefficients to six significant digits, and type those in the boxes (the boxes accept values within 0.1%).
Hint
By part (a) the best approximation is the projection: , and the same for the cosine.
Hint
The sine is odd, so only , and contribute to it. The cosine is even: only , and .
Hint
The integrals needed are for and for : integrate by parts, or let a program do it.
Write and .
Solution
The idea. The best approximation is the orthogonal projection onto , a sum over the orthonormal basis of part (b). The symmetry of each function removes half of the terms.
The integrals
Integrating by parts (or with a program):
In words
the integral from minus pi to pi of x sine x d x equals 2 pi, the integral from minus pi to pi of x cubed sine x d x equals 2 pi cubed minus 12 pi, the integral from minus pi to pi of x to the power 5 sine x d x equals 2 pi to the power 5 minus 40 pi cubed plus 240 pi
In words
the integral from minus pi to pi of cos x d x equals 0, the integral from minus pi to pi of x squared cos x d x equals minus 4 pi, the integral from minus pi to pi of x to the power 4 cos x d x equals 48 pi minus 8 pi cubed
The sine
Only the odd functions contribute: . For example . Collecting the powers of :
In words
capital P sub U sine equals 105 the quantity pi to the power 4 minus 153 pi squared plus 1485, over the quantity 8 pi to the power 6, times x minus 315 the quantity pi to the power 4 minus 125 pi squared plus 1155, over the quantity 4 pi to the power 8, times x cubed plus 693 the quantity pi to the power 4 minus 105 pi squared plus 945, over the quantity 8 pi to the power 10, times x to the power 5
In words
capital P sub U sine is approximately 0.987862 x minus 0.155271 x cubed plus 0.00564312 x to the power 5
The cosine
Only the even functions contribute, and , so :
In words
capital P sub U cos equals 105 the quantity 27 minus 2 pi squared, over the quantity 8 pi to the power 4, minus 315 the quantity 45 minus 4 pi squared, over the quantity 4 pi to the power 6, times x squared plus 1575 the quantity 21 minus 2 pi squared, over the quantity 8 pi to the power 8, times x to the power 4
In words
capital P sub U cos is approximately 0.978326 minus 0.452288 x squared plus 0.0261598 x to the power 4
Check the result
What is left over, , must be orthogonal to all of : its integrals against , and over the interval vanish, and those against the even powers vanish by symmetry. The same holds for the cosine with , and . The coefficients are close to those of the Taylor series (, and for the sine; , and for the cosine) but not equal to them: part (d) shows what the difference buys.
(d)2 points
For each of the two functions, plot the function itself, its best approximation in from part (c), and the approximation in given by its Taylor series about , cut off after the term in (for the cosine: after ).
Three boxes of our own. At the end of the interval, , the sine is zero. What do its best approximation and its Taylor polynomial give there? (Use all six digits of the coefficients: the three terms nearly cancel.) And which statement about the two approximations is true?
Hint
The Taylor polynomials are and .
Solution
The idea. The Taylor polynomial is built to be right at one point. The projection is built to make the distance , an integral over the whole interval, as small as possible.
The sine
At the projection gives , and the Taylor polynomial gives , about 33 times further from the true value 0.
The cosine
At , where , the projection gives and the Taylor polynomial .
Near the origin and far from it
Near the Taylor polynomial is the better one. At the projection of the sine is off by and the Taylor polynomial by only ; the Taylor polynomial stays closer up to about . The projection gives up this accuracy near the origin to stay close everywhere: its largest error on the interval is the at the ends.
Check the result
The distances of part (a) show what the projection is built for. For the sine, against for the Taylor polynomial; for the cosine, against . In both cases the projection is closer, as part (a) says it must be: the Taylor polynomial is one of the vectors of .