2.1.52 Problem 52

Solved using first_order_ode_parametric method
Maple
Mathematica
Sympy

Internal problem ID [9035]
Book : First order enumerated odes
Section : section 1
Problem number : 52
Date solved : Friday, April 25, 2025 at 05:34:57 PM
CAS classification : [_separable]

Solved using first_order_ode_parametric method

Time used: 1.124 (sec)

Solve

y2=y2x

Let y be a parameter λ. The ode becomes

λ2y2x=0

Isolating x gives

x=y2λ2x=F(y,λ)

Now we generate an ode in y(λ) using

ddλy(λ)=λFλ1Fy=2y2λ2(12yλ)=2y(λ)2λ(λ2y(λ))

Which is now solved for y.

In canonical form, the ODE is

y=F(λ,y)(1)=2y2λ(λ+2y)

An ode of the form y=M(λ,y)N(λ,y) is called homogeneous if the functions M(λ,y) and N(λ,y) are both homogeneous functions and of the same order. Recall that a function f(λ,y) is homogeneous of order n if

f(tnλ,tny)=tnf(λ,y)

In this case, it can be seen that both M=2y2 and N=λ(λ2y) are both homogeneous and of the same order n=2. Therefore this is a homogeneous ode. Since this ode is homogeneous, it is converted to separable ODE using the substitution u=yλ, or y=uλ. Hence

dydλ=dudλλ+u

Applying the transformation y=uλ to the above ODE in (1) gives

dudλλ+u=2u22u1dudλ=2u(λ)22u(λ)1u(λ)λ

Or

u(λ)2u(λ)22u(λ)1u(λ)λ=0

Or

2u(λ)λu(λ)u(λ)λu(λ)=0

Or

λ(2u(λ)1)u(λ)u(λ)=0

Which is now solved as separable in u(λ).

The ode

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

is separable as it can be written as

u(λ)=u(λ)λ(2u(λ)1)=f(λ)g(u)

Where

f(λ)=1λg(u)=u2u1

Integrating gives

1g(u)du=f(λ)dλ2u1udu=1λdλ
2u(λ)+ln(1u(λ))=ln(λ)+c1

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

u2u1=0

for u(λ) gives

u(λ)=0

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

2u(λ)+ln(1u(λ))=ln(λ)+c1u(λ)=0

Converting 2u(λ)+ln(1u(λ))=ln(λ)+c1 back to y gives

ln(λy)λ+2yλ=ln(λ)+c1

Converting u(λ)=0 back to y gives

y=0

Solving for y gives

y=0y=c1λ2+ln(λ)λ2ln(2LambertW(2ec1λ))λ2

Now that we have found solution y, we have two equations with parameter λ. They are

y=c1λ2+ln(λ)λ2ln(2LambertW(2ec1λ))λ2x=y2λ2

Eliminating λ gives the solution for y.

RootOf(x_Z21)ln(RootOf(x_Z21)y(x))RootOf(x_Z21)ln(2LambertW(2ec1RootOf(x_Z21)y(x)))+RootOf(x_Z21)c12

Which can be written as

4x(c1+ln(y(x)))21=0

Solving for y(x) gives

y(x)=ec12xy(x)=ec1+2x

Summary of solutions found

y(x)=ec12xy(x)=ec1+2x
Maple. Time used: 0.040 (sec). Leaf size: 27
ode:=diff(y(x),x)^2 = y(x)^2/x; 
dsolve(ode,y(x), singsol=all);
 
y=0y=c1e2xy=c1e2x

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 simple symmetries for implicit equations 
<- symmetries for implicit equations successful
 

Maple step by step

Let’s solve(ddxy(x))2=y(x)2xHighest derivative means the order of the ODE is1ddxy(x)Solve for the highest derivative[ddxy(x)=y(x)x,ddxy(x)=y(x)x]Solve the equationddxy(x)=y(x)xSeparate variablesddxy(x)y(x)=1xIntegrate both sides with respect toxddxy(x)y(x)dx=1xdx+_C1Evaluate integralln(y(x))=2x+_C1Solve fory(x)y(x)=e2x+_C1Redefine the integration constant(s)y(x)=_C1e2xSolve the equationddxy(x)=y(x)xSeparate variablesddxy(x)y(x)=1xIntegrate both sides with respect toxddxy(x)y(x)dx=1xdx+_C1Evaluate integralln(y(x))=2x+_C1Solve fory(x)y(x)=e2x+_C1Redefine the integration constant(s)y(x)=_C1e2xSet of solutions{y(x)=C1e2x,y(x)=C1e2x}
Mathematica. Time used: 0.069 (sec). Leaf size: 38
ode=(D[y[x],x])^2==y[x]^2/x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)c1e2xy(x)c1e2xy(x)0
Sympy. Time used: 0.427 (sec). Leaf size: 31
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x)**2 - y(x)**2/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)=C1e2x1x, y(x)=C1e2x1x]