# Circuit Modelling by Difference Equation: Pedagogical Advantages and Perspectives

Circuit Modelling by Difference Equation: Pedagogical Advantages and Perspectives

Department of Electrical Engineering, Marvdasht Branch, Islamic Azad University, Marvdasht, Iran

Power Systems, Electronics and Control Research Laboratory, UWE Bristol BS16 1QY, UK

Corresponding Author Email:
Page:
26-30
|
DOI:
https://doi.org/10.18280/mmep.070104
13 October 2019
|
Revised:
20 January 2020
|
Accepted:
26 January 2020
|
Available online:
31 March 2020
| Citation

OPEN ACCESS

Abstract:

Circuit theory is a cornerstone course in electrical engineering and control majors in ordinary universities and colleges throughout the world. This course covers fundamental principles and analysis methods of basic circuits commonly employed in the forthcoming courses. In most electrical programs after the introduction of basic elements of Ohm’s and Kirchhoff’s current and voltage laws, the dynamic response of the circuits containing capacitors and inductors will be studied. Customarily to solve these circuits, advanced mathematical approaches such as differential equations are used. Under such circumstances, the students are faced with two challenges, solving the differential equations, and understanding the dynamic response of circuits. In order to improve students’ understanding, an analysis tool with less mathematical prerequisites should be used for the solutions before embarking on the use of conventional differential equation techniques such as Laplace transform. Hence, we propose a novel approach for these circuit analyses through the application of a discretized version of differential equations which is used in discrete control systems. Although this approach has a well-established background, its exploration uses in the circuit theory course as yet has not been reported. The novelty of the proposed approach not only lies in its intuitive simplicity but also in its contribution to the understanding and visualization of students in the real-time response of linear and non-linear circuits to any desirable input without any mathematical burden. The analysis can be performed by hand or this is also helpful for those who prefer modern education aided by computers. This, in turn, may attract more students to the program. In this paper, the effectiveness of the proposed approach is demonstrated through a set of illustrative examples.

Keywords:

circuit, modelling, difference equation, dynamic response, non-linear circuits

1. Introduction

According to the U.S. Bureau of Labor Statistics, Employment Projections program, the employment of electrical engineers is projected to grow 7 percent from 2016 to 2026 [1]. Taking any step towards improvement of the content and teaching style of the fundamental courses in electrical engineering programs will enhance the scientific background of these new generation of engineers. Without doubt, circuit theory is one of the most important and fundamental courses in the electrical engineering curriculum throughout the world [2, 3]. Rather than electrical engineering major, learning and research in a few other majors such as automation, and computer science is based on circuit theory [4]. Specifically, in electrical engineering, the knowledge acquired in this course is a prerequisite for most of the advanced courses such as electronics, power system analysis, and electrical machines. Given this introduction about the importance of circuit analysis course, many researches have been devoted to the success of the students in this course [5]. These approaches include, but not limited to, improving teaching style [6, 7], text book selection [8], and improving teaching materials [9]. Despite of these researches, further steps need to be taken to fulfill the gaps in the content of this important course. This paper intends to address this important issue by proposing incorporation of circuit analysis through difference equation in the content of circuit analysis course.

In circuit theory course, after the introduction of R, L, C combination, ohm’s law, and Thevenin’s theorem, the students are familiarized with the analysis of first and second order transient response of a circuit [10]. In this regard, the basic definitions, concepts, theorems, and tools for analysis of a circuit are instructed. To this purpose, acquiring fundamental knowledge of physics, including the basics of electricity and magnetism, and mathematics, including knowledge of solving algebraic and differential equations, are the prerequisite for this course. Most of the students who participate in this course have knowledge of basic algebraic equations from high school. However, the students usually become familiar with differential equations through university courses. Having the knowledge to solve differential equations is necessary in some parts of the circuit theory course such as analysis of RLC circuits. According to the information gathered from Iranian and some European instructors, in spite of having a background in differential equations, most students who take a circuit theory course do not have sufficient mastery in solving these equations. Under such cases, instructing dynamic analysis of the circuits faces some challenges. Due to the lack of essential mastery on differential equation solution methods, the students are not able to fully focus on the analysis of such circuits. This in turn may lead to decreased motivation and attraction to this course. To overcome these challenges, regardless of the students’ competence to solve differential equations, a soft start topic with less mathematical requirements needs to be introduced as an extension to this course before embarking on solving directly the differential equation. With this aim, we propose to initially familiarize students with the conversion method of differential equations to difference equations by a discretization process. Thereafter, to analyze the obtained difference equations either by hand or by writing simple codes. In general, the proposed has a number of benefits including increased appeal of circuit theory to students’ and provision of more time for students to focus on the concept and engineering analysis of the circuit without facing mathematical challenges at the beginning of the course. This enhances their competence in the solution of differential equations, understanding real-time response of an electrical circuit to any desirable input, and finally enabling them to produce simple codes to understand non-linear circuits without any mathematical burden. Although the modeling and analysis of dynamic systems through difference equations has a very established background, from an educational perspective the proposed approach is novel. To date no report can be found in published educational literature where differential equations represent the circuit model transformed into the difference equations in circuit theory course.

