7.4.5 problem 5

Internal problem ID [77]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.5 (linear equations). Problems at page 54
Problem number : 5
Date solved : Friday, February 07, 2025 at 07:48:25 AM
CAS classification : [_linear]

\begin{align*} x y^{\prime }+2 y&=3 x \end{align*}

With initial conditions

\begin{align*} y \left (1\right )&=5 \end{align*}

Solution by Maple

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

dsolve([x*diff(y(x),x)+2*y(x)=3*x,y(1) = 5],y(x), singsol=all)
 
\[ y = x +\frac {4}{x^{2}} \]

Solution by Mathematica

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

DSolve[{x*D[y[x],x]+2*y[x]==3*x,{y[1]==5}},y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {4}{x^2}+x \]