2.1.78 Problem 78

Solved using first_order_ode_dAlembert
Maple
Mathematica
Sympy

Internal problem ID [8790]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 78
Date solved : Sunday, March 30, 2025 at 01:35:58 PM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

Solved using first_order_ode_dAlembert

Time used: 0.286 (sec)

Solve

yy1+1+y22=x

Let p=y the ode becomes

py1+p2+12=x

Solving for y from the above results in

(1)y=x(2+p2+1)2p

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=2p2+12pg=0

Hence (2) becomes

(2A)p2p2+12p=(x2p2+1+xp2+xp2+12p2)p(x)

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

p2p2+12p=0

Solving the above for p results in

p1=ip2=i

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

y=ixy=ix

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

(3)p(x)=p(x)2p(x)2+12p(x)x2p(x)2+1+xp(x)2+xp(x)2+12p(x)2

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

The ode

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

is separable as it can be written as

p(x)=(2p(x)2+p(x)2+1+2)p(x)2+1p(x)x(1+2p(x)2+1)=f(x)g(p)

Where

f(x)=1xg(p)=(2p2+p2+1+2)p2+1p1+2p2+1

Integrating gives

1g(p)dp=f(x)dx1+2p2+1(2p2+p2+1+2)p2+1pdp=1xdx
ln(p(x)p(x)2+1)=ln(x)+c1

Taking the exponential of both sides the solution becomes

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

We now need to find the singular solutions, these are found by finding for what values g(p) is zero, since we had to divide by this above. Solving g(p)=0 or

(2p2+p2+1+2)p2+1p1+2p2+1=0

for p(x) gives

p(x)=0p(x)=ip(x)=i

Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.

Therefore the solutions found are

p(x)p(x)2+1=c1xp(x)=0p(x)=ip(x)=i

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

y=2c12x2c12x21+12c11c12x21y=ixy=ix

Which simplifies to

y=ixy=ixy=2+1c12x2121c12x21c1

Summary of solutions found

y=ixy=ixy=2+1c12x2121c12x21c1
Maple. Time used: 1.232 (sec). Leaf size: 187
ode:=diff(y(x),x)*y(x)/(1+1/2*(1+diff(y(x),x)^2)^(1/2)) = -x; 
dsolve(ode,y(x), singsol=all);
 
y=x2+c1(2+c1x2+c1)2y=x2+c1(2+c1x2+c1)2y=9x2+15c163c1x2+4c123y=9x2+15c163c1x2+4c123y=9x2+15c1+63c1x2+4c123y=9x2+15c1+63c1x2+4c123

Maple trace

Methods for first order ODEs: 
-> Solving 1st order ODE of high degree, 1st attempt 
trying 1st order WeierstrassP solution for high degree ODE 
trying 1st order WeierstrassPPrime solution for high degree ODE 
trying 1st order JacobiSN solution for high degree ODE 
trying 1st order ODE linearizable_by_differentiation 
trying differential order: 1; missing variables 
trying dAlembert 
<- dAlembert successful
 

Maple step by step

Let’s solve(ddxy(x))y(x)1+1+(ddxy(x))22=xHighest derivative means the order of the ODE is1ddxy(x)Solve for the highest derivative[ddxy(x)=(4y(x)+4y(x)2+3x2)x4y(x)2x2,ddxy(x)=(4y(x)+4y(x)2+3x2)x4y(x)2x2]Solve the equationddxy(x)=(4y(x)+4y(x)2+3x2)x4y(x)2x2Solve the equationddxy(x)=(4y(x)+4y(x)2+3x2)x4y(x)2x2Set of solutions{workingODE,workingODE}
Mathematica. Time used: 2.152 (sec). Leaf size: 153
ode=D[y[x],x]*y[x]/(1+1/2*Sqrt[1+(D[y[x],x])^2])==-x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)13(ec19x2+4e2c1)y(x)13(9x2+4e2c1+ec1)y(x)x2+4e2c1ec1y(x)x2+4e2c1ec1y(x)x2y(x)x2
Sympy. Time used: 85.557 (sec). Leaf size: 90
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x + y(x)*Derivative(y(x), x)/(sqrt(Derivative(y(x), x)**2 + 1)/2 + 1),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)=9x2+e2C13+eC16, y(x)=9x2+e2C13+eC16, y(x)=9x2+e2C13eC16, y(x)=9x2+e2C13eC16]