2.1.6 Problem 6

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

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

Solved as second order missing x ode

Time used: 0.136 (sec)

Solve

ayn=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

a(p(y)(ddyp(y)))n=0

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

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

dp=0dy+c1p=c1

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

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1x+c2

Solved as second order missing y ode

Time used: 0.083 (sec)

Solve

ayn=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)n=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

Maple. Time used: 0.003 (sec). Leaf size: 9
ode:=a*diff(diff(y(x),x),x)^n = 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))n=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.005 (sec). Leaf size: 24
ode=a*(D[y[x],{x,2}])^n==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)1201nx2+c2x+c1
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
n = symbols("n") 
y = Function("y") 
ode = Eq(a*Derivative(y(x), (x, 2))**n,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
TypeError : cannot determine truth value of Relational