solve ordinary differential equations (ODEs) - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Differential Equations : dsolve : dsolve

dsolve - solve ordinary differential equations (ODEs)

Calling Sequence

dsolve(ODE)

dsolve(ODE, y(x), options)

dsolve({ODE, ICs}, y(x), options)

Parameters

ODE

-

ordinary differential equation, or a set or list of ODEs

y(x)

-

any indeterminate function of one variable, or a set or list of them, representing the unknowns of the ODE problem

ICs

-

initial conditions of the form y(a)=b, D(y)(c)=d, ..., where {a, b, c, d} are constants with respect to the independent variable

options

-

(optional) depends on the type of ODE problem and method used, for example, series or method=laplace. (See the Examples section.)

Description

• 

As a general ODE solver, dsolve handles different types of ODE problems. These include the following.

  

- Computing closed form solutions for a single ODE (see dsolve/ODE) or a system of ODEs, possibly including anti-commutative variables (see dsolve/system).

  

- Solving ODEs or a system of them with given initial conditions (boundary value problems). See dsolve/ICs.

  

- Computing formal power series solutions for a linear ODE with polynomial coefficients. See dsolve/formal_series.

  

- Computing formal solution for a linear ODE with polynomial coefficients. See dsolve/formal_solution.

  

- Computing solutions using integral transforms (Laplace and Fourier). See dsolve/integral_transform.

  

- Computing numerical (see dsolve/numeric) or series solutions (see dsolve/series) for ODEs or systems of ODEs.

• 

The ODE Analyzer Assistant is a point-and-click interface to the ODE solver routines. Using the assistant, you can compute numeric and exact solutions and plot the solutions. For more information, see dsolve[interactive] and worksheet/interactive/dsolve.

Examples

Solving an ODE

  

Define a simple ODE. To define a derivative, use the diff command.

ode:=ⅆ2ⅆx2yx=2yx+1

ode:=ⅆ2ⅆx2yx=2yx+1

(1)
  

Solve the ODE, ode.

dsolveode

yx=ⅇ2x_C2+ⅇ2x_C112

(2)
  

Define initial conditions.

ics:=y0=1,Dy0=0

ics:=y0=1,Dy0=0

(3)
  

Solve ode subject to the initial conditions ics.

dsolveode,ics

yx=34ⅇ2x+34ⅇ2x12

(4)

Laplace Transform Method

  

Compute the solution using the Laplace transform method.

sol:=dsolveode,ics,yx,method=laplace

sol:=yx=12+32cosh2x

(5)
  

Test whether the ODE solution satisfies the ODE and the initial conditions (see odetest).

odetestsol,ode,ics

0,0,0

(6)

Computing a Series Solution

  

Find a series solution for the same problem.

series_sol:=dsolveode,ics,yx,series

series_sol:=yx=1+32x2+14x4+Ox6

(7)

odetestseries_sol,ode,ics,series

0,0,0

(8)

Solving an ODE System

  

Define a system of ODEs.

sys_ode:=ⅆⅆtyt=xt,ⅆⅆtxt=xt

sys_ode:=ⅆⅆtyt=xt,ⅆⅆtxt=xt

(9)
  

If the unknowns are not specified, all differentiated indeterminate functions in the system are treated as the unknowns of the problem.

dsolvesys_ode

xt=_C2ⅇt,yt=_C2ⅇt+_C1

(10)
  

Define initial conditions.

ics:=x0=1,y1=0

ics:=x0=1,y1=0

(11)
  

Solve the system of ODEs subject to the initial conditions ics.

dsolvesys_ode,ics

xt=ⅇt,yt=ⅇt+ⅇ1

(12)

Details

• 

For detailed information on the dsolve command, see dsolve/details.

See Also

DEtools, diff, dsolve/algorithms, dsolve/education, dsolve/formal_series, dsolve/formal_solution, dsolve/hypergeometric, dsolve/ICs, dsolve/integrating_factors, dsolve/integrating_factors_for_LODEs, dsolve/inttrans, dsolve/Lie, dsolve/linear, dsolve/numeric, dsolve/piecewise, dsolve/references, dsolve/series, dsolve/system, dsolve[interactive], ODE Analyzer Assistant, odeadvisor, odeadvisor/types, PDEtools, pdsolve


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam