2.3.26 Problem 26

Solved as second order missing x ode
Maple
Mathematica
Sympy

Internal problem ID [8884]
Book : Own collection of miscellaneous problems
Section : section 3.0
Problem number : 26
Date solved : Sunday, March 30, 2025 at 01:52:16 PM
CAS classification : [[_2nd_order, _missing_x], _Liouville, [_2nd_order, _reducible, _mu_x_y1], [_2nd_order, _reducible, _mu_xy]]

Solved as second order missing x ode

Time used: 0.707 (sec)

Solve

y+sin(y)y2=0

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))+sin(y)p(y)2=0

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

The ode

(1)p=sin(y)p

is separable as it can be written as

p=sin(y)p=f(y)g(p)

Where

f(y)=sin(y)g(p)=p

Integrating gives

1g(p)dp=f(y)dy1pdp=sin(y)dy
ln(p)=cos(y)+c1

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

p=0

for p gives

p=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

ln(p)=cos(y)+c1p=0

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

ln(y)=cos(y)+c1

Unable to integrate (or intergal too complicated), and since no initial conditions are given, then the result can be written as

yecos(τ)c1dτ=x+c2

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

y=0

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

dy=0dx+c3y=c3

Will add steps showing solving for IC soon.

Summary of solutions found

yecos(τ)c1dτ=x+c2y=c3

Maple. Time used: 0.003 (sec). Leaf size: 21
ode:=diff(diff(y(x),x),x)+sin(y(x))*diff(y(x),x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
yecos(_a)d_ac1xc2=0

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying 2nd order Liouville 
<- 2nd_order Liouville successful
 

Mathematica. Time used: 1.336 (sec). Leaf size: 111
ode=D[y[x],{x,2}]+y[x]*Sin[y[x]](D[y[x],x])^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)InverseFunction[1#1esin(K[1])cos(K[1])K[1]c1dK[1]&][x+c2]y(x)InverseFunction[1#1esin(K[1])cos(K[1])K[1]c1dK[1]&][x+c2]y(x)InverseFunction[1#1esin(K[1])cos(K[1])K[1]c1dK[1]&][x+c2]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(sin(y(x))*Derivative(y(x), x)**2 + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -sqrt(-Derivative(y(x), (x, 2))/sin(y(x))) + Derivative(y(x), x) cannot be solved by the factorable group method