SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/344440634
Applications of Ordinary Differential Equations in Maple
Article · October 2020
DOI: 10.35629/6734-0906023743
CITATIONS
0
READS
76
2 authors:
Some of the authors of this publication are also working on these related projects:
Applications of Ordinary Differential Equations in Maple View project
Keller-Segel model for chemotaxis systems View project
Naing Tun
1 PUBLICATION 0 CITATIONS
SEE PROFILE
Aung Zaw Myint
Harbin Institute of Technology
8 PUBLICATIONS 0 CITATIONS
SEE PROFILE
All content following this page was uploaded by Aung Zaw Myint on 18 November 2021.
The user has requested enhancement of the downloaded file.
International Journal of Engineering Science Invention (IJESI)
ISSN (Online): 2319-6734, ISSN (Print): 2319-6726
www.ijesi.org ||Volume 9 Issue 6 Series II || June 2020 || PP 37-43
DOI: 10.35629/6734-0906023743 www.ijesi.org 37 | Page
Applications of Ordinary Differential Equations in Maple
Naing Tun and Aung Zaw Myint
Department of Mathematics, University of Mandalay, Mandalay, Myanmar.
Corresponding Author: Aung Zaw Myint, Naing Tun
ABSTRACT: In this paper, we introduce some applications of ordinary differential equations (ODEs) in Maple.
Using this Maple system, we investigate the computer algebra system that can work for ODEs and development
studies in Mathematics.
KEYWORDS: Maple system, Computer algebra system, Differential equations.
---------------------------------------------------------------------------------------------------------------------------------------
Date of Submission: 08-06-2020 Date of Acceptance: 24-06-2020
---------------------------------------------------------------------------------------------------------------------------------------
I. INTRODUCTION
A differential equation is an equation that involves derivatives of one or more unknown functions.
Solving the differential equation means finding a function (or every such function) that satisfies the differential
equation. In many models, we will have equations involving the derivatives of a dependent variable y with
respect to one or more independent variables and are interested in discovering this function y. Such equations
are referred to as differential equations (abbreviated DE). They arise in many applications such as population
growth, decay of radioactive substance, the motion of a falling object, electrical network, and many more
models.
In this paper, we define some notation to clear understand, with the following units.
mass slugs (pound/gram),
distance Feet,
time Seconds,
acceleration due to gravity (g) 2
32 / ,
ft s
position(in m) ( ),
y t
velocity
( ) ( ) ( ),
d
v t y t y t
dt
 

resistant force ,
r
f
linear drag ( ).
r
f av t
 
we use the following Maple commands.
II. FREE FALL WITHOUT FRICTION
A bomber airplane is cruising at an altitude of 10,000 feet and drops a bomb to the target on the
ground. The bomb weighs 152 pounds. Ignore its horizontal motion at the moment it becomes free of the plane.
Assume that air resistance (denoted by k v , where k is a constant) is proportional to the velocity at any time t.
The first-order ODE which describes the motion of the bomb is
152
152
32
v
k v
t

 

.
Now we consider how computer algebra system can work for this motion.
> k := 'k';
k := k
>deqv := (152*(1/32))*(diff(v(t), t)) = 152-k*v(t);
diff, subs,
dsolve, rhs,
simplify,
D, plot
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 38 | Page
: ( ) ( )
19 d
deqv v t 152 k v t
4 dt
  
Since the downward motion of the bomb with an initial velocity of zero, the initial condition of v(0)= 0 holds.
For the velocity as a function of time,
>solv := simplify(dsolve({deqv, v(0) = 0}, v(t)));
: ( )
4
- kt
19
152 -152e
solv v t
k
 
We can now define the first-order ODE which describes the rate of change of distance with respect to time
>deqx := diff(x(t), t) = rhs(solv);
: ( )
4
- kt
19
d 152 -152e
deqx x t
dt k
 
and solve for distance as a function of time. Downward motion is used as positive distance, and the point where
the fall began as the origin, such that v(0)=0 .
>solx := simplify(dsolve({deqx, x(0)=0}, x(t)));
722
: ( )
4
- kt
19
2
152kt -722e
solx x t
k

 
We know that the bomb will be on the ground when x(t) = 10,000. The solution depends upon the value of k.
Solve for t using Maple's fsolve command with k equal to 0.1,1,2,3,4,5 and 6.
>'t0.1' := fsolve(rhs(subs(k=0.1, solx)) = 10000, t);
:
t0.1 27.39921852

