2.1.50 Problem 50

Solved as first order ode of type dAlembert
Maple
Mathematica
Sympy

Internal problem ID [9034]
Book : First order enumerated odes
Section : section 1
Problem number : 50
Date solved : Wednesday, March 05, 2025 at 07:15:03 AM
CAS classification : [[_homogeneous, `class C`], _dAlembert]

Solve

y2=x+y

Solved as first order ode of type dAlembert

Time used: 0.257 (sec)

Let p=y the ode becomes

p2=x+y

Solving for y from the above results in

(1)y=p2x

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=1g=p2

Hence (2) becomes

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

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

p+1=0

Solving the above for p results in

p1=1

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

y=1x

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

(3)p(x)=p(x)+12p(x)

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

Integrating gives

2pp+1dp=dx2p2ln(p+1)=x+c1

Singular solutions are found by solving

p+12p=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)=1

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

y=(eLambertW(e1x2c12)1x2c121)2xy=1x

Summary of solutions found

y=1xy=(eLambertW(e1x2c12)1x2c121)2x
Maple. Time used: 0.033 (sec). Leaf size: 33
ode:=diff(y(x),x)^2 = x+y(x); 
dsolve(ode,y(x), singsol=all);
 
y=LambertW(c1ex21)2+2LambertW(c1ex21)x+1

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))2=x+y(x)Highest derivative means the order of the ODE is1ddxy(x)Solve for the highest derivative[ddxy(x)=x+y(x),ddxy(x)=x+y(x)]Solve the equationddxy(x)=x+y(x)Solve the equationddxy(x)=x+y(x)Set of solutions{workingODE,workingODE}
Mathematica. Time used: 15.456 (sec). Leaf size: 100
ode=(D[y[x],x])^2==x+y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)W(ex21c12)2+2W(ex21c12)x+1y(x)W(e12(x2+c1))2+2W(e12(x2+c1))x+1y(x)1x
Sympy. Time used: 3.041 (sec). Leaf size: 54
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x - y(x) + Derivative(y(x), x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[C1+x+2x+y(x)+2log(x+y(x)1)=0, C1+x2x+y(x)+2log(x+y(x)+1)=0]