The remainder of the paper is organized as follows; section II discusses in brief the review on difference equations. A set of illustrative examples are solved in section III where also the advantages of the proposed approach is demonstrated. Section IV concludes the paper.

2. The Proposed Modelling Approach

2.1 Difference equation

In simple words, a mathematical equation with a function and its related derivatives is called a “differential equation”. A differential equation is usually used to model continuous dynamic systems. In contrary, difference equation consists of the differences between successive values of a function of a discrete variable. Two well-known mathematical transforms, Laplace and z-transform, are used to find the close-form solution for differential and difference equations, respectively. Solving a differential equation yields the analog signal, while solving difference equations yields digital signals. Difference equations are used to model discrete dynamic control systems or to approximate continuous dynamic systems. Approximation of differential equations by difference equations is useful for cases in which a close-form solution is not possible to be obtained for differential equations. For an instant, consider a dynamic system that is presented with the following mathematical model: $y^{\prime}(t)+y(t)=\sin (t) .$ From the definition of the derivative, we have $y^{\prime}(t) \cong \frac{y(t+\Delta t)-y(t)}{\Delta t}$ where $\Delta t$ should be chosen as small as possible. By defining $t=k \Delta t$ in which $k=0,1,2, \ldots,$ we have $y(t)=y(k)$ $y^{\prime}(t) \cong \frac{y(k+1)-y(k)}{\Delta t},$ and $\sin (t)=\sin (k) .$ The equivalent difference equation would be $\frac{y(k+1)-y(k)}{\Delta t}+y(k)=$ $\sin (k), k=0,1,2, \ldots .$ The smaller value for $\Delta t$ results in a more precise approximation. This approximation can be employed for both linear and non-linear differential equations. Given the initial condition, the resultant difference equation can be implemented through a computer code. This approach for solving differential equations becomes important, especially when we face non-linearity. This approach has been used extensively for solving engineering problems. For example, to design an optimal control method by means of a dynamic programming approach, the differential equations need to be approximated by difference equations [11]. An application for computer control of practical continuous-time processes is proposed by Yang and Ding [12]. Dynamic behaviors of nonlinear models arising in ocean engineering are treated through a similar way [13]. As shown in these papers [5, 6] in the engineering practice approximation by difference equation is used for solving non-linear and complicated systems. However, as stated in the introduction, from an educational perspective, not only for the analysis of nonlinear circuits, but also for linear circuits, establishing an additional course based on difference equation has some merits.

2.2 Step-by-step procedure

The proposed procedure of the educational course is as follows:

i) Instruction of modeling dynamic circuits: At this step by using KVL and KCL laws, the set of differential equations is derived.

ii) Instruction of discretization: The obtained differential equations from the previous step is discretized in the following form:

$\theta(k+1)=A \theta(k)+B u(k) \quad k=0,1, \ldots, N$    (1)

where, θ is the state vector that could be voltage or current and u is the input of the circuit. It is noticed that θ are n×1 vector in which n is the order of the circuit.

iii) Instruction of what happens to the instantaneous voltages and currents which have been discretized and shown as the state vector (θ). With this aim, the following pseudocode could be used to solve the recursive equation of (1).

 Begin Input A, B, θ(0) Do Repeat k=0:N θ(k+1)=Aθ(k)+Bu(k) End

iv) Asking the students to develop codes for some of the relevant exercises to obtain a better level of understanding.

3. The Illustrative Examples

In this section, we will provide three simple educational examples to show the advantages of the proposed approach.

3.1 Linear-time invariant circuit

The schematic of RL circuit is shown in Figure 1.

## 1.jpg

Figure 1. A simple RL circuit

Following the step-by-step procedure of II-B, the dynamic equation for this circuit is formed by Kirchhoff’s voltage law (KVL):

$R i(t)+L \frac{d i(t)}{d t}=V(t)$    (2)

The differential equation is transformed to a difference equation. Dividing the time interval $[0, t]$ into $N$ increments of $\Delta t,$ yields $t=k \Delta t,$ in which $k=0,1, \ldots, N .$ The resultant difference equation becomes:

