Laplace's equation applied to a rectangular plate, where the vertical edges of the plate are held at the constant temperature and the temperature along the top and bottom edges is given by fixed but not necessarily constant functions and , is with boundary conditions It has the solution where

If, instead of the vertical edges, the horizontal edges of plate are held at constant temperature 0 and the temperature along the vertical edges is given by fixed functions and , then everything is nearly the same as before except the roles of and are swapped. The PDE becomes

with boundary conditions

Find the solution to this equation by swapping the roles of and in the previous solution

where

 
----------
 

   

 
-----------------------------------
  
----------
 

     

The superposition of these two solutions solves the general PDE with Dirichlet boundary conditions on a rectangle: with boundary conditions

You can earn partial credit on this problem.