dharr

Dr. David Harrington

8507 Reputation

22 Badges

21 years, 41 days
University of Victoria
Professor or university staff
Victoria, British Columbia, Canada

Social Networks and Content at Maplesoft.com

Maple Application Center
I am a retired professor of chemistry at the University of Victoria, BC, Canada. My research areas are electrochemistry and surface science. I have been a user of Maple since about 1990.

MaplePrimes Activity


These are replies submitted by dharr

@salim-barzani I updated the solution to include step 3. It works for the Burgers equation, and it is clear that you have to think about the resonance points, and won't be able to just solve the whole system.

@salim-barzani I have modified it to work in Maple 2024.

@salim-barzani I think I fixed the step 1 part. I'm not sure what coeffcients to find and what to solve for. I collected and found coefficients of powers of psi(x,y,z,t) only (not its derivatives), stll that makes 14 equations. Then I'm solving the equations only for w[i](x,y,z,t), i=2..6 (somehow w[1] has disappeared) - in Jet notation these are w[2][],..w[6][], which I renamed W[2]..W[6]. But perhaps I am supposed to solve for the derivatives as well (but there are more tham 14)? 

GOM-Dr.D-test-1-2b.mw

@salim-barzani I updated Step1_DAH.mw - please check the statement in bold is correct. I will look at step 2.

@salim-barzani The errors in pdes-s-1-2.mw and step1-2.mw are because coeff can only handle integer powers, not symbolic ones. The findexp routine can handle symbolic powers.

@salim-barzani Thanks for the detailed explanation. I have finished inplementing step 1 for this case, but I still don't know how "higher nonlinearity" is defined in the general case. I will ok at the next steps later.

Step1_DAH.mw

 

@salim-barzani I did some more, but I still don't know how to complete step 1.

new-p_DAH.mw

@salim-barzani You say "is clear what they did". Would you please explain the steps to find alpha[1]. I do not understand that (and extra papers just seem to say the same thing). 

I don't understand what is happening, but maybe this is helpful as a start.

p1_DAH.mw

@michele @Carl Love's commands only work for 1-D input. I'm guessing you are using 2-D input, so the equivalent commands are

M[.., -[$1..n]]

M[-[$1..n]]

It can be quite difficult to get such complicated expressions into exactly the form you want in a paper. My usual procedure is the take the Maple expression A, copy it and modify it by hand to the way you want it, set it to B, and then simplify(A-B) to check that you haven't made a mistake.

@michele 
In U[.., p], the ".." means select all the rows (short for 1..4 in this case), and p is a list of columns to select, so for p=[4,3,2,1] the 4th, then 3rd then 2nd then first columns are selected.

See the help page ?MVselect for more details.

@michele (doesn't dispay correctly here)

restart

with(LinearAlgebra)

M := RandomMatrix(4, 4, generator = -5 .. 5.0, shape = symmetric)

Matrix(%id = 36893489449922185204)

These are in ascending order by default

Lambda, U := Eigenvectors(M)

Vector[column](%id = 36893489449922175452), Matrix(%id = 36893489449922176292)

Sort into descending order and remember how we did it

Lambda, p := sort(Lambda, descending = true, output = [sorted, permutation])

Vector[column](%id = 36893489449922169540), [4, 3, 2, 1]

Sort the eigenvectors the same way

U := U[() .. (), p]

Matrix(%id = 36893489449922165564)

Check

fnormal(U.DiagonalMatrix(Lambda).LinearAlgebra:-Transpose(U)-M)

Matrix(%id = 36893489449922147620)

Download EvecsSorted.mw

@michele I'm not clear how you generated your matrix, since you didn't upload your worksheet. If M is your Matrix, you can convert it to symmetric by

M := Matrix(M, shape = symmetric);
2 3 4 5 6 7 8 Last Page 4 of 89