74.1.28 problem 35

Internal problem ID [15729]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 1. Introduction to Differential Equations. Exercises 1.1, page 10
Problem number : 35
Date solved : Thursday, March 13, 2025 at 06:16:48 AM
CAS classification : [_quadrature]

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

Maple. Time used: 0.000 (sec). Leaf size: 12
ode:=diff(y(x),x) = x*sin(x^2); 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\frac {\cos \left (x^{2}\right )}{2}+c_{1} \]
Mathematica. Time used: 0.014 (sec). Leaf size: 23
ode=D[y[x],x]==x*Sin[x^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \int _1^xK[1] \sin \left (K[1]^2\right )dK[1]+c_1 \]
Sympy. Time used: 0.191 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*sin(x**2) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} - \frac {\cos {\left (x^{2} \right )}}{2} \]