This process continuous for k = 1, 2, 3, 4, 5 and 6, then we get
:
t1 70.53947200

:
t2 133.9539474

:
t3 198.9517544

:
t4 264.3453947

:
t5 329.8973684

:
t6 395.5285088
 .
In this case, the large value of k (greater air resistance) will takes longer for the bomb to reach the ground. Now
graph solx over the first 400 seconds for several different values of k.
>curves := seq(subs(k=i, rhs(solx)), i = [0.1, 1, 2,3,4,5, 6]) :
>plot({curves}, t = 0 .. 400, x = 0 .. 10000)
Figure 1. Solution curves for several different values of k
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 39 | Page
We see that all these graphs appear linear away from the origin. Now we look at them very shortest distance and
time near the origin.
> plot({curves}, t = 0 .. 5, x = 0 .. 100);
Figure 2. Solution curves for shortest distance and time
This graph is very satisfied view to investigate the motion of the object near the beginning of the fall.
Thus, it is apparent that for smaller values of k the graph of x(t) gets steeper faster. This means that near the
beginning of the fall the bomb accelerates faster (i.e., the velocity is increasing at a quicker pace) for smaller
values of k. Later in the fall, the velocities for all values of k are nearly constant (the graphs of x(t) appear linear
for large values of t), with the greater limiting velocities occurring for smaller values of k.
III. FREE FALL WITH FRICITION
For the problem with friction drag, we can exact symbolic solution.
> restart;
Differential equation
>ode := m*(diff(y(t), t, t)) = -mg-a*(diff(y(t), t));
2
2
: ( ) ( )
d d
ode m y t -mg a y t
dt
dt
   
  
   
 
 
Symbolic initial condition
>ics := y(0) = y[0], (D(y))(0) = v[0];
0
: (0) 0, ( )(0)
ics y D y v
  
Symbolic ODE solution
>sol := dsolve({ics, ode});
  2 2
0 0 0
2 2
: ( )
at
-
m
me av mg a y amv m g
mgt
sol y t
a
a a
  
    
Expression for displacement
>fy := eval(y(t), s)
  2 2
0 0 0
2 2
:
at
-
m
me av mg a y amv m g
mgt
fy
a
a a
  
   
For the velocity as a function of time,
>fv := diff(fy, t)
 
0
2
:
at
-
m
me av mg mg
fv
a
a

  
Displacement for particular values
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 40 | Page
>pvals := [m = 150, v[0] = 15, g = 32, y[0] = 5000];
pvals := [m = 150, v[0] = 15, g = 32, y[0] = 5000]
>fyp := eval(fy, pvals)
1
2
150
2 2
150 (15 4800) 5000 2250 720000
:
at
e a 4800t a a
fyp
a
a a

  
   
When we compute the limit of fyp for 0
a  ,the non-friction formula results is
>limit(fyp, a = 0);
2
16 15 5000
t t
  
Velocity expression for the particular values
>fvp := eval(fv, pvals);
1
150
(15 4800) 4800
:
at
e a
fvp
a a


 
For the non-friction case, the limit of the velocity as a approaches 0
>limit(fv, a = 0);
0
v gt

To draw the displacement and velocity graphs for several values of the friction coefficient a, we use the
animate( ) command of the library plots.
>animate(plot, [fyp, t = 0 .. 21, y = 0 .. 5100], a = 1 .. 10, gridlines, thickness = 2);
Figure 3.The displacement graph for several values of the friction coefficient 1
a  .
> animate(plot, [fvp, t = 0 .. 21, v = 15 .. -600, color = blue], a = 1 .. 10, gridlines, thickness = 2);
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 41 | Page
Figure 4.The velocity graph for several values of the friction coefficient 1
a  .
> animate(plot, [fyp, t = 0 .. 25, y = 0 .. 5100], a = 1 .. 10, gridlines, thickness = 2);
>animate(plot, [fvp, t = 0 .. 25, v = 15 .. -450, color = blue], a = 1 .. 10, gridlines, thickness = 2);
Figure 5. The displacement and velocity graphs for several values of the friction coefficient 10
a  .
The limit velocity for each value of the linear friction coefficient a is
> vlim := limit(fv, t = infinity);
0
( )
:
at
m
e av gm gm
vlim
a a

 

 
 
 
 
 
Assuming the parameter a,g and m are positive,
>vlim := `assuming`([limit(fv, t = infinity)], [m > 0, a > 0, g > 0]);
:
gm
vlim
a
 
