• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Verifying that the basic Hopf−Cole transformation,
2
1
 where
xx
, satisfies the homogeneous Burgers’ equation
xx
ww
0 per Equation World’s description
In[2]:=
CleanSlate

;
CleanSlate
Contexts purged:
Global‘
CleanSlate
Approximate kernel memory recovered: 1 Kb
In[1]:=
w
x
, t
:
 
2u
x, t
D
u
x, t
, x
;
In[2]:=
terms
Expand

D
w
x, t
, t
,
D
w
x, t
,
x, 2

,
w
x, t
D
w
x, t
, x

; MatrixForm 
terms
Out[3]//MatrixForm=
 
2 u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
2 u
1,1
x,t
u
x,t
 
4 u
1,0
x,t
3
u
x,t
3
 
6 u
1,0
x,t
u
2,0
x,t
u
x,t
2
  
2 u
3,0
x,t
u
x,t
  
4 u
1,0
x,t
3
u
x,t
3
 
4 u
1,0
x,t
u
2,0
x,t
u
x,t
2
In[4]:=
transformedTerms
Expand
terms

.
D
u
x, t
,
x, 2

D
u
x, t
, t
,D
u
x, t
,
x, 3

D
u
x, t
,
x, 1
,
t, 1

; MatrixForm 
transformedTerms
ut 5 // atrx orm=
 
2 u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
2 u
1,1
x,t
u
x,t
  
6 u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
4 u
1,0
x,t
3
u
x,t
3
  
2 u
1,1
x,t
u
x,t
 
4 u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
4 u
1,0
x,t
3
u
x,t
3
In[6]:=
residual
Total
transformedTerms
Out[6]=
0
Verifying the Hopf−Cole transformation,
2
Ν
u
1
where
Ν
u
xx
, satisfies the homogenous Burgers’ variant
Ν
w
xx
ww
0 with constant
Ν
In[7]:=
CleanSlate

;
CleanSlate
Contexts purged:
Global‘
CleanSlate
Approximate kernel memory recovered: 0 Kb
 
In[1]:=
w
x
, t
:
 
2
Ν
u
x, t
D
u
x, t
, x
;
In[2]:=
terms
Expand

D
w
x, t
, t
,
Ν
D
w
x, t
,
x, 2

,w
x, t
D
w
x, t
, x

; MatrixForm 
terms
Out[3]//MatrixForm=
  
2
Ν
u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
2
Ν
u
1,1
x,t
u
x,t
  
4
Ν
2
u
1,0
x,t
3
u
x,t
3
 
6
Ν
2
u
1,0
x,t
u
2,0
x,t
u
x,t
2
  
2
Ν
2
u
3,0
x,t
u
x,t
 
4
Ν
2
u
1,0
x,t
3
u
x,t
3
 
4
Ν
2
u
1,0
x,t
u
2,0
x,t
u
x,t
2
In[4]:=
transformedTerms
Expand
terms

.
D
u
x, t
,
x, 2

 
1
Ν
D
u
x, t
, t
,D
u
x, t
,
x, 3

 
1
Ν
D
u
x, t
,
x, 1
,
t, 1

; MatrixForm 
transformedTerms
ut 5 // atrx orm=
  
2
Ν
u
0,1
x,t
u
1,0
x,t
u
x,t
2
  
2
Ν
u
1,1
x,t
u
x,t
 
6
Ν
u
0,1
x,t
u
1,0
x,t
u
x,t
2
 
4
Ν
2
u
1,0
x,t
3
u
x,t
3
  
2
Ν
u
1,1
x,t
u
x,t
  
4
Ν
u
0,1
x,t
u
1,0
x,t
u
x,t
2
 
4
Ν
2
u
1,0
x,t
3
u
x,t
3
In[6]:=
residual
Total
transformedTerms
Out[6]=
0
Verifying the complex exponential series solution u of theequation
Ν
u
xx
on the periodic domain [0,L)
Because the equation is linear, we may verify each term independently.
In[7]:=
CleanSlate

;
CleanSlate
Contexts purged:
Global‘
CleanSlate
Approximate kernel memory recovered: 18 Kb
In[1]:=
u
x
, t
, n
:
u
n
Exp
  
2
n
Π 
L
2
Ν
t
Exp
  
2
n
Π 
L
x
;
2
 
Hopf−Cole.nb 
 
In[2]:=
terms
Expand

D
u
x, t, n
, t
,
Ν
D
u
x, t, n
,
x, 2

; MatrixForm 
terms
Out[3]//MatrixForm=
 
4
    
2
n
Π
xL
   
4 n2
Π
2t
Ν
L2
n
2
Π
2
Ν
u
n
L
2
  
4
    
2
n
Π
xL
   
4 n2
Π
2t
Ν
L2
n
2
Π
2
Ν
u
n
L
2
In[4]:=
residual
Simplify

Total
terms
,
u
x, t, n
 
. x
0
u
x, t, n
 
. x
L
,
D
u
x, t, n
, x
 
. x
0
D
u
x, t, n
, x
 
. x
L
, n
Integers
Out[4]=
0, 0, 0
Verifying that complex exponential series solution u of
Ν
u
xx
 transformed by the Hopf−Cole variant
2
Ν
u
1
satisfies thehomogeneous Burgers’ equation
Ν
w
xx
ww
0 on theperiodic domain [0,L) with constant
Ν
In[5]:=
CleanSlate

;
CleanSlate
Contexts purged:
Global‘
CleanSlate
Approximate kernel memory recovered: 14 Kb
We verify for only a small number of terms because of the nonlinear nature of the equation.
In[1]:=
u
x
, t
:
n

33
u
n
Exp
  
2
n
Π 
L
2
Ν
t
Exp
  
2
n
Π 
L
x
;
In[2]:=
w
x
, t
:
 
2
Ν
u
x, t
D
u
x, t
, x
;
Hopf−Cole.nb 
 
3
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...