82.48.14 problem Ex. 14

Internal problem ID [18924]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter VIII. End of chapter problems at page 107
Problem number : Ex. 14
Date solved : Monday, March 31, 2025 at 06:25:07 PM
CAS classification : [[_3rd_order, _quadrature]]

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

Maple. Time used: 0.002 (sec). Leaf size: 29
ode:=diff(diff(diff(y(x),x),x),x) = sin(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {x^{3}}{12}-\frac {x}{8}+\frac {c_1 \,x^{2}}{2}+c_2 x +c_3 +\frac {\sin \left (2 x \right )}{16} \]
Mathematica. Time used: 0.029 (sec). Leaf size: 37
ode=D[y[x],{x,3}]==Sin[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {x^3}{12}+c_3 x^2+\left (\frac {1}{8}+c_2\right ) x+\frac {1}{8} \sin (x) \cos (x)+c_1 \]
Sympy. Time used: 0.435 (sec). Leaf size: 24
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-sin(x)**2 + Derivative(y(x), (x, 3)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} x + C_{3} x^{2} + \frac {x^{3}}{12} + \frac {\sin {\left (2 x \right )}}{16} \]