$R i(k)+L \frac{i(k+1)-i(k)}{\Delta t}=V(k)$

(k=0,1,…,N)    (3)

The re-arrangement of (3) is:

$i(k+1)=\left(1-\frac{R \Delta t}{L}\right) i(k)+\frac{\Delta t}{L} V(k)$    (4)

## 5.jpg

Figure 5. Current of the inductor in RLC circuit

## 6.jpg

Figure 6. State trajectory of RLC circuit

4. Conclusion

In this paper, we proposed circuit analysis through difference equations which is frequently used in discrete control approaches. The novelty and effectiveness of the proposed approach have been demonstrated. The approach is simple and complementary for the teaching of a typical circuit analysis course before embarking on the use of differential equation approach. Furthermore, the proposed approach has a number of benefits including increased student attraction to circuit theory and provision of more time for students to focus on the concept and engineering analysis of circuits without facing mathematical challenges at the earlier stage of the course. This will enhance their competence in the solution of differential equations, their understanding of real-time response of an electrical circuit to any desirable input, and will enable them to produce simple codes to understand linear and non-linear circuits without any mathematical burden such as Laplace Transform. Also, the approach could be applied to any circuit with any order. Moreover, as shown in the developed codes, the used commands are very basic and simple and a student who has passed a basic programming course will be able to write such codes by any programming package without the need for in-depth mathematical knowledge. The developed educational course could be applied in other engineering disciplines for which the dynamics of the systems need to be instructed. For instance, vibration theory course in mechanical engineering, and introduction to heat transfer course in chemical engineering.

References

[1] Bureau of Labor Statistics, U.S. Department of Labor. (2020). Occupational Outlook Handbook, Electrical and Electronics Engineers. https://www.bls.gov/ooh/architecture-and-engineering/electrical-and-electronics-engineers.htm, accessed on October 12, 2019.

[2] Kirk, D.E. (2004). Optimal Control Theory: An Introduction. Courier Corporation.

[3] Desoer, C.A. (2010). Basic Circuit Theory. Tata McGraw-Hill Education.

[4] Xu, J.Q., Li, K.N., Liang, Q.F. (2018). Practice and research on the reform of teaching methods in circuit course. In 2018 International Seminar on Education Research and Social Science (ISERSS 2018), Atlantis Press. https://doi.org/10.2991/iserss-18.2018.38

[5] Parent, D.W. (2018). Examination the impact of various factors on student success in an introduction to circuit analysis course. In 2018 IEEE Frontiers in Education Conference (FIE), San Jose, CA, USA, pp. 1-5. https://doi.org/10.1109/FIE.2018.8659259

[6] Hoic-Bozic, N., Mornar, V., Boticki, I. (2008). A blended learning approach to course design and implementation. IEEE Transactions on Education, 52(1): 19-30.

[7] Liu, Z., Zhao, W.Y., Xie, H., Zhong, H.S., Cui, H.L. (2018). Research of a multi-element teaching method in retaking course of circuit analysis. Journal of Electrical & Electronic Education, 2: 31.

[8] Sangam, D., Jesiek, B K. (2014). Conceptual gaps in circuits textbooks: A comparative study. IEEE Transactions on Education, 58(3): 194-202. https://doi.org/10.1109/TE.2014.2358575

[9] Johnson, A.M., Butcher, K.R., Ozogul, G., Reisslein, M. (2013). Introductory circuit analysis learning from abstract and contextualized circuit representations: Effects of diagram labels. IEEE Transactions on Education, 57(3): 160-168. https://doi.org/10.1109/TE.2013.2284258

[10] Parent, D.W. (2017). Novel gateway stay/add policy used to increase student success rates in an introductory circuits class. In 2017 IEEE Frontiers in Education Conference (FIE), Indianapolis, IN, USA, pp. 1-8. https://doi.org/10.1109/FIE.2017.8190600

[11] Ge, Y., Li, S., Chang, P. (2018). An approximate dynamic programming method for the optimal control of Alkai-Surfactant-Polymer flooding. Journal of Process Control, 64: 15-26. https://doi.org/10.1016/j.jprocont.2018.01.010

[12] Yang, D., Ding, R. (2014). Transforms from differential equations to difference equations and vice-versa applied to computer control systems. Applied Mathematics Letters, 31: 18-24. https://doi.org/10.1016/j.aml.2013.12.011

[13] Sulaiman, T., Bulut, H., Yokus, A., Baskonus, H. (2019). On the exact and numerical solutions to the coupled Boussinesq equation arising in ocean engineering. Indian Journal of Physics, 93(5): 647-656. https://doi.org/10.1007/s12648-018-1322-1