Message Boards Message Boards

0
|
3667 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Using DSolve (gives "True" for one equation)

Posted 11 years ago

Hi , I am new to Mathematica and I was wondering if anyone can tell me why I am unable to solve the IVP for dy/dy=y^2, y(0)=3. I am entering DSolve[y'[t]==y[t]^2,y[t],t] and I am getting an output of DSolve[True,y[t],t] instead of an equation. Anyone know what I am doing wrong?
When I enter

 DSolve[{y'[t]==y[t]^2,y[0]==3},y[t],t] 

I am getting an output of

DSolve [{True,  y[0]==3,y[t],t] 

I am looking for an answer I can work with. Thank you for any help with what I am doing wrong.

POSTED BY: Kathy Anderson
2 Replies
Posted 11 years ago

From the output Mathematica has resolved y'[t]==y[t]^2 to True. This is probably because somewhere in the notebook you have made that assignment by y'[t]=y[t]^2 rather than using ==. It may be that was input earlier as you developed the notebook, and then corrected. But the kernel remembers it. If so, quit the kernel and then reevaluate.

POSTED BY: David Keith
Posted 11 years ago

Thank you very much. That was what it was.

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

Group Abstract Group Abstract