27Disks.mws

Partial Differential Equations PowerTool

by Dr. Jim Herod

Section 6.4: Laplace's Equation on a   Disk

Maple Packages for Section 6.3

>    restart;

>    with(plots):

Warning, the name changecoords has been redefined

>   

 

    The form for Laplace's Equation Delta u  = 0 naturally depends on what coordinate system we are using. So far, with rectangular coordinates, the Laplacian Operator is given by two derivatives with respect to x plus two derivatives with respect to y:

                Delta u  = diff(u,`$`(x,2))  + diff(u,`$`(y,2)) .

It would be no surprise how to write this in three dimensions, instead of two.

  

     If the origins of the problem to be considered is on a disk, or annulus, or cylinder, it is often better to think of the problem in polar coordinates. A way to think of the change is to remember that in order to change between rectangular and polar coordinates, use this identity:

           x  = r cos( theta ) and y  = r sin( theta ).

In that case, r = sqrt(x^2+y^2)   and theta  = arctan( y/x ).

     For example take these examples. We take r = 2 and use five different theta  's.

>    r:=2; theta:=[-3*Pi/4,-Pi/2,0,Pi/4,3*Pi/4];

r := 2

theta := [-3/4*Pi, -1/2*Pi, 0, 1/4*Pi, 3/4*Pi]

We compute the sequence or points [ r cos(t), r sin(t) ] where t is one of the above theta  's.

>    map(t->[r*cos(t),r*sin(t)],theta);

[[-2^(1/2), -2^(1/2)], [0, -2], [2, 0], [2^(1/2), 2^(1/2)], [-2^(1/2), 2^(1/2)]]

>   

     We now do it the other way. We pick points and make r 's and theta  's.

     (A part of the problem here is that arctan(-1/1) and arctan(1/(-1)) look the same to the arctangent function. Yet the points [-1, 1] and [1, -1] are in different quadrants. Thus, we either have to be careful in our programming, or hope that Maple has a routine to do this. It does. The program computes the angle associated with a complex number a + b I. Thus, we change the point [ x, y] to the complex number x + y I and use Maple's built in program. You might enjoy making a program that does not use Maple's built in scheme.)

    Here, we give points and compute r and theta.

>    pts:=[[-1,-1],[0,-1],[1,-1],[1,1],[-1,1]];

pts := [[-1, -1], [0, -1], [1, -1], [1, 1], [-1, 1]]

>    r:=(x,y)->sqrt(x^2+y^2);
theta:=(x,y)->argument(x+I*y);

r := proc (x, y) options operator, arrow; sqrt(x^2+y^2) end proc

theta := proc (x, y) options operator, arrow; argument(x+y*I) end proc

>    seq(r(pts[i][1],pts[i][2]),i=1..5);
seq(theta(pts[j][1],pts[j][2]),j=1..5);

2^(1/2), 1, 2^(1/2), 2^(1/2), 2^(1/2)

-3/4*Pi, -1/2*Pi, -1/4*Pi, 1/4*Pi, 3/4*Pi

>   

>   

Laplace's Equation in Polar Coordinates

We want to establish Laplace's equation in polar coordinates. To do this, suppose that u ( x , y ) satisfies Laplace's equation. Define v (r, theta ) as u (r cos( theta ), r sin( theta )). We use the fact that Delta   u  = 0 to show that

                             diff(r*diff(v(r,theta),r),r)/r+diff(v(r,theta),`$`(theta,2))/(r^2)   =  0

>    v:=(r,theta)->u(r*cos(theta),r*sin(theta));

v := proc (r, theta) options operator, arrow; u(r*cos(theta),r*sin(theta)) end proc

>    diff(r*diff(v(r,theta),r),r)/r+diff(v(r,theta),theta,theta)/r^2:

>    simplify(%);

D[1,1](u)(r*cos(theta),r*sin(theta))+D[2,2](u)(r*cos(theta),r*sin(theta))

>   

     We see that this last is Delta   u (r cos( theta ), r sin( theta )). The assumption is that this is zero. Thus, we know a form for the Laplacian Operator in polar coordinates. Here are some examples.

>    LO:=v->diff(r*diff(v(r,theta),r),r)/r+diff(v(r,theta),theta,theta)/r^2;

LO := proc (v) options operator, arrow; diff(r*diff(v(r,theta),r),r)/r+diff(v(r,theta),theta,theta)/r^2 end proc

