lacunary - Mathnotes

Separation of Variables

The method of separation of variables is effective in solving several types of partial differential equations.

the idea is roughly that we think of a solution, say u(x,t), to a partial differential equation as beinga linear combinatio nof simple component functions un(x,t),n=0,1,2,, which also satisfy the equation and certian boundary conditions. This assumption is reasonable provided the partial differential equation and the boundary conditions are linear. To determine a component solution, un(x,t), we assume it can be written with its variables separated, that is, as:

un(x,t)=Xn(X)Tn(t).

Substituting this form for a solution into the partial differential equation and using the boundary conditions leads, in many cases, to two ordinary differential equations for the unknown functions Xn(x) and Tn(t).

Solving the Heat Equation

First, see the notes on the heat equation. We have the following mathematical model for the heat flow in a uniform wire without internal sources (P=0) whose ends are kept at the constant temperature 0c:

ut(x,t)=β2ux2(x,t),0<x<L,t>0,(1)

u(0,t)=u(L,t)=0,t>0,(2)

u(x,0)=f(x),0<x<L.(3)

We wish to find a function u(x,t) that satisfies all three of these conditions.

We being by proposing that the solutions to equation (1) have the form:

u(x,t)=X(x)T(t).

To determine X and T, we first compute the partial derivatives of u to obtain

ut=X(x)T(t),2ux2=X(x)T(t).

Substituting these expressions into (1) gives

X(x)T(t)=βX(x)T(t),

and separating variables gives

T(t)βT(t)=X(x)X(x).(4)

Note that the functions on the left-hand side of (4) depend only on t while those on the right-hand side depend only on x. If we fix t and vary x, the ratio on the right cannot change; it must be constant. The same applies to fixing x and varying t on the left. Following the convention of this constant being negative, we get:

X(x)X(x)=λ,T(t)βT(t)=λ.

or

X(x)+λX(x)=0,T(t)+λβT(t)=0.(5)

which are linear ordinary differential equations, easily solved through a number of means.

Now, turning to the initial conditions in (2), we have, letting u(x,t)=X(x)T(t):

X(0)T(t)=0,X(L)T(t)=0,t>0.

Therefore, either T(t)=0 for all t>0, which implies that u(x,t)0, or

X(0)=X(L)=0.(6)

We will ignore the trivial solution u(x,t)0 and combine the boundary conditions in (6) with the differential equation in (5) to get the boundary value problem

X(x)+λX(x)=0,X(0)=X(L)=0,(7)

where λ can be any constant.

Notice that the function X(x)0 is a soluton of (7) for every λ. Depending on the choice of λ, this may be the only solution to the boundary value problem. Thus, to find a non-trival solution u(x,t)=X(x)T(t), we must first determine those values of λ for which the boundary value problem has nontrivial solutions. These solutions are called the eigenfunctions of the problem; the eigenvalues are the special values of λ.

To solve the equation in (7), we note that it has constant coefficients and follow the method outlined for linear differential equations with constant coefficients, and then solve for the constants using the boundary conditions.

There are three cases:

Case 1: λ<0. In this case, the roots of the characteristic equation are ±λ, so a general solution to (7) is

X(x)=c1eλx+c2eλx

Applying the boundary conditions and solving for c1,c2, we find that c1=c2=0, and hence there are no nontrivial solutions to (7) for λ<0.

Case 2: λ=0. In this case, 0 is a repeated root to the characteristic equation, and the general solution to the differential equation is

X(x)=C1+C2x.

The boundary conditions in (7) again yield C1=C2=0, so for λ=0, there are no nontrivial solutions to (7).

Case 3: λ>0. In this case, the roots of the characteristic equation are ±iλ, and the general solution to (7) is

X(x)=c1cosλx+c2sinλx.(8)

Now, the boundary conditions X(0)=X(L)=0 give the system

c1=0c1cosλL+c2sinλL=0.

Because c_1 = 0, the system reduces to solving c2sinλL=0. Hence, either sinλL= or c2=0.

Now, sinλL=0 only when λL=nπ, where n is an integer. Therefore, (7) has a nontrivial solution (c20) when λL=nπ or λ=(nπ/L)2, n=1,2,3,.... The nontrivial solutions (eigenfunctions) Xn corresponding to the eigenvalue λ=(nπ/L)2 are given by

Xn(x)=ansin(nπxL),(9)

where the an's are arbitrary nonzero constants.

Now that we've determined that λ=(nπ/L)2, for any positive integer n, we return our condition to the second equation in (5):

T(t)+β(nπL)2T(t)=0.

For each n=1,2,3, the general solution to this linear first-order equation is

Tn(t)=bneβ(nπ/L)2.

Combining this with equation (9), we obtain, for each n=1,2,3,, the functions

un(xt)=Xn(x)Tn(t)=ansin(nπx/L)bneβ(nπ/L)2t=cneβ(nπ/L)2tsin(nπx/L),

where cn is also an arbitrary constant.

Example

Find the soluton to the heat flow problem

ut=72ux2,0<x<π,t>0,(11)

u(0,t)=u(π,t)=0,t>0,(12)

u(x,0)=3sin2x6sin5x,0<x<π.(13)

