2.1.5 Problem 5

Solved as second order missing x ode
Solved as second order missing y ode
Maple
Mathematica
Sympy

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

Solved as second order missing x ode

Time used: 0.261 (sec)

Solve

ay2=0

This is missing independent variable second order ode. Solved by reduction of order by using substitution which makes the dependent variable y an independent variable. Using

y=p

Then

y=dpdx=dpdydydx=pdpdy

Hence the ode becomes

ap(y)2(ddyp(y))2=0

Which is now solved as first order ode for p(y).

Solving for the derivative gives these ODE’s to solve

(1)p=0(2)p=0

Now each of the above is solved separately.

Solving Eq. (1)

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

dp=0dy+c1p=c1

Solving Eq. (2)

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

dp=0dy+c2p=c2

For solution (1) found earlier, since p=y then we now have a new 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+c3

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c3

Solved as second order missing y ode

Time used: 0.216 (sec)

Solve

ay2=0

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

u(x)=y

Then

u(x)=y

Hence the ode becomes

au(x)2=0

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

Solving for the derivative gives these ODE’s to solve

(1)u=0(2)u=0

Now each of the above is solved separately.

Solving Eq. (1)

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

du=0dx+c1u=c1

Solving Eq. (2)

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

du=0dx+c2u=c2

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+c3

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

y=c1x+c3

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c3

Maple. Time used: 0.011 (sec). Leaf size: 9
ode:=a*diff(diff(y(x),x),x)^2 = 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 solvea(ddxddxy(x))2=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=0Characteristic 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=a*(D[y[x],{x,2}])^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)c2x+c1
Sympy. Time used: 0.039 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(a*Derivative(y(x), (x, 2))**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1+C2x