15.10.2 problem 2

Internal problem ID [3089]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 18, page 82
Problem number : 2
Date solved : Tuesday, March 04, 2025 at 03:58:28 PM
CAS classification : [[_2nd_order, _quadrature]]

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

Maple. Time used: 0.002 (sec). Leaf size: 9
ode:=diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} x +c_2 \]
Mathematica. Time used: 0.002 (sec). Leaf size: 12
ode=D[y[x],{x,2}]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_2 x+c_1 \]
Sympy. Time used: 0.034 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} x \]