23.1.24 problem 19

Internal problem ID [4631]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 1. THE DIFFERENTIAL EQUATION IS OF FIRST ORDER AND OF FIRST DEGREE, page 223
Problem number : 19
Date solved : Tuesday, September 30, 2025 at 07:37:30 AM
CAS classification : [_linear]

\begin{align*} y^{\prime }&={\mathrm e}^{x} \sin \left (x \right )+y \cot \left (x \right ) \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 11
ode:=diff(y(x),x) = exp(x)*sin(x)+y(x)*cot(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left ({\mathrm e}^{x}+c_1 \right ) \sin \left (x \right ) \]
Mathematica. Time used: 0.047 (sec). Leaf size: 14
ode=D[y[x],x]==Exp[x]*Sin[x]+y[x]*Cot[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \left (e^x+c_1\right ) \sin (x) \end{align*}
Sympy. Time used: 0.663 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-y(x)/tan(x) - exp(x)*sin(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \left (C_{1} + e^{x}\right ) \sin {\left (x \right )} \]