74.1.8 problem 12

Internal problem ID [15709]
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 : 12
Date solved : Thursday, March 13, 2025 at 06:15:52 AM
CAS classification : [_quadrature]

\begin{align*} 2 x -1-y^{\prime }&=0 \end{align*}

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