83.40.1 problem 1

Internal problem ID [19473]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VIII. Linear equations of second order. Excercise VIII (E) at page 140
Problem number : 1
Date solved : Tuesday, January 28, 2025 at 01:45:41 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Solution by Maple

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

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

Solution by Mathematica

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

DSolve[D[y[x],{x,2}]+y[x]==x,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to x+c_1 \cos (x)+c_2 \sin (x) \]