>    v:=(r,theta)->r*sin(theta);
LO(v);

v := proc (r, theta) options operator, arrow; r*sin(theta) end proc

0

>    v:=(r,theta)->r^n*cos(n*theta);
LO(v);

v := proc (r, theta) options operator, arrow; r^n*cos(n*theta) end proc

0

>   

     What are the type problems we can solve with this realization of the Laplacian Operator? You could guess this is a typical problem. You can even guess a solution.
     Suppose we have a disk with radius 1. We seek the surface
u  which satisfies

                                            Delta u =0 for 0< r < 1, - Pi   <   theta   < Pi  .

                                           with u(1, theta ) = cos( theta ) for - Pi   <   theta   < Pi  .

What do you guess?

>    u:=(r,theta)->r*cos(theta);

u := proc (r, theta) options operator, arrow; r*cos(theta) end proc

>    LO(u);

0

>    u(1,theta);

cos(theta)

Here is a graph of the surface.

>    cylinderplot([r,theta,u(r,theta)],r=0..1,theta=0..2*Pi,
        axes=boxed,orientation=[-125,75], shading=zhue);

[Maple Plot]

We might be lucky to guess at solutions, but likely will not be. Thus, we need to develop techniques for solving problems on a disk with radius c. We seek bounded solutions for the equations

                Delta u  = 0 with u(c, theta ) = f( theta ),   -Pi  < theta <= Pi  .

Note that the ray    theta = Pi    is not a boundary  in the same sense as the circle r = c is. To be sure that we do not have false boundary problems, we ask that

                   u (r, Pi ) = u (r, -Pi ) and diff(u,theta)  (r, theta ) = diff(u,theta)  (r, - theta ).

These are natural boundary conditions of the problem we have described.

Separation of Variables for Laplace's Equation in Polar Coordinates.

     In these notes to this point, our first guess for how to solve such a problem has been to separate variables in the equation

                      diff(r*diff(v(r,theta),r),r)/r+diff(v(r,theta),`$`(theta,2))/(r^2)   =  0,

