75.1.12 problem 14

Internal problem ID [16675]
Book : A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section : Section 1. Basic concepts and definitions. Exercises page 18
Problem number : 14
Date solved : Tuesday, January 28, 2025 at 09:17:43 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 12

dsolve(x*diff(y(x),x)+y(x)=cos(x),y(x), singsol=all)
 
\[ y = \frac {\sin \left (x \right )+c_{1}}{x} \]

Solution by Mathematica

Time used: 0.030 (sec). Leaf size: 22

DSolve[x*D[y[x],x]+y[x]==Cos[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {\int _1^x\cos (K[1])dK[1]+c_1}{x} \]