SecondOrder - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[ODEs][Solve]

  

SecondOrder

  

Solve a second order ODE

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SecondOrder(ODE, y(x))

Parameters

ODE

-

a second order ordinary differential equation

y

-

name; the dependent variable

x

-

name; the independent variable

Description

• 

The SecondOrder(ODE, y(x)) command finds the solution of a second order ODE.

• 

Use the option output=steps to make this command return an annotated step-by-step solution.  Further control over the format and display of the step-by-step solution is available using the options described in Student:-Basics:-OutputStepsRecord.  The options supported by that command can be passed to this one.

Examples

> 

with⁡StudentODEsSolve:

> 

ode1≔2⁢x⁢diff⁡y⁡x,x−9⁢x2+2⁢diff⁡y⁡x,x+x2+1⁢diff⁡y⁡x,x,x=0

ode1≔2⁢x⁢ⅆⅆxy⁡x−9⁢x2+2⁢ⅆⅆxy⁡x+x2+1⁢ⅆ2ⅆx2y⁡x=0

(1)
> 

SecondOrder⁡ode1,y⁡x

y⁡x=∫−x22−12−x4+12⁢x3+2⁢x2+4⁢c__1+12ⅆx+c__2,y⁡x=∫−x22−12+x4+12⁢x3+2⁢x2+4⁢c__1+12ⅆx+c__2

(2)
> 

ode2≔diff⁡y⁡x,x,x−diff⁡y⁡x,x−x⁢exp⁡x=0

ode2≔ⅆ2ⅆx2y⁡x−ⅆⅆxy⁡x−x⁢ⅇx=0

(3)
> 

SecondOrder⁡ode2,y⁡x

y⁡x=c__1+c__2⁢ⅇx+ⅇx⁢1−x+12⁢x2

(4)
> 

ode3≔diff⁡y⁡x,x,x+5⁢diff⁡y⁡x,x2y⁡x=0

ode3≔ⅆ2ⅆx2y⁡x+5⁢ⅆⅆxy⁡x2y⁡x=0

(5)
> 

SecondOrder⁡ode3,y⁡x

y⁡x=c__1⁢x+c__216,y⁡x=c__1⁢x+c__216,y⁡x=c__2⁢c__1⁢x+116

(6)
> 

ode4≔diff⁡y⁡x,x,x−diff⁡y⁡x,x−6⁢y⁡x=0

ode4≔ⅆ2ⅆx2y⁡x−ⅆⅆxy⁡x−6⁢y⁡x=0

(7)
> 

SecondOrder⁡ode4,y⁡x

y⁡x=c__1⁢ⅇ−2⁢x+c__2⁢ⅇ3⁢x

(8)
> 

ode5≔diff⁡y⁡x,x,x−diff⁡y⁡x,x=x2+6⁢y⁡x

ode5≔ⅆ2ⅆx2y⁡x−ⅆⅆxy⁡x=x2+6⁢y⁡x

(9)
> 

SecondOrder⁡ode5,y⁡x

y⁡x=c__1⁢ⅇ−2⁢x+c__2⁢ⅇ3⁢x−x26+x18−7108

(10)
> 

ode6≔diff⁡y⁡x,x,x+4⁢y⁡x=−4⁢diff⁡y⁡x,x

ode6≔ⅆ2ⅆx2y⁡x+4⁢y⁡x=−4⁢ⅆⅆxy⁡x

(11)
> 

SecondOrder⁡ode6,y⁡x

y⁡x=c__1⁢ⅇ−2⁢x+c__2⁢x⁢ⅇ−2⁢x

(12)
> 

ode7≔5⁢diff⁡y⁡x,x,x+20⁢y⁡x+15⁢sin⁡x=−20⁢diff⁡y⁡x,x

ode7≔5⁢ⅆ2ⅆx2y⁡x+20⁢y⁡x+15⁢sin⁡x=−20⁢ⅆⅆxy⁡x

(13)
> 

SecondOrder⁡ode7,y⁡x

y⁡x=c__1⁢ⅇ−2⁢x+c__2⁢x⁢ⅇ−2⁢x+12⁢cos⁡x25−9⁢sin⁡x25

(14)
> 

ode8≔diff⁡y⁡x,x,x+2⁢y⁡x+2⁢diff⁡y⁡x,x=0

ode8≔ⅆ2ⅆx2y⁡x+2⁢y⁡x+2⁢ⅆⅆxy⁡x=0

(15)
> 

SecondOrder⁡ode8,y⁡x

y⁡x=c__1⁢ⅇ−x⁢cos⁡x+c__2⁢ⅇ−x⁢sin⁡x

(16)
> 

ode9≔diff⁡y⁡x,x,x+2⁢y⁡x−2⁢diff⁡y⁡x,x=exp⁡x

ode9≔ⅆ2ⅆx2y⁡x+2⁢y⁡x−2⁢ⅆⅆxy⁡x=ⅇx

(17)
> 

SecondOrder⁡ode9,y⁡x

y⁡x=c__1⁢ⅇx⁢cos⁡x+c__2⁢ⅇx⁢sin⁡x+ⅇx

(18)

Compatibility

• 

The Student[ODEs][Solve][SecondOrder] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

• 

The Student[ODEs][Solve][SecondOrder] command was updated in Maple 2022.

• 

The output option was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

dsolve

Student

Student[ODEs]

Student[ODEs][DifferentialOrder]

Student[ODEs][Solve]