Math

This page covers the list of math topics provided here:

solutions of ordinary and partial differential equations, power series solutions, linear independence, elementary linear algebra, determinants, Taylor series, eigenvalue problems, orthogonality, Fourier series and integrals, integration by parts, vector algebra, complex numbers, special functions (e.g., Bessel functions and Legendre polynomials).

I have organized these topics in a way that progresses from basic mathematics to more difficult concepts:

  1. Review of basics
  2. Taylor series
  3. Fourier series and transforms
  4. Linear algebra
  5. Ordinary differential equations
  6. Orthogonality and special functions
  7. Vector algebra & vector calculus
  8. Partial differential equations

← Return to home

Review of basics

  1. State the fundamental theorem of algebra (d'Alambert's theorem). [answer]

    Every non-constant single-variable polynomial anxn+an1xn1++a0=0 with complex coefficients an,an1,,a0 has at least one complex root.

  2. State the rational root theorem. [answer]

    Each rational root of anxn+an1xn1++a0=0 is given by x=p/q, where p is an integer factor of a0, and where q is an integer factor of an.

  3. Solve x3x25x3=0. [answer]

    x=1,1,3

  4. Solve x3x28x6=0. [answer]

    x=1,1+7,17

  5. Solve x42x33x2+8x4=0. [answer]

    x=2,1,1,2

  6. Decompose 1/(x2+2x3) into partial fractions. [answer]

    14(1x+3+1x1)

  7. Decompose (x3+16)/(x34x2+8x) into partial fractions. [answer]

    See example 2 here.

  8. Decompose 1/(x31) into partial fractions. [answer]

    See example 5 here and note that the limit method need not be used.

  9. Find the roots of exp(2z)=2i. [answer]

    Write i=eiarctan=eiπ/4. Then take the log of both sides, giving z=ln22+iπ4.

  10. Evaluate (i)1/3. [answer]

    (i)1/3=(eiπ/2)1/3=eiπ/6=(cosπ/6isinπ/6)=(3/2i/2)

  11. Find the real part of eix/(1+ea+ib). [answer]

    eix1+ea+ib=cosxisinx1+eaeib=cosxisinx1+ea(cosb+isinb)=cosxisinx1+ea(cosb+isinb)1+ea(cosbisinb)1+ea(cosbisinb)=cosx+eacosx(cosbisinb)isinxieasinx(cosbisinb)1+ea(cosb+isinb)+ea(cosbisinb)+e2a(cosb+isinb)(cosbisinb)=cosx+eacosxcosbieacosxsinbisinxieasinxcosbeasinxsinb1+ea(cosb)+ea(cosb)+e2a(cos2b+sin2b)=cosx+eacosxcosbeasinxsinb1+e2a(cos2b+sin2b)ieacosxsinb+sinx+easinxcosb1+2eacosb+e2a(cos2b+sin2b) The real part is cosx+eacosxcosbeasinxsinb1+e2a(cos2b+sin2b).

  12. State the fundamental theorem of calculus. [answer]

    The derivative and integral are inverses.

  13. What is the relationship between differentiability and continuity? [answer]

    Differentiability implies continuity, but continuity does not imply differentiability. For an example of a continuous function that is not differentiable, consider |x| at x=0.

  14. limx0ex1x2+x= [answer]

    1 by L'Hopital's rule.

  15. limx02sinxsin2xxsinx= [answer]

    6 by repetitive use of L'Hopital's rule.

  16. limxxnex= [answer]

    0 by L'Hopital's rule. Repeat l'Hopital's rule until xn1=x0.

  17. dsinhx/dx= [answer]

    coshx

  18. dcoshx/dx= [answer]

    sinhx

  19. dtanx/dx= [answer]

    sec2x

  20. dcotx/dx= [answer]

    csc2x

  21. dsecx/dx= [answer]

    secxtanx

  22. dcscx/dx= [answer]

    cotxcscx

  23. dx(x4+x3+x2+1)/(x2+x2)= [answer]

    See example 6 here.

  24. Show that udv=uvvdu. [answer]

    Start with the product rule, ddx(uv)=vdudx+udvdx, integrate both sides over x, and rearrange.

  25. lnxdx= [answer]

    xln(x)x

  26. exsinxdx= [answer]

    Integrate by parts twice to get exsinxdx=ex[sin(x)cos(x)]/2.

  27. What are some general guidelines about trigonometric subtitution? [answer]

    If a quantity a2x2 is involved, set x=asinθ. If a quantity x2+a2 is involved, set x=atanθ. If a quantity x2a2 is involved, set x=asecθ.

  28. a2x2dx= [answer]

    a22arcsinxa+a24xa[1(x/a)2]1/2+C. See this page for more on trigonometric substitution.

  29. dxa2x2= [answer]

    arcsin(x/a)+C

  30. dxa2+x2= [answer]

    1aarctan(x/a)+C

  31. a2+x2dx= [answer]

    See this page for the solution. The integral of secant cubed is needed.

Taylor series

  1. What is the difference between a Taylor series and a Maclaurin series? [answer]

    A Taylor series of f(x) is f(xa)=f(a)+f(a)(xa)+12!f(a)(xa)2+, while the Maclaurin series is the special case for a=0.

  2. Write the first three nonzero terms of the Maclaurin series representation of ex, sinx, cosx, and tanx. [answer]

    ex1+x+x22!sinxxx33!+x55!cosx1x22!+x44!Sorry, I will go no higher.tanxx+x33

  3. Show that cosx=(ejx+ejx)/2, sinx=(ejxejx)/2j.
  4. Write the first three terms of the Maclaurin series representation of ln(1+x). [answer]

    ln(1+x)xx22+x33 near x=0

  5. Write the first three terms of the Maclaurin series representation of ln(1x) [answer]

    ln(1x)xx22x33 near x=0

  6. Write the first three terms of the Taylor series representation of ln(x) about x=1. Verify your answer for by checking that it can be obtained from the previous expansion for ln(1x) by shifting the latter one unit in the negative x direction. [answer]

    ln(x)(x+1)(x+1)22(x+1)33 near x=1 This matches the previous result when the previous result is shifted one unit in the x direction.

