Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Solve differential equation a*x'+b*x=|sin(w*t)| on Mathematica calling W|A?

Posted 10 years ago

Hi everyone, how could I solve the differential equation ax'+bx=|sin(w*t)| with x(0)=0 on Mathematica? Thank you for your time.

POSTED BY: Gennaro Arguzzi
4 Replies
Posted 10 years ago

Close, but not quite

WolframAlpha attempt

POSTED BY: Bill Simpson
Posted 10 years ago

If you can justify rewriting |sin(w * t)| as sqrt(sin(w * t)^2) and you carefully study the examples

here

to understand the notation that Mathematica demands then you should be able to use Mathematica to solve your problem.

If you try it and it doesn't work then post showing exactly what you have done and someone might see what the problem is.

Watch out for capitalization of names and use of () versus [] versus {} as those are all different and Mathematica expects all this to be done in the required format.

POSTED BY: Bill Simpson
Posted 10 years ago

Thank you very much. At the beginning I tried with wrong statement:

WolframAlpha["L*x'+R*x=Abs[sin(t)] and x(0)=0", 
 PodStates -> {"Step-by-step solution"}]

Then I tried with the right statement:

WolframAlpha["L*x'+R*x=Sqrt[(sin(t))^2] and x(0)=0", 
 PodStates -> {"Step-by-step solution"}]
POSTED BY: Gennaro Arguzzi

Also note that Wolfram|Alpha behaves differently from Mathematica. Your post is tagged Wolfram|Alpha but your question suggests Mathematica. From your last post it appears that you call Wolfram|Alpha from within Mathematica. I think that it would be more powerful to use the appropriate Wolfram Language functions such as DSolve and NDSolve.

But then, you ask for step-by-step solutions so that only works with Wolfram|Alpha.

Cheers,

Marco

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