44.6.17 problem 17

Internal problem ID [7161]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 2. First order differential equations. Section 2.3 Linear equations. Exercises 2.3 at page 63
Problem number : 17
Date solved : Tuesday, February 04, 2025 at 12:42:17 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.002 (sec). Leaf size: 11

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

Solution by Mathematica

Time used: 0.042 (sec). Leaf size: 13

DSolve[Cos[x]*D[y[x],x]+Sin[x]*y[x]==1,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \sin (x)+c_1 \cos (x) \]