2.1.4 Problem 1 (iv)

Existence and uniqueness analysis
Solved using first_order_ode_quadrature
Solved using first_order_ode_exact
Maple
Mathematica
Sympy

Internal problem ID [18420]
Book : Elementary Differential Equations. By R.L.E. Schwarzenberger. Chapman and Hall. London. First Edition (1969)
Section : Chapter 3. Solutions of first-order equations. Exercises at page 47
Problem number : 1 (iv)
Date solved : Monday, March 31, 2025 at 05:27:52 PM
CAS classification : [_quadrature]

Existence and uniqueness analysis

Solve

x=1t2+1

With initial conditions

x(1)=0

This is a linear ODE. In canonical form it is written as

x+q(t)x=p(t)

Where here

q(t)=0p(t)=1t2+1

Hence the ode is

x=1t2+1

The domain of q(t)=0 is

{<t<}

And the point t0=1 is inside this domain. The domain of p(t)=1t2+1 is

{<t<}

And the point t0=1 is also inside this domain. Hence solution exists and is unique.

Solved using first_order_ode_quadrature

Time used: 0.057 (sec)

Solve

x=1t2+1

With initial conditions

x(1)=0

Since the ode has the form x=f(t), then we only need to integrate f(t).

dx=1t2+1dtx=arcsinh(t)+c1

Solving for the constant of integration from initial conditions, the solution becomes

x=arcsinh(t)ln(1+2)
Solution plot Slope field x=1t2+1

Summary of solutions found

x=arcsinh(t)ln(1+2)
Solved using first_order_ode_exact

Time used: 0.115 (sec)

Solve

x=1t2+1

With initial conditions

x(1)=0

To solve an ode of the form

(A)M(x,y)+N(x,y)dydx=0

We assume there exists a function ϕ(x,y)=c where c is constant, that satisfies the ode. Taking derivative of ϕ w.r.t. x gives

ddxϕ(x,y)=0

Hence

(B)ϕx+ϕydydx=0

Comparing (A,B) shows that

ϕx=Mϕy=N

But since 2ϕxy=2ϕyx then for the above to be valid, we require that

My=Nx

If the above condition is satisfied, then the original ode is called exact. We still need to determine ϕ(x,y) but at least we know now that we can do that since the condition 2ϕxy=2ϕyx is satisfied. If this condition is not satisfied then this method will not work and we have to now look for an integrating factor to force this condition, which might or might not exist. The first step is to write the ODE in standard form to check for exactness, which is

(1A)M(t,x)dt+N(t,x)dx=0

Therefore

dx=(1t2+1)dt(2A)(1t2+1)dt+dx=0

Comparing (1A) and (2A) shows that

M(t,x)=1t2+1N(t,x)=1

The next step is to determine if the ODE is is exact or not. The ODE is exact when the following condition is satisfied

Mx=Nt

Using result found above gives

Mx=x(1t2+1)=0

And

Nt=t(1)=0

Since Mx=Nt, then the ODE is exact The following equations are now set up to solve for the function ϕ(t,x)

(1)ϕt=M(2)ϕx=N

Integrating (1) w.r.t. t gives

ϕtdt=Mdtϕtdt=1t2+1dt(3)ϕ=arcsinh(t)+f(x)

Where f(x) is used for the constant of integration since ϕ is a function of both t and x. Taking derivative of equation (3) w.r.t x gives

(4)ϕx=0+f(x)

But equation (2) says that ϕx=1. Therefore equation (4) becomes

(5)1=0+f(x)

Solving equation (5) for f(x) gives

f(x)=1

Integrating the above w.r.t x gives

f(x)dx=(1)dxf(x)=x+c2

Where c2 is constant of integration. Substituting result found above for f(x) into equation (3) gives ϕ

ϕ=arcsinh(t)+x+c2

But since ϕ itself is a constant function, then let ϕ=c3 where c2 is new constant and combining c2 and c3 constants into the constant c2 gives the solution as

c2=arcsinh(t)+x

Solving for the constant of integration from initial conditions, the solution becomes

arcsinh(t)+x=ln(1+2)

Solving for x gives

x=arcsinh(t)ln(1+2)
Solution plot Slope field x=1t2+1

Summary of solutions found

x=arcsinh(t)ln(1+2)
Maple. Time used: 0.061 (sec). Leaf size: 15
ode:=diff(x(t),t) = 1/(t^2+1)^(1/2); 
ic:=x(1) = 0; 
dsolve([ode,ic],x(t), singsol=all);
 
x=arcsinh(t)ln(1+2)

Maple trace

Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
<- quadrature successful
 

Maple step by step

Let’s solve[ddtx(t)=1t2+1,x(1)=0]Highest derivative means the order of the ODE is1ddtx(t)Integrate both sides with respect tot(ddtx(t))dt=1t2+1dt+C1Evaluate integralx(t)=arcsinh(t)+C1Use initial conditionx(1)=00=ln(1+2)+C1Solve for_C1C1=ln(1+2)Substitute_C1=ln(1+2)into general solution and simplifyx(t)=arcsinh(t)ln(1+2)Solution to the IVPx(t)=arcsinh(t)ln(1+2)
Mathematica. Time used: 0.004 (sec). Leaf size: 12
ode=D[x[t],t]==1/Sqrt[1+t^2]; 
ic={x[1]==0}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
x(t)arcsinh(t)arcsinh(1)
Sympy. Time used: 0.160 (sec). Leaf size: 14
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(Derivative(x(t), t) - 1/sqrt(t**2 + 1),0) 
ics = {x(1): 0} 
dsolve(ode,func=x(t),ics=ics)
 
x(t)=asinh(t)log(1+2)