Group Abstract Group Abstract

Message Boards Message Boards

0
|
91 Views
|
1 Reply
|
3 Total Likes
View groups...
Share
Share this post:

Cannot solve simple equation

Hello,
I am trying to solve a relatively simple differential equation

DSolve[y''[x] - ay[x] == -b, y[x], x]

that I know has a solution (in my notation):
y[x] = C1 exp(sqrt(a)t) +C2 exp(-sqrt(a)t) +b/a.
However, Mathematica does not give me that solution, instead i get an output with some internal integrals.
Apparently, it is not because i use the software wrongly, because when I input a different equation

DSolve[y''[x] + y[x] == x, y[x], x]

I get the satisfying answer:

{{y[x] -> x + C[1] Cos[x] + C[2] Sin[x]}}

Is it not possible for Mathematica to solve the first equation? Https://www.symbolab.com/ can solve it...

POSTED BY: Lars Damgaard

ay is a single symbol, and ay[x] represents the value of a single function called ay.

Try it with a space: a y[x] represents a times y[x].

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