According to the above example, the limit velocity for a=10 is
>vlima := eval(vlim, [m = 150, g = 32, a = 10]);
vlima := -480
Figure 6. The limit velocity graph for several values of the friction coefficient 10
a  .
For a=10, the displacement and velocity expression are
> fypa := eval(fyp, a = 10);
> fvpa := eval(fvp, a = 10);
1
- t
15
fypa := -7425e - 480t+12425
1
- t
15
fvpa := 495e - 480
The time to peak is
>tp := fsolve(fvpa = 0, t = 0 .. 25);
tp := .4615748800
For the maximum height,
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 42 | Page
>ymax := eval(fypa, t = tp);
ymax := 5003.444058
Time to impact and velocity at this moment
>timp := fsolve(fypa = 0, t = 0 .. 25);
timp := 22.41403423
>vimp := eval(fvpa, t = timp);
vimp := -368.9157621
IV. MIXTURE PROBLEM
A tank initially holds 40 pounds of salt dissolved in 200 gallons of water. Another brine solution is
pumped into the tank at the rate of 5 gallons per minute, and a well-stirred solution simultaneously flows out of
the tank atthe same rate. If the concentration of salt in the brine flowing into the tank is 3/5 pounds of salt per
gallon of water, find the amount of salt present in the tank at any time t.
Let ( )
A t be the amount of salt in the tank at time t minutes.
Then, the net rate at which ( )
A t changes is given by
dA
dt
 (rate at which salt is entering)  ( rate at which salt is leaving).
The rate at which salt is entering the tank is
5 3
3
5
gallons pounds
pounds per minute
minute gallons
 
The rate at which salt is leaving the tank is
5 ( ) ( )
200 40
gallons A t pounds A t
pounds per minute.
minute gallons
 
Thus, the first-order ODEs which describes this system is given by
>diffeq := D(A)(t) = 3-(1/40)*A(t);
1
: ( )( ) 3 ( )
40
diffeq D A t A t
  
The initial value of ( )
A t is (0) 40
A  , so we should get a unique solution from dsolve.
>sol1 := dsolve({diffeq, A(0) = 40}, A(t));
: ( )
1
- t
40
sol A t 120 - 80e
 
Now we consider the amount of salt in the tank for every five minutes. In this case we set 0..60
t  for every five
minutes.
>sol2 := seq(sol1, t = 0 .. 60, 5);
2 : (0) 40, (5)
1
-
8
sol A A 120 - 80e 49.40024779
   
(10) , (15)
1 3
- -
4 8
A 120 - 80e 57.69593735 A 120 - 80e 65.01685770
   
(20) , (25)
5
1
-
-
8
2
A 120 - 80e 71.47754722 A 120 - 80e 77.17908572
   
(30) , (35)
3 7
- -
4 8
A 120 - 80e 82.21067578 A 120 - 80e 86.65103842
   
(40) , (45)
9
-
-1 8
A 120 - 80e 90.56964470 A 120 - 80e 94.02780261
   
(50) , (55)
5 11
- -
4 8
A 120 - 80e 97.07961625 A 120 - 80e 99.77283234
   
(60)
3
-
2
A 120 - 80e 102.1495872
 
>plot({120, rhs(sol)}, t = 0 .. 200, 0 .. 140);
Applications of Ordinary Differential Equation in Maple
DOI: 10.35629/6734-0906023743 www.ijesi.org 43 | Page
Figure 7. Amount of salt and time
We can make a function from sol and use it to answer any question about the problem.
>A :=unapply(rhs(sol), t);
:
1
- t
40
A t 120 - 80e
 