Comparing (11) with (1), we have that β=7 and L=π. Hence, we need only find a combination of terms like (10) that satisfies the initial condition (13):

u(x,0)=cne0sinnx=3sin2x6sin5x,0<x<π.

The constants we require are c2=3 and c5=6. The solution to the heat flow problem (11)-(13) is:

u(x,t)=c2eβ(2π/L)2tsin(2πx/L)+c5eβ(5π/L)2tsin(5πx/L)=3e28tsin2x6e175tsin5x.

Complete Solution to Generic Problem

It turns out that almost any function f(x) likely to arise in applications can be expressed as a convergent series of eigenfunctions. For the sines we've been using, the Fourier sine series looks like:

f(x)=n=1cnsin(nπxL),0<x<L.

and the complete solution to the generic problem given by (1)-(3) is

u(x,t)=n=1cneβ(nπ/L)2tsin(nπxL),(2a)

as long as this expansion and its first two derivatives converge.

Other homogenous boundary conditions

Ends zero, but with arbitrary f(x)

If our initial condition isn't just a simple, finite set of cnsin(nx) functions, finding our cn's is just a matter of finding the coefficients for the fourier sine series

cn=2L0Lf(x)sinnπxLdx,n=1,2,,

and substituting them into (2a) above. We use the sine series because the initial conditions having the ends set to 0 lines up with the behavior of sine.

Ends perfectly insulated, with arbitrary f(x)

If the ends of the wire are perfectly insulated, then no heat flows through them and thus the derivative of them, at each end, with respect to time, is 0:

ux(0,t)=ux(L,t)=0,t>0.

Now, we use the fourier cosine series because the derivative of cosine at x=0 is 0, which matches our initial conditions. So, our solution is

a02+n=1aneβnπL2tcosnπxL

where

an=2L0Lf(x)cosnπxLdx,n=0,1,.

Nonhomogenous boundary conditions

Ends kept at constant, non-zero temperature

When the ends of the wire are kept a constant, non-zero temperatures:

u(0,t)=U1,U(L,t)=U2,t>0,

the boundary conditions are called nonhomogenous.

Here, we'll end up with a solution that's a combintation of a steady-state solution v(x) that satisfies the nonhomgenous boundary conditions, plus a transient solution w(x,t), and

u(x,t)=v(x)+w(x,t),

where w(x,t) and its partial derivatives tend to zero as tinf. The function w(x,t) will then staisfy homogenous boundary conditions.

For example,

ut=β2ux2,0<x<L,t>0,(11b)

u(0,t)=U1, u(L,t)=U2,t>0,(12b)

u(x,0)=f(x),0<x<L.(13b)

Here,

v(x)=U1+(U2U1)xL,w(x,t)=n=1cneβ(nπ/L)2tsinnπxL,

with

cn=2L0L[f(x)U1(U2U1)xL]sinnπxL.

Vibrating String Problem

The equation of motion for a vibrating string of length L with fixed ends, and a bunch of other simplifying factors, is governed by the following initial-boundary value problem:

2ut2=α22ux2,0<x<L,t>0(16)

u(0,t)=u(L,t)=0,t0,(17)

u(x,0)=f(x),0xL,(18)

ut(x,0)=g(x),0xL.(19)

Applying the method of separation of variables, we end up with

u(x,t)=n=1[ancosnπαLt+bnsinnπαLt]sinnπxL.

To find an and bn, we have

f(x)=n=1ansinnπxL,g(x)=n=1nπαLbnsinnπxL.

Example

Solve the vibrating string problem with α=5, L=π, initial functions f(x)=2sin4x+7sin5x and g(x)=11sin6x14sin13x.

Our an's are a4=2, a5=7, and to find the bn's:

11=56b6, b6=1130;14=513b13, b13=1465.

Then

u(x,t)=2cos20tsin4x+7cos25tsin5x+1130sin30tsin6x1415sin65tsin13x.

Laplace's Equation

Laplace's equation:

Δu=2ux2+2uy2=0

Has a lot of applications. You might recall from complex analysis that the real and imaginary parts of an analytic (holomorphic) function must satisfy Laplace's equation.

Dirichlet and Neumann Boundary Conditions

There are two basic types of boundary conditions that are usually associated with Laplace's equation. The first is Dirichlet boundary conditions, where the solution u(x,y) to Laplace's equation in a domain D is required to satisfy:

u(x,y)=f(x,y),on D,

with f(x,y) a specified function defined on the boundary D of D. The other type of boundary conditions are Neumann boundary coundtiions, where the directional derivative u/n along the outward normal to the boundary is required to satisfy

un(x,y)=g(x,y),on D,

with g(x,y) a specified function defined on the boundary D of D. We say that a boundary condition is mixed if the solution is required to satisfy u(x,y)=f(x,y) on part of the boundary and (u/n)(x,y)=g(x,y) on the remaining portion of the boundary.

When solving problems like this, we sometime need to pick which type of Fourier series we want to use - sine or cosine.

A Fourier cosine series is typically used for functions that have Neumann (derivative) boundary conditions (especially if the initial value of the derivative on each end is 0) or are even across the domain.

A Fourier sine series is typically used for functions that have Dirichlet boundary conditions (especially if the initial value of the function on each end is 0) or are odd across the domain.