Error, (in ODEtools/info) x(t) and x cannot both appear in the given ODE.

  • Thread starter Thread starter Susanne217
  • Start date Start date
  • Tags Tags
    Error Ode
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
Susanne217
Messages
311
Reaction score
0

Homework Statement



Hi I am trying to solve a seperable differential equation in Maple

eqn1:=diff(x(t),t)=3*t^2/sqrt(x);

But every time I type

dsolve(eqn1,x(t));

I get the very hurtfull error from Maple

"Error, (in ODEtools/info) x(t) and x cannot both appear in the given ODE."

What am I doing wrong?

I have changed it to

eqn1:=diff(x(t),t)=3*t^2/sqrt(x(t)); and Mapple accepted it...

Is this right?
 
Last edited:
Physics news on Phys.org
"x(t)" and "x" are different symbols. Maple is interpreting "x(t)" as a function of t and "x" as a constant. It appears to Maple that you are using "x" in two different ways and it will not allow that.
 
HallsofIvy said:
"x(t)" and "x" are different symbols. Maple is interpreting "x(t)" as a function of t and "x" as a constant. It appears to Maple that you are using "x" in two different ways and it will not allow that.

Okay why Hallsoftivy could they go ahead and write this in the error insteed :)

But thank you :)

I'm given the differential equation

[tex]\frac{dx}{dt} = \frac{3t^2}{\sqrt{x}}[/tex]

without any initial conditions

the right way to solve this in Maple is the command:
eqn1:=diff(x(t),t)=3*t^2/sqrt(x(t));

??
 
Last edited:
? That's what I just said: Maple is telling you that you cannot use the letter "x" in two different meanings and that is how Maple is interpreting what you gave.