If we want to know the amount of salt in the tank after 1 minute,
> A(1.), 'lbs';
41.97520704, lbs
How long does it take the amount of salt in the tank to get to 80 lbs?
>solve(A(t) = 80, t);
40 ln(2)
>evalf(%), 'minutes';
27.72588722, minutes.
V. CONCLUSION
Using trustable technique, namely, the Maple system solved ordinary differential equation with initial
conditions. Maple system is a powerful tool that can use to solve mathematical problems from simple to
complex. The result of this research gives that we can solve easily real life problems.
ACKNOWLEDGEMENTS
The author is grateful to the referees and the editor for their valuable comments and suggestions on the
manuscript.
REFERENCES
[1]. D. N. Burghes, M.S. Borrie, Modeling with Differential Equations, John Wiley & Sons, Chichester,1982.
[2]. G.Z. Dennis, A First Course in Differential Equations with Modeling Applications, Tenth Edition, Richard Stratton,2013.
[3]. C.H. Edwards and D.E Penney, Differential Equations Computing and Modeling, Fourth Edition, Pearson New jersey,2008.
[4]. E. Kreyszig, Advange Engineering Mathematics, John Wiley, 1983.
Naing Tun, et. al. "Applications of Ordinary Differential Equations in Maple.” International
Journal of Engineering Science Invention (IJESI), Vol. 09(06), 2020, PP 37-43. Journal DOI-
10.35629/6734
View publication stats
View publication stats

Contenu connexe

Similaire à Applications of Ordinary Differential Equations in Maple.pdf

Chapter 11 kinematics of particles
Chapter 11 kinematics of particlesChapter 11 kinematics of particles
Chapter 11 kinematics of particlesRogin Beldeneza
 
Low-rank tensor approximation (Introduction)
Low-rank tensor approximation (Introduction)Low-rank tensor approximation (Introduction)
Low-rank tensor approximation (Introduction)Alexander Litvinenko
 
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...Stephane Meteodyn
 
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...The lattice Boltzmann equation: background, boundary conditions, and Burnett-...
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...Tim Reis
 
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...qedobose
 
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...mathsjournal
 
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...mathsjournal
 
Ultrasound lecture 1 post
Ultrasound lecture 1 postUltrasound lecture 1 post
Ultrasound lecture 1 postlucky shumail
 
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...Abrar Hussain
 

Similaire à Applications of Ordinary Differential Equations in Maple.pdf (20)

Vectors and Kinematics
Vectors and KinematicsVectors and Kinematics
Vectors and Kinematics
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
 
Chapter 11 kinematics of particles
Chapter 11 kinematics of particlesChapter 11 kinematics of particles
Chapter 11 kinematics of particles
 
Ch02
Ch02Ch02
Ch02
 
Ch02
Ch02Ch02
Ch02
 
pRO
pROpRO
pRO
 
Low-rank tensor approximation (Introduction)
Low-rank tensor approximation (Introduction)Low-rank tensor approximation (Introduction)
Low-rank tensor approximation (Introduction)
 
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...
Calibrating a CFD canopy model with the EC1 vertical profiles of mean wind sp...
 
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...The lattice Boltzmann equation: background, boundary conditions, and Burnett-...
The lattice Boltzmann equation: background, boundary conditions, and Burnett-...
 
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...
Fox And Mcdonald's Introduction To Fluid Mechanics 8th Edition Pritchard Solu...
 
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
 
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
MODELING OF REDISTRIBUTION OF INFUSED DOPANT IN A MULTILAYER STRUCTURE DOPANT...
 
Ultrasound lecture 1 post
Ultrasound lecture 1 postUltrasound lecture 1 post
Ultrasound lecture 1 post
 
Sheet no 1
Sheet no 1Sheet no 1
Sheet no 1
 
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systemsAdaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
 
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
 
cfd ahmed body
cfd ahmed bodycfd ahmed body
cfd ahmed body
 
Online Signals and Systems Assignment Help
Online Signals and Systems Assignment HelpOnline Signals and Systems Assignment Help
Online Signals and Systems Assignment Help
 
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...
185817220 7e chapter5sm-final-newfrank-white-fluid-mechanics-7th-ed-ch-5-solu...
 

