50.2.11 problem 2(a)

Internal problem ID [7817]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Section 1.3 SEPARABLE EQUATIONS. Page 12
Problem number : 2(a)
Date solved : Wednesday, March 05, 2025 at 05:06:57 AM
CAS classification : [_separable]

\begin{align*} y^{\prime } y&=x +1 \end{align*}

With initial conditions

\begin{align*} y \left (1\right )&=3 \end{align*}

Maple. Time used: 0.047 (sec). Leaf size: 14
ode:=y(x)*diff(y(x),x) = 1+x; 
ic:=y(1) = 3; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y = \sqrt {x^{2}+2 x +6} \]
Mathematica. Time used: 0.094 (sec). Leaf size: 17
ode=D[y[x],x]*y[x]==x+1; 
ic={y[1]==3}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \sqrt {x^2+2 x+6} \]
Sympy. Time used: 0.402 (sec). Leaf size: 14
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + y(x)*Derivative(y(x), x) - 1,0) 
ics = {y(1): 3} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \sqrt {x^{2} + 2 x + 6} \]