56.1.60 problem 60

Internal problem ID [8772]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 60
Date solved : Monday, January 27, 2025 at 04:50:02 PM
CAS classification : [[_2nd_order, _quadrature]]

\begin{align*} y^{\prime \prime }&=4 \sin \left (x \right )-4 \end{align*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 18

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

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 21

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