2.3.13 Problem 13

Maple
Mathematica
Sympy

Internal problem ID [9070]
Book : First order enumerated odes
Section : section 3. First order odes solved using Laplace method
Problem number : 13
Date solved : Wednesday, March 05, 2025 at 07:19:00 AM
CAS classification : [_separable]

Solve

y+(at+bt)y=0

With initial conditions

y(0)=0

We will now apply Laplace transform to each term in the ode. Since this is time varying, the following Laplace transform property will be used

tnf(t)L(1)ndndsnF(s)

Where in the above F(s) is the laplace transform of f(t). Applying the above property to each term of the ode gives

(at+bt)yLa(ddsY(s))b(ddsY(s))yLY(s)sy(0)

Collecting all the terms above, the ode in Laplace domain becomes

Ysy(0)aYbY=0

Replacing y(0)=0 in the above results in

YsaYbY=0

The above ode in Y(s) is now solved.

In canonical form a linear first order is

Y+q(s)Y=p(s)

Comparing the above to the given ode shows that

q(s)=sa+bp(s)=0

The integrating factor μ is

μ=eqds=esa+bds=es22a+2b

The ode becomes

ddsμY=0dds(Yes22a+2b)=0

Integrating gives

Yes22a+2b=0ds+c1=c1

Dividing throughout by the integrating factor es22a+2b gives the final solution

Y=c1es22a+2b

Applying inverse Laplace transform on the above gives.

(1)y=c1L1(es22a+2b,s,t)

Substituting initial conditions y(0)=0 and y(0)=0 into the above solution Gives

0=c1L1(es22a+2b,s,t)

Solving for the constant c1 from the above equation gives

c1=0

Substituting the above back into the solution (1) gives

y=0
Figure 2.79: Solution y=0
Maple. Time used: 1.399 (sec). Leaf size: 5
ode:=diff(y(t),t)+(a*t+b*t)*y(t) = 0; 
ic:=y(0) = 0; 
dsolve([ode,ic],y(t),method='laplace');
 
y=0

Maple trace

`Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
<- 1st order linear successful`
 

Maple step by step

Let’s solve[y+(at+bt)y=0,y(0)=0]Highest derivative means the order of the ODE is1ySolve for the highest derivativey=(at+bt)ySeparate variablesyy=atbtIntegrate both sides with respect totyydt=(atbt)dt+C1Evaluate integralln(y)=t2(a+b)2+C1Solve foryy=e12t2a12t2b+C1Use initial conditiony(0)=00=eC1Solve for_C1C1=()Solution does not satisfy initial condition
Mathematica. Time used: 0.002 (sec). Leaf size: 6
ode=D[y[t],t]+(a*t+b*t)*y[t]==0; 
ic=y[0]==0; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
y(t)0
Sympy. Time used: 0.340 (sec). Leaf size: 3
from sympy import * 
t = symbols("t") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq((a*t + b*t)*y(t) + Derivative(y(t), t),0) 
ics = {y(0): 0} 
dsolve(ode,func=y(t),ics=ics)
 
y(t)=0