Group Abstract Group Abstract

Message Boards Message Boards

0
|
251 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

What is the cause of the incorrect substitution?

Posted 14 days ago

Hi,

What is the cause of the error and the incorrect substitution? What should I do to make it run correctly?

POSTED BY: Sami Heidari
4 Replies

Maybe this:

dG = G';
subst1 = \[CapitalXi]dG[\[Xi]_] -> dG[\[Xi]]/G[\[Xi]]^2;
subst2 = \[CapitalXi]dG'[\[Xi]_] -> 
   A + B \[CapitalXi]dG[\[Xi]]^2 + c \[CapitalXi]dG[\[Xi]];
subst3 = \[CapitalXi]dG''[\[Xi]_] -> 
     D[\[CapitalXi]dG'[\[Xi]] /. subst2, \[Xi]] /. subst2 /. subst1;

a = {a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, 
   a15, a16, a17, a18, a19, a20};


U[\[Xi]_] := Sum[a[[i + 2]]*(H + \[CapitalXi]dG[\[Xi]])^i, {i, p, q}]
p = -1; q = 1;
U[\[Xi]]
eq1 = 2*(\[Nu]^2 - k^2)*D[U[\[Xi]], \[Xi]] + 
      2 (\[Alpha] k^2 \[Nu]^2)*D[U[\[Xi]], {\[Xi], 2}] - 
      3 \[Nu] k^2*D[U[\[Xi]], \[Xi]]^2 /. subst1 /. subst2 /. subst3 //
   Expand
POSTED BY: Gianluca Gorni
Posted 12 days ago

Hi, the substitution was not applied.

POSTED BY: Sami Heidari

I am trying to guess your purpose:

ClearAll[\[Alpha], eq1, \[CapitalXi]dG, coefficients, G, \[Xi], A, B, 
  H, c, k, \[Nu]];

dG = G';
subst1 = \[CapitalXi]dG[\[Xi]_] -> dG[\[Xi]]/G[\[Xi]]^2;
subst2 = \[CapitalXi]dG'[\[Xi]_] -> 
   A + B \[CapitalXi]dG[\[Xi]]^2 + c \[CapitalXi]dG[\[Xi]];

a = {a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, 
   a15, a16, a17, a18, a19, a20};


U[\[Xi]_] := Sum[a[[i + 2]]*(H + \[CapitalXi]dG[\[Xi]])^i, {i, p, q}]
p = -1; q = 1;
U[\[Xi]]
eq1 = 2*(\[Nu]^2 - k^2)*D[U[\[Xi]], \[Xi]] + 
     2 (\[Alpha] k^2 \[Nu]^2)*D[U[\[Xi]], {\[Xi], 2}] - 
     3 \[Nu] k^2*D[U[\[Xi]], \[Xi]]^2 /. subst1 /. subst2 // Expand

What is missing is a replacement rule for the second derivative of \[CapitalXi]dG

POSTED BY: Gianluca Gorni
Posted 13 days ago

I am trying to implement and learn the method used in an article. By subst2 I mean the derivative of subst1. The expression is used for simplicity. "New analytical technique for prototype closed form solutions....."

I wanted to simply implement this method in Mathematica.

POSTED BY: Sami Heidari
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard