2.3.7 Problem 8

Solved using first_order_ode_exact
Maple
Mathematica
Sympy

Internal problem ID [18480]
Book : Elementary Differential Equations. By Thornton C. Fry. D Van Nostrand. NY. First Edition (1929)
Section : Chapter IV. Methods of solution: First order equations. section 29. Problems at page 81
Problem number : 8
Date solved : Monday, March 31, 2025 at 05:36:20 PM
CAS classification : [_exact]

Solved using first_order_ode_exact

Time used: 0.221 (sec)

Solve

(T+1t2T2)T=Ttt2T2t

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,T)dt+N(t,T)dT=0

Therefore

(T+1T2+t2)dT=(TtT2+t2t)dt(2A)(TtT2+t2+t)dt+(T+1T2+t2)dT=0

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

M(t,T)=TtT2+t2+tN(t,T)=T+1T2+t2

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

MT=Nt

Using result found above gives

MT=T(TtT2+t2+t)=t(T2+t2)3/2

And

Nt=t(T+1T2+t2)=t(T2+t2)3/2

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

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

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

ϕtdt=Mdtϕtdt=TtT2+t2+tdt(3)ϕ=t2T2+2Tln(T2T2+t2T2t)+2Tln(2)2T2+f(T)

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

(4)ϕT=t2TT2+2ln(T2T2+t2T2t)+2T(T2+t2TT2T2TT2+t22T)T2T2+t2T2+2ln(2)2T2+(t2T2+2Tln(T2T2+t2T2t)+2Tln(2))T2(T2)3/2+f(T)=2T2T2+t22T2+t2T2+t2(T2T2+t2T2)+f(T)

But equation (2) says that ϕT=T+1T2+t2. Therefore equation (4) becomes

(5)T+1T2+t2=2T2T2+t22T2+t2T2+t2(T2T2+t2T2)+f(T)

Solving equation (5) for f(T) gives

f(T)=T2T3T2Tt2+T2+t2T3+T2T2+t2T2+t2T2+t2(T2T2+t2T2)=(T3+T2)T2+t2+(Tt)(T+t)(T2T1)T2+t2(T2T2T2+t2)

Integrating the above w.r.t T results in

f(T)dT=((T3+T2)T2+t2+(Tt)(T+t)(T2T1)T2+t2(T2T2T2+t2))dTf(T)=T2ln(T)T+T22+c1

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

ϕ=t2T2+2Tln(T2T2+t2T2t)+2Tln(2)2T2+T2ln(T)T+T22+c1

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

c1=t2T2+2Tln(T2T2+t2T2t)+2Tln(2)2T2+T2ln(T)T+T22

Which simplifies to

(T2+t2)T22+T(ln(T2t2T2T2t)+ln(2)ln(T))T2=c1

Summary of solutions found

(T2+t2)T22+T(ln(T2t2T2T2t)+ln(2)ln(T))T2=c1
Maple. Time used: 0.013 (sec). Leaf size: 79
ode:=(T(t)+1/(t^2-T(t)^2)^(1/2))*diff(T(t),t) = T(t)/t/(t^2-T(t)^2)^(1/2)-t; 
dsolve(ode,T(t), singsol=all);
 
(t22+T22+c1)T2+T(ln(T2+T2t2T2t)+ln(2)ln(T))T2=0

Maple trace

Methods for first order ODEs: 
--- Trying classification methods --- 
trying homogeneous types: 
differential order: 1; looking for linear symmetries 
trying exact 
<- exact successful
 

Maple step by step

Let’s solve(T(t)+1t2T(t)2)(ddtT(t))=T(t)tt2T(t)2tHighest derivative means the order of the ODE is1ddtT(t)Check if ODE is exactODE is exact if the lhs is the total derivative of aC2functionddtG(t,T(t))=0Compute derivative of lhstG(t,T)+(TG(t,T))(ddtT(t))=0Evaluate derivatives1tT2+t2T2t(T2+t2)3/2=t(T2+t2)3/2Simplifyt(T2+t2)3/2=t(T2+t2)3/2Condition met, ODE is exactExact ODE implies solution will be of this form[G(t,T)=C1,M(t,T)=tG(t,T),N(t,T)=TG(t,T)]Solve forG(t,T)by integratingM(t,T)with respect totG(t,T)=(tTtT2+t2)dt+_F1(T)Evaluate integralG(t,T)=t22+Tln(2T2+2T2T2+t2t)T2+_F1(T)Take derivative ofG(t,T)with respect toTN(t,T)=TG(t,T)Compute derivativeT+1T2+t2=ln(2T2+2T2T2+t2t)T2+T2ln(2T2+2T2T2+t2t)(T2)3/2+T(4T2T2+t2TT22T2TT2+t2)T2(2T2+2T2T2+t2)+ddT_F1(T)Isolate forddT_F1(T)ddT_F1(T)=T+1T2+t2ln(2T2+2T2T2+t2t)T2T2ln(2T2+2T2T2+t2t)(T2)3/2T(4T2T2+t2TT22T2TT2+t2)T2(2T2+2T2T2+t2)Solve for_F1(T)_F1(T)=T22ln(T)TT2Substitute_F1(T)into equation forG(t,T)G(t,T)=t22+Tln(2T2+2T2T2+t2t)T2+T22ln(T)TT2SubstituteG(t,T)into the solution of the ODEt22+Tln(2T2+2T2T2+t2t)T2+T22ln(T)TT2=C1
Mathematica. Time used: 1.592 (sec). Leaf size: 44
ode=(T[t]+1/Sqrt[t^2-T[t]^2])*D[T[t],t]== T[t]/(t*Sqrt[t^2-T[t]^2])-t; 
ic={}; 
DSolve[{ode,ic},T[t],t,IncludeSingularSolutions->True]
 
Solve[arctan(t2T(t)2T(t))+t22+T(t)22=c1,T(t)]
Sympy
from sympy import * 
t = symbols("t") 
T = Function("T") 
ode = Eq(t + (T(t) + 1/sqrt(t**2 - T(t)**2))*Derivative(T(t), t) - T(t)/(t*sqrt(t**2 - T(t)**2)),0) 
ics = {} 
dsolve(ode,func=T(t),ics=ics)
 
Timed Out