Solution of Laplace eq with Robbins boundary condition

Yes, but I'm confused in how I can evaluate u(x,y)

The integral Fk requires me to input u(0,y) and integrating. But u(0,y) also contains u(0,y).
F(y)F(y) depends on u(0,y)u(0,y). And since u(0,y)u(0,y) is unknown function, you cannot evaluate. You can only write the general solution of the PDE. If they want you to evaluate FkF_k, they must give the value of u(0,y)u(0,y).

For example, if they tell you that:

u(0,y)=5yu(0,y) = 5y

Then,

you can solve FkF_k and any other constants that depend on FkF_k.

It is not the end of the world. You can play around by choosing any value for u(0,y)u(0,y) and solve FkF_k if you want. Who will stop you?

😉
 
Last edited:
I see what you mean. Thanks, this is really helpful.

I understand how you broke up the problem using the superposition principle.

If I use the superposition principle could I also solve a transient problem like below?

1728399942188.png
 
I see what you mean. Thanks, this is really helpful.

I understand how you broke up the problem using the superposition principle.

If I use the superposition principle could I also solve a transient problem like below?

View attachment 38699
The first equation is a two dimensional heat equation and it will always come with homogeneous boundary conditions in rectangular coordinate. Let me guess, you have made up that problem to have nonhomogeneous boundary conditions, right?

The last equation is a valid two dimensional heat equation and it can be solved normally by separation of variables. The second and third equations are just Laplace equations and they can be solved the same way we did with the OP problem no matter what are the boundary conditions.

The one dimensional heat equation can have nonhomogeneous boundary conditions. It can even have a time-dependent source function. The heat equation with higher dimensions in other coordinate systems can have nonhomogeneous boundary conditions.

Partial Differential Equations become more interesting when the domain is <x<-\infty < x < \infty. Most of the time, you will have no choice but to solve them by either Fourier or Laplace transform.
 
If you are looking for a three dimensional fun challenging Laplace equation in rectangular coordinate system, try this:

2ux2+2uy2+2uz2=0\displaystyle \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2} = 0

u(0,y,z)=0u(0, y, z) = 0
u(a,y,z)=0u(a, y, z) = 0
u(x,0,z)=0u(x, 0, z) = 0
u(x,b,z)=0u(x, b, z) = 0
u(x,y,0)=f(x,y)u(x, y, 0) = f(x,y)
u(x,y,c)=0u(x, y, c) = 0

0<x<a0 < x < a
0<y<b0 < y < b
0<z<c0 < z < c

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

If you are looking for a two dimensional fun challenging Heat equation in rectangular coordinate system, try this:

k(2ux2+2uy2)=ut\displaystyle k\left(\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2}\right) = \frac{\partial u}{\partial t}

uxx=0=0,     uxx=1=0\displaystyle \frac{\partial u}{\partial x}\bigg|_{x=0} = 0, \ \ \ \ \ \frac{\partial u}{\partial x}\bigg|_{x=1} = 0

uyy=0=0,     uyy=1=0\displaystyle \frac{\partial u}{\partial y}\bigg|_{y=0} = 0, \ \ \ \ \ \frac{\partial u}{\partial y}\bigg|_{y=1} = 0

u(x,y,0)=f(x,y)\displaystyle u(x,y,0) = f(x,y)

0<x<1\displaystyle 0 < x < 1
0<y<1\displaystyle 0 < y < 1
t>0\displaystyle t > 0
 
I will try those. I will also try the problem I made up.

Thanks, for all your help so far. You've really helped me.
 
I will try those. I will also try the problem I made up.

Thanks, for all your help so far. You've really helped me.
I have never seen a two dimensional heat equation that has nonhomogeneous boundary conditions in rectangular coordinate system. But by playing around I could force the boundaries to be homogenous. It is similar to your idea of the superposition principle, but an easier version.

Let u(x,y,t)=g(x,y)+v(x,y,t)u(x,y,t) = g(x,y) + v(x,y,t).

After substituting this into the original differential equation (first equation) and applying the boundary conditions, you will get these two equations:

2gx2+2gy2=0\displaystyle \frac{\partial^2 g}{\partial x^2} + \frac{\partial^2 g}{\partial y^2} = 0

g(0,y)=f(y)g(0,y) = f(y)
g(1,y)=0g(1,y) = 0
g(x,0)=0g(x,0) = 0
g(x,1)=g(x)g(x,1) = g(x)

0<x<10 < x < 1
0<y<10 < y < 1

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

2vx2+2vy2=vt\displaystyle \frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 v}{\partial y^2} = \frac{\partial v}{\partial t}

v(0,y,t)=0v(0,y,t) = 0
v(1,y,t)=0v(1,y,t) = 0
v(x,0,t)=0v(x,0,t) = 0
v(x,1,t)=0v(x,1,t) = 0
v(x,y,0)=h(x,y)g(x,y)=m(x,y)v(x,y,0) = h(x,y) - g(x,y) = m(x,y)

0<x<10 < x < 1
0<y<10 < y < 1
t>0t > 0

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

The first equation is just a Laplace equation that can be solved by the same method we have used in the OP problem. And the second equation is the normal two dimensional Heat equation that we know and it can solve by separation of variables.
 
