1.1.7 problem 7

Internal problem ID [7]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.2. Problems at page 17
Problem number : 7
Date solved : Tuesday, September 30, 2025 at 03:38:09 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (0\right )&=0 \\ \end{align*}
Maple. Time used: 0.035 (sec). Leaf size: 8
ode:=diff(y(x),x) = 10/(x^2+1); 
ic:=[y(0) = 0]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = 10 \arctan \left (x \right ) \]
Mathematica. Time used: 0.007 (sec). Leaf size: 9
ode=D[y[x],x]==10/(1+x^2); 
ic={y[0]==0}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to 10 \arctan (x) \end{align*}
Sympy. Time used: 0.104 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x) - 10/(x**2 + 1),0) 
ics = {y(0): 0} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 10 \operatorname {atan}{\left (x \right )} \]