Solving Laplace Equation
Solving Laplace Equation
Laplaces Equation
2 2 + 2 =0 2 y x
In the vector calculus course, this appears as 2
x where = =0 y
Note that the equation has no dependence on time, just on the spatial variables x,y. This means that Laplaces Equation describes steady state situations such as: steady state temperature distributions steady state stress distributions steady state potential distributions (it is also called the potential equation steady state flows, for example in a cylinder, around a corner,
To solve:
2 2
w=0
w w + 2 =0 2 x y
for 0 x a for 0 y b
x,
for 0 x a
Case k=0
X ( x) = ( Ax + B ), Y ( y ) = (Cy + D)
w(0, y ) = 0 B = 0 or C = D = 0 if C = D = 0, then Y ( y ) 0, so w( x, y ) 0 Continue with B = 0 :w( x, y ) = Ax(Cy + D)
Case k>0
Suppose that k = 2 , so that w( x, y ) = ( A cosh x + B sinh x)(C cos y + D sin y )
Recall that cosh 0 = 1, sinh 0 = 0 w(0, y ) = 0 A(C cos y + D sin y ) = 0 C = D = 0 w( x, y ) 0 Continue with A = 0 w( x, y ) = B sinh x(C cos y + D sin y )
wn ( x, y ) = BD sin n
x sinh n
Solution
Applying the first three w( x, y ) = boundary conditions, we have
nx ny K n sin sinh a a n =1
We can see from this that n must take only one value, namely 1, so that K 1 = and the final solution to the stress distribution is
w0 sinh
b
a
w( x, y ) =
w0 sinh
b
a
sin
x
a
sinh
y
a
w = w0 f ( x )
a w=0 Then
nx nb w0 f ( x) = K n sin sinh a a n =1
w = w0 sin
2a
To solve:
w w + 2 =0 2 x y
2 2
w=0
w =0 x
a x
Boundary conditions
w=0
2a
x,
for 0 x a
Case k=0
X ( x) = ( Ax + B ), Y ( y ) = (Cy + D)
w(0, y ) = 0 B = 0 or C = D = 0
if C = D = 0, then Y ( y ) 0, so w( x, y ) 0 Continue with B = 0 :w( x, y ) = Ax(Cy + D)
Case k>0
Suppose that k = 2 , so that w( x, y ) = ( A cosh x + B sinh x)(C cos y + D sin y )
Recall that cosh 0 = 1, sinh 0 = 0 w(0, y ) = 0 A(C cos y + D sin y ) = 0 C = D = 0 w( x, y ) 0 Continue with A = 0 w( x, y ) = B sinh x(C cos y + D sin y )
Solution
Applying the first three boundary conditions, we have
w( x, y ) = K n sin
n =1
w( x, b) = w0 sin
x
2a
We can see from this that n must take only one value, namely 1, so that K1 = and the final solution to the stress distribution is
w0
sinh
2a
w( x, y ) =
w0 sinh
b
a
sin
x
a
sinh
y
a
A problem in electrostatics
Radius a r
I could simply TELL you that Laplaces Equation in cylindrical polars is:
2V 1 V 1 2V 2V V= 2 + + 2 + 2 =0 2 z r r r r
2
r x y
x = r cos y = r sin
r = x2 + y2
y = tan x
1
2 2 u u 2 u= 2 + 2 =0 x y
where
x = x(r , ), y = y( r , )
u ( x, y ) = u ( r , ) u ( r , ) = 0
2
u u r u = + x r x x
2u u 2 r u r u 2 u + + = + 2 2 2 r x x r x x x x x
(*)
u u r = + x r r r x
u r x
2u r 2u = 2 + r x r x
u u r + = x r x
u 2u r 2u = + 2 r x x x
y = r sin
r= x +y
2
y = tan x
1
r r x r = x + y 2r = = 2x x r x
r y = Similarly, y r
in like manner .
2r y 2 2r x 2 = 3, 2 = 3 2 x r y r y x = 2, = 2 x r y r 2 2 xy 2 2 xy = 4 , 2 = 4 2 x r y r
2u 2u x 2 u y 2 2u 2 xy u 2 xy 2u y 2 = 2 2+ + + + 2 4 2 3 3 4 r r r r r r r r x
2 2 2 2 2 2 2 u u y u x u 2 xy u 2 xy u x Similarly, = 2 2 + + + 2 4 2 3 3 4 r r r r r r y r r
2u 2u 2u 1 u 1 2u =0 + 2 + 2 = 2+ 2 2 r r r r y x
u u + 2 =0 2 x y is equivalent to
2 2
u 1 u 1 u =0 + + 2 2 2 r r r r
2 2
P(r,,z) z
r x
Thin strip of insulating material 0V
Boundary conditions
V ( a , ) = U : 0 V ( a , ) = 0 : 2
In the polar system, note that the solution must repeat itself every = 2
V should remain finite at r=0
2V 1 V 1 2V 2V 2 + 2 + 2 =0 V= 2 + 2 r r r r z
V =0 z 2V 1 V 1 2V + 2 =0 + 2 2 r r r r
V = R(r ) ( )
1 1 R + R + 2 R = 0 r r
R + R r = R r2
R + R r = = k, a constant 2 R r
V (r , ) = bd = g, a constant
Dn = 0
The solution
V (r , ) = g + r n ( An cos n + Bn sin n )
n
Notice that we have not yet applied the voltage boundary condition!! Now is the time to do so
< 2
Integrating V from 0 to 2:
2
V (a, )d = U
0
n ( An cos n + Bn sin n )d = 2g g a + 0 n
and so g =
U 2
U V ( a , ) cos m d = 2 0
cos md +
0
a
0 n
U cos md = 0 + Am a m
0
U V a m d ( , ) sin = 2 0
sin md + a
0 0 n 2
V (r , ) =
U 2U V (r , ) = + 2
r ( 2 n 1 ) sin( 2 n 1 ) ( 2 n 1 ) n =1 ( 2 n 1 )a
U 2U V (r , ) = + 2
a ( 2 n 1 ) sin( 2 n 1 ) ( 2 n 1 ) 2 n =1 ( 2 n 1 )a
= =
U 2U = + 2
0V
Image fragment
Remove the noise by smoothing Find places where the second derivative of the image is zero
Signal position, x Zero crossing atmax step. Butstep. Constant gradient + at the Note amplified noise noise doubly amplified
Edge map
intensity
Gaussian smoothing
I smooth = 0
2
An application of Laplaces Equation!
A noisy image
Gaussian blurring
Gaussian is isotropic takes no account of orientation of image features so it gives crap edge features
(G I ) = 0
2
As the blurring is increased, by increasing the standard deviation of the Gaussian, the structure of the image is quickly lost. Can we do better? Can we make blurring respect edges?
Anisotropic diffusion
t I = ( g ( x; t )I )
T |I |2 k2
g ( x; t ) = e
Anisotropic blurring of the noisy image Top right: Gaussian Bottom left and right: different anisotropic blurrings
Example of anisotropic diffusion brain MRI images, which are very noisy. Top: Gaussian blur Middle and bottom: anistropic blur
Anisotropic blurring of the house image retaining important structures at different degrees of non-linear blurring