2.1.32 Problem 32

Solved as first order quadrature ode
Solved as first order homogeneous class D2 ode
Maple
Mathematica
Sympy

Internal problem ID [9016]
Book : First order enumerated odes
Section : section 1
Problem number : 32
Date solved : Wednesday, March 05, 2025 at 07:14:45 AM
CAS classification : [_quadrature]

Solve

5y=0

Solved as first order quadrature ode

Time used: 0.014 (sec)

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

dy=0dx+c1y=c1
Figure 2.32: Slope field 5y=0

Summary of solutions found

y=c1
Solved as first order homogeneous class D2 ode

Time used: 0.056 (sec)

Applying change of variables y=u(x)x, then the ode becomes

5u(x)x+5u(x)=0

Which is now solved The ode

(1)u(x)=u(x)x

is separable as it can be written as

u(x)=u(x)x=f(x)g(u)

Where

f(x)=1xg(u)=u

Integrating gives

1g(u)du=f(x)dx1udu=1xdx
ln(u(x))=ln(1x)+c1

Taking the exponential of both sides the solution becomes

u(x)=c1x

Converting u(x)=c1x back to y gives

y=c1
Figure 2.33: Slope field 5y=0

Summary of solutions found

y=c1
Maple. Time used: 0.001 (sec). Leaf size: 5
ode:=5*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
y=c1

Maple trace

`Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
<- 1st order linear successful`
 

Maple step by step

Let’s solve5ddxy(x)=0Highest derivative means the order of the ODE is1ddxy(x)Separate variablesddxy(x)=0Integrate both sides with respect tox(ddxy(x))dx=0dx+C1Evaluate integraly(x)=C1Solve fory(x)y(x)=C1
Mathematica. Time used: 0.003 (sec). Leaf size: 7
ode=5*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)c1
Sympy. Time used: 0.036 (sec). Leaf size: 3
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(5*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1