Group Abstract Group Abstract

Message Boards Message Boards

0
|
365 Views
|
6 Replies
|
8 Total Likes
View groups...
Share
Share this post:

Using DSolve butFailing to obtain a list of equations expected instead of True in the first argument

Posted 1 month ago

Please assist. I have this Mathematica input

DSolve[{ -((2 Derivative[1][h][t])/c) + (2 h[t] 
    \!\(\*SuperscriptBox[\(b\), 
    TagBox[
    RowBox[{"(", 
    RowBox[{"1", ",", "0"}], ")"}],
    Derivative],
    MultilineFunction->None]\)[x, t])/c == 0 /. b[x, t] -> c/4, 
      h[t]/4 - (b[x, t] h[t])/c == 0 /. b[x, t] -> c/4, (2 Xi[2][t] 
    \!\(\*SuperscriptBox[\(b\), 
    TagBox[
    RowBox[{"(", 
    RowBox[{"0", ",", "1"}], ")"}],
    Derivative],
    MultilineFunction->None]\)[x, t])/c == 0 /. b[x, t] -> c/4}, {h[t], 
      Xi[2][t]}, {t}]

But I am getting this output:

DSolve::deqn: Equation or list of equations expected instead of True in the first argument {-((2 (h^\[Prime])[t])/c)+(2 h[t] (b^(1,0))[x,t])/c==0,True,(2 Xi[2][t] (b^(0,1))[x,t])/c==0}.

Help me fix it so that the actual output is a list of equations.

POSTED BY: Nomsa Ledwaba
6 Replies
Posted 25 days ago

I separated the DSolve for ode and pde as you advised since Mathematica cannot do DSolve all at once. From what I did the output of Xi[2][t] is not convincing me. I had to use a different equation to determine Xi[2][t]. What is the difference of the two outputs of Xi[2][t]? Please check the notebook and advise

.

POSTED BY: Nomsa Ledwaba

You may try rewriting the ode as a pde with this trick: instead of h[t] you write h[t,x] with the additional equation D[h[t,x],x]==0.

POSTED BY: Gianluca Gorni
Posted 1 month ago

I have added a code. I want to DSolve the ode and a pde.

POSTED BY: Nomsa Ledwaba

DSolve only solves ODE or only PDE, not together.!!!

You have to separate it?

POSTED BY: Mariusz Iwaniuk

I would expect this to happen if the function h had already been given a value that happens to solve the equation, as for example in

x[t_] = 1;
DSolve[x'[t] == 0, x, t]
POSTED BY: Gianluca Gorni

Can't anything be done without the code?

Update:

Your syntax is wrong in DSolve command!. Better is go to how to get a correct syntax in DSolve command by examples.

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