83.28.1 problem 1

Internal problem ID [19287]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VII. Exact differential equations and certain particular forms of equations. Exercise VII (B) at page 106
Problem number : 1
Date solved : Thursday, March 13, 2025 at 02:12:13 PM
CAS classification : [[_2nd_order, _quadrature]]

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

Maple. Time used: 0.000 (sec). Leaf size: 18
ode:=diff(diff(y(x),x),x) = x+sin(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = \frac {x^{3}}{6}-\sin \left (x \right )+c_{1} x +c_{2} \]
Mathematica. Time used: 0.007 (sec). Leaf size: 23
ode=D[y[x],{x,2}]==x+Sin[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {x^3}{6}-\sin (x)+c_2 x+c_1 \]
Sympy. Time used: 0.071 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x - sin(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} x + \frac {x^{3}}{6} - \sin {\left (x \right )} \]