Last edited:
Your step:

c4=c3tan(λb)c_4 = -c_3\tan(\lambda b) which is meant to be c4=c3tanh(λb)c_4 = -c_3\tanh(\lambda b)

It is not wrong to do that, but I do not recommend it. I prefer to leave the hyperbolic solution alone and to find the constants from the solution of the superposition principle Ψ2(x,y)=n=1\displaystyle \ \rightarrow \Psi_2(x,y) = \sum_{n=1}^{\infty} \cdots

When you solved the Heat equation, you wrote the second boundary condition as du(b,y,t)dy=0\displaystyle \frac{du(b,y,t)}{dy} = 0. I am sure you meant to write du(x,b,t)dy=0\displaystyle \frac{du(x,b,t)}{dy} = 0.

You write the eigenvalues as:

λ=nπa+π2a\displaystyle \lambda = \frac{n\pi}{a} + \frac{\pi}{2a}

when they are simply:

λ=(2n1)π2a\displaystyle \lambda = \frac{(2n - 1)\pi}{2a}

I will show you how to do it. You have found the first solution as:

X(x)=c2sin(λx)X(x) = c_2\sin(\lambda x)

The second boundary condition is X(a)=0X'(a) = 0.

Then

0=c2λcos(λa)0 = c_2\lambda\cos(\lambda a)

We know that c20 and λ0c_2 \neq 0 \ \text{and} \ \lambda \neq 0, so it must be cos(λa)=0\cos(\lambda a) = 0

The cosine function is zero when λa=π2,3π2,5π2,kπ2     (λa>0)\displaystyle \lambda a = \frac{\pi}{2}, \frac{3\pi}{2}, \frac{5\pi}{2},\cdots \frac{k\pi}{2} \ \ \ \ \ (\lambda a > 0)

It is obvious that kk is an odd integer, so k=2n1k = 2n - 1.

Then

λa=(2n1)π2\displaystyle \lambda a = \frac{(2n - 1)\pi}{2}

Or

λ=(2n1)π2a\displaystyle \lambda = \frac{(2n - 1)\pi}{2a}

Or

λn=(2n1)π2a,     n=1,2,3,\displaystyle \lambda_n = \frac{(2n - 1)\pi}{2a}, \ \ \ \ \ n =1,2,3,\cdots

I have not checked everything in details, but I think that you have solved the problem perfectly!

🫡
 
Last edited:
Thank you for all of your feedback. Your assistance is invaluable.

I want to try to do a similar problem with a radial coordinate system.
 
I will post my work when I complete it.
Waiting...

😇


Remarks:

Since one of the boundary conditions is a constant, u2u_2, I would start this approach:

u(r,θ,t)=v(r,θ,t)+ψ(r,θ)\displaystyle u(r,\theta,t) = v(r,\theta,t) + \psi(r,\theta)

where

ψ(r,θ)=ψ1(r)+ψ2(r,θ)\displaystyle \psi(r,\theta) = \psi_1(r) + \psi_2(r,\theta)

And I will let ψ1(r)\displaystyle \psi_1(r) takes care of the constant u2\displaystyle u_2 while ψ2(r,θ)\displaystyle \psi_2(r,\theta) will take care of the function P(θ)\displaystyle P(\theta).

Solving the heat equation v(r,θ,t)v(r,\theta, t) in polar coordinate will certainly involve Bessel functions. And since the initial condition v(r,θ,0)=h(r,θ)v(r,\theta, 0) = h(r,\theta) depends on two variables, it will take you some extra work to find the constants.

Revisiting this thread will help you refresh some ideas.

It is really a fun and challenging problem!

💀
 
I noticed we are forgetting the lambda = 0 case in the last problem.

I have included it on this problem.
 
A few remarks:

When you split the main function uu into two functions, one of them is ψ\psi. This function does not depend on time, so it should be written as ψ(r,θ)\psi(r,\theta). Also when you split ψ(r,θ)\psi(r,\theta) into ψ1\psi_1 and ψ2\psi_2, one of them will obviously not depend on θ\theta, particularly the one that will hold the constant as a boundary condition, so it should be written as ψ1(r)\psi_1(r).

Other things were done perfectly!

You solved the time problem correctly. T(t)T(t)
You solved the angular problem correctly. ϕ(θ)\phi(\theta)
You solved the radial problem correctly. R(r)R(r)

And you solved the Bessel problem correctly JμJ_{\mu}. I am impressed that you could handle the constants easily when they were new ideas as the initial condition of the heat equation depended on two variables!

Lastly the Bessel order starts at μ=0\mu = 0, so the summation should be written as μ=0\displaystyle \sum_{\mu = 0}^{\infty} and don't forget to write λ\lambda with two indices λμn\lambda_{\mu n} because it is holding the nnth zero of Rμ(r)R_{\mu}(r). And I forgot to mention that you forgot to find A0nA_{0n} in the heat equation!

BravooO 👏


Note: If you are interested to solve more PDEs problems in the future, please open a new thread as this thread is becoming very large while its main purpose was done a long time ago!
 
Last edited:
Top