53.4.14 problem 15

Internal problem ID [8502]
Book : Elementary differential equations. By Earl D. Rainville, Phillip E. Bedient. Macmilliam Publishing Co. NY. 6th edition. 1981.
Section : CHAPTER 16. Nonlinear equations. Section 101. Independent variable missing. EXERCISES Page 324
Problem number : 15
Date solved : Wednesday, March 05, 2025 at 06:01:23 AM
CAS classification : [[_2nd_order, _missing_y]]

\begin{align*} y^{\prime \prime } \cos \left (x \right )&=y^{\prime } \end{align*}

Maple. Time used: 0.001 (sec). Leaf size: 20
ode:=diff(diff(y(x),x),x)*cos(x) = diff(y(x),x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} +\left (\ln \left (\sec \left (x \right )+\tan \left (x \right )\right )-\ln \left (\cos \left (x \right )\right )\right ) c_{2} \]
Mathematica. Time used: 0.188 (sec). Leaf size: 25
ode=D[y[x],{x,2}]*Cos[x]==D[y[x],x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_1 \log \left (e^{4 \text {arctanh}\left (\tan \left (\frac {x}{2}\right )\right )}+1\right )+c_2 \]
Sympy. Time used: 1.568 (sec). Leaf size: 24
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(cos(x)*Derivative(y(x), (x, 2)) - Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} \int \frac {\sqrt {\sin {\left (x \right )} + 1}}{\sqrt {\sin {\left (x \right )} - 1}}\, dx \]