Dernier

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Dernier (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Applications of Ordinary Differential Equations in Maple.pdf

  • 1. See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/344440634 Applications of Ordinary Differential Equations in Maple Article · October 2020 DOI: 10.35629/6734-0906023743 CITATIONS 0 READS 76 2 authors: Some of the authors of this publication are also working on these related projects: Applications of Ordinary Differential Equations in Maple View project Keller-Segel model for chemotaxis systems View project Naing Tun 1 PUBLICATION 0 CITATIONS SEE PROFILE Aung Zaw Myint Harbin Institute of Technology 8 PUBLICATIONS 0 CITATIONS SEE PROFILE All content following this page was uploaded by Aung Zaw Myint on 18 November 2021. The user has requested enhancement of the downloaded file.
  • 2. International Journal of Engineering Science Invention (IJESI) ISSN (Online): 2319-6734, ISSN (Print): 2319-6726 www.ijesi.org ||Volume 9 Issue 6 Series II || June 2020 || PP 37-43 DOI: 10.35629/6734-0906023743 www.ijesi.org 37 | Page Applications of Ordinary Differential Equations in Maple Naing Tun and Aung Zaw Myint Department of Mathematics, University of Mandalay, Mandalay, Myanmar. Corresponding Author: Aung Zaw Myint, Naing Tun ABSTRACT: In this paper, we introduce some applications of ordinary differential equations (ODEs) in Maple. Using this Maple system, we investigate the computer algebra system that can work for ODEs and development studies in Mathematics. KEYWORDS: Maple system, Computer algebra system, Differential equations. --------------------------------------------------------------------------------------------------------------------------------------- Date of Submission: 08-06-2020 Date of Acceptance: 24-06-2020 --------------------------------------------------------------------------------------------------------------------------------------- I. INTRODUCTION A differential equation is an equation that involves derivatives of one or more unknown functions. Solving the differential equation means finding a function (or every such function) that satisfies the differential equation. In many models, we will have equations involving the derivatives of a dependent variable y with respect to one or more independent variables and are interested in discovering this function y. Such equations are referred to as differential equations (abbreviated DE). They arise in many applications such as population growth, decay of radioactive substance, the motion of a falling object, electrical network, and many more models. In this paper, we define some notation to clear understand, with the following units. mass slugs (pound/gram), distance Feet, time Seconds, acceleration due to gravity (g) 2 32 / , ft s position(in m) ( ), y t velocity ( ) ( ) ( ), d v t y t y t dt    resistant force , r f linear drag ( ). r f av t   we use the following Maple commands. II. FREE FALL WITHOUT FRICTION A bomber airplane is cruising at an altitude of 10,000 feet and drops a bomb to the target on the ground. The bomb weighs 152 pounds. Ignore its horizontal motion at the moment it becomes free of the plane. Assume that air resistance (denoted by k v , where k is a constant) is proportional to the velocity at any time t. The first-order ODE which describes the motion of the bomb is 152 152 32 v k v t     . Now we consider how computer algebra system can work for this motion. > k := 'k'; k := k >deqv := (152*(1/32))*(diff(v(t), t)) = 152-k*v(t); diff, subs, dsolve, rhs, simplify, D, plot
  • 3. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 38 | Page : ( ) ( ) 19 d deqv v t 152 k v t 4 dt    Since the downward motion of the bomb with an initial velocity of zero, the initial condition of v(0)= 0 holds. For the velocity as a function of time, >solv := simplify(dsolve({deqv, v(0) = 0}, v(t))); : ( ) 4 - kt 19 152 -152e solv v t k   We can now define the first-order ODE which describes the rate of change of distance with respect to time >deqx := diff(x(t), t) = rhs(solv); : ( ) 4 - kt 19 d 152 -152e deqx x t dt k   and solve for distance as a function of time. Downward motion is used as positive distance, and the point where the fall began as the origin, such that v(0)=0 . >solx := simplify(dsolve({deqx, x(0)=0}, x(t))); 722 : ( ) 4 - kt 19 2 152kt -722e solx x t k    We know that the bomb will be on the ground when x(t) = 10,000. The solution depends upon the value of k. Solve for t using Maple's fsolve command with k equal to 0.1,1,2,3,4,5 and 6. >'t0.1' := fsolve(rhs(subs(k=0.1, solx)) = 10000, t); : t0.1 27.39921852  This process continuous for k = 1, 2, 3, 4, 5 and 6, then we get : t1 70.53947200  : t2 133.9539474  : t3 198.9517544  : t4 264.3453947  : t5 329.8973684  : t6 395.5285088  . In this case, the large value of k (greater air resistance) will takes longer for the bomb to reach the ground. Now graph solx over the first 400 seconds for several different values of k. >curves := seq(subs(k=i, rhs(solx)), i = [0.1, 1, 2,3,4,5, 6]) : >plot({curves}, t = 0 .. 400, x = 0 .. 10000) Figure 1. Solution curves for several different values of k
  • 4. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 39 | Page We see that all these graphs appear linear away from the origin. Now we look at them very shortest distance and time near the origin. > plot({curves}, t = 0 .. 5, x = 0 .. 100); Figure 2. Solution curves for shortest distance and time This graph is very satisfied view to investigate the motion of the object near the beginning of the fall. Thus, it is apparent that for smaller values of k the graph of x(t) gets steeper faster. This means that near the beginning of the fall the bomb accelerates faster (i.e., the velocity is increasing at a quicker pace) for smaller values of k. Later in the fall, the velocities for all values of k are nearly constant (the graphs of x(t) appear linear for large values of t), with the greater limiting velocities occurring for smaller values of k. III. FREE FALL WITH FRICITION For the problem with friction drag, we can exact symbolic solution. > restart; Differential equation >ode := m*(diff(y(t), t, t)) = -mg-a*(diff(y(t), t)); 2 2 : ( ) ( ) d d ode m y t -mg a y t dt dt                Symbolic initial condition >ics := y(0) = y[0], (D(y))(0) = v[0]; 0 : (0) 0, ( )(0) ics y D y v    Symbolic ODE solution >sol := dsolve({ics, ode});   2 2 0 0 0 2 2 : ( ) at - m me av mg a y amv m g mgt sol y t a a a         Expression for displacement >fy := eval(y(t), s)   2 2 0 0 0 2 2 : at - m me av mg a y amv m g mgt fy a a a        For the velocity as a function of time, >fv := diff(fy, t)   0 2 : at - m me av mg mg fv a a     Displacement for particular values
  • 5. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 40 | Page >pvals := [m = 150, v[0] = 15, g = 32, y[0] = 5000]; pvals := [m = 150, v[0] = 15, g = 32, y[0] = 5000] >fyp := eval(fy, pvals) 1 2 150 2 2 150 (15 4800) 5000 2250 720000 : at e a 4800t a a fyp a a a         When we compute the limit of fyp for 0 a  ,the non-friction formula results is >limit(fyp, a = 0); 2 16 15 5000 t t    Velocity expression for the particular values >fvp := eval(fv, pvals); 1 150 (15 4800) 4800 : at e a fvp a a     For the non-friction case, the limit of the velocity as a approaches 0 >limit(fv, a = 0); 0 v gt  To draw the displacement and velocity graphs for several values of the friction coefficient a, we use the animate( ) command of the library plots. >animate(plot, [fyp, t = 0 .. 21, y = 0 .. 5100], a = 1 .. 10, gridlines, thickness = 2); Figure 3.The displacement graph for several values of the friction coefficient 1 a  . > animate(plot, [fvp, t = 0 .. 21, v = 15 .. -600, color = blue], a = 1 .. 10, gridlines, thickness = 2);
  • 6. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 41 | Page Figure 4.The velocity graph for several values of the friction coefficient 1 a  . > animate(plot, [fyp, t = 0 .. 25, y = 0 .. 5100], a = 1 .. 10, gridlines, thickness = 2); >animate(plot, [fvp, t = 0 .. 25, v = 15 .. -450, color = blue], a = 1 .. 10, gridlines, thickness = 2); Figure 5. The displacement and velocity graphs for several values of the friction coefficient 10 a  . The limit velocity for each value of the linear friction coefficient a is > vlim := limit(fv, t = infinity); 0 ( ) : at m e av gm gm vlim a a               Assuming the parameter a,g and m are positive, >vlim := `assuming`([limit(fv, t = infinity)], [m > 0, a > 0, g > 0]); : gm vlim a   According to the above example, the limit velocity for a=10 is >vlima := eval(vlim, [m = 150, g = 32, a = 10]); vlima := -480 Figure 6. The limit velocity graph for several values of the friction coefficient 10 a  . For a=10, the displacement and velocity expression are > fypa := eval(fyp, a = 10); > fvpa := eval(fvp, a = 10); 1 - t 15 fypa := -7425e - 480t+12425 1 - t 15 fvpa := 495e - 480 The time to peak is >tp := fsolve(fvpa = 0, t = 0 .. 25); tp := .4615748800 For the maximum height,
  • 7. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 42 | Page >ymax := eval(fypa, t = tp); ymax := 5003.444058 Time to impact and velocity at this moment >timp := fsolve(fypa = 0, t = 0 .. 25); timp := 22.41403423 >vimp := eval(fvpa, t = timp); vimp := -368.9157621 IV. MIXTURE PROBLEM A tank initially holds 40 pounds of salt dissolved in 200 gallons of water. Another brine solution is pumped into the tank at the rate of 5 gallons per minute, and a well-stirred solution simultaneously flows out of the tank atthe same rate. If the concentration of salt in the brine flowing into the tank is 3/5 pounds of salt per gallon of water, find the amount of salt present in the tank at any time t. Let ( ) A t be the amount of salt in the tank at time t minutes. Then, the net rate at which ( ) A t changes is given by dA dt  (rate at which salt is entering)  ( rate at which salt is leaving). The rate at which salt is entering the tank is 5 3 3 5 gallons pounds pounds per minute minute gallons   The rate at which salt is leaving the tank is 5 ( ) ( ) 200 40 gallons A t pounds A t pounds per minute. minute gallons   Thus, the first-order ODEs which describes this system is given by >diffeq := D(A)(t) = 3-(1/40)*A(t); 1 : ( )( ) 3 ( ) 40 diffeq D A t A t    The initial value of ( ) A t is (0) 40 A  , so we should get a unique solution from dsolve. >sol1 := dsolve({diffeq, A(0) = 40}, A(t)); : ( ) 1 - t 40 sol A t 120 - 80e   Now we consider the amount of salt in the tank for every five minutes. In this case we set 0..60 t  for every five minutes. >sol2 := seq(sol1, t = 0 .. 60, 5); 2 : (0) 40, (5) 1 - 8 sol A A 120 - 80e 49.40024779     (10) , (15) 1 3 - - 4 8 A 120 - 80e 57.69593735 A 120 - 80e 65.01685770     (20) , (25) 5 1 - - 8 2 A 120 - 80e 71.47754722 A 120 - 80e 77.17908572     (30) , (35) 3 7 - - 4 8 A 120 - 80e 82.21067578 A 120 - 80e 86.65103842     (40) , (45) 9 - -1 8 A 120 - 80e 90.56964470 A 120 - 80e 94.02780261     (50) , (55) 5 11 - - 4 8 A 120 - 80e 97.07961625 A 120 - 80e 99.77283234     (60) 3 - 2 A 120 - 80e 102.1495872   >plot({120, rhs(sol)}, t = 0 .. 200, 0 .. 140);
  • 8. Applications of Ordinary Differential Equation in Maple DOI: 10.35629/6734-0906023743 www.ijesi.org 43 | Page Figure 7. Amount of salt and time We can make a function from sol and use it to answer any question about the problem. >A :=unapply(rhs(sol), t); : 1 - t 40 A t 120 - 80e   If we want to know the amount of salt in the tank after 1 minute, > A(1.), 'lbs'; 41.97520704, lbs How long does it take the amount of salt in the tank to get to 80 lbs? >solve(A(t) = 80, t); 40 ln(2) >evalf(%), 'minutes'; 27.72588722, minutes. V. CONCLUSION Using trustable technique, namely, the Maple system solved ordinary differential equation with initial conditions. Maple system is a powerful tool that can use to solve mathematical problems from simple to complex. The result of this research gives that we can solve easily real life problems. ACKNOWLEDGEMENTS The author is grateful to the referees and the editor for their valuable comments and suggestions on the manuscript. REFERENCES [1]. D. N. Burghes, M.S. Borrie, Modeling with Differential Equations, John Wiley & Sons, Chichester,1982. [2]. G.Z. Dennis, A First Course in Differential Equations with Modeling Applications, Tenth Edition, Richard Stratton,2013. [3]. C.H. Edwards and D.E Penney, Differential Equations Computing and Modeling, Fourth Edition, Pearson New jersey,2008. [4]. E. Kreyszig, Advange Engineering Mathematics, John Wiley, 1983. Naing Tun, et. al. "Applications of Ordinary Differential Equations in Maple.” International Journal of Engineering Science Invention (IJESI), Vol. 09(06), 2020, PP 37-43. Journal DOI- 10.35629/6734 View publication stats View publication stats