2.1.17 Problem 17

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

Internal problem ID [9088]
Book : Second order enumerated odes
Section : section 1
Problem number : 17
Date solved : Sunday, March 30, 2025 at 02:06:41 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_xy]]

Solved as second order missing x ode

Time used: 1.394 (sec)

Solve

y+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)(ddyp(y))+p(y)2=1

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

Integrating gives

pp21dp=dyln(p21)2=y+c1

Applying the exponential to both sides gives

eln(1p21)=ey+c11p21=c1ey

Singular solutions are found by solving

p21p=0

for p. This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.

p=1p=1

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

1y21=c1ey

Let p=y the ode becomes

1p21=c1ey

Solving for y from the above results in

(1)y=ln(c12(p21))2

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=ln(c12(p21))2

Hence (2) becomes

(2A)p=pp(x)p21

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=ln(c12)2

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

(3)p(x)=p(x)2+1

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

Integrating gives

1p2+1dp=dxarctanh(p)=x+c2

Singular solutions are found by solving

p2+1=0

for p(x). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.

p(x)=1p(x)=1

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

y=ln(c12(tanh(x+c2)21))2

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

y=1

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

dy=1dxy=x+c3

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

y=1

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

dy=1dxy=x+c4

Will add steps showing solving for IC soon.

The solution

y=ln(c12)2

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

Summary of solutions found

y=ln(c12(tanh(x+c2)21))2y=x+c3y=x+c4

Solved as second order missing y ode

Time used: 0.218 (sec)

Solve

y+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)+u(x)21=0

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

Integrating gives

1u2+1du=dxarctanh(u)=x+c1

Singular solutions are found by solving

u2+1=0

for u. This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.

u=1u=1

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

arctanh(u)=x+c1u=1u=1

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

arctanh(y(x))=x+c1

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

dy=tanh(x+c1)dxy=ln(cosh(x+c1))+c2

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

y=1

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

dy=1dxy=x+c3

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

y=1

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

dy=1dxy=x+c4

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

y=ln(cosh(x+c1))+c2y=x+c3y=x+c4

Will add steps showing solving for IC soon.

Summary of solutions found

y=x+c3y=x+c4y=ln(cosh(x+c1))+c2

Maple. Time used: 0.018 (sec). Leaf size: 22
ode:=diff(diff(y(x),x),x)+diff(y(x),x)^2 = 1; 
dsolve(ode,y(x), singsol=all);
 
y=xln(2)+ln(c1e2x+c2)

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying 2nd order Liouville 
trying 2nd order WeierstrassP 
trying 2nd order JacobiSN 
differential order: 2; trying a linearization to 3rd order 
trying 2nd order ODE linearizable_by_differentiation 
trying 2nd order, 2 integrating factors of the form mu(x,y) 
trying a quadrature 
checking if the LODE has constant coefficients 
<- constant coefficients successful 
<- 2nd order, 2 integrating factors of the form mu(x,y) successful
 

Maple step by step

Let’s solveddxddxy(x)+(ddxy(x))2=1Highest derivative means the order of the ODE is2ddxddxy(x)Make substitutionu=ddxy(x)to reduce order of ODEddxu(x)+u(x)2=1Solve for the highest derivativeddxu(x)=u(x)2+1Separate variablesddxu(x)u(x)2+1=1Integrate both sides with respect toxddxu(x)u(x)2+1dx=1dx+C1Evaluate integralarctanh(u(x))=x+C1Solve foru(x)u(x)=tanh(x+C1)Solve 1st ODE foru(x)u(x)=tanh(x+C1)Make substitutionu=ddxy(x)ddxy(x)=tanh(x+C1)Integrate both sides to solve fory(x)(ddxy(x))dx=tanh(x+C1)dx+C2Compute integralsy(x)=ln(cosh(x+C1))+C2
Mathematica. Time used: 0.354 (sec). Leaf size: 48
ode=D[y[x],{x,2}]+(D[y[x],x])^2==1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)12log(e2x)+log(e2x+e2c1)+c2y(x)12log(e2x)+c2
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x)**2 + Derivative(y(x), (x, 2)) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out