How do I solve a differential equation in Maple?

  • Context: Maple 
  • Thread starter Thread starter Moneer81
  • Start date Start date
  • Tags Tags
    Maple
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
Moneer81
Messages
158
Reaction score
2
Hello,

Any of you guys here know how to use Maple? I am trying to solve a differential equation using Maple but not sure how to do it.
 
Physics news on Phys.org
I personally don't know how to use Maple, but I do know that a lot of other people here do. Basically just posting to be patient, there are people here who will answer your question soon. In the mean time, it may be useful to tell us exactly what differential equation you have?. I don't actually know, but there may be different instructions depending on variables, order of the equation, homogeneous or not, partial or ordinary etc etc.
 
You assign your equation to a variable and then call the function dsolve with the variable and the function you want to solve for as arguments. For example, to solve [itex]\frac{d^2y}{dx^2} + k^2y = 0[/itex], you would type:
DE := diff(y(x),x,x) + k^2*y = 0
dsolve(DE,y(x))

which would print [itex]y \left( x \right) ={\it \_C1}\,\sin \left( kx \right) +{\it \_C2}\,<br /> \cos \left( kx \right) [/itex]