Fourier series and transforms

  1. The sine-cosine form of the Fourier series is f(x)=a02+n=1[ancos(nx)+bnsin(nx)]. Why is a0 not included in the sum? [answer]

    a0 is not included in the sum to preserve a symmetric form of the definitions of an and bn.

  2. Use orthogonality to determine a0, an, and bn. [answer]

    First multiply both sides of the form above by cos(mx)dx on both sides and integrate from π to π. Do the same for sin(mx)dx. Use the relations ππsinmxsinnxdx=δnmπππcosmxcosnxdx=δnmπ(2π for m=n=0)ππsinmxcosnxdx=0 and obtain a0=1πππf(x)dxan=1πππf(x)cosnxdxbn=1πππf(x)sinnxdx

  3. If f(x) is periodic in 2π, has a finite number of maxima, minima, and discontinuities, and if ππ|f(x)|dx is finite, what is the relationship between f(x) and its Fourier series? What are these conditions called? [answer]

    The Fourier series of f(x) will converge to f(x) at all points where f(x) is continuous. For points at which f(x) is discontinuous (i.e., has a jump), the Fourier series converges to the midpoint of the jump.

    These are the Dirichlet conditions.

  4. Obtain the Fourier series expansion coefficients of a periodic square wave, which is 1 for πx0 and 1 for 0<xπ. [answer]

    Using the definitions above, a0=0, an=0, and bn=4/nπ for odd n and 0 for even n.

  5. Obtain the Fourier series expansion coefficients of a periodic sawtooth wave, which is x/π for πxπ. [answer]

    Using the definitions above, a0=0, an=0, and bn=(1)n2/nπ.

  6. Obtain the Fourier series expansion coefficients for some of the periodic functions listed here. [answer]

    The expansion coefficients are listed on that page. The half-wave rectified sine appears in the Penn State math packet.

  7. The complex-exponential form of the Fourier series is f(x)=n=cneinx Use orthogonality to determine cn. [answer]

    The orthogonality relation is ππeinxeimxdx=2πδnm. Multiplying both sides by eimx and integrating from π to π gives cn=12πππf(x)einxdx.

  8. Attempt some of these problems from Boas's Methods book, using the sine-cosine and complex exponential Fourier series. [answer]

    The answers are provided in that document.

  9. State Parseval's theorem. [answer]

    Parseval's theorem says that the average value of |f(x)|2 over a period is the sum of the magnitude-squared of the expansion coefficients. This is most straightforwardly written in terms of the complex exponential Fourier series (because there's only one expansion coefficient): |f(x)|2=|cn|2. Parseval's theorem is sometimes referred to as the "completeness relation," because if any one of the harmonics were left out, then |f(x)|2>|cn|2., which is known as Bessel's inequality.

  10. In what sense is the Fourier transform a generalization of the Fourier series? What are the conditions for the convergence of the Fourier transform? [answer]

    The Fourier transform is the "continuum limit" of the Fourier series, expressing a function as the integral of a continuous spectrum of waves, rather than as just the sum of a discrete spectrum of waves. The Fourier transform applies to arbitrary functions (not necessarily periodic).

    The form of the Fourier transform can readily be derived by considering the complex-exponential form of the Fourier series, given above. In the limit that n is a continuous index k, the series becomes an integral, f(x)=c(k)eikxdk, and the coefficients c(k) are c(k)=12πf(x)eikxdx. Note that the appearance of 1/2π in the expression for c(k) is merely a convention.

    The conditions for the convergence of the Fourier transform are the same as those for the Fourier series (the Dirichlet conditions).

  11. Given the function f(x)={1,x[1,1]0,|x|(1,). calculate its Fourier transform c(k). Write the integral representation of f(k) in terms of the calculated c(k). [answer]

    Calculating the Fourier transform in this case is straightforward: c(k)=12πf(x)eikxdx=12π11eikxdx=i2πk(eikeik)=i2πk(eikeik)=i2πk2isink=sinkπk So the integral representation of the given function is f(x)=sinkπkeikxdk.

  12. Given the function f(x)={x,x[0,1]0,otherwise. calculate its Fourier transform c(k). Write the integral representation of f(k) in terms of the calculated c(k). [answer]

    c(k)=12πf(x)eikxdx=12π01xeikxdx=ixeikx2πk+eikx2πk2|x=01=ieik2πk+eik12πk2 So the integral representation of the given function is f(x)=(ieik2πk+eik12πk2)eikxdk.

  13. What does a Gaussian pulse in the time domain i.e., exp(t2/T2) look like in the frequency domain? [answer]

    Since the Fourier transform of a Gaussian is a Gaussian, the signal in the frequency domain is a Gaussian.

  14. ☸ Now consider a sine wave modulated by a Gaussian envelope in the time domain, i.e., exp(jω0t)exp(t2/T2). What does this signal look like in the frequency domain? [answer]

    The Fourier transform of this signal is also a pure Gaussian. I confirmed this analytically and numerically.

    At first, it was not intuitively clear to me why this signal is a pure Gaussian in the frequency domain, rather than a combination of a Gaussian and a delta function in the frequency domain. I was expecting a δ- function to appear at the frequency ω0. This can be rationalized by making use of the convolution theorem, which states that the Fourier transform of the product of two functions is equal to the convolution of their individual Fourier transforms. We wish to find the Fourier transform of a sinusoid × a Gaussian, and we know that the Fourier transform of a sinuosoid is a delta function, while that of a Gaussian is a Gaussian. By the convolution theorem, the Fourier transform of the product is the convolution of the delta function and the Gaussian, which is a pure Gaussian.

Linear algebra

These questions come from Introduction to Linear Algebra by Gilbert Strang and the appendix of Introduction to Quantum Mechanics by D. J. Griffiths.

Towards the end of this section there is some overlap with tensor algebra.

  1. Define linear independence. [answer]

    Vectors v1,v2,v3,,vn, are linearly independent iff a1v1+a2v2+a3v3++anvn=0 for a1,a2,a3,,an=0.

  2. The columns of an invertable matrix are _______ _______. [answer]

    linearly independent

  3. How can one easily check to see that n vectors, each one n×1, are linearly independent? [answer]

    One can assemble a matrix of the n vectors as n×1 columns and see if the determinant is nonzero. If so, the matrix can be inverted, and the columns are linearly indepepdent. If the determinant is 0, the columns are not linearly independent.

  4. Determine whether the vectors v1=(1,1) and v2=(3,2) are linearly independent. [answer]

    Apply the definition of linear independence, a1(11)+a1(32)=(00) This can be recast as (1312)(a1a2)=(00) Performing row reduction gives the identity matrix. Therefore the columns are linearly independent.

  5. Taking v1=(1,1) and v2=(3,2) as basis vectors, what linear combination of v1 and v2 gives the vector v3=(2,1)? [answer]

    The question at hand is to explore a1v1+a2v2+a3v3=0. Perform row operations on (132121)(a1a2a3)=(00) gives (107/5011/5)(a1a2a3)=(00) Thus a1=75a3 and a2=15a3. To answer the question at hand, set a3=1 to find that a1=75 and a2=15. That is, 75v115v2=v3.

  6. Invert A=(011001210) using row operations. Check the result by using Cramer's rule for the inverse, A1=1detACT, where C is the matrix of cofactors, which is (1)i+j times the determinant of A when the ith row and jth column are crossed out. [answer]

    See here for the inverse taken using row operations.

  7. Invert A=(210101010) using row operations. Check the result by using A1=1detACT. [answer]

    See here for the solution.

  8. What is the rank of a matrix? How does one find the rank of a matrix? [answer]

    The rank of a matrix is the dimension of the vector space spanned by its columns (or equivalently, rows). To find the rank of a matrix, the number of linearly independent columns of the matrix must be determined.

  9. Find the rank of (121231350) using row operations. [answer]

    The rank is 2. See here.

  10. Find the rank of (1314273915311208) What is the rank of the transpose of this matrix? [answer]

    Using row operations leads to (1021011100050000), from which it can be seen that the third column is 2v1+v2, where v1 and v2 are the column vectors of the original matrix. However, the rest of the column vectors are linearly independent. Thus the rank of the matrix is 3. In general the rank of the transpose of a matrix is rank of its transpose, i.e., the rank of the transpose of this matrix is 3.

  11. ☸ What are the four fundamental subspaces corresponding to an m×n matrix? State the fundamental theorem of linear algebra. [answer]

    The four subspaces of an m×n matrix A are listed below:

    1. The column space is the vector space spanned by the the linearly independent columns of A. That is to say, the linearly independent columns A form the basis of the column space.
    2. The nullspace is the vector space spanned by all the vectors x that satisfy Ax=0.
    3. The row space is just the column space of AT.
    4. The left nullspace is just the nullspace of AT.

    The fundamental theorem of linear algebra provides the following relations between the four subspaces:

    • The column space and row space both have dimension r, which is the rank of the matrix. The nullspace has dimension nr, and the left nullsapce has dimension mr.
    • The nullspace is orthogonal to the row space, and the column space is orthogonal to the left nullspace.

    The first statement makes sense because if n is the rank of A (i.e., r=n), then the matrix is full rank, i.e., A is invertible. Thus its nullspace has dimension 0; indeed, nr=nn=0. Now suppose that the rank of A is less then n, i.e., n>r. Then, there are nr>0 free variables in the solution to Ax=0. That is to say, x1,x2,,xnr form a basis of dimension nr in the nullspace of A.

    The second statement says that if v is in the nullspace of A, and if w is in the row space of A, then vw=0. This makes sense because each row vector w of A, when multiplied by a vector v from the nullspace, gives 0 on the right-hand side of the equation Av=0. (A similar argument can be made for the column space and the left nullspace).

  12. Prove the triangle inequality, |u+v||u|+|v|. [answer]

    Note that |u+v|2=(u+v)(u+v)(i)=|u|2+|v|2+2|u||v|cosθ. Meanwhile note that (ii)(|u|+|v|)2=|u|2+|v|2+2|u||v|. Comparing equations (i) and (ii) and noting that |cosθ|1 results in |u|2+|v|2+2|u||v|cosθ |u|2+|v|2+2|u||v| which is equivalent to (iii)|u+v|2(|u|+|v|)2 Taking the square root of equation (iii) gives the triangle inequality, |u+v||u|+|v|.

  13. axex+ayey+azez is a Cartesian 3-vector. Does the subset of all vectors with az=0 constitute a vector space? If so, what is its dimension; if not, why not? [answer]

    Yes, axex+ayey constitutes a vector space in the x-y plane of dimension 2.

  14. Does the subset of all vectors with az=1 constitute a vector space? Explain why or why not. [answer]

    No, the subset of vectors with az=1 does not span the space for two reasons. The first reason is that linear combinations of these vectors result in vectors outside the space. For example, adding two vectors from this subset would result in a vector with az=2, which is not in the subset. The second reason is that this subset does not have a null vector, (0,0,0).

  15. Does the subset of all vectors with ax=ay=az constitute a vector space? Explain why or why not. [answer]

    Yes, this combination consitutes a vector space with dimension 1.

  16. Consider the collection of all polynomials in x with complex coefficients of degree less than N. Does this set constitute a "vector" space? If so, suggest a convenient basis and provide its dimensions. [answer]

    Yes, this combination consitutes a vector space with dimension N1. A convenient basis is 1,x,x2,,xN1.

  17. Do polynomials that are even functions constitute a "vector" space? What about polynomials that are odd functions? [answer]

    Yes, even polynomials consitutes a vector space with dimension (N)/2. A convenient basis is 1,x2,x4,xN. The dimension is N/2. Meanwhile, odd polynomials consitutes a vector space with dimension (N1)/2. A convenient basis is x,x3,x5,xN1.

  18. Do polynomials whose leading coefficient is 1 constitute a "vector" space? [answer]

    No, because the sum of two such polynomials would have a leading coefficient not equal to one, and therefore the sum would not in the space.

  19. Do polynomials whose value of 0 at x=1 constitute a "vector" space? [answer]

    Yes; 1,x1,(x1)2,,(x1)N1. The dimension is N1.

  20. Do polynomials whose value of 1 at x=0 constitute a "vector" space? [answer]

    No, because the sum of two such polynomials would not be 1 at x=0, and therefore the sum would not in the space.

  21. Provide definitions of the following types of matrices: symmetric, Hermitian, skew-symmetric, skew-Hermitian, orthogonal, unitary. [answer]

    Symmetric: A=AT.Hermitian: A=A.Skew-symmetric: A=AT.Skew-Hermitian: A=A.Orthogonal: A1=AT.Unitary: A1=A.

  22. ☸ Prove that a real symmetric matrix S has real eigenvalues and orthogonal eigenvectors. [answer]

    First the eigenvalues: the eigenvalue equation is Sx=λx, which, upon taking the conjugate and noting that S is real, gives Sx=λx. Now consider the quantity λxx=xλx Invoking the eigenvalue equation Sx=λx gives λxx=xSx By the definition of the transpose, λxx=STxx=Sxx=(Sx)x where the second two equalities are because S is symmetric and real, respectively. Again invoking the eigenvalue equation gives λxx=λxxλx2=λx2, or λ=λ i.e., λ is real.

    Now for the eigenvectors. Consider two distinct eigenvalue-eigenvector pairs of S: Sx=λx,Sy=μy Then consider the quantity Sxy. Using the definition of the transpose and the fact that S is symmetric gives Sxy=xSTy=xSyλxy=xμy, where the eigenvalue equations have been used in the last equality. Rearranging terms gives λxy=μxy(λμ)xy=0. By the zero product property, and by noting that λμ (i.e., they're distinct), xy=0, which means the eigenvectors are orthogonal.

  23. ☸ When solving Ax=λx where x0, what is the meaning of setting det(AIλ)=0? [answer]

    Note that the equation Ax=λx can equivalently be written as (AIλ)x=0. Call (AIλ)B. The situation Bx=0 needs to be considered.

    Recall two theorems:

    Thm. 1........ B is invertible if and only if Null(B)={0}, i.e., the only solution to Bx=0 is x=0,
    and
    Thm. 2........ B is invertible if and only if detB=0.

    Combining Thm. 1 and 2 to eliminate the statement "B is invertible" gives

    The only solution to Bx=0 is x=0 if and only if detB0.

    The constrapositive of this statement (which is logically equivalent to any conditional statement) is:

    detB=0 if and only if x=0 is not the only solution to Bx=0.

    Since the statement is and iff statement, its converse is also true:

    x=0 is not the only solution to Bx=0 if and only if detB=0.

    We are interested in cases in which x=0 is not the only solution to (AIλ)x=0, and the above statement says that x is not the only solution if and only if det(AIλ)=0. Thus we evaluate det(AIλ)=0 and solve for the eigenvalues and eigenvectors.

  24. Suppose Ax=λx and A is not full rank (i.e., it has at least two columns that are linearly dependent. What then must be at least one of its eigenvalues? [answer]

    At least one of the eigenvalues of must be 0 if A is not full rank.

  25. Find the eigenvalues and eigenvectors of A=(2112) as well as the eigenvalues and eigenvectors of A2, A1, and A+4I (without actually computing the eigenvalues and eigenvectors of the latter four matrices). [answer]

    The eigenvalues and eigenvectors of A are λ=1,x1=(11)λ=3,x1=(11). A2, A1, and A+4I, have the same eigenvectors as A, but the eigenvalues are respectively squared (1,9), inverted (1,1/3), and added by four (5,7).

  26. Find the eigenvalues and eigenvectors of S=(110121011). Does the relative orientation of the eigenvectors make sense? [answer]

    The eigenvalues and eigenvectors of S are λ=0,x1=(111)λ=1,x2=(101)λ=3,x3=(121) Since the matrix is symmetric, it makes sense that the eigenvalues are real and the eigenvectors are orthogonal (see the proof above).

  27. Ax=λx is a vector equation because the left- and right-hand sides are both vectorial. Recast Ax=λx into a matrix form (in which the LHS and RHS are matrices), where X is a matrix whose columns consist of the eigenvectors x, and where Λ=Iλ. Solve the resulting matrix equation for A. How does this equation simplify if A is a symmetric matrix? What is the result for the symmetric matrix called? [answer]

    Writing the eigenvalue problem Ax=λx as a matrix equation gives AX=ΛX. The right hand side can be written as ΛX=IλX=IXλ=XIλ=XΛ: AX=XΛ. Multiplying both sides by X1 on the right solves for A: A=XΛX1. For a symmetric matrix, A=AT, so A=(XΛX1)T=(X1)TΛTXT. Since X consists of orthonormal eigenvectors (remember, the eigenvectors of a symmetric matrix are orthonormal), the matrix itself is orthogonal, i.e., XT=X1. Thus A=XΛXT for a symmetric matrix A. This is called spectral decomposition, and the fact that any symmetric matrix can be written this way is called the spectral theorem.

  28. ☸ What is the recasting of of a matrix A as Λ=X1AX called? For what matrices can this procedure be carried out? What is the significance of the matrix X, and why would someone want to perform this operation? How does this particular operation relate to general changes of basis? [answer]

    This is called diagonalization. It can be carried out if X1 exists. Since the columns of X are simply the eigenvectors of A, the eigenvectors of A must be linearly independent for X1 to exist. In other words, the determinant of A cannot be 0 for A to be diagonalized.

    The significance of the matrix X is that it represents the linear transformation from one basis into a better basis. In the first basis, the matrix A may not be diagonal, but in the better basis, the matrix is diagonalized into Λ. This linear transformation, into a basis in which the matrix is diagonal, is a special type of change of basis, which can be thought of as a "change to the best basis." The more general change-of-base operation (to basis that does not necessarily diagonalize a matrix) is considered in the final three problems of this section. The form of the general change-of-basis is still "transformation × matrix in old basis × inverse transformation."

    At this juncture, it is helpful to keep in mind the distinction between the absolute and the relative. A is an absolute quantity (for example, a tensor or operator), and it is represented by a relative quantity (a matrix), that changes in different bases. In one basis, it is represented by A, and in the better basis, it is represented by the diagonal matrix Λ, where the eigenvalues of A lie along the diagonal of Λ. To get from the first basis to the better basis, one multiplies vectors by the linear transformation X, and one diagonalizes matrices calculating Λ=X1AX.

  29. ☸ Find the eigenvalues and eigenvectors of M=(2022ii2i101). Is it possible to diagonalize the matrix, i.e., find the decomposition M=XΛX1? Suppose there is a vector represented by v=(1,0,0) in the first basis, calculate the respresentation of this vector in the new (eigen)basis. [answer]

    After a considerable amount of manipulation, it is found that λ1=0,x1=(101)λ2=1,x2=(21i1)λ3=i,x3=(010) The eigenvectors span the space, because a matrix whose columns consist of these vectors has a nonzero determinant. Therefore it is possible to diagonalize the M. To find the decomposition M=XAX1, note that X consists of columns that are the eigenvectors of M, X=(12001i1110), the inverse of which is CT/|X|, where C is the cofactor matrix: X1=1|X|(11i1001211i)T=(102101i111i) The decomposition is thus M=XΛX1=(12001i1110)(00001i000i)(102101i111i) which, upon multiplying, does indeed recover M=(2022ii2i101). To rotate v=(1,0,0) into the new basis, multiply X1v=(1,1,i1). Why is the multiplication by X1 and not X? See question 36.

  30. Factor A=(1203) into A=XΛX1. Without actually performing the diagonalization again, find the factorization for A3 and A1. [answer]

    The eigenvalues and eigenvectors are found to be λ1=1,x1=(10)λ2=3,x2=(11) The eigendecomposition for A is thus A=XΛX1=(1101)(1003)(1101). The eigendecomposition for A3 is obtained by simply cubing the eigenvalues, A3=XΛ3X1=(1101)(10027)(1101), and the eigendecomposition for A1 is obtained by simply inverting the eigenvalues, A1=XΛ1X1=(1101)(1001/3)(1101). I verified these calculations in MATLAB.

  31. ☸ Qualitatively, what is the difference between A (sans-serif) and A (italicized)? Similarly, what is the difference between v and v? [answer]

    A is a tensor, while A is a matrix. A is a representation of A in a chosen basis. The difference between A and A is analogous to the difference between a quantum mechanical operator H and its matrix representation in a particular basis H^.

    Similarly, v is a vector, while v is that vector evaluated in a particular basis. The difference between v and v is analogous to the difference between the ket |ψ and the wave function ψ(x) in quantum mechanics: the latter is a representation of the former in the basis of Euclidean 3-space. It is also analogous to the difference between the operator curl  and its vector representation in Cartesian coordinates × (or any of the vector calculus operators, like divergence, gradient, and the Laplacian).

  32. Let A and B be two dyadic tensors (dyads). Show that (AB)T=BTAT. Hint: introduce two auxiliary vectors u and v and use the definition of transpose, (ATu)v=(Av)u twice. [answer]

    Multiply u on the right-hand side by the identity matrix I twice: [(AB)Tu]v=[(AB)v]u=A[Bv]u=(ATu)[Bv]=BvATu=BT(ATu)v=BTATuv Since u and v are arbitrary, the proof is complete.

  33. Let A and B be two invertible dyads. Show that (AB)1=B1A1. [answer]

    Multiply u on the right-hand side by the identity tensor I twice: (AB)1u=(AB)1IIu=(AB)1IAA1u=(AB)1AIA1u=(AB)1ABB1A1u=B1A1u Since u is arbitrary, the proof is complete.

  34. Prove that any tensor T can be written as the sum of a symmetric tensor S and an antisymmetric tensor A. Similarly prove that any tensor can be written as the sum of a real tensor R and an imaginary tensor M. Finally prove that any tensor can be written as the sum of a symmetric tensor H and an antisymmetric tensor K. [answer]

    Note that a symmetric matrix is constructed by adding T and its transpose, while an asymmetric matrix is constructed by subtracting the transpose from T. S=12(T+TT)A=12(TTT) Adding the above equations shows that T=S+A.

    Next, note that a real matrix is constructed by adding T and its conjugate, while an imaginary matrix is constructed by subtracting the conjugate from T. R=12(T+T)M=12(TT) Adding the above equations shows that T=R+M.

    Finally, note that a Hermitian matrix is constructed by adding T and its Hermitian conjugate, while an skew-Hermitian matrix is constructed by subtracting the Hermitian conjugate from T. H=12(T+T)K=12(TT) Adding the above equations shows that T=H+K.

  35. How does one test to see if A and B share the same independent eigenvectors? Provide examples in physics of two linear operators that share eigenvectors, and two linear operators that do not. [answer]

    They share the same independent eigenvectors iff AB=BA, i.e., they commute. An example of linear operators that commute and therefore share eigenvectors are L2 and Lz; an example of matrices that do not commute and therefore do not share eigenvectors are Lx and Lz, where L is the orbital angular momentum operator of quantum mechanics, and Ln is its projection on the n Cartesian axis..

  36. ☸ For some tensorial linear equation Ax=b, suppose there is one representation of this equation in the primed basis , Ax=b and another representation in the unprimed basis, Ax=b. Given the unprimed basis is a linear transformation of the primed basis, i.e., Sv=v, find the matrix representation of A in the unprimed basis in terms of A and S. What is the relationship between the eigenvalues of A, A and A? What are A and A called with respect to one another? How does this change of basis relate to diagonalization? [answer]

    See here for the manipulations that lead to A=SAS1. The relationship between the eigenvalues of A, A and A, is that they are all equal. The eigenvalues are independent of the basis, and the eigenvalues of A can be calculated using the so-called principle invariants (see Stern's nonlinear continuum mechanics notes, ch. 1). Matrices A=SAS1 and A are called similar.

    Compare the change-of-basis, A=SAS1, to diagonalization, Λ=X1AX. Usually the diagonal matrix Λ is the representation in the new basis. Thus S is analogous to X1, i.e., when the columns of S1 are composed of the eigenvectors of A, the change of basis recovers the eigendecomposition. Since vectors transform from the old basis to the new basis as Sv=v, the transformation from the old (primed) basis to the new (unprimed) basis in which the representation of A is diagonal is X1v=v.

  37. ☸ Show that the eigenvalues λ satisfying Ax=λx (unprimed basis) are invariant under the transformation to the primed basis, where the linear transformation between unprimed and primed bases is v=Sv. In other words, show that Ax=λx [answer]

    Start with the eigenvalue problem in the unprimed basis. Invoke the linear transformation between unprimed and primed bases is x=Sx. Multiply both sides by the inverse of the linear transformation, and identify S1AS=A (see previous problem). Note that the equation is an eigenvalue problem now in the primed basis, with the same eigenvalue λ. Ax=λxASx=λSxS1ASx=λxAx=λx Thus the eigenvalues are invariant under linear transformations of matrices.

  38. Do the trace and detemrinant of a tensor depend on the basis? Provide expressions for the trace and determinant of a tensor A (with an n×n matrix representation) terms of the eigenvalues of A. [answer]

    Like the eigenvalues themselves, the trace and the determinant are independent of basis. Tr A=nλn and det A=nλn.

  39. ☸ Find the eigenvalues and eigenvectors of (111111111). Comment on the orientation of the eigenvectors. Are they orthogonal? Why or why not? If not, does this contradict the earlier claim that the eigenvectors of a real symmetric matrix (problem 22) are orthogonal? And if the eigenvectors are not orthogonal, can one make them orthogonal? If so, do this. [answer]

    See here for the solution. In summary, two of the eigenvalues λ1 and λ2 are degenerate, and their corresponding eigenvectors v1 and v2 are found to not be orthogonal. Meanwhile, both v1 and v2 are orthogonal to v3. This is consistent with the claim made in problem 22, since that statement was restricted to non-degenerate eigenvalues. To orthogonalize the eigenvectors v1 and v2, the so-called Gram-Schmidt procedure is used. Griffiths notes that this procedure rarely needs to be carried out in practice, but that it can be done in principle.

Ordinary differential equations

Each numbered equation in this section represents a unique type of differential equation. For a thorough review of this section, be sure to know how to solve each type of differential equation.

  1. Define a homogeneous function. Provide an example of a homogeneous functions. [answer]

    Simply put, f(sx1,,sxn)=skf(x1,,xn) is a homogeneous function, where k is the "degree of homogeneity." For example, f(x,y,z)=x5y2z3 is homogeneous of degree 10 because f(αx,αy,αz)=(αx)5(αy)2(αz)3=α10f(x,y,z).

  2. Define a homogeneous polynomial and provide an example. [answer]

    Similar to a homogeneous function, a homogeneous polynomial is defined by P(sx1,,sxn)=skP(x1,,xn) where P is some multivariate polynomial. Simply put, a polynomial is homogeneous if its terms all have the same degree. An example of a homogeneous polynomial is x2+2xy+y2.

  3. What defines the homogeneity of a rational function? [answer]

    A rational function is homogeneous if it consists of a ratio of two homogeneous polynomials.

  4. Define the linearity of a function f(x). Linear functions obey the _________ principle. [answer]

    The properties f(x+y)=f(x)+f(y) and f(ax)=af(x) for all a together define linearity. Linear functions obey the superposition principle.

  5. Is a homogeneous function always linear? Is a linear function always homogeneous? [answer]

    A homogeneous function is not always linear. For example, f(x,y,z)=x5y2z3 is homogeneous but not linear. However, a linear function is always homogeneous, because homogeneity is one of the two properties of linear functions.

  6. What defines a homogeneous first-order ordinary differential equation? Provide an example of a first-order ODE that is homogeneous, as well as an example of one that is inhomogeneous. [answer]

    A homogeneous ordinary differential equation is of the form dydx=f(x,y)=f(yx). An example of a first-order ODE that is homogeneous is dydx=sin(y/x)y/x+(y/x)2, while an example of a first-order ODE that is inhomogeneous is dydx=y+x.

  7. Classify the differential equation (1)dydx=a(x)y. Find the general solution to equation (1). [answer]

    This is a linear, homogeneous, separable ordinary differential equation. The general solution is y=±Cea(x)dx.

  8. Classify and solve dydx=[x+cos(x)]y. for y. [answer]

    This is a linear, homogeneous, separable ordinary differential equation. The general solution is y=±Cea(x)dx.

  9. Classify and solve dydx=(yx)2. The solution can remain in an implicit form. Hint: is there a transformation that can make this ODE separable? [answer]

    As written, this is a nonlinear, homogeneous, inseparable ordinary differential equation. However, it can be made separable by making the substitution z=yx. Then, the ODE becomes dzdx=z21, and the general solution is ln(z1)ln(z+1)=2x+C.

  10. Classify and solve dydt=cos(yt). Follow the hint above. [answer]

    As written, this is a nonlinear, homogeneous, inseparable ordinary differential equation. However, it can be made separable by making the substitution z=yt. Then, the ODE becomes dzdx=cos(z)1, and the general solution is found by performing the integral dzcosz1=t. I used Wolfram to calculate the integral (It is doable, but involves a trigonometric substitution). The solution is cotz2=t, or in an explicit form, z=2arccot(t),

  11. Classify and solve y+xy=xdydx, where x>0. Hint: is there a transformation that can make this ODE separable? This time it a multiplicative transformation, unlike that addititive transformations in the previous two examples. [answer]

    First the ODE is rearranged into the form, xdydx=y+xydydx=yx+xyxdydx=yx+yx From the last equation it can be seen that the ODE is homogeneous (because it is of the form dy/dx=f(y/x)). Making the substitution y/x=u results in xdudx+u=u+uxdudx=uu1/2du=dxx2u1/2=lnx+Cy1/2/x1/2=12(lnx+C)y=x(12lnx+C)2

  12. Classify the differential equation (2)dydx=a(x)y+b(x). Find the general solution to equation (2) by assuming the form of solution to equation (1), but with C=C(x). What is the name of this solution? [answer]

    This is a linear, inhomogeneous first-order ordinary differential equation.

    The form of solution is assumed to be y=C(x)ea(x)dx. Inserting this solution into equation (2) and applying the product rule gives ea(x)dxddxC(x)+C(x)ddxea(x)dx=a(x)y+b(x) Note that ddxea(x)dx=ea(x)dxddxa(x)dx=a(x)ea(x)dx. Therefore, ea(x)dxddxC(x)+C(x)a(x)ea(x)dx=a(x)y+b(x)=a(x)C(x)ea(x)dx+b(x) Canceling the common term above gives ea(x)dxdC(x)dx=b(x) Solving for C(x) gives C(x)=b(x)ea(x)dxdx Substituting this equation for C(x) into the assumed form of solution gives y=ea(x)dx[b(x)ea(x)dxdx] This is called the Cauchy equation.

  13. Classify and solve (1+x2)y+2xy=cosx. [answer]

    This is a linear, inhomogeneous first-order ordinary differential equation. Rewriting it as y=cosx1+x22xy1+x2 renders it in the form of y=a(x)y+b(x). Thus the Cauchy formula y=ea(x)dx[b(x)ea(x)dxdx] can be applied with a(x)=2x1+x2b(x)=cosx1+x2. Noting that a(x)dx=2x1+x2dx=ln(1+x2)+Candb(x)ea(x)dxdx=cos(x)1+x2eln(1+x2)dx=cosxdx=sinx+C Thus Cauchy equation is y=eln(1+x2)1(sinx+C)=sinx1+x2+C where C above varies form line to line (I know it is not technically correct, but one can absorb any arbitrary constant in C).

  14. Classify the differential equation (3)dydx=a(x)y+b(x)yn where n0,1 is real. What is the name of this equation? What substitution does one make to facilitate its solution? [answer]

    This is a nonlinear, inhomogeneous first-order ordinary differential equation. It is called the Bernoulli equation.

    To solve this equation, one should seek a substitution that makes the equation linear. Let y=zα, and therefore dy/dx=αzα1dz/dx Then equation (3) becomes αdzdx=a(x)z+b(x)zαnα+1 In order for the above equation to be reduced to a linear inhomogeneous equation [see equation (2)], one should set the exponent of z multiplying b(x) equal to 0, which results in α=11n

  15. Classify and solve xydy=(y2+x)dx. [answer]

    Rearrange the equation into its standard form: dydx=y2+xxy=yx+1y. This is a nonlinear inhomogeneous ordinary differential equation, dydx=a(x)y+b(x)yn with a(x)=1x, b(x)=1, and n=1. To transform the ODE into a linear one, set y=zα, where α=11n=12, resulting in αdzdx=a(x)z+b(x)12dzdx=1xz+1dzdx=2xz+2 dzdx=2xz+2 is now a linear inhomogeneous ordinary differential equation whose solution is given by the Cauchy equation: z=e2xdx(2e2xdxdx).=2x+C The solution to for y is thus y=±C2x.

    In my ODE notes from UT Dallas, I had y=±Cx22x, but I disagree with the way the constants of integration were defined in the Cauchy equation that lead to this answer.

  16. Classify the differential equation (4)M(x,y)dx+N(x,y)dy=0,where My=Nx. What is the general solution of equation (4) in integral form? [answer]

    This is an exact equation, and the solution in integral form is F=Fxdx=Mdx. Equivalently, the solution is F=Fydy=Ndy. One should take the integral over whichever variable is easier to integrate over. After the taking the integral over one variable, the unknown constant is determined by taking the derivative of F with respect to the other variable, and setting this equal to M if the other variable is x, or N if the other variable is y.

  17. Classify and solve (4x3+3y)dx+(3x+4y3)dy=0. [answer]

    This is an exact differential equation because My=Nx=3 Therefore the solution is F(x,y)=Fxdx=(4x3+3y)dx=x4+3xy+C(y) To determine C(y), take the partial derivative with respect to y and set this equal to N=3x+4y3: 3x+C(y)=3x+4y3C(y)=4y3C(y)=y4 Thus the solution is F(x,y)=y4+x4+3xy.

  18. How does one solve (5)M(x,y)dx+N(x,y)dy=0,but now where MyNx? What is the name of this method? [answer]

    One can solve equation (5) by multiplying through by μ(x) or μ(y), and then forcing that the mixed partials of F be equal. Note that multiplying through by μ(x,y) leads to a partial differential equation, which is not desired in this context.

    In this derivation, multiply through by μ(x), μ(x)M(x,y)dx+μ(x)N(x,y)dy=0, and then set y[μ(x)M(x,y)]=x[μ(x)N(x,y)]μMy=dμdxN+μNxdμdxN=μ[MyNx](i)1μdμdx=M/yN/xN Equation (i) can be integrated and solved for μ. Thus μ is called the integrating factor, and this method is called the ''integrating factor method.''

    Note that the right-hand side of equation (i) must be only a function of x, in the case above. If it is not (i.e., if it is a function of y as well), then try multiplying the original equation by μy, for which 1μdμdy=N/xM/yM

  19. Classify and solve (x+2)sinydx+xcosydy=0. [answer]

    This looks like it might be in the form of an exact equation, but since M/y=(x+2)cosyN/x=cosy, it requires the integrating factor method to turn it into an exact equation. An integrating factor μ(x) is attempted. 1μdμdx=(x+2)cosycosyxcosy=1+1xdμμ=(1+1x)dxlnμ=x+lnxμ=exelnx=xex Now the original ODE becomes xex(x+2)sinydx+x2excosydy=0 The solution is F(x,y)=Fxdx= However, before proceeding with this option, note that in this case that it is much easier to find F(x,y)=Fydy=x2excosydy=x2exsiny+C(x). The constant C(x) is found by differentiating F with respect to x and setting this equal to xex(x+2)siny: Fx=(2xex+x2ex)siny+C(x)=xex(x+2)siny Thus C(x)=x2exsiny+2xexsiny(2xex+x2ex)siny=0, and thus C(x)=const. The solution is therefore F(x,y)=x2exsiny+const.

  20. Classify the differential equation (6)ay+b+cy=0, where a, b, and c are constants, and where the prime will now be used for notational ease to signify derivative. How does one solve this equation? There are the three possible cases that emerge. What are they? [answer]

    This is a linear, second-order ordinary differential equation with constant coefficients. It is solved by making the substitution erx, which leads to a quadratic equation in r. Note that this generalizes to higher derivatives, leading to polynomials of higher degree to solve.

    Three cases emerge.

    1. The solutions r are real (discrimant b24ac>0. In this case, the solution to the 2nd order ODE is exponential decay and/or growth.
    2. The solutions r are complex (discrimant b24ac<0. In this case, the solution to the 2nd order ODE is waves, which can either be written as complex exponentials, or as sines and cosines.
    3. The solutions r are equal, i.e., a double root (discrimant b24ac=0. In this case, the second solution gets multiplied by x× the first. This will be proved later.

  21. Classify and solve y+4y+9y+10y=0. [answer]

    This is a linear, third-order ordinary differential equation. Follow the procedure above and obtain the characteristic cubic equation in r, r3+4r2+9r+10=0. The three solutions of this equation are r=2, r=1+2i, and r=12i. Thus the solution is y=C1e2x+C2excos(2x)+C3exsin(2x).

  22. Classify and solve y+6y+12y+8y=0. [answer]

    This is also a a linear, third-order ordinary differential equation. Following the same procedure as above, obtain the characteristic cubic equation in r, r3+6r2+12r+8=0. The three solutions of this equation are the triple root r=2. Thus the solution is therefore y=C1e2x+C2xe2x+C3x2e2x.

  23. What is the definition of the Wronskian? What information does it provide? [answer]

    The Wronskian W is defined as W=|y1(x)y2(x)y1(x)y2(x)|=y1y2y2y1, where y1 and y2 are two solutions to a second-order linear ordinary differential equation, and where signifies derivative. Two solutions of the same equation are called a fundamental pair if W0.

    There is another way to calculate W: Abel's formula for the Wronskian: W=ep(x)dx, where the ODE is written as y+p(x)y+q(x)y=0. However, I don't think it's worth reviewing.

  24. Determine whether y1=x and y2=lnx are a fundamental pair, and if so, on what interval. What about y1=arccosxπ and y2=arcsinxπ? [answer]

    The Wronskian for the first case is W=lnx, which is never 0. Thus y1=x and y2=lnx are a fundamental pair for all x>0 (since lnx is defined on that interval).

    The Wronskian for the second case is W=arccos(x/π)π1x2+arcsin(x/π)π1x2, which (I don't think) has a solution. Thus the solutions are a fundamental pair for x(π,π).

  25. ☸ Classify the differential equation (7)a(x)y+b(x)y+c(x)y=0. Given one solution y1 to equation (7), how can the other solution y2 be found? What is this method called? Hint: Let y2=uy1. Insert this into equation (7). Introduce z=u and then let z=u (This is where the name of the method comes from). Solve for z, integrate, and find u. y2 is then found because y2=uy1. I doubt this would be on the exam as it is too involved. [answer]

    Assume that y2=uy1. Then the derivatives of y2 are y2=uy1+uy1y2=uy1+uy1+uy1+uy1. Inserting these relations into equation (7) results in a(x)(uy1+uy1+uy1+uy1)+b(x)(uy1+uy1)+c(x)uy1=0. This equation is regrouped: u[a(x)y1+b(x)y1+c(x)]+a(x)uy1+2a(x)uy1+b(x)uy1=0. The first term in [...] is 0 by equation (7). Therefore, a(x)uy1+u[2a(x)y1+b(x)y1]=0. Now, introduce the parameter z=u, which kicks all the derivatives above down one: a(x)y1dzdx+z[2a(x)y1+b(x)y1]=0.dzz=[2y1y1b(x)a(x)]dx Integrating results in lnz=2y1y1dxb(x)a(x)dx=2dy1dx1y1dxb(x)a(x)dx=2dy1y1b(x)a(x)dx=ln(y12)b(x)a(x)dx. Exponentiating gives z=y12eb(x)a(x)dx.u=zdx=y12eb(x)a(x)dxdx.y2=y1u=y1y12eb(x)a(x)dxdx.

    This method is called reduction of order.

  26. Given that y1=x is a solution to x2yx(x+2)y+(x+2)y=0, classify this equation and find the general solution. [answer]

    This is a linear homogeneous second-order ordinary differential equation with nonconstant coefficients. Reduction of order should be used: y2=y1y12eb(x)a(x)dxdx=xx2ex(x+2)x2dxdx=xx2e(1+2/x)dxdx=xx2ex+ln(x2)dx=xexdx=xex

  27. Classify the differential equation (8)ay+by+cy=g(x). List the two ways to solve this equation. [answer]

    This is linear inhomogeneous second-order ordinary differential equation with constant coefficients. The two methods to solve this are (1) the method of undetermined coefficients and (2) the variation of parameters:

    First let us discuss the method of unetermined coefficients, which works when the right-hand side g(x) is exponential, sinusoidal, polynomial, or a product or sum of exponentials, sinusoidals, and polynomials.

    1. If g(x)=ekxp(x), where p is a polynomial of degree n, then use as the form of particular solution yp(x)=ekxq(x), where q is the nth degree polynomial. The coefficients of q are then determined by substituting it into equation (8).
    2. If g(x)=ekxp(x)cos(mx), or if g(x)=ekxp(x)sin(mx) where p is a polynomial of degree n, then use as the form of particular solution yp(x)=ekxq(x)cos(mx)+ekxs(x)sin(mx)+, where q and s are nth degree polynomials with different coefficients.

    Importantly, in either case above, if any term of the particular solution is also a solution of the homogeneous equation, then the form of solution should be multiplied by x (if the particular solution coincides with the homogeneous solution once), or x2 (if the particular solution coincides with the homogeneous solution twice). This is called resonance.

  28. Classify and solve y+4y=e3x. [answer]

    y=yh+yp=C1cos2x+C2sin2x+113e3x.

  29. Classify and solve y+y=sinx. [answer]

    See here for a video solution. There a resonance here of multiplicity 1. The solution is y=C1cosx+C2sinxx2cosx.

  30. Classify and solve y4y+3y=2xex. [answer]

    The method of undetermined coefficients is used. However, one needs to be careful in this case, because the particular solution resonates with the homogeneous solution. Thus the particular solution be chosen to be yp=xex(Ax+B). See here for the complete solution.

  31. Classify and solve y+2y+y=ex. [answer]

    The method of undetermined coefficients is used. Again, one needs to be careful because the particular solution resonates with the homogeneous solution, this time with multiplicity 2. Thus the particular solution be chosen to be yp=Ax2ex. See here for the complete solution.

  32. Determine the form of trial solution for y4y+13y=e2xcos3x. [answer]

    Note that the homogeneous solution has characteristic roots r=2+3i and r=23i. The first of these roots coincides with the driving function, e2xcos3x. Thus the form of solution should be the non-resonant guess multiplied by x, i.e., xe2x(Acos3x+Bsin3x).

  33. What is the variation of parameters? Do not provide the full derivation, but provide the big picture (like, why is it called "variation of parameters"?). In what situations should the variation of parameters be used? [answer]

    Variation of parameters provides a more general way of solving y+p(x)y+q(x)y=0, a linear 2nd order inhomogeneous ordinary differential eqution with non-constant coefficients. It can of course also be used to solve a linear 2nd order inhomogeneous ordinary differential eqution with constant coefficients, and in fact this is the method that must be used when the right-hand side g is more complicated than a sum or product of polynomials, trigonometric functions, or exponentials.

    To derive the variation of parameters, first one solves the homogeneous equation to obtain solutions y1 and y2. Then, one looks for the form of solution yp=C1(x)y1(x)+C2(x)y2(x), which gives the method its name C1 and C2 are allowed to vary as functions, not constants. An additional constraint (i)C1y1+C2y2=0 is imposed. Taking the derivatives of y, substituting the result into the ODE, and simplifying results in (ii)yp=C1y1+C2y2. Combining equations (i) and (ii) results (by Cramer's rule) in a solution for y: (iii)yp=y1y2gWdx+y2y1gWdx. Just memorize equation (iii).

  34. Solve y+4y=3sinx. [answer]

    See here.

  35. Solve y2y+y=ett2+1. [answer]

    Using the variation of parameters, the particular solution is found by taking the integrals yp=y1y2gWdx+y2y1gWdx=C1et+C2tetet2ln(t2+1)+tetarctant.

  36. ☸ What is (9)ax2y+bxy+cy=0 called? (Why is it a bad name)? What clever substitution does one make to go about solving it? [answer]

    Equation (9) is known as Euler's equation. A better name is the "Cauchy-Euler equation,'' because Euler already has so many equations named after him (like fyddxfy=0 from the calculus of variations and eiπ+1=0, the identity containing the most important numbers of mathematics)!

    To solve equation (9), one lets x be an exponential function of a new independent variable t. That is, x=et. Then the derivatives of y with respect to t are dydt=dydxdxdt=dydxet=dydxxd2ydt2=ddtdydt=ddt(dydxx)=xd2ydtdx+dxdtdydx Note that d2ydtdx=d2ydxdt=ddx(dydxdxdt)=ddx(dydx)dxdt=ddx(dydx)x. Therefore, d2ydt2=x2d2ydx2+xdydx. Solving the above relations for the derivatives with respect to x gives dydx=1xdydtd2ydx2=1x2(d2ydt2xdydx) Thus equation (9) is ax2d2ydx2+bxdydx+cy=0a(d2ydt2xdydx)+bdydt+cy=0a(d2ydt2dydt)+bdydt+cy=0ad2ydt2+(ba)dydt+cy=0 Therefore, the introduction of x=et successfully converts equation (9) into a constant-coefficient differential equation, where the independent variable is t instead of x. Thus, the solution to ad2ydt2+(ba)dydt+cy=0 is y(t) (and it is solved the same way as equation (6), only in t, i.e., letting y=ert), which must be converted back to y(x) by letting t=lnx.

  37. What are the three cases that arise when solving equation (9)? [answer]

    It was shown in the previous problem that Euler's equation is a constant-coefficient differential equation where r is the independent variable: a2y+(ba)y+cy=0. Three cases arise:

    1. a2y+(ba)y+cy=0 has real roots r1 and r2, and the solution to Euler's differential equation is y(t)=C1er1t+C2er2ty(x)=C1xr1+C2xr2.
    2. a2y+(ba)y+cy=0 has a double roots r1=r2r, and the solution to Euler's differential equation is y(t)=C1ert+C2terty(x)=C1xr+C2lnxxr.
    3. a2y+(ba)y+cy=0 has a complex roots r1=α+iβ and r2=αiβ, and the solution to Euler's differential equation is y(t)=C1eαtcosβt+C2eαtsinβty(x)=C1αtcos(βlnx)+C2αtsin(βlnt)
    Thus, to remember how to solve equation (9), one must simply remember that the substitution x=et converts equation (9) into a2y+(ba)y+cy=0.
  38. Classify and solve 2x2y+3xyy=0. [answer]

    This is a Cauchy-Euler differential equation. Recalling that the substitution x=et converts equation (9) into a2y+(ba)y+cy=0, the coefficients a=2, b=3 and c=1 are identified, and the constant-coefficient equation is 2y+yy=0, the solution of which is y(t)=C1et/2+C2et Making the substitution x=et gives the solution of the Cauchy-Euler differential equation: y(x)=C1x1/2+C2x1.

  39. Let an be the expansion coefficients in a series solution y=nanxn. Define the radius of convergence of this sum. [answer]

    R=limn|anan+1|

  40. Calculate the radius of convergence for ex. [answer]

    Noting that ex=n=0xnn!, the radius of convergence is R=limn|(n+1)!n!|=limn(n+1)=. That is, the series converges everywhere.

  41. Calculate the radius of convergence for 11x. [answer]

    Noting that 11x=n=0xn, the radius of convergence is R=limn|(n+1)!n!|=limn1=1. That is, this series converges on the interval x=(1,1).

  42. Solve y+y=0 by series. [answer]

    Let y=n=0anxny=n=0nanxn1=n=1nanxn1y=n=0n(n1)anxn2=n=2n(n1)anxn2 where it has been noted that the first term in the sum for y is 0, and the first two terms in the sum for y are 0. Substituting these sums into the ODE gives n=2n(n1)anxn2+n=0anxn=0 Now the indices of the first summation term shifted from n+2n, which means that 2 must be added to each n in the summand to compensate: n=0(n+2)(n+1)an+2xn+n=0anxn=0 The two summations may now be combined under the same sum: n=0[(n+2)(n+1)an+2+an]xn=0 Since this relation holds for every n, one can identify a recurrence relation: (n+2)(n+1)an+2+an=0an+2=an(n+2)(n+1) Now for the fun part, let a0=1 and a1=0. Then all an for n odd vanishes, and n=0:a2=a0(0+2)(0+1)=112n=2:a4=a2(2+2)(2+1)=11234n=4:a6=a4(4+2)(4+1)=1123456 Defining k=2n, the pattern is explicitly given by a2k=(1)k/(2k)! and a2k+1=0. The solution can be written as k=0(1)k(2k)!x2k

    Meanwhile, letting a0=0 and a1=1 all an for n even vanishes, and n=1:a3=a1(1+2)(1+1)=123n=3:a5=a3(3+2)(3+1)=11245n=5:a7=a5(5+2)(5+1)=11234567 Thus the pattern is explicitly given by a2k+1=(1)k/(2k+1)! and a2k=0. The solution can be written as k=0(1)k(2k+1)!x2k+1

    The general solution is therefore y=a0k=0(1)k(2k)!x2k+a1k=0(1)k(2k+1)!x2k+1 which we recognize as linear combinations of sines and cosines.

  43. What is the name of the ordinary differential equation yxy=0? What are some of its applications? Solve it by series. [answer]

    This is the Airy equation, which was developed by Airy to describe caustics in optics, like in a rainbow. It is also used in quantum mechanics, at the turning point in the WKB approximation.

    As before, let y=n=0anxny=n=0nanxn1=n=1nanxn1y=n=0n(n1)anxn2=n=2n(n1)anxn2 where again it has been noted that the first term in the sum for y is 0, and the first two terms in the sum for y are 0. Substituting these sums into the Airy equation gives n=2n(n1)anxn2xn=0anxn=0n=0(n+2)(n+1)an+2xnn=0anxn+1=0 Now the indices must be shifted so the powers of x match in both sums. This is done by shifting the index of the sum on the right from n=01, and shifting the index of the sum on the left from n=01: n=0(n+2)(n+1)an+2xnn=1an1xn=0 In order to combine the sums, the lower index must also match. This is done by explicitly removing the n=0 terms of the sum on the left: 2a2+n=1(n+2)(n+1)an+2xnn=1an1xn=0 The two summations may now be combined under the same sum: 2a2+n=1[(n+2)(n+1)an+2an1]xn=0 Since this relation holds for every n, a2=0, and (n+2)(n+1)an+2an1=0an+2=an1(n+2)(n+1) First, let a0=1 and a1=0. Then all an for n odd vanishes, and n=1:a3=a0(1+2)(1+1)=123k=1n=2:a4=a1(2+2)(2+1)=0n=3:a5=a2(3+2)(3+1)=0n=4:a6=a3(4+2)(4+1)=12356k=2 The pattern is explicitly given by ak=[2356(3k+1)3k]1 . The solution can be written as y1=1+k=112356(3k+1)3kx3k, where the term 1 appears because a0=1 is not included in the summation.

    Meanwhile, letting a0=0 and a1=1 gives n=1:a3=0n=2:a4=134k=1n=3:a5=0n=4:a5=0n=5:a4=13467k=2 The pattern is explicitly given by a3k1=[34673k(3k+1)]1. The solution can be written as y2=1+k=113467x3k+1, where again the term 1 appears because a1=1 is not included in the summation.

    The sum y1+y2 is the general solution to Airy's equation.

  44. Solve y+xy+y=0 by series. [answer]

    See here for the solution.

  45. When solving equation (7) (the linear, homogeneous second-order ordinary differential equation with non-constant coefficients a(x)y+b(x)y+c(x)y=0), what must one be weary of if there is an x0 such that a(x0)=0? What is the condition on x0 for equation (7) to be solved by series? [answer]

    x0 is called a singular point. Specifically, if the following limits are finite, x0 is called a "regular singular point," and the method of Frobenius can be used to solve eqaution (7). limxx0b(x)a(x)(xx0)limxx0c(x)a(x)(xx0)2 If either of the limits above are not finite, x0 is called a "singular singular point" (very creative!).

  46. Identify the differential equation (1x2)y2xy+α(α+1)y=0, and identify the singular point(s). Classify them as "regular singular" or "singular singular." [answer]

    The singular points are x0=1 and x0=1. For x0=1, limx12x1x2(x1)=limx12xx+1=1limx1α(α+1)1x2(x1)2=α(α+1)limx1(x1)(x1)(1x)(1+x)=α(α+1)limx1(x1)(1+x)=0 Therefore the point x=1 is a regular singular point. Meanwhile, for x0=1, limx12x1x2(x+1)=limx12xx1=22=1limx1α(α+1)1x2(x+1)2=α(α+1)limx1(x+1)(x+1)(1x)(1+x)=α(α+1)limx1(x+1)(1x)=0 Therefore the point x=1 is also a regular singular point.

  47. Solve 2x2y+xy(1+x)y=0. [answer]

    See here for the solution.

  48. Identify and solve x2y+xy+(x2ν2)y=0 for ν=0. What is the name of the solution? Where does it appear in acoustics? [answer]

    This is Bessel's equation, and the solutions for ν=0 are the Bessel functions J0 and N0. This appears in acoustics as the radial eigenfunction of the Helmholtz equation in cylindrical coordinates for axisymmetric radiation. See here for the solution for J0.

Orthogonality and special functions

This section naturaly picks up where the previous section on ODEs left off. Also included are problems involving Dirac delta functions.
  1. Derive the recursion relation for the power expansion coefficients that solve Bessel's equation x2y+xy+(x2ν2)y=0 for arbitrary ν. What choice gives the power expansion coefficients for Jn? What choice gives the power expansion coefficients for Nn? [answer]

    One can easily show that x=0 is a regular singular point. Thus the method of Frobenius is taken up: y=n=0anxn+ry=n=0an(n+r)xn+r1y=n=0an(n+r)(n+r1)xn+r2 Insertion into Bessel's equation gives x2n=0an(n+r)(n+r1)xn+r2+xn=0an(n+r)xn+r1+(x2ν2)n=0anxn+r=0n=0an(n+r)(n+r1)xn+r+n=0an(n+r)xn+rν2n=0anxn+r+n=0anxn+r+2=0. It is desired for all the summations to be combined into one, and thus for all powers of x to match. For this, final summation above is rewritten starting from n=2: n=0an(n+r)(n+r1)xn+r+n=0an(n+r)xn+rν2n=0anxn+r+n=2an2xn+r=0. Now, the n=0 and n=1 terms of the first three summations are written explicitly, and the remaining 2 is written as a single summation: [r(r1)+rν2]a0xr+[r(r+1)+r+1ν2]a1xr+1+n=2[an(n+r)(n+r1)+an(n+r)ν2an+an2]xn+r=0. Each term above must vanish, because the right-hand side is 0. Specifically, the coefficient of xr gives the indicial equation and the values of r: r=±ν. Meanwhile, the setting the summand above to 0 gives the recurrence relation: an=an2(n+r)2ν2 It turns out the choice r=ν gives Bessel functions Jν(x), while the choice r=ν gives Neumann functions: Besselan=an2n2+2nνNeumannan=an2n22nν

  2. The singular points x=±1 of Legendre's equation (1x2)y2xy+λy=0 were already found to be to regular singular. Thus derive the recursion relation for the power expansion coefficients that solve Legendre's equation for arbitrary λ. Why is there never much discussion about the second solution of Legendre's equation Qn? [answer]

    y=n=0anxn+ry=n=0an(n+r)xn+r1y=n=0an(n+r)(n+r1)xn+r2 Insertion into Legendre's equation gives n=0an(n+r)(n+r1)xn+r2n=0an(n+r)(n+r1)xn+r2n=0an(n+r)xn+r+λn=0anxn+r=0 The crucial step that was at first throwing me off is to write the first two terms of the first summation explicitly. (This is different from the other Frobenius method problems I have done, where it is the last summation that has terms pulled out so as to match the index of the rest of the summations; this time, it is the first summation, because of the 1x2 coefficient of y in Legendre's equation). a0r(r1)xr2+a1r(r+1)xr1+n=2an(n+r)(n+r1)xn+r2n=0an(n+r)(n+r1)xn+r2n=0an(n+r)xn+r+λn=0anxn+r=0 In order to write all the summations as a single sum, the first summation is now shifted down by two: a0r(r1)xr2+a1r(r+1)xr1+n=0[an+2(n+r+2)(n+r+1)an(n+r)(n+r1)2an(n+r)+λan]xn+r=0 The indicial equation is found by setting the coefficient of the lowest power of x to zero, giving r=0,r=1. Meanwhile, setting the summand above equal to 0 gives the recursion relation: an+2=(n+r)(n+r1)+2(n+r)λ(n+r+2)(n+r+1)an=(n+r)2+n+rλ(n+r+2)(n+r+1)an For r=0, the above recursion relation gives the Legendre polynomials (Pl once we pick λ=l(l+1)), but for r=1, the recursion relation gives a dependent solution of the Legendre polynomials. This is a reflection of Fuchs's theorem (See section 21 of Boas's Methods). To find the second independent solution of Legendre's equation, one can use reduction of order (see derivation of reduction of order in the ODE section; also See Boas's ch. 12 section 2 problem 4 for the outline of how to find Q). It turns out that Q diverges at the poles, x=±1, or θ=0 and θ=180 if the argument is x=cosθ. Thus this second solution is not included in problems that include the poles (for the same reason that the Neumann functions are not included in spherical wave problems that include the origin, because the Neumann functions diverge at the origin.

    An example that requires Q is modeling a torroidal bubble in spherical coordinates. The domain of the sound inside such a bubble does not include the poles. Whales and dolphins create these bubbles when they exhale.

  3. Given the recurrence relation for Legendre polynomials, (n+1)Pn+1(x)=(2n+1)xPn(x)nPn1(x), and the integral result 11Pn(x)Pm(x)dx=22n+1δnm, show that 11x2Pn+1(x)Pn1(x)dx=2n(n+1)(4n21)(2n+3). [answer]

    Solve the first equation for (2n+1)xPn(x): (i)(2n+1)xPn(x)=(n+1)Pn+1(x)+nPn1(x) Shift the indices on the LHS of equation (i) to n+1 and to n1: (ii)(2n+3)xPn+1(x)=(n+2)Pn+2(x)+(n+1)Pn(x)(iii)(2n1)xPn(x)=nPn(x)+(n1)Pn2(x) Multiply equations (ii) and (iii): (2n1)(2n+3)x2Pn1(x)Pn+1(x)=n(n+2)Pn(x)Pn+2(x)+n(n+1)Pn(x)Pn(x)+(n1)(n+2)Pn+2(x)Pn2(x)+(n1)(n+1)Pn2(x)Pn(x) Integrate the above over x from 0 to 1, and employ the orthogonality relation 11Pn(x)Pm(x)dx=22n+1δnm. This results in (2n1)(2n+3)11Pn1(x)Pn+1(x)x2dx=2n(n+1)2n+1 Dividing by (2n1)(2n+3) on both sides and noting that (2n1)(2n+1)=4n21 gives the desired result, 11Pn1(x)Pn+1(x)x2dx=2n(n+1)(4n21)(2n+3)

  4. Given Jp1(x)Jp+1=2Jp, the integral relation J0(x)=2π0π/2cos(xsinθ)dθ, show that (part a) J1=2π0π/2sin(xsinθ)sinθdθ. Then (part b) obtain x1J1(x)=2π0π/2cos(xsinθ)cos2θdθ by integrating the right-hand side of the first result by parts. [answer]

    Setting p=0 and invoking the first identity gives J1(x)J1(x)=2J0(x). Noting that J1(x)=J1(x) gives 2J1(x)=2J0(x), or (i)J1(x)=J0(x). Attention is now turned to the integral relationship, (ii)J0(x)=2π0π/2cos(xsinθ)dθ. The derivative with respect to x of equation (ii) is taken, giving J0=ddxJ0(x)=ddx2π0π/2cos(xsinθ)dθ Invoking equation (i) gives J1(x)=2π0π/2ddxcos(xsinθ)dθJ1(x)=2π0π/2sin(xsinθ)sinθdθ, or J1(x)=2π0π/2sin(xsinθ)sinθdθ.

    Part (b): To integrate (iii)J1(x)=2π0π/2sin(xsinθ)sinθdθ, by parts, set u=sin(xsinθ),du=cos(xsinθ)xcosθdθv=cosθ,dv=sinθdθ. Equation (iii) integral becomes J1(x)=sin(xsinθ)cosθ|0π/2+2π0π/2xcosθcos(xsinθ)cosθdθ=2π0π/2cos(xsinθ)xcos2θdθ x is not an integration variable and can thus be divided through on both sides of the equation, giving the desired result, x1J1(x)=2π0π/2cos(xsinθ)cos2θdθ. Sometimes when integrating by parts it is helpful to recall the trick "ILATE,'' (Inverse trig, Logarithmic, Algebraic, Trig, Exponential) which gives the priority of which function to set equal to u when integrating by parts. For this problem, I just guessed, first trying u=sinθ and then trying u=sin(xsinθ). The second choice worked out.

  5. Prove that δ(kx)=1|k|δ(x) where k is any nonzero constant. Hint: let y=kx, and integrate a test function f(x)=f(y/k) times the Dirac delta function of y from to . [answer]

    f(x)δ(kx)dx=1|k|f(y/k)δ(y)dy=1|k|f(0)=f(x)1|k|δ(x)dx where the absolute value has been included to account for the fact that the limits of integration are reversed if k<0. Comparing the first and last lines above gives the desired equality, δ(kx)=1|k|δ(x).

  6. 26(3x22x1)δ(x3)dx= [answer]

    3(3)22(3)1=20

  7. 05cosxδ(xπ)dx= [answer]

    cosπ=1

  8. 03x3δ(x+1)dx= [answer]

    0 (because the limits do not include 1).

  9. ln(x+3)δ(x+2)dx= [answer]

    ln(2+3)=0

  10. 22(2x+3)δ(3x)dx= [answer]

    Here it should be noted that δ(kx)=δ(x)/|k|. Therefore the integral evaluates to 13[2(0)+3]=1

  11. 02(x3+3x+2)δ(1x)dx= [answer]

    Since δ(kx)=δ(x)/|k|, it follows that δ(x)=δ(x). Thus δ(1x)=δ[(x1)]=δ(x1). Thus the integral evaluates to 1+3+2=6.

  12. 119x2δ(3x+1)dx= [answer]

    The delta function can be written as δ[3(x+1/3)]=13δ(x+1/3). Thus the integral becomes 113x2δ(x+1/3)dx=13.

  13. aδ(xb)dx= [answer]

    1 for ab and 0 for a less than b (I can't type the less than symbol in HTML!).

  14. ☸ Prove that xddx[δ(x)]=δ(x). Hint: Integrate f(x)xddx[δ(x)]dx by parts. [answer]

    Following the hint, the following definitions are made, u=f(x)xv=δ(x)du=ddx[f(x)x]dxdv=ddx[δ(x)]dx, and the integral is taken by parts. (i)f(x)xddx[δ(x)]dx=f(x)xδ(x)|δ(x)ddx[f(x)x]dx The first term on the right-hand side above is zero because δ()=0=δ(), so equation (i) becomes (ii)f(x)xddx[δ(x)]dx=δ(x)ddx[f(x)x]dx Applying the product rule to the integral on the right-hand side of equation (ii) gives f(x)xddx[δ(x)]dx=δ(x)[f(x)x+f(x)]dx=[0f(0)+f(0)](iii)=δ(x)f(x)dx where the definition of the delta function has been used in the second and third equalities above. Comparing the integrands of the left- and right-hand sides of equation (iii) gives the desired equality, xddx[δ(x)]=δ(x).

  15. ☸ Prove that dθdx=δ(x), where θ is the Heaviside step function. Hint: Integrate f(x)dθdxdx by parts. [answer]

    Following the hint, the following definitions are made, u=fv=θdu=dfdxdxdv=dθdxdx, and the integral is taken by parts. (i)fdθdxdx=fθ|θdfdxdx=f()θ()f()θ()00dfdxdx01dfdxdx=f()0dfdxdx=f()f()+f(0)(ii)=δ(x)f(x)dx where the definition of the delta function has been used in the last line to write f(0). Lines (i) and (ii) give f(x)dθdxdx=δ(x)f(x)dx. The integrands must be equal, which gives the desired result: dθdx=δ(x).

Vector algebra & vector calculus

Vector calculus (for whatever reason) is not listed as a topic on the math section. However, as essentially all of acoustics is formulated in terms of the calculus of vector fields, I think it is very worthy of my review.

An orthonormal vector basis may be assumed; no need to work out the proofs below in general curvilinear coordinates. Therefore, one can write v=v.

Some of the problems below come from chapter 1 of Introduction to Electrodynamics by D. J. Griffiths.

  1. Suppose we have a barrel of fruit that contains ax bananas, ay pears, and az apples. Denoting en as the unit vector in the n direction in space, is a=axex+ayey+azez, a vector? Explain. [answer]

    No, because a does not obey coordinate transformations. For example, choosing a different set of axes does not turn a pear into a banana. By definition, "a vector is any set of three components that transforms in the same manner as a displacement when you change coordinates." (from Griffiths Introduction to Electrodynamics, section 1.1.5).

  2. How do the components ax, ay, and az of a vector a=axex+ayey+azez transform under the translation of coordinates? x=xy=yaz=z In other words, what happens to ax, ay, and az when a is written as a=axex+ayey+azez? [answer]

    The components of a vector are invariant under this transformation.

  3. How do the components of a vector transform under the inversion of coordinates? x=xy=yz=z In other words, what happens to ax, ay, and az when a is written as a=axex+ayey+azez? [answer]

    The components are also inverted. axax, ayay, and azay.

  4. How does the cross product of two vectors u and v transform under the inversion of coordinates? Is the cross product of two vectors really a vector? [answer]

    The cross product w=u×v is invariant under the inversion, because w=u×v. Thus w is a different kind of quantity than vectors u and w. It is called a psuedovector.

  5. How does the scalar triple product of w(u×v) transform under the inversion of coordinates? Is the scalar triple product really a scalar? (Griffiths problem 1.10d) [answer]

    The scalar triple product transforms as w(u×v)=w(u×v), i.e., the product changes signs when the coordinates are inverted. This is in contrast with the fact that scalars are invariant under coordinate inversions. Thus the scalar triple product is a different kind of quantity than an ordinary scalar. It is called a psuedoscalar.

  6. In what direction does the gradient of a function point? [answer]

    The gradient of a function points in the direction of the steepest ascent.

  7. Show that |u×v|2+(uv)2=|u|2|v|2. [answer]

    |u×v|2+(uv)2=ϵijkujvkϵilmulvm+uiviujvj=ϵijkϵilmujvkulvm+uiviujvj=(δjlδkmδjmδkl)ujvkulvm+uiviujvj=δjlδkmujvkulvmδjmδklujvkulvm+uiviujvj=ululvkvkumvmvkuk+uiviujvj=ululvkvkuiviujvj+uiviujvj=|u|2|v|2

  8. ☸ Prove that (ab)=a×(×b)+b×(×a)+(a)b+(b)a. [answer]

    It is much easier to go from the right-hand side to the left-hand side. [a×(×b)+b×(×a)+(a)b+(b)a]i=ϵijkaj(ϵklmlbm)+ϵijkbj(ϵklmlam)+(ajj)bi+(bjj)ai=ϵkijϵklmajlbm+ϵkijϵklmbjlam+(ajj)bi+(bjj)ai=(δilδjmδimδlj)ajlbm+(δilδjmδimδlj)bjlam+(ajj)bi+(bjj)ai=amibmallbi+bjiajbllai+(ajj)bi+(bjj)ai=ajibj+bjiaj=i(ajbj)=[(ab)]i

    Since this holds for all three components, the proof is complete.
  9. Prove that ×(a×b)=(b)a(a)b+a(b)b(a). [answer]

    ×(a×b)=ϵijkj(ϵklmalbm)=ϵijkϵklmjalbm=ϵkijϵklmjalbm=(δilδjmδimδjl)jalbm=δilδjmjalbmδilδjmjalbm=j(aibj)j(aibj)=bjjai+aijbjaijbjbjjai=j(aibj)j(aibj)=bjjaiaijbj+aijbjbjjai=(b)a(a)b+a(b)b(a)

  10. Prove that the divergence of the curl is 0. [answer]

    (×u)=i(ϵijkjuk)(permute)=i(ϵjikjuk)(relabel)=j(ϵijkiuk)(equality of mixed pt'ls)=i(ϵijkjuk) i(ϵijkjuk)=i(ϵijkjuk) is of the form a=a, which means that a=0, i.e., i(ϵjikjuk)=0, which completes the proof: (×u)=0.

  11. Prove that the curl of the gradient is 0. [answer]

    ×(f)=ϵijkj(f)k=ϵijkjkf(permute)=ϵikjjkf(relabel)=ϵijkkjf(equality of mixed pt'ls)=ϵijkjkf Since ϵijkjkf=ϵijkjkf, ϵijkjkf=0, which completes the proof: ×(f)=0.

  12. Show that ×(×a)=(a)2a. [answer]

    [×(×a)]i=ϵijkj(×a)k=ϵijkjϵklmlam=ϵijkϵklmjlam=ϵkijϵklmjlam=(δilδjmδimδjl)jlam=δilδjmjlamδimδjljlam=ijajllai=i(a)[2a]i=[(a)2a]i

  13. In Cartesian coordinates, r=xex+yex+zex and thus r=x2+y2+z2. Find r. [answer]

    r=(x2+y2+z2)1/2=1r(xex+yex+zex)=rr

  14. Let R=rr be the position vector. Thus in Cartesian coordinates, R=(xx)2+(yy)2+(zz)2. Find R2. [answer]

    R2=2R

  15. Find R1. [answer]

    1/R=R/R3=er/R2

  16. What is the coordinate-free definition of the divergence of a vector field F? [answer]

    F=limV01VSFda.

  17. ☸ Find the divergence of er/r2=r/r3 in both Cartesian and spherical coordinates. Note that the r component of the divergence of v in spherical coordinates is 1r2r(r2vr). Explain the result. [answer]

    In cartesian coordinates, err2=rr3=xex+yey+zez(x2+y2+z2)3/2=(xex+yey+zez)(x2+y2+z2)3/2=x[x(x2+y2+z2)3/2]+y[y(x2+y2+z2)3/2]+z[z(x2+y2+z2)3/2]=32(x2+y2+z2)5/22x2+(x2+y2+z2)3/2+=3r332(x2+y2+z2)2r5=3r33r2r5=3r33r3=0. In spherical coordinates, err2=1r2r(r21r2)=1r2r(1)=0. It is a paradoxical result, because er/r2 is a function that points away from the origin radially in all directions and quadratically falling off in amplitude. That is a pretty divergent function. The resolution to the paradox is that er/r2 at the origin, at which the divergence is not 0.

  18. What is the coordinate-free definition of the curl of a vector field F? [answer]

    ×F=limS01SCFd.

  19. Construct a non-constant vector function that has zero divergence and zero curl everywhere. [answer]

    The vector-valued function f=xexyey has zero divergence and zero curl everywhere. Another example is f=yex+xey.

  20. Calculate the line integral of the function v=y2ex+2x(y+1)ey from a=(1,1,0) to b=(2,2,0), following the path from (x,y,z)=(1,1,0) to (2,1,0) to (2,2,0). Then calculate the line integral following the path from a=(1,1,0) to b=(2,2,0) directly. Finally calculate vd for the loop going from (1,1,0) to (2,1,0) to (2,2,0) to (1,1,0). [answer]

    The integral for first path C1 from (x,y,z)=(1,1,0) to (2,1,0) (for which y=1) and then to (2,2,0) (for which x=2) is C1vd=C1[y2ex+2x(y+1)ey][dxex+dyey]=C1[y2dx+2x(y+1)dy]=1212dx+1222(y+1)dy=12dx+412(y+1)dy=1+10=11 The integral for the second path C2 from (x,y,z)=(1,1,0) to (2,2,0) (for which y=x) is C2vd=C2[y2ex+2x(y+1)ey][dxex+dyey]=C2[x2dx+2y(y+1)dy]=12x2dx+122y(y+1)dy=10 The integral over the closed loop is easy to calculate, now that the individual paths forming the loop have been calculated. The loop going from (1,1,0) to (2,1,0) to 2,2,0 and finally back to (1,1,0) can be written as C1vdC2vd=1110=1

  21. Calculate the surface integral of v=2xzex+(x+2)ey+y(z23)ez over five sides (excluding the bottom) of a cubical box whose bottom edge extends from x=0 to x=2. [answer]

    The surface integral Svda is to be calculated. It will be given by the sum of five integrals: at x=2 and x=0 (for which da=dydzex), at z=2 and z=0 (for which da=dxdyez), and at y=0 (for which da=dxdzey). Svda=S[2xzex+(x+2)ey+y(z23)ez]da=02024zdydz+02020dydz+0202y(43)dxdy+02023ydxdy+0202(x+2)dxdz=16+0+412+12=20

  22. Calculate the volume integral of the scalar-valued field T=xyz2 over a right triangular prism of height z=3, whose lower base is the triangle with vertices at the origin, (x,y,z)=(1,0,0), and (x,y,z)=(0,1,0). [answer]

    The volume integral VTdV is to be calculated: Vxyz2dV=z=0z=3y=01xx=0x=1xyz2dxdydz=z=0z=3z2x=0x=1xdxy=01xydydz=z=0z=3z2dzx=0x=1xdx(1x)22=92x=0x=1(x2x2+x3)dx=92(1223+14)=93112=38

  23. State the gradient theorem. What is the meaning of a conservative field? Provide examples of conservative fields and nonconservative fields from physics. [answer]

    The gradient theorem states that abVd=V(b)V(a) A conservative field is one that is given by a scalar potential function. For example, V above is a conservative field. The gradient theorem says that the line integral over a conservative field is independent of the path. Examples of conservative fields are the gravitational and electric fields, given by minus the gradient of the gravitational and electrical potential respectively. Meanwhile, the magnetic field is given by the curl of a vector potential, and is therefore not a conservative field.

  24. Calculate the line integral abTd for T=x2+4xy+2yz3 where a=(0,0,0) and b=(1,1,1) for the path (0,0,0)(1,0,0)(1,1,0)(1,1,1). Then calculate the integral for the path (0,0,0)(0,0,1)(0,1,1)(1,1,1). Next, calculate the integral for the parabolic path z=x2,y=x. Finally, check the result with the gradient theorem. [answer]

    For the first path from (0,0,0)(1,0,0)(1,1,0)(1,1,1), abTd=ab(x2+4xy+2yz3)(dxex+dyey+dzez)=ab[(2x+4y)ex+(4x+2z3)ey+(6yz2)ez](dxex+dyey+dzez)=ab[(2x+4y)dx+(4x+2z3)dy+(6yz2)dz] The integral splits into three integrals. For (0,0,0)(1,0,0), y=z=0. For (1,0,0)(1,1,0), x=1 and z=0. For (1,1,0)(1,1,1), x=y=1: ab[(2x+4y)dx+(4x+2z3)dy+(6yz2)dz]=012xdx+014dy+01(6z2)dz=012xdx+014dy+016z2dz=1+4+2=7. For the path (0,0,0)(0,0,1)(0,1,1)(1,1,1), the integral is again split into three parts. For (0,0,0)(0,0,1), x=y=0. For (0,0,1)(0,1,1), x=0 and z=1. For (0,1,1)(1,1,1), y=z=1. ab[(2x+4y)dx+(4x+2z3)dy+(6yz2)dz]=010dz+012dy+01(2x+4)dx=0+2+5=7 Next, for the parabolic path z=x2,y=x, the integration is reduced to that over a single variable, which is here chosen to be x. The differentials then dz=2dx and dy=dx, and the integral becomes x=0x=1[(2x+4x)+(4x+2x6)+(6x5)2x]dx=x=0x=1(6x+4x+2x6+12x6)dx=x=0x=1(10x+2x6+12x6)dx=5x2+27x7+127x7|x=0x=1=5+27+127=5+14/7=7. Finally, the integral is simply given by T(b)T(a)=x2+4xy+2yz3|(0,0,0)(1,1,1)(much easier!)=1+4+2=7.

  25. ☸ State and prove the divergence theorem and Stokes's theorem. [answer]

    The divergence theorem is Fda=FdV, and Stokes's theorem is Fd=(×F)da. They are immediate from the definitions of divergence and curl above, but to see what motivates these definitions, see here.

  26. List everything that can be concluded about a vector field F that has a vanishing curl, i.e., ×F=0. [answer]

    • The line integral abFd is independent of the path.
    • The line integral over any closed loop is zero, i.e., aaFd=0.
    • F is given by the gradient of a scalar potential, i.e., F=V.

  27. List everything that can be concluded about a vector field F that has a vanishing divergence, i.e., F=0. [answer]

    • The surface integral SFda is indepndent of the surface (but the line integral abFd depends on the path.)
    • The integral over any closed surface is zero, i.e., SFda=0.
    • F is given by the curl of a vector potential, i.e., F=×A.

Partial differential equations

  1. Provide the name of each of the following partial differential equations. Also list a few physical phenomena described by each: (i)2u=0(ii)2u=f(r)(iii)2u=1α2ut(iv)2u=1v22ut2(v)2F+k2F=0(vi)iΨt=22m2Ψ+VΨ Which two equations above both reduce to equation (v) upon assuming time-harmonic solutions? [answer]

    Equation (i) is the Laplace equation, which describes the electric potential in a space that does not contain charge, the gravitational potential in a space that does not contain mass, and the velocity potential in an incompressible fluid in a space that does not contain vortices, sources, and sinks, to name a few examples.

    Equation (ii) is the Poisson equation, which describes the electric potential in a space that contains charge, the gravitational potential in a space that contains mass, and the velocity potential in an incompressible fluid in a space that contains sources and sinks.

    Equation (iii) is the diffusion equation, which describes the temperature as a function of time in a space with no heat sources, or the concentration of a diffusing substance.

    Equation (iv) is the wave equation, which is the most beautiful PDE, describing light, sound, water waves, and gravitational waves, to name a few.

    Equation (v) is the Helmholtz equation, which is the spatial part of both the wave equation and the diffusion equation.

    Equation (vi) is the Schrodinger equation, which describes nonrelativistic quanta. The paraxial wave equation also has the form of the Schrodinger equation, only with the temporal derivative in equation (vi) replaced with a spatial derivative (/z, for example), and with the Laplacian in equation (vi) replaced with the transverse Laplacian 2/x2+2/y2, for example).

  2. Solve Laplace's equation in 2D 2Vx2+2Vy2=0 where V=0fory=0V=0fory=aV=V0forx=bV=V0forx=b. are the boundary conditions. [answer]

    Separating variables gives XX+YY=0 Introducing a separation constant gives (i)XX=k2(ii)YY=k2 The sign in front of k2 determines variable is harmonic and which is exponential. Since the boundary condition on Y goes to 0, it is chosen to be the harmonic solution. The boundary condition on X is finite, and thus it chosen to be exponential solution (because exponential solutions cannot satisfy a 0 boundary condition, because exponentials 0). Equation (i) gives X=Aekx+Bekx, and equation (ii) gives Y=Ccosky+Dsinky. Thus the general solution is V=XY=(Aekx+Bekx)(Ccosky+Dsinky) Applying the boundary condition V=0 for y=0 sets C=0. And applying the boundary condition V=0 for y=L sets kL=nπ, where n=1,2,,3. Meanwhile, applying the boundary condition V=V0 at both x=b and x=b requires that A=B. The solution is therefore V=XY=n=1Cncosh(nπx/L)sin(nπy/L) where coshx=(ex+ex)/2 has been used. To find the expansion coefficients Cn, employ the final (or third) boundary condition, V=V0 at x=b and invoke the orthogonality of sines is used: V0=n=1Cncosh(nπb/L)sin(nπy/L)V0sin(mπy/L)=n=1Cncosh(nπb/L)sin(nπy/L)sin(mπy/L)V00Lsin(mπy/L)dy=n=1Cncosh(nπb/L)0Lsin(nπy/L)sin(mπy/L)dyV0Lmπcos(mπy/L)|0L=n=1Cncosh(nπb/L)L2δnmCn=V01cosh(nπb/L)2nπ[cosnπ1]={0n=0,2,44V0nπcosh(nπb/L)n=1,3,5 The solution is thus fully determined.

  3. Solve the 2D Laplace equation 2Vx2+2Vy2=0 where now V=0fory=0V=f(x)fory=HVx=0forx=0Vx=0forx=L are the boundary conditions. Then solve the problem for f(x)=V0x/L. [answer]

    Separating variables leads to XX+YY=0 Introduce the separation constant k2. Now one has to choose whether to set k2 equal to XX or YY. The one that equals k2 will have decay/growth solutions, and the other one (that equals k2) will have harmonic solutions. Since X goes to 0 at both boundaries, XX=k2, and thus YY=k2. This is a good rule of thumb: the solutions that are zero at two boundaries must be harmonic. This choice gives the general solution V=XY=(Acoskx+Bsinkx)(Ceky+Deky). Now the boundary conditions are invoked. Since Vx=0 for x=0, B=0, and since Vx=0 for x=L, sinkL=0, which means that kL=nπ, where n=0,1,2,. Meanwhile, since V=0 at y=0, C=D. Thus the general solution is V(x,y)=n=0AncosnπxLsinhnπyL. Now the final boundary condition at y=H is applied, which allows for the determination of An using the orthogonality of cosines: f(x)=n=0AncosnπxLsinhnπyL0Lf(x)cosmπxLdx=n=0sinhnπHLAn0LcosnπxLcosmπxLdxAn=2Lsinh(nπH/L)0Lf(x)cosnπxLdx Therefore, the coefficients An above, along with the general solution for V(x,y), solves the Laplace equation for the given boundary conditions.

    The coefficients are calculated for f(x)=V0x/L: An=V0L2Lsinh(nπH/L)0LxcosnπxLdx={4V0n2π2sinh(nπH/L)for n=1,3,50for n=0,2,4

  4. Solve the 1D diffusion equation κ2ux2=ut where u=0forx=Lu=0forx=Lu={1,x00,x<0at t=0 are the boundary and initial conditions. [answer]

    Pick and orthogonal set of basis functions, u=X(x)T(t), giving ν2XX=TT Next, introduce the separation constant k and set it equal to X/X, because harmonic spatial solutions are expected. This gives X+k2ν2X=0X=Acoskνx+Bsinkνx Meanwhile, T=k2TT=ek2t Thus XT=(Acosκνx+Bsinκνx)ek2t. Applying the first to BCs gives Acos(kνL)+Bsin(kνL)=0 and Acos(kνL)+Bsin(kνL)=0. The odd and even properties of cosine and sine can be used in the first equation to obtain a full-rank linear system of equations: Acos(kνL)Bsin(kνL)=0Acos(kνL)+Bsin(kνL)=0 Adding the two equations gives the condition k=(2n1)π/2νL, and subtracting the two equations gives the condition k=πn/νL, where n=1,2,3. Thus the general solution is in terms of two infinite series: u=n=1{Ancos(2n1)πx2Lexp[([2n1]π/2)2t]+BnsinnπxLexp[(nπ/L)2t]} What a terrible looking equation. Anyhow, denoting the Heaviside step function as H(x), the initial condition is invoked: H(x)=n=1{Ancos(2n1)πx2L+BnsinnπxL} Orthogonality can be used to find An and Bn: LLH(x)cos(2n1)πx2Ldx=n=1AnLLcos(2n1)πx2Lcos(2m1)πx2Ldx0Lcos(2m1)πx2Ldx=LAmAn=2π(2n1)sin(2n1)πx2L|x=0x=L=2π(2n1)sin(2n1)π2=2(1)n1π(2n1), and LLH(x)sinnπxLdx=n=1BnLLsinnπxLsinnπxLdx0LsinnπxLdx=LBnBn=1nπcosnπxL|x=0x=L=1nπ[cos(nπ)1]=1nπ[(1)n1]={0,n=0,2,42nπ,n=1,3,5 Inserting the calculated values for An and Bn into the general solution above gives the complete solution.

    Note, however, that it is easier to shift the original coordinates by L, i.e., x+L=x, so that the boundary conditions are u=0forx=0u=0forx=2u={1,xL0,x<2Lat t=0. Then one must simply remember to shift the coordinates back, i.e., x=xL, when presenting the final solution.

  5. Solve the Schrodinger equation for a potential that is 0 inside a a cube of side length l, and infinite at the boundaries. Discuss the degeneracy of modes. [answer]

    Let Ψ=XYZT. Separating variables leads to 22m(XX+YY+ZZ)=iTT The time dependence is easily solved, introducing the separation constant E: iTT=ET=exp(iEt/) Meanwhile the spatial dependence is solved by writing XX+YY+ZZ=2mE2XX=kx2YY=ky2ZZ=kz2. Since the boundary condition is 0 at X,Y,Z=0 and L, one throws out the cosine solutions and obtains kx=nπL,ky=mπL,kz=lπL. Thus the eigenenergies are En=2π2mLn2+m2+l2 There is no nice expression for the degeracy in terms of the indices.

  6. List the eigenfunctions that solve the Helmholtz equation in Cartesian coordinates, cylindrical coordinates, and spherical coordinates. Given this, which equations in problem (1) of this section are solved spatially? What are the time dependences for each of these equations? [answer]

    The eigenfunctions that solve the Helmholtz equation in Cartesian coordinates are exponentials of (almost always) imaginary arguments (i.e., sines and cosines), which describe spatially harmonic waves. However, note that exponentials of real arguments are also eigenfunctions of the Helmholtz equation in Cartesian coordinates. These correspond to decay and (less often) growth (evanescent waves). This is an important distinction between the Helmholtz equation and its paraxial approximation in acoustics and optics: the paraxial approximation does not contain evanescent waves.

    The eigenfunctions that solve the Helmholtz equation in cylindrical coordinates consist of radial, polar, and axial functions. The radial eigenfunctions are Bessel and Neumann functions Jn and Nn. The polar eigenfunctions are Legendre polynomials Pn. The axial eigenfunctions are spatial harmonics (sines and cosines).

    The eigenfunctions that solve the Helmholtz equation in spherical coordinates consist of radial, polar, and azimuthal functions. The radial eigenfunctions are spherical Bessel and spherical Neumann functions jn and nn. The polar eigenfunctions are the associated Legendre functions Pnm. The azimuthal eigenfunctions are spatial harmonics (sines and cosines).

    Given these eigenfunctions, the spatial part of equations (iii) (the diffusion equation), (iv) (the wave equation) are solved. Also, if V in equation (vi) (the Schrodinger equation) is 0 in a box, sphere, or cylinder and at the boundaries, then equation (vi) reduces to equation (iii), and thus shares the same eigenfunctions as the Helmholtz equation. For example, a quantum particle in infinite spherical well has the same eigenfunctions as sound in a spherical enclosure, or temperature in a hollow sphere.

    Further, it is interesting to think of the time eigenfunctions of the diffusion equation, the wave equation, and the Schrodinger equation. All share the same spatial eigenfunctions, but the time eigenfunctions for the wave equation are harmonic, while those for the diffusion equation are exponential decay/growth. Meanwhile, what are the time eigenfunctions for the Schrodinger equation (regardless of V? They would be exponential decay/growth if it were not for the i in the Schrodinger equation, which makes them harmonic. Thus the Schrodinger equation is physically more like a wave equation than a diffusion equation, but is mathematically more like a diffusion equation than a wave equation.

    On this point, one should note that the Schrodinger equation and heat diffusion equations do not obey time-reversal symmmetry, while the wave equation does.

  7. ☸ One solution to the 1D wave equation 2px21c22pt2=0 is (a)p={eαxeαx}{eαcteαct} What a bizarre-looking solution! If you do not believe it is a solution to the wave equation, you can check it for yourself by setting the separation constant equal to X/X=α2, which gives T/T=(αc)2! Is this solution a wave? Meanwhile, a solution to the 1D diffusion equation 2px2κ2pt=0 is (b)p={coskxsinkx}e(k/κ)2t={eikxeikx}e(k/κ)2t Is this solution a wave? [answer]

    Equation a describes solutions that grow exponentially in space and time. At first glance, this is no wave! We are not used to such bizarre behaviours, i.e., waves that grow and decay exponentially in space and time.

    However, a wave need not be harmonic to be a wave (which can be proved by the closure of the Fourier series). A second glance at equation (a) shows that it is in fact of the form f(x±ct), which we know solves the wave equation. Physically, equation (a) is disturbance that propagates at a finite speed c whose waveform is exponential. Thus is equation (a) indeed describes wave motion.

    Meanwhile, equation (b) is not a solution to the wave equation because it cannot be written in the form f(x±ct). Spatially, the solutions are harmonic (wave-like), but that is not a sufficient criterion for a physical wave.

  8. List the eigenfunctions that solve the Laplace equation in Cartesian coordinates, cylindrical coordinates, and spherical coordinates. [answer]

    The eigenfunctions of that solve the Laplace equation in Cartesian coordinates are equivalent those that solve the Helmholtz equation in Cartesian, i.e., exponentials of real and imaginary arguments.

    Two of the three eigenfunctions that solve the Laplace equation in cylindrical coordinates are also identical to those that solve the Helmholtz equation in Cartesian coordinates: Bessel and Neumann functions in r and sines and cosines in θ. However, the eigenfunctions of the Laplace equation for z are exponentials of real arguments, while those of the Helmholtz equation are exponentials of imaginary arguments.

    Similarly, two of the three eigenfunctions that solve the Laplace equation in spherical coordinates are also equivalent to those that solve the Helmholtz equation in Spherical coordinates: Legendre polynomials in cosθ and sines and cosines in ϕ (Blackstock's ψ). However, the eigenfunctions of the Laplace equation for r are rl and r(l+1), while those of the Helmholtz equation are spherical Bessel and Neumann functions jn and nn.

  9. Solve the Laplace equation 2V=0 (assuming polar symmetry) where V=V0(θ) on the boundary of a sphere of radius a, where r(r2Vr)+1sinθθ(sinθVθ)=0 is Laplace's equation in spherical coordinates with no azimuthal dependence. Does the coordinate z=cosθ actually correspond to the z axis? [answer]

    Let V=R(r)Θ(θ) and substitute into the above: r(r2RΘ)+1sinθθ(sinθRΘ)=0. Divide by RΘ: 1Rr(r2R)+1Θ1sinθθ(sinθΘ)=0. The variables have been separated in the two terms above. A separation constant l(l+1) is introduced. This is cheating, but it is done because we anticipate the solution to the polar equation to be Legendre polynomials, which converge when the separation constant is chosen: 1Θ1sinθddθ(sinθΘ)=l(l+1)ddθ(sinθΘ)=l(l+1)sinθΘ That is a bizarre-looking equation may look more familiar if a change of variable z=cosθ is made. This relation holds only for a unit sphere, so no, in reality z does not correspond to the Cartesian z coordinate. Then, dzdθ=sinθ, and the derivatives with respect to θ are ddθ=ddzdzdθ=sinθddzd2dθ2=sin2θd2dz2 The differential equation becomes sinθddz(sin2θdΘdz)=l(l+1)sinθΘ Dividing the equation above by sinθ and writing sin2θ=1cos2θ gives ddz([1z2]dΘdz)=l(l+1)Θ. Expanding the derivatives and writing everything on the left-hand side gives (1z2)d2Θdz22zdΘdz+l(l+1)Θ=0 This is the canonical form of Legendre's equation. See the first question of the ODE section above for the solution. Meanwhile, the radial equation is ddr(r2dRdr)=Rl(l+1) The general solution to this equation is (just memorize it): R(r)=Alrl+Blrl+1 Thus the general solution to Laplace's equation in spherical coordinates with no azimuthal dependence is V=l=0(Alrl+Blrl+1)Pl(cosθ)

    To satisfy the boundary condition that V=V0(θ) at r=a, first the Bl=0 because those terms diverge at the origin. Then set l=0AlalPl(cosθ)=V0(θ). The coefficient Al can be solved using the orthogonality of cosines: Al=2l+12al0πV0(θ)Pl(cosθ)sinθdθ.

    You can probably guess that solution to Laplace's equation (with no symmetry assumed) is V=m=0m=ll=0(Alrl+Blrl+1)Plm(cosθ)(Cmcosmϕ+Dmsinmϕ). where ϕ is the azimuthal angle.

  10. What is the solution to Poisson's equation 2u=f(r) in terms of the appropriate Green's function, G(r|r)? [answer]

    The solution is u(r)=VG(r|r)f(r)dV where G(r|r) is the sum of the free space Green's function and the solution to Laplace's equation.

  11. Solve Laplace's equation 2ux2+2uy2=0 for a semi-infinite plate satisfying the following boundary conditions: u(x,)=0u(0,y)=0u(x,0)={T0for x(0,a]0for x>1 Note that {f(x)=2π0g(k)sinkxdkg(k)=2π0f(x)sinkxdx is the sine Fourier transform pair. [answer]

    Write the solution u as the product of basis functions XY. The PDE becomes XX+YY=0. Note that the eigenfunctions Y must vanish at y=. Anticipating exponential solutions for Y, set YY=k2. Thus Yeky, where the growth solutions have been tossed because they are unphysical. Meanwhile, XX=k2, so X=Acoskx+Bsinkx. Since X(0)=0, the coskx term cannot be included, so A=0. This leaves the general solution u(x,y)=Bekysinkx. Now the boundary condition at y=0 needs to be used to find the coefficient B. However, u at the boundary changes value from T0 to 0 at x=a. Thus a continuous variable is needed to satisfy the boundary condition (rather than a discrete variable): u(x,y)=0B(k)ekysin(kx)dk. At y=0, the solution is (i)u(x,0)=0B(k)sin(kx)dk. Now, finding the coefficients B(k) amounts to taking an inverse Fourier transform. Note that Fourier sine transform pair is f(x)=2π0g(k)sinkxdkg(k)=2π0f(x)sinkxdx. The pair is written so that the first equation above has the form of equation (i): u(x)=2π0[π2B(k)]sin(kx)dkB(k)=2π0u(x)sin(kx)dx. The second equation above is the equation for the expansion coefficients, upon letting u(x) be T0 for xa and 0 otherwise: B(k)=2T0π01sinkxdx=2T0πk(1cosk). Thus the integral solution of the PDE is u(x,y)=2T0π01coskksin(kx)ekydk.