to get

          1/r  (r R ') ' theta   +   1/(r^2)  R theta  '' = 0.

Multiply by r^2 , divide by R theta   to get

           1/R  r (r R ') ' +   1/theta   theta  ''  =  0.

Boundary conditions are   theta  (- pi ) = theta  ( pi ),

                                         theta  '(- pi ) = theta  '( pi ).

The two differential equations are

      theta  '' + lambda^2*theta  = 0, theta  (- pi ) = theta  ( pi ), and theta  '(- pi ) = theta  '( pi ).

and

     r( rR ') ' - lambda^2  R = 0.

The solutions for the first equation, with eigenvalues and eigenfunctions are

      lambda  = 0,     theta  = 1.

      -lambda^2  = -n^2 ,     Theta ( theta ) = cos(n theta )  or  sin(n theta ).

The second equation is now   r^2  R '' + r R ' - n^2 R = 0.

Solutions for this equation are

     R(r) = 1 or ln(r) in case n = 0,

and, otherwise,

          R(r) = r^n   or   r^(-n) .

Here's how you might remember the solution for this equation in case n = 0  or n <> 0 .

>    unassign('r');

>    n:=0;
de := r^2*diff(R(r),r,r)+r*diff(R(r),r)-n^2*R(r)=0;
dsolve(de, R(r));
unassign('n');

n := 0

de := r^2*diff(R(r),`$`(r,2))+r*diff(R(r),r) = 0

R(r) = _C1+_C2*ln(r)

>    de := r^2*diff(R(r),r,r)+r*diff(R(r),r)-n^2*R(r);

de := r^2*diff(R(r),`$`(r,2))+r*diff(R(r),r)-n^2*R(r)

>    dsolve(de);

R(r) = _C1*r^n+_C2*r^(-n)

As a result, we can make the general solution for this problem with 0 <= r .

     v(r, theta ) = a[0]  + sum(a[n]*r^n*cos(n*theta),n)  + sum(b[n]*r^n*sin(n*theta),n) .

We have changed the problem to one that can be solved by Fourier Series Techniques. Here is an example.

 

Example 1: Delta u = 0, u(1, theta  ) = sin(theta)^2

We solve

                Delta u = 0, u(1, theta  ) = sin(theta)^2  for theta  in the interval [0, 2 Pi  ].

First, we draw the boundary conditions:

>    spacecurve([cos(theta),sin(theta),sin(theta)^2],theta=-Pi..Pi,
            color=BLACK,orientation=[35,65],axes=NORMAL);

[Maple Plot]

>   

We have the general solution

      u (r, theta ) = a[0]  + sum(a[n]*r^n*cos(n*theta),n)  + sum(b[n]*r^n*sin(n*theta),n) .

. If r = 1, we have

          ( sin(theta)^2  = a[0]  + sum(a[n]*1^n*cos(n*theta),n)  + sum(b[n]*1^n*sin(n*theta),n) .

We have only to compute the coefficients. This is a job for Fourier Series. Or, maybe you remember some trig.

                sin(theta)^2  = (1-cos(2*theta))/2   

Thus, a[0]  = 1/2,   a[2]  = -1/2, and all the other a  's are zero. The implication is that

>    u:=(r,theta)->1/2-r^2*cos(2*theta);

u := proc (r, theta) options operator, arrow; 1/2-r^2*cos(2*theta) end proc

>    cylinderplot([r,theta,u(r,theta)],r=0..1,theta=0..2*Pi,
          orientation=[40,40],axes=NORMAL, shading=zhue, numpoints=1000);

[Maple Plot]

>   

Example 2,   Delta u = 0, u(1, theta  ) = theta^3*(Pi^2-theta^2)

We solve

                Delta u  = 0, u(1, theta  ) = theta^3*(Pi^2-theta^2)  for theta  in the interval [0, 2 Pi  ].

First, we draw the boundary conditions:

>    spacecurve([cos(theta),sin(theta),theta^3*(Pi^2-theta^2)],theta=-Pi..Pi,
            color=BLACK,orientation=[10,55],axes=NORMAL);

[Maple Plot]

>   

We have the general solution

      u (r, theta ) = a[0]  + sum(a[n]*r^n*cos(n*theta),n)  + sum(b[n]*r^n*sin(n*theta),n) .

. If r = 1, we have

           theta^3*(Pi^2-theta^2)  = a[0]  + sum(a[n]*1^n*cos(n*theta),n)  + sum(b[n]*1^n*sin(n*theta),n) .

We compute coefficients. It seems to be of no value to list the numerical output of these integrals, so we suppress output.

>    a[0]:=int(theta^3*(Pi^2-theta^2),theta=-Pi..Pi)/
          int(1,theta=-Pi..Pi):

>    for n from 1 to 10 do
   a[n]:=int(theta^3*(Pi^2-theta^2)*cos(n*theta),theta=-Pi..Pi)/
          int(cos(n*theta)^2,theta=-Pi..Pi):
end do:
n:='n':

>    for n from 1 to 10 do
   b[n]:=int(theta^3*(Pi^2-theta^2)*sin(n*theta),theta=-Pi..Pi)/
          int(sin(n*theta)^2,theta=-Pi..Pi):
end do:
n:='n':

Here, we define u .

>    u:=(r,theta)->a[0]+sum(a[n]*r^n*cos(n*theta)+b[n]*r^n*sin(n*theta),
                  n=1..10);

u := proc (r, theta) options operator, arrow; a[0]+sum(a[n]*r^n*cos(n*theta)+b[n]*r^n*sin(n*theta),n = 1 .. 10) end proc

Here is a graph of the surface. Compare this "rubber sheet" with the space curve given at the start of this problem.

>    cylinderplot([r,theta,u(r,theta)],r=0..1,theta=0..2*Pi,
          orientation=[10,55],axes=NORMAL, shading=zhue, numpoints=1000);

[Maple Plot]

>   

>   

>   

In summary, Laplace's Equation on a disk can be solved in a manner consistent with what has come before:

                 u (r, theta ) = a[0]  + sum(a[n]*r^n*cos(n*theta),n)  + sum(b[n]*r^n*sin(n*theta),n)  ,

where      a[0]  = int(f(t),t = -Pi .. Pi)/(2*Pi)  ,

                a[n]  = int(f(t)*cos(n*t),t = -Pi .. Pi)/(Pi*c^n)  ,

and

                b[n]  = int(f(t)*sin(n*t),t = -Pi .. Pi)/(Pi*c^n)  ,

where c  is the radius of the disk.

EMAIL: herod@math.gatech.edu   or   jherod@tds.net

URL: http://www.math.gatech.edu/~herod

Copyright ©  2003  by James V. Herod

All rights reserved