83.38.1 problem 1

Internal problem ID [19389]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VIII. Linear equations of second order. Excercise VIII (C) at page 133
Problem number : 1
Date solved : Monday, March 31, 2025 at 07:12:15 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.031 (sec). Leaf size: 15
ode:=diff(diff(y(x),x),x)+tan(x)*diff(y(x),x)+cos(x)^2*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \sin \left (\sin \left (x \right )\right )+c_2 \cos \left (\sin \left (x \right )\right ) \]
Mathematica. Time used: 0.055 (sec). Leaf size: 18
ode=D[y[x],{x,2}]+Tan[x]*D[y[x],x]+Cos[x]^2*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_2 \sin (\sin (x))+c_1 \cos (\sin (x)) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*cos(x)**2 + tan(x)*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False