USE OF ORDINARY DIFFERENTIAL EQUATIONS APPLIED TO MECHANICAL AND ELECTRICAL PROBLEMS WITH FIRST ORDER LINEAR
SYSTEMS
MARTHA XIMENA DÁVALOS VILLEGAS A *, JENNY MARGOTH VILLAMARÍN PADILLA B, JANNETH DEL
ROCÍO MOROCHO YAUCÁN C
a Facultad de Ciencias, Escuela Superior Politécnica de Chimborazo (ESPOCH), Riobamba, 060155, Ecuador,
[email protected] https://orcid.org/0000-0001-7865-6307 b Facultad de Administración de Empresas, Escuela Superior Politécnica de Chimborazo (ESPOCH), Riobamba,
060155, Ecuador, [email protected] https://orcid.org/0000-0002-1083-9243 c Facultad de Ciencias, Escuela Superior Politécnica de Chimborazo (ESPOCH), Riobamba, 060155, Ecuador, [email protected] https://orcid.org/0000-0002-7286-9042
Abstract: In recent years there has been an increased interest in the study of mathematics applied to engineering to study aspects of its teaching. In the present research work, a compilation of analytical concepts of differential equations applied to the solution of problems of electrical circuits, a branch of electrical engineering and mechanical engineering problems, specifical problems of spring-mass mechanical systems, through the description of the analytical solutions of direct current electrical circuits and spring-mass mechanical systems, applying differential equations. This method stands out among the diverse mathematical treatments used to solve this type of engineering problem, both for its demonstrative elegance and capacity to offer a total answer. Likewise, practical engineering examples related to the studied subject were presented and the results were obtained and analyzed by using the mathematical software, Wolfram Mathematica.
Keywords: Differential Equations; L-R-C circuits; Mechanical problems; Wolfram Mathematica; Spring-mass systems.
1. INTRODUCTION
Throughout history people in their desire to find options or solutions to facilitate their daily lives have used the tools that the environment where they live has provided them, this implies the feasibility of implementing projects; through which great discoveries have been made achieving the main objective: which is to provide solutions. One of these many projects or findings, is in the area of mathematics, specifically differential equations with which you can model different situations or phenomena that over the years not everyone stopped to study, but those who did, made a deep study of these.
In recent years, mathematics is being applied in a large number of work sectors and its relevance is growing exponentially. Within mathematics, differential equations are a great tool for their countless applications in other disciplines [1,2].
Differential equations began to be studied for the reasons of change, with problems such as How long does it take? Why does it move? How fast does it change? All these questions led many people to carry out various studies. Concluding that the answer to them was differential equations [3-5]. What is a differential equation, what is a differential equation for, how is one applied in the engineering area, and will they be useful at work? Questions like these may arise when you are beginning to study Differential Equations; to answer the first question not only of order but also of importance it can be said that it is defined in general terms, a Differential Equation is an equation that involves the derivatives of a function with the function itself and/or the variables on which it depends [6,7]. In its applications, functions generally represent quantities and the derivatives are the rates of variation of these quantities.
A differential equation is classified according to its type, order, and linearity; by its type, it can be an ordinary differential equation or a partial derivative equation. The order of a differential equation
is governed by the order of the highest order derivative in the equation; according to its linearity, it can be a linear or nonlinear equation. The above is a simple summary of the principles or basic concepts of differential equations, from them, more concepts are derived, and obviously, the most important part of them is how to solve them and their applications, the reason for this study [1,8,9]. The applications that have been mostly studied are the analysis of relationships between quantities and their rates of change, which are frequent in areas such as Physics, Biology, Engineering, or Economics [10-14]. There is a large number of complex real phenomena that can be formulated in terms of differential equations, which allows for predicting their future behaviors, among other things. Therefore, differential equations allowed these sciences to move from being empirical to being descriptive and predictive.
Differential equations are widely used in all branches of engineering to model physical phenomena. They are characterized by having one or more dependent variables related to one or more independent variables [15,16]. They are usually accompanied by initial conditions, such as boundary constraints or derivatives as boundary conditions, which delimit the problem at hand [3]. It must be known if the problem has a solution and also if the solution is unique, to evaluate the answer then traditional procedures are used. There are cases for which it is not possible to find a solution when there are complex geometries, therefore, it is necessary to resort to numerical methods to find the approximate answer. Numerical methods are widely used in the solution of mathematical models, their great diffusion is because they lead to simple algebraic expressions very easy to manipulate with modern computational tools, as is the case of Wolfram Mathematica [7,17], for the development of practical engineering problems.
In engineering, there are a great variety of situations that are modeled with differential equations, for example, applications in solid and fluid mechanics, hydrodynamic problems, mechanical vibrations (spring-mass mechanical systems) [13,18-20], diffusion processes, acoustic behavior of materials, heat transfer, electrical circuits, electromagnetism, and others [12,21,22]. Differential equations are a great mathematical tool to describe real situations or phenomena. Therefore, this research develops the description of the analytical solutions of electric circuits and mechanical spring-mass systems, applying differential equations to the solution of practical problems related to the subject of study with the help of Wolfram mathematical software.
2. DEVELOPMENT
To begin with, we will deal with applications in electrical circuits in the electrical area, based on principles and laws of electricity known as Kirchhoffs Law [10,22]. And likewise in mechanics, in problems of spring-mass systems, since this has to do with physics, which in turn deals with the investigation of the laws governing the behavior of the physical universe. And for the study of physics, Newton's laws are indispensable. 2.1. Analysis of L-R-C circuits
One of the applications of the second-order non-homogeneous linear ordinary differential equations arises in the study of electrical circuits after the application of Kirchhoffs law and Kirchhoffs voltage law. Analyzing the circuit in Figure 1, suppose that I(t) is the current in the L-R-C series electric circuit where L, R, and C represent the inductance, resistance, and capacitance of the circuit, respectively.
Figure 1. L-R-C circuits.
Kirchhoff's Law: The current entering a point in the circuit is equal to the current leaving the point. Kirchhoff's voltage law: The sum of the voltage changes around each loop in the circuit is zero.
Table 1. L-R-C circuit voltage drop analysis
Circuit element
Inductor Resistor Capacitor Voltage source
Voltage drops
dl L —
dt
RI I
QC -V(t)
Table 1 shows the analysis of the voltage drops across the circuit elements, which have been obtained from experimental data where Q is the capacitor charge and dQ/dt = I .
The main objective of this study is to model this physical situation of the L-R-C circuit with an initial value problem so that the current and load in the circuit can be determined. For convenience, the terminology used, and the dimensional analysis used is summarized in Table 2.
Table 2. Terminology and dimensional analysis
Electrical quantities Units
Inductance (L) Henrys (H)
Resistance (R) Ohms (n)
Capacitance (C) Farads (F)
Charge (Q) Coulombs (C)
Current (/) Amperes (A)
Applying Kirchhoff's law: the sum of the voltage drops across the circuit elements is equivalent to the voltage across the L-R-C series circuit in Figure 1, the physical principle necessary to derive the differential equation that models this circuit can be obtained and therefore, the following differential equation is obtained.
L~r + RI + = E(t) (1)
dt C
From the analysis of Table 1, the capacitor charge is shown and using this concept dQ/dt = I, can also be obtained d2Q/dt2 = dl/dt. Replacing these definitions in Equation 1, this equation becomes:
dQ2 ndl 1 dt2 dt C
This differential equation can be solved by the method of undetermined coefficients or the method of parameter variation. Therefore, if the initial load and current are Q(0) = Q0 and 1(0) = Q'(0) = I0, then we must solve the initial-value problem for the charge Q(t).
dQ2 ndI 1 dt dt C
L^f- + R — +—Q = E (t ) (2)
+ R— + -Q = E(t) (3)
Q(0) = Q0, I(0) = ^ (0) = I0 dt
This solution can then be differentiated to find the current l(t). 2.2. Analysis of spring-mass mechanical systems
Consider a spring of length l0 suspended vertically from a rigid support. If we hang a mass m from it, the spring will elongate by an amount, called elongation, which we denote by Ml (see Figure 2).
Figure 2. Representation of a spring-mass mechanical system The displacement of a mass attached to the end of a spring can be modeled with a second-order linear differential equation with constant coefficients. Similarly, this situation can also be expressed as a system of first-order ordinary differential equations.
A spring has a natural length l0. When a mass is attached to the spring, it is stretched s units past its natural length to the equilibrium position x = 0. When the system is put into motion, the displacement from x = 0 at time t is given by x(t).
Figure 3. Forces acting on the spring-mass system By Newton's second law of motion, F = ma = md2x/dt2, where m represents mass and a = g represents acceleration (see Figure 3). If we assume that there are no other forces acting on the mass, then we determine the differential equation that models this situation in the following way:
= ^ ( forces acting on the system)
d2 x
~dF
d2 x "dt2
m
m-
m-
= -k (s + x) + mg
= -ks - kx + mg
(4)
At equilibrium ks = mg, so after simplification, we obtain the differential equation:
d 2x
d2x m —- = -ks
or m-
- + ks = 0
(5)
dt2 dt2
The two initial conditions that are used with this problem are the initial displacement x(0) = a and initial velocity dx/dt (0) = p. Hence, the function x(t) that describes the displacement of the mass with respect to the equilibrium position is found by solving the initial-value problem:
d x , _ m—- + ks = 0, dt
ai (6)
dx
x(0) = a, d- (0) = p dt
The differential equation in initial-value problem (6) disregards all retarding forces acting on the motion of the mass.
Analyzing that if there is no external forcing function, the system is called Simple Harmonic Motion and the second order differential equation that models this situation is:
d2x dx ,
m—- + c — + kx = 0 (7)
dt2 dt
where m is the mass attached to the end of the spring, c is the damping coefficient and k is the spring constant found with Hooke's law. According to Hooke's law, the spring exerts a restoring force in the upward direction that is proportional to the displacement of the spring [19,20]. Hooke's law: F = ks, where k> 0 is the constant of proportionality or spring constant and s is the displacement of the spring.
k
The Equation 7 is transformed into a system of equations by letting x' = y so that y' = x" = ~—x -^x' and then solving the differential equation for x". After substitution, we have the system:
dx
dt (8) dy k c
— =--x--y
dt m m
3. APPLICATIONS
For the illustration of the applications of the differential equations of the physical engineering models studied in this research, they were taken from the text Introductory Differential Equations by Abell & Braselton [3,4].
3.1. Two-loop L-R-C circuit exercise
Find Q(t), I(t), li(t) and I2(t) in the L-R-C circuit with two loops (see Figure 4) given that R1 = R2 = 1ft, C = 1F, L = 1H and V(t) = e-t V if Q(0) = 3C and I2(0) = 1A.
Figure 4. L-R-C circuit with two loops
the current through the capacitor is equivalent to It-I2. Summing the voltage drops loop, we have:
Solution: In this case, around each
M +1Q - V (t ) = 0,
L^ + R12 -1Q = 0 dt C
(9)
Solving the first equation for I1 we find that I1 = — V(t) — — Q and using the relationship dQ/dt = I = I1 — I2 we have the following system:
dQ dt
1 Q -12 + "1" V(t),
RC
R
(10)
dt LCQ L 2
Replacing the problem data in Equation 10, the inhomogeneous system that models this circuit is:
dQ „ -t — = -Q - h + e t, dt 2
^ = Q -12 d^ 2
Given the initial conditions Q(0) = 1 and I2 (0) = 3, which the problem poses as data and using the method of variation of parameters to solve the problem, therefore, in matrix form this system is:
A dQ/dt A
-1 -iY Q 1
1 -1
V12 J
V 0 J
dl21 dt
The eigenvalues of the corresponding homogeneous system are A12 = —1±i , and an eigenvector
corresponding to Xi is VY =
n 1 ( 01
V1J
V1J
( 11 v 0 J
Two linearly independent solutions of the corresponding homogeneous system are:
i
X1(t ) =
*(t ) = and *2(t ) =
*2(t ) =
Q(t )
A
i
V12 (t ) J
-e- sin t v e -t cos t j
= e cos t
01
V1J
- e sin t
( 11 V 0 J
Q(t )
V12 (t) J
f -t e cos t
V e -t sin t j
= e cos t
\
( 11 V 0 J
f
- e sin t
01
V1J
so a fundamental matrix is:
O(t ) =
^-e ' sin t e t cos t^
V e * cos t e * sin t j
and its transposition:
O- 1(t ) = Therefore,
^-e* sin t et cos t^
V el cos t el sin t j
<
x(t ) = O(t )O-1 (0)x(0) + O(t) £ O-1 (u) F (u)du
x(t ) =
X(t ) =
X(t ) =
f-e' sin t et cos tY0 1Y1 ^ f-e t sin t el cos t
-t + -t • , e cos t e sin t
V1
V 3 y
+
-t -t e cos t e sin
t H
t f -e sin u e cos u
( „-u \
e cos u e sin u
V 0 y
du
C-e t sin t e t cos
t Y3 ^ f-et sin t et cos t ^
-t -t
V e cos t e sin t y
V1 y
rt f - sin u
x
V et cos t et sin t J J0 V cos u )
du
Ce t cos t- 3e t sin t ^ f -e t sin t e t cos t^
V 3e cos t + e sin t y
1
X(t ) =
x(t ) =
e cos t - 3e sin t
\
+
V 3e cos t + e sin t y C e~t cos t - 2 e~t sin t
2 e t cos t + e t + e t sin t
V e t cos t e t sin t y
e-t sin t
Ve t -e t costy
cos t -1 sin t y
This would be the result, because:
—Q = I and dt
Q(t) = e- cos t - 2 e- sin t which, differentiation yields: I(t) = -3e- cos t + e-t sin t Also, because: I,(t ) = I (t ) +12 (t ),
I (t) = -e-t cos t + 2e- sin t + e-t Wolfram Mathematica solution with DSolve:
The Wolfram programming code for the solution of the problems posed in this section is attached as supplementary material.
Similarly, the graphical solution is presented using Wolfram.
V
3.2. Exercise on a mechanical spring-mass system with Simple Harmonic Motion
Solve the system of differential equations to find the displacement of the mass if m = 1, c = 0, and k = 1.
Solution: In this case, the system is:
dx dy
— = y, — = - x dt dt
The eigenvalues are solutions of: 1
-1 -2
= 22 +1 = 0 so :
21,2 =± i
An eigenvector corresponding to 2 is:
K =
'11
vi J
(1 1 v 0 J
01
v1J
so two linearly independent solutions are:
X,(t) =
X\ (t) = *2(t) = *2(t) =
(11 (01
v 0 J cos t - v 1 J sin t
( cost 1 and
v-sin t J
( 01 (11
v1J cos t - v 0 J sin t
( sin t ^
vcostJ
*(t) =
x(t) =
= C1^(t) + C2^2(t)
A general solution is:
^x(t) 1
v y(t) J
cos t + C sin t^ C cos t - c sin t J
Wolfram Mathematica solution with DSolve:
res = DSolve[{D[x[t], t] ==y[t], D[y[t], t] ==-x[t], x[0] ==x0, y[0] y®} , {x[t], y[t]}, t]
Out[ ]= {{x[ t] X0 Cos [ t ] +y0Sin[t], y[t] -> y0 Cos [ t] - X0 Sin[t] } }
4. CONCLUSIONS
The use of differential equations in the modeling of mechanical systems and electrical circuits facilitates their resolution, both manually and with the help of mathematical software, such as Wolfram, which was used to compare the solutions.
Wolfram mathematical software is a powerful tool for solving differential equations, which helped to validate the results of the problems posed. It also makes it easier to obtain a graphical illustration of the solution to the problems, which can often be very complex to graph a solution to a differential equation.
Finally, it is concluded that differential equations have had an influence on many areas of life. In addition, they have served, serve and will serve as long as there are problems that can be solved with them. Differential equations are then the fruit of a long process of study, so learning them, understanding them and applying them is to put the result of that study to good use.
REFERENCES
[ 1] D. Li, J. Wen, J. Zhang, Recent advances in numerical methods and analysis for nonlinear differential equations, Int. J. Differ. Equations. 2019 (2019). https://doi.org/10.1155/2019/3243510.
[2] H. Chaachoua, A. Saglam, Modelling by differential equations, Teach. Math. Its Appl. Int. J. IMA. 25 (2006) 15-22.
[3] M.L. Abell, J.P. Braselton, Applications of higher-order differential equations, in: Differ. Equations with Math., Elsevier, 2023: pp. 221-282. https://doi.org/10.1016/b978-0-12-824160-8.00010-3.
[4] M.L. Abell, J.P. Braselton, Applications of systems of ordinary differential equations, in: Differ. Equations with Math., Elsevier, 2023: pp. 385-421. https://doi.org/10.1016/b978-0-12-824160-8.00012-7.
[5] J.R. Hass, M.D. Weir, G.B. Thomas, University Calculus: Alternate Edition, CourseSmart eTextbook, (2008) 19. http://math.hawaii.edu/~jamal/tuc01alt_desupps.pdf.
[6] Y. V. Bebikhov, A.S. Semenov, I.A. Yakushev, N.N. Kugusheva, S.N. Pavlova, M.A. Glazun, The application of mathematical simulation for solution of linear algebraic and ordinary differential equations in electrical engineering, IOP Conf. Ser. Mater. Sci. Eng. 643 (2019). https://doi.org/10.1088/1757-899X/643/1/012067.
[7] R.M. May, Simple mathematical models with very complicated dynamics, in: The Theory of Chaotic Attractors, Springer, 2004: pp. 85-93.
[8] U. Goktas, D. Kapadia, Methods in mathematica for solving ordinary differential equations, Math. Comput. Appl. 16 (2011) 784-796. https://doi.org/10.3390/mca16040784.
[9] S.R. Moosavi Noori, N. Taghizadeh, Study of Convergence of Reduced Differential Transform Method for Different Classes of Differential Equations, Int. J. Differ. Equations. 2021 (2021). https: / /doi.org/10.1155/2021 /6696414.
[ 10] J. S. Hwang, Frechet Differentiability for a Damped Kirchhoff-Type Equation and Its Application to Bilinear Minimax Optimal Control Problems, Int. J. Differ. Equations. 2019 (2019). https://doi.org/10.1155/2019/3238462.
[11] A. Arafa, G. Elmahdy, Application of residual power series method to fractional coupled physical equations arising in fluids flow, Int. J. Differ. Equations. 2018 (2018). https://doi.org/10.1155/2018/7692849.
[ 12] V. Gill, K. Modi, Y. Singh, Analytic solutions of fractional differential equation associated with RLC electrical circuit, J. Stat. Manag. Syst. 21 (2018) 575-582.
[ 13] M. Pellicer, J. Sola-Morales, Analysis of a viscoelastic spring-mass model, J. Math. Anal. Appl. 294 (2004) 687-698.
[14] S. Momani, Z.M. Odibat, Fractional green function for linear time-fractional inhomogeneous partial differential equations in fluid mechanics, J. Appl. Math. Comput. 24 (2007) 167-178.
[15] T.M. Atanackovic, B. Stankovic, On a numerical scheme for solving differential equations of fractional order, Mech. Res. Commun. 35 (2008) 429-438.
[ 16] M.A. Helal, Soliton solution of some nonlinear partial differential equations and its applications in fluid mechanics, Chaos, Solitons & Fractals. 13 (2002) 1917-1929.
[ 17] K. Nakkeeran, Mathematical description of differential equation solving electrical circuits, J. Circuits, Syst. Comput. 18 (2009) 985-991.
[18] R. Blickhan, The spring-mass model for running and hopping, J. Biomech. 22 (1989) 1217-1227.
[19] R. Weinstock, Spring-mass correction in uniform circular motion, Am. J. Phys. 32 (1964) 370-376.
[20] R. Champion, W.L. Champion, The extension and oscillation of a non-Hooke's law spring, Eur. J. Mech. 26 (2007) 286-297.
[21] G. Kron, Electric circuit models of partial differential equations, Electr. Eng. 67 (1948) 672-684.
[22] H. Yoon, B.D. Youn, H.S. Kim, Kirchhoff plate theory-based electromechanically-coupled analytical model considering inertia and stiffness effects of a surface-bonded piezoelectric patch, Smart Mater. Struct. 25 (2016) 25017.