1.54 problem 75

Internal problem ID [13778]

Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section: Chapter 1. Introduction to Differential Equations. Exercises 1.1, page 10
Problem number: 75.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } x +y=\cos \left (x \right )} \]

Solution by Maple

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

dsolve(x*diff(y(x),x)+y(x)=cos(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\sin \left (x \right )+c_{1}}{x} \]

Solution by Mathematica

Time used: 0.035 (sec). Leaf size: 14

DSolve[x*y'[x]+y[x]==Cos[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {\sin (x)+c_1}{x} \]