2.1.61 Problem 61

Solved as second order missing x ode
Maple
Mathematica
Sympy

Internal problem ID [8773]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 61
Date solved : Wednesday, March 05, 2025 at 06:47:41 AM
CAS classification : [[_2nd_order, _quadrature]]

Solve

yy=0

Factoring the ode gives these factors

(1)y=0(2)y=0

Now each of the above equations is solved in turn.

Solving equation (1)

Solving for y from

y=0

Solving gives y=0

Solving equation (2)

Solved as second order missing x ode

Time used: 0.072 (sec)

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

yp(y)(ddyp(y))=0

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

Factoring the ode gives these factors

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

Now each of the above equations is solved in turn.

Solving equation (1)

Solving for p from

p=0

Solving gives p=0

Solving equation (2)

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

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

dy=0dx+c2y=c2

For solution (2) 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=c2y=c1x+c3

Maple. Time used: 0.002 (sec). Leaf size: 13
ode:=y(x)*diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
y=0y=c1x+c2

Maple trace

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

Maple step by step

Let’s solvey(x)(d2dx2y(x))=0Highest derivative means the order of the ODE is2d2dx2y(x)Isolate 2nd derivatived2dx2y(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: 17
ode=y[x]*D[y[x],{x,2}]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)0y(x)c2x+c1
Sympy. Time used: 0.146 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1+C2x