Laplace equation with piece-wise constant boundary conditions, using change of variables
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I have a problem trying to find a solution of this problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases 1 & textrmif xge 0\ 0 & textrmif x<0 \ endcases $$
then I'd like to use that idea for solving this other problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases T_1 & textrmif x < a\ T_2 & textrmif ale xle b \ T_2 & textrmif x > b endcases $$
I did this for the first problem:
I defined a $g(z)= z = x+iy$
then I said, for an $h$ in polar coordinates:
$h(g,0)=0$
$h(g,pi)=1$
so $h(g,theta)=Atheta+B$
where $A=frac1pi$ and $B=0$
then I said:
$$ u(x,y)=h(operatornameRe(g),operatornameIm(g))=frac1piarctanleft(fracyxright) $$
but when I compute $u(x,0)$ it looks like this:
$$u(x,0)=frac1piarctan(0)=0, forall x$$
so it must not be a solution.
What should I do in this situation? What's wrong in the method that I proposed?
pde boundary-value-problem
add a comment |Â
up vote
-1
down vote
favorite
I have a problem trying to find a solution of this problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases 1 & textrmif xge 0\ 0 & textrmif x<0 \ endcases $$
then I'd like to use that idea for solving this other problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases T_1 & textrmif x < a\ T_2 & textrmif ale xle b \ T_2 & textrmif x > b endcases $$
I did this for the first problem:
I defined a $g(z)= z = x+iy$
then I said, for an $h$ in polar coordinates:
$h(g,0)=0$
$h(g,pi)=1$
so $h(g,theta)=Atheta+B$
where $A=frac1pi$ and $B=0$
then I said:
$$ u(x,y)=h(operatornameRe(g),operatornameIm(g))=frac1piarctanleft(fracyxright) $$
but when I compute $u(x,0)$ it looks like this:
$$u(x,0)=frac1piarctan(0)=0, forall x$$
so it must not be a solution.
What should I do in this situation? What's wrong in the method that I proposed?
pde boundary-value-problem
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have a problem trying to find a solution of this problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases 1 & textrmif xge 0\ 0 & textrmif x<0 \ endcases $$
then I'd like to use that idea for solving this other problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases T_1 & textrmif x < a\ T_2 & textrmif ale xle b \ T_2 & textrmif x > b endcases $$
I did this for the first problem:
I defined a $g(z)= z = x+iy$
then I said, for an $h$ in polar coordinates:
$h(g,0)=0$
$h(g,pi)=1$
so $h(g,theta)=Atheta+B$
where $A=frac1pi$ and $B=0$
then I said:
$$ u(x,y)=h(operatornameRe(g),operatornameIm(g))=frac1piarctanleft(fracyxright) $$
but when I compute $u(x,0)$ it looks like this:
$$u(x,0)=frac1piarctan(0)=0, forall x$$
so it must not be a solution.
What should I do in this situation? What's wrong in the method that I proposed?
pde boundary-value-problem
I have a problem trying to find a solution of this problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases 1 & textrmif xge 0\ 0 & textrmif x<0 \ endcases $$
then I'd like to use that idea for solving this other problem:
Find a harmonic function $u(x,y)$ in the region $operatornameIm(z)>0$ with:
$$ u(x,0) = begincases T_1 & textrmif x < a\ T_2 & textrmif ale xle b \ T_2 & textrmif x > b endcases $$
I did this for the first problem:
I defined a $g(z)= z = x+iy$
then I said, for an $h$ in polar coordinates:
$h(g,0)=0$
$h(g,pi)=1$
so $h(g,theta)=Atheta+B$
where $A=frac1pi$ and $B=0$
then I said:
$$ u(x,y)=h(operatornameRe(g),operatornameIm(g))=frac1piarctanleft(fracyxright) $$
but when I compute $u(x,0)$ it looks like this:
$$u(x,0)=frac1piarctan(0)=0, forall x$$
so it must not be a solution.
What should I do in this situation? What's wrong in the method that I proposed?
pde boundary-value-problem
edited Jul 19 at 8:31
Dylan
11.4k31026
11.4k31026
asked Jul 18 at 23:56


Verónica
235
235
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
There are two problems. First, your boundary conditions are wrong.
$$u(x > 0,0) = h(r,0) = 1$$
$$u(x<0,0) = h(r,pi) = 0$$
therefore $h(r,theta) = 1- dfracthetapi$
Second, converting back to Cartesian isn't as straightforward as taking the arctangent, since the function $arctanleft(fracyxright)$ only gives values between $(-pi/2,pi/2]$, and it isn't the case here. You have to split up the domain like this
$$ theta = begincases arctanleft(fracyxright), & 0 < theta < fracpi2 \ arctanleft(fracyxright) + pi, & fracpi2 < theta < pi endcases $$
because when $x < 0$, $y > 0$, $arctanleft(fracyxright)$ gives an angle in the range $(-fracpi2,0]$, which is not what we want.
Finally, we have
$$ u(x,y) = -frac1piarctanleft(fracyxright) + begincases 1, & x> 0 \ 0, & x < 0 endcases $$
Alternatively, you can also write
$$ u(x,y) = frac12 + frac1piarctanleft(fracxyright) $$
by noting that $theta = fracpi2 - phi$ where $fracxy = cottheta = tanphi$
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
There are two problems. First, your boundary conditions are wrong.
$$u(x > 0,0) = h(r,0) = 1$$
$$u(x<0,0) = h(r,pi) = 0$$
therefore $h(r,theta) = 1- dfracthetapi$
Second, converting back to Cartesian isn't as straightforward as taking the arctangent, since the function $arctanleft(fracyxright)$ only gives values between $(-pi/2,pi/2]$, and it isn't the case here. You have to split up the domain like this
$$ theta = begincases arctanleft(fracyxright), & 0 < theta < fracpi2 \ arctanleft(fracyxright) + pi, & fracpi2 < theta < pi endcases $$
because when $x < 0$, $y > 0$, $arctanleft(fracyxright)$ gives an angle in the range $(-fracpi2,0]$, which is not what we want.
Finally, we have
$$ u(x,y) = -frac1piarctanleft(fracyxright) + begincases 1, & x> 0 \ 0, & x < 0 endcases $$
Alternatively, you can also write
$$ u(x,y) = frac12 + frac1piarctanleft(fracxyright) $$
by noting that $theta = fracpi2 - phi$ where $fracxy = cottheta = tanphi$
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
add a comment |Â
up vote
0
down vote
accepted
There are two problems. First, your boundary conditions are wrong.
$$u(x > 0,0) = h(r,0) = 1$$
$$u(x<0,0) = h(r,pi) = 0$$
therefore $h(r,theta) = 1- dfracthetapi$
Second, converting back to Cartesian isn't as straightforward as taking the arctangent, since the function $arctanleft(fracyxright)$ only gives values between $(-pi/2,pi/2]$, and it isn't the case here. You have to split up the domain like this
$$ theta = begincases arctanleft(fracyxright), & 0 < theta < fracpi2 \ arctanleft(fracyxright) + pi, & fracpi2 < theta < pi endcases $$
because when $x < 0$, $y > 0$, $arctanleft(fracyxright)$ gives an angle in the range $(-fracpi2,0]$, which is not what we want.
Finally, we have
$$ u(x,y) = -frac1piarctanleft(fracyxright) + begincases 1, & x> 0 \ 0, & x < 0 endcases $$
Alternatively, you can also write
$$ u(x,y) = frac12 + frac1piarctanleft(fracxyright) $$
by noting that $theta = fracpi2 - phi$ where $fracxy = cottheta = tanphi$
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
There are two problems. First, your boundary conditions are wrong.
$$u(x > 0,0) = h(r,0) = 1$$
$$u(x<0,0) = h(r,pi) = 0$$
therefore $h(r,theta) = 1- dfracthetapi$
Second, converting back to Cartesian isn't as straightforward as taking the arctangent, since the function $arctanleft(fracyxright)$ only gives values between $(-pi/2,pi/2]$, and it isn't the case here. You have to split up the domain like this
$$ theta = begincases arctanleft(fracyxright), & 0 < theta < fracpi2 \ arctanleft(fracyxright) + pi, & fracpi2 < theta < pi endcases $$
because when $x < 0$, $y > 0$, $arctanleft(fracyxright)$ gives an angle in the range $(-fracpi2,0]$, which is not what we want.
Finally, we have
$$ u(x,y) = -frac1piarctanleft(fracyxright) + begincases 1, & x> 0 \ 0, & x < 0 endcases $$
Alternatively, you can also write
$$ u(x,y) = frac12 + frac1piarctanleft(fracxyright) $$
by noting that $theta = fracpi2 - phi$ where $fracxy = cottheta = tanphi$
There are two problems. First, your boundary conditions are wrong.
$$u(x > 0,0) = h(r,0) = 1$$
$$u(x<0,0) = h(r,pi) = 0$$
therefore $h(r,theta) = 1- dfracthetapi$
Second, converting back to Cartesian isn't as straightforward as taking the arctangent, since the function $arctanleft(fracyxright)$ only gives values between $(-pi/2,pi/2]$, and it isn't the case here. You have to split up the domain like this
$$ theta = begincases arctanleft(fracyxright), & 0 < theta < fracpi2 \ arctanleft(fracyxright) + pi, & fracpi2 < theta < pi endcases $$
because when $x < 0$, $y > 0$, $arctanleft(fracyxright)$ gives an angle in the range $(-fracpi2,0]$, which is not what we want.
Finally, we have
$$ u(x,y) = -frac1piarctanleft(fracyxright) + begincases 1, & x> 0 \ 0, & x < 0 endcases $$
Alternatively, you can also write
$$ u(x,y) = frac12 + frac1piarctanleft(fracxyright) $$
by noting that $theta = fracpi2 - phi$ where $fracxy = cottheta = tanphi$
edited Jul 21 at 7:28
answered Jul 19 at 7:39
Dylan
11.4k31026
11.4k31026
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
add a comment |Â
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
Thank you! Shouldn't it be: $$ u(x,y) = -frac1piarctanleft(fracxyright)+ begincases 1, & x> 0 \ 0, & x < 0 endcases $$ ?
– Verónica
Jul 21 at 1:47
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2856129%2flaplace-equation-with-piece-wise-constant-boundary-conditions-using-change-of-v%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password