2.6 problem 2

Internal problem ID [5174]

Book: An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section: Chapter 1.6 Introduction– Linear equations of First Order. Page 41
Problem number: 2.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

\[ \boxed {y^{\prime }+i y-x=0} \]

Solution by Maple

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

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

\[ y \left (x \right ) = -i x +1+{\mathrm e}^{-i x} c_{1} \]

Solution by Mathematica

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

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

\begin{align*} y(x)\to -i x+c_1 e^{-i x}+1 \\ \end{align*}