2.1.1 Problem 1

Solved as second order ode quadrature
Solved as second order linear constant coeff ode
Solved as second order linear exact ode
Solved as second order missing y ode
Solved as second order integrable as is ode
Solved as second order integrable as is ode (ABC method)
Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [9072]
Book : Second order enumerated odes
Section : section 1
Problem number : 1
Date solved : Sunday, March 30, 2025 at 02:06:13 PM
CAS classification : [[_2nd_order, _quadrature]]

Solved as second order ode quadrature

Time used: 0.030 (sec)

Solve

y=0

Integrating twice gives the solution

y=c1x+c2

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c2
Figure 2.1: Slope field y=0
Solved as second order linear constant coeff ode

Time used: 0.024 (sec)

Solve

y=0

This is second order with constant coefficients homogeneous ODE. In standard form the ODE is

Ay(x)+By(x)+Cy(x)=0

Where in the above A=1,B=0,C=0. Let the solution be y=eλx. Substituting this into the ODE gives

(1)λ2exλ=0

Since exponential function is never zero, then dividing Eq(2) throughout by eλx gives

(2)λ2=0

Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula

λ1,2=B2A±12AB24AC

Substituting A=1,B=0,C=0 into the above gives

λ1,2=0(2)(1)±1(2)(1)(0)2(4)(1)(0)=0

Hence this is the case of a double root λ1,2=0. Therefore the solution is

(1)y=c11+c2x

Will add steps showing solving for IC soon.

Summary of solutions found

y=c2x+c1
Figure 2.2: Slope field y=0
Solved as second order linear exact ode

Time used: 0.088 (sec)

Solve

y=0

An ode of the form

p(x)y+q(x)y+r(x)y=s(x)

is exact if

(1)p(x)q(x)+r(x)=0

For the given ode we have

p(x)=1q(x)=0r(x)=0s(x)=0

Hence

p(x)=0q(x)=0

Therefore (1) becomes

0(0)+(0)=0

Hence the ode is exact. Since we now know the ode is exact, it can be written as

(p(x)y+(q(x)p(x))y)=s(x)

Integrating gives

p(x)y+(q(x)p(x))y=s(x)dx

Substituting the above values for p,q,r,s gives

y=c1

We now have a first order ode to solve which is

y=c1

Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=c1dxy=c1x+c2

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c2
Figure 2.3: Slope field y=0
Solved as second order missing y ode

Time used: 0.069 (sec)

Solve

y=0

This is second order ode with missing dependent variable y. Let

u(x)=y

Then

u(x)=y

Hence the ode becomes

u(x)=0

Which is now solved for u(x) as first order ode.

Since the ode has the form u=f(x), then we only need to integrate f(x).

du=0dx+c1u=c1

In summary, these are the solution found for u(x)

u=c1

For solution u=c1, since u=y(x) then we now have a new first order ode to solve which is

y(x)=c1

Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=c1dxy=c1x+c2

In summary, these are the solution found for (y)

y=c1x+c2

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c2
Figure 2.4: Slope field y=0
Solved as second order integrable as is ode

Time used: 0.099 (sec)

Solve

y=0

Integrating both sides of the ODE w.r.t x gives

ydx=0y=c1

Which is now solved for y. Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=c1dxy=c1x+c2

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c2
Figure 2.5: Slope field y=0
Solved as second order integrable as is ode (ABC method)

Time used: 0.040 (sec)

Solve

y=0

Writing the ode as

y=0

Integrating both sides of the ODE w.r.t x gives

ydx=0y=c1

Which is now solved for y. Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=c1dxy=c1x+c2

Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=c1dxy=c1x+c2

Will add steps showing solving for IC soon.

Figure 2.6: Slope field y=0
Solved as second order ode using Kovacic algorithm

Time used: 0.042 (sec)

Solve

y=0

Writing the ode as

(1)y=0(2)Ay+By+Cy=0

Comparing (1) and (2) shows that

A=1(3)B=0C=0

Applying the Liouville transformation on the dependent variable gives

z(x)=yeB2Adx

Then (2) becomes

(4)z(x)=rz(x)

Where r is given by

(5)r=st=2AB2BA+B24AC4A2

Substituting the values of A,B,C from (3) in the above and simplifying gives

(6)r=01

Comparing the above to (5) shows that

s=0t=1

Therefore eq. (4) becomes

(7)z(x)=0

Equation (7) is now solved. After finding z(x) then y is found using the inverse transformation

y=z(x)eB2Adx

The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3 cases depending on the order of poles of r and the order of r at . The following table summarizes these cases.

Case

Allowed pole order for r

Allowed value for O()

1

{0,1,2,4,6,8,}

{,6,4,2,0,2,3,4,5,6,}

2

Need to have at least one pole that is either order 2 or odd order greater than 2. Any other pole order is allowed as long as the above condition is satisfied. Hence the following set of pole orders are all allowed. {1,2},{1,3},{2},{3},{3,4},{1,2,5}.

no condition

3

{1,2}

{2,3,4,5,6,7,}

Table 2.1: Necessary conditions for each Kovacic case

The order of r at is the degree of t minus the degree of s. Therefore

O()=deg(t)deg(s)=0=

There are no poles in r. Therefore the set of poles Γ is empty. Since there is no odd order pole larger than 2 and the order at is infinity then the necessary conditions for case one are met. Therefore

L=[1]

Since r=0 is not a function of x, then there is no need run Kovacic algorithm to obtain a solution for transformed ode z=rz as one solution is

z1(x)=1

Using the above, the solution for the original ode can now be found. The first solution to the original ode in y is found from

y1=z1e12BAdx

Since B=0 then the above reduces to

y1=z1=1

Which simplifies to

y1=1

The second solution y2 to the original ode is found using reduction of order

y2=y1eBAdxy12dx

Since B=0 then the above becomes

y2=y11y12dx=111dx=1(x)

Therefore the solution is

y=c1y1+c2y2=c1(1)+c2(1(x))

Will add steps showing solving for IC soon.

Summary of solutions found

y=c2x+c1
Figure 2.7: Slope field y=0
Maple. Time used: 0.001 (sec). Leaf size: 9
ode:=diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
y=c1x+c2

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
<- quadrature successful
 

Maple step by step

Let’s solveddxddxy(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Characteristic polynomial of ODEr2=0Use quadratic formula to solve forrr=0±(0)2Roots of the characteristic polynomialr=01st solution of the ODEy1(x)=1Repeated root, multiplyy1(x)byxto ensure linear independencey2(x)=xGeneral solution of the ODEy(x)=C1y1(x)+C2y2(x)Substitute in solutionsy(x)=C2x+C1
Mathematica. Time used: 0.002 (sec). Leaf size: 12
ode=D[y[x],{x,2}]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)c2x+c1
Sympy. Time used: 0.033 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1+C2x