2.1.8 Problem 8

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

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

Solved as second order missing x ode

Time used: 0.665 (sec)

Solve

y2=1

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

p(y)2(ddyp(y))2=1

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

Solving for the derivative gives these ODE’s to solve

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

Now each of the above is solved separately.

Solving Eq. (1)

Integrating gives

pdp=dyp22=y+c1

Solving Eq. (2)

Integrating gives

pdp=dyp22=y+c2

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

y22=y+c1

Let p=y the ode becomes

p22=y+c1

Solving for y from the above results in

(1)y=c1+p22

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=c1+p22

Hence (2) becomes

(2A)p=pp(x)

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)=1

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=1dxp(x)=x+c3

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

y=c1+12c32+c3x+12x2

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=c1+12c32+c3x+12x2

Solved as second order missing y ode

Time used: 0.252 (sec)

Solve

y2=1

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

u(x)=y

Then

u(x)=y

Hence the ode becomes

u(x)21=0

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

Solving for the derivative gives these ODE’s to solve

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

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=1dxu=x+c1

Solving Eq. (2)

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

du=1dxu=x+c2

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

u=x+c1

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

y(x)=x+c1

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

dy=x+c1dxy=12x2+c1x+c3

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

y=12x2+c1x+c3

Will add steps showing solving for IC soon.

Summary of solutions found

y=12x2+c1x+c3

Maple. Time used: 0.002 (sec). Leaf size: 27
ode:=diff(diff(y(x),x),x)^2 = 1; 
dsolve(ode,y(x), singsol=all);
 
y=12x2+c1x+c2y=12x2+c1x+c2

Maple trace

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

Maple step by step

Let’s solve(ddxddxy(x))2=1Highest derivative means the order of the ODE is2ddxddxy(x)Make substitutionu=ddxy(x)to reduce order of ODE(ddxu(x))2=1Solve for the highest derivative[ddxu(x)=1,ddxu(x)=1]Solve the equationddxu(x)=1Integrate both sides with respect tox(ddxu(x))dx=(1)dx+_C1Evaluate integralu(x)=x+_C1Solve the equationddxu(x)=1Integrate both sides with respect tox(ddxu(x))dx=1dx+_C1Evaluate integralu(x)=x+_C1Set of solutions{u(x)=x+C1,u(x)=x+C1}Define new dependent variableuu(x)=ddxy(x)Computeddxddxy(x)ddxu(x)=d2dx2y(x)Use chain rule on the lhs(ddxy(x))(ddyu(y))=d2dx2y(x)Substitute in the definition ofuu(y)(ddyu(y))=d2dx2y(x)Make substitutionsddxy(x)=u(y),ddxddxy(x)=u(y)(ddyu(y))to reduce order of ODEu(y)2(ddyu(y))2=1Solve for the highest derivative[ddyu(y)=1u(y),ddyu(y)=1u(y)]Solve the equationddyu(y)=1u(y)Separate variablesu(y)(ddyu(y))=1Integrate both sides with respect toyu(y)(ddyu(y))dy=1dy+_C1Evaluate integralu(y)22=y+_C1Solve foru(y){u(y)=2_C1+2y,u(y)=2_C1+2y}Redefine the integration constant(s){u(y)=_C1+2y,u(y)=_C1+2y}Solve the equationddyu(y)=1u(y)Separate variablesu(y)(ddyu(y))=1Integrate both sides with respect toyu(y)(ddyu(y))dy=(1)dy+_C1Evaluate integralu(y)22=y+_C1Solve foru(y){u(y)=2_C12y,u(y)=2_C12y}Redefine the integration constant(s){u(y)=_C12y,u(y)=_C12y}Set of solutions{u(y)=C12y,u(y)=C1+2y,u(y)=C12y,u(y)=C1+2y}Solve 1st ODE foru(y)u(y)=C12yRevert to original variables with substitutionu(y)=ddxy(x),y=y(x)ddxy(x)=C12y(x)Solve for the highest derivativeddxy(x)=C12y(x)Separate variablesddxy(x)C12y(x)=1Integrate both sides with respect toxddxy(x)C12y(x)dx=1dx+C2Evaluate integralC12y(x)=x+C2Solve fory(x)y(x)=12C22C2x12x2+12C1Redefine the integration constant(s)y(x)=C2x12x2+C1Solve 2nd ODE foru(y)u(y)=C1+2yRevert to original variables with substitutionu(y)=ddxy(x),y=y(x)ddxy(x)=C1+2y(x)Solve for the highest derivativeddxy(x)=C1+2y(x)Separate variablesddxy(x)C1+2y(x)=1Integrate both sides with respect toxddxy(x)C1+2y(x)dx=1dx+C2Evaluate integralC1+2y(x)=x+C2Solve fory(x)y(x)=12C22+C2x+12x212C1Redefine the integration constant(s)y(x)=C2x+12x2+C1Solve 3rd ODE foru(y)u(y)=C12yRevert to original variables with substitutionu(y)=ddxy(x),y=y(x)ddxy(x)=C12y(x)Solve for the highest derivativeddxy(x)=C12y(x)Separate variablesddxy(x)C12y(x)=1Integrate both sides with respect toxddxy(x)C12y(x)dx=(1)dx+C2Evaluate integralC12y(x)=x+C2Solve fory(x)y(x)=12C22+C2x12x2+12C1Redefine the integration constant(s)y(x)=C2x12x2+C1Solve 4th ODE foru(y)u(y)=C1+2yRevert to original variables with substitutionu(y)=ddxy(x),y=y(x)ddxy(x)=C1+2y(x)Solve for the highest derivativeddxy(x)=C1+2y(x)Separate variablesddxy(x)C1+2y(x)=1Integrate both sides with respect toxddxy(x)C1+2y(x)dx=(1)dx+C2Evaluate integralC1+2y(x)=x+C2Solve fory(x)y(x)=12C22C2x+12x212C1Redefine the integration constant(s)y(x)=C2x+12x2+C1
Mathematica. Time used: 0.003 (sec). Leaf size: 37
ode=(D[y[x],{x,2}])^2==1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)x22+c2x+c1y(x)x22+c2x+c1
Sympy. Time used: 0.151 (sec). Leaf size: 24
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), (x, 2))**2 - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)=C1+C2xx22, y(x)=C1+C2x+x22]