2.1.70 Problem 70

Solved as second order missing x ode
Maple
Mathematica
Sympy

Internal problem ID [8782]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 70
Date solved : Sunday, March 30, 2025 at 01:35:41 PM
CAS classification : [[_2nd_order, _quadrature]]

Solved as second order missing x ode

Time used: 0.530 (sec)

Solve

ayy+by=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

ayp(y)(ddyp(y))+by=0

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

Integrating gives

pabdp=dyp2a2b=y+c1

For solution (1) found earlier, since p=y then we now have a new first order ode to solve which is

y2a2b=y+c1

Let p=y the ode becomes

p2a2b=y+c1

Solving for y from the above results in

(1)y=p2a+2c1b2b

This has the form

(*)y=xf(p)+g(p)

Where f,g are functions of p=y(x). The above ode is dAlembert ode which is now solved.

Taking derivative of (*) w.r.t. x gives

p=f+(xf+g)dpdx(2)pf=(xf+g)dpdx

Comparing the form y=xf+g to (1A) shows that

f=0g=p2a2c1b2b

Hence (2) becomes

(2A)p=app(x)b

The singular solution is found by setting dpdx=0 in the above which gives

p=0

Solving the above for p results in

p1=0

Substituting these in (1A) and keeping singular solution that verifies the ode gives

y=c1

The general solution is found when dpdx0. From eq. (2A). This results in

(3)p(x)=ba

This ODE is now solved for p(x). No inversion is needed.

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

dp=badxp(x)=bxa+c2

Substituing the above solution for p in (2A) gives

y=c22a22c2abx+b2x2+2c1ab2ab

Will add steps showing solving for IC soon.

The solution

y=c1

was found not to satisfy the ode or the IC. Hence it is removed.

Summary of solutions found

y=c22a22c2abx+b2x2+2c1ab2ab

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

Maple trace

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

Maple step by step

Let’s solveay(x)(ddxddxy(x))+by(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=baCharacteristic polynomial of homogeneous ODEr2=0Use quadratic formula to solve forrr=0±(0)2Roots of the characteristic polynomialr=01st solution of the homogeneous ODEy1(x)=1Repeated root, multiplyy1(x)byxto ensure linear independencey2(x)=xGeneral solution of the ODEy(x)=C1y1(x)+C2y2(x)+yp(x)Substitute in solutions of the homogeneous ODEy(x)=C1+C2x+yp(x)Find a particular solutionyp(x)of the ODEUse variation of parameters to findypheref(x)is the forcing function[yp(x)=y1(x)y2(x)f(x)W(y1(x),y2(x))dx+y2(x)y1(x)f(x)W(y1(x),y2(x))dx,f(x)=ba]Wronskian of solutions of the homogeneous equationW(y1(x),y2(x))=[1x01]Compute WronskianW(y1(x),y2(x))=1Substitute functions into equation foryp(x)yp(x)=b(1dxxxdx)aCompute integralsyp(x)=bx22aSubstitute particular solution into general solution to ODEy(x)=C1+C2xbx22a
Mathematica. Time used: 0.003 (sec). Leaf size: 28
ode=a*y[x]*D[y[x],{x,2}]+b*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)0y(x)bx22a+c2x+c1
Sympy. Time used: 0.214 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(a*y(x)*Derivative(y(x), (x, 2)) + b*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)=C1+C2xbx22a, y(x)=0]