Diego Ramos
Universidad del Valle
Cali - Colombia
Universidad del Valle
Cali - Colombia
◼
The following problem is taken from Introduction to Partial Differential Equations by Peter J. Olver. The proposed solution makes use of Wolfram Language for symbolic computations.
Problem
Find all (real) solutions of the two-dimensional Laplace equation +=0 of the form , where is a quadratic polynomial.
u
xx
u
yy
u=logp(x,y)
p(x,y)
Define with the prescribed form:
u(x,y)
In[]:=
Clear[p];u[x,y]:=Log[p[x,y]];
Find the laplacian equation for
u(x,y):
In[]:=
Simplify[Laplacian[u[x,y],{x,y}]]0
Out[]=
-[x,y]+[x,y]-p[x,y][x,y]+[x,y]0
2
(0,1)
p
2
(1,0)
p
(0,2)
p
(2,0)
p
2
p[x,y]
Multiply both sides by
2
p(x,y)
In[]:=
LaplacianEquation=Simplify[Laplacian[u[x,y],{x,y}]0]
2
p[x,y]
Out[]=
2
(0,1)
p
2
(1,0)
p
(0,2)
p
(2,0)
p
Observe that the polynomial must safisty the partial differential equation
p(x,y)
2
∂p
∂x
2
∂p
∂y
(
1
)Then, if is quadric polynomial we can solve this equation finding the coefficientes of .
p(x,y)=a+bx+cy+d+e+fxy
2
x
2
y
p(x,y)
Define the quadric polynomial:
In[]:=
p[x,y]=a+bx+cy+dx^2+ey^2+fxy;
Obtain the equation (1) in terms of the coeffients of
p(x,y):
In[]:=
Equation1=Collect[Expand[D[p[x,y],x]^2+D[p[x,y],y]^2==p[x,y]Laplacian[p[x,y],{x,y}]],{x,y,xy}]
Out[]=
2
b
2
c
2
d
2
f
2
x
2
e
2
f
2
y
2
d
2
x
2
e
2
y
From equation (1) extract the coefficients from each side:
In[]:=
LeftCoefficients=CoefficientRules[Equation1[[1]],{x,y}]
Out[]=
{{2,0}4+,{1,1}4df+4ef,{1,0}4bd+2cf,{0,2}4+,{0,1}4ce+2bf,{0,0}+}
2
d
2
f
2
e
2
f
2
b
2
c
In[]:=
RightCoefficients=CoefficientRules[Equation1[[2]],{x,y}]
Out[]=
{{2,0}2+2de,{1,1}2df+2ef,{1,0}2bd+2be,{0,2}2de+2,{0,1}2cd+2ce,{0,0}2ad+2ae}
2
d
2
e
Equate the corresponding coefficients:
In[]:=
CoefficientEquation=Thread[Values@LeftCoefficientsValues@RightCoefficients]
Out[]=
{4+2+2de,4df+4ef2df+2ef,4bd+2cf2bd+2be,4+2de+2,4ce+2bf2cd+2ce,+2ad+2ae}
2
d
2
f
2
d
2
e
2
f
2
e
2
b
2
c
Solve the coefficient equation:
In[]:=
solutions=Solve[CoefficientEquation,{a,b,c,d,e,f}]
Out[]=
{c-b,e-d,f-2d},{cb,e-d,f2d},a+,ed,f0,{c-b,d0,e0,f0},{cb,d0,e0,f0}
2
b
2
c
4d
The unique solution that can be stablished for real coefficients is:
In[]:=
solutions[[3]]
Out[]=
a+,ed,f0
2
b
2
c
4d
Then, the polinomial must be of the form .
p(x,y)
p(x,y)=++αx+βy+λ+λ
2
α
2
β
4λ
2
x
2
y
Verify that the quadric polynomial satisfy the laplace equation:
p(x,y)
In[]:=
LaplacianLog++αx+βy+λ+λ,{x,y}//Simplify
2
α
2
β
4λ
2
x
2
y
Out[]=
0