Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
171 views

Circuit Analysis II Using MATLAB Simulation

Uploaded by

Ganti Kamesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

Circuit Analysis II Using MATLAB Simulation

Uploaded by

Ganti Kamesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 678

Circuit Analysis II

with MATLAB Computing and


Simulink/SimPowerSystems Modeling
Steven T. Karris
Orchard Publications
www.orchardpublications.com
Circuit Analysis II
with MATLAB Computing and
Simulink / SimPowerSystems
Modeling
Steven T. Karris
Orchard Publications, Fremont, California
www.orchardpublications.com
Circuit Analysis II with MATLAB Computing and Simulink / SimPowerSystems Modeling
Copyright 2009 Orchard Publications. All rights reserved. Printed in USA. No part of this publication may be
reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior
written permission of the publisher.
Direct all inquiries to Orchard Publications, 39510 Paseo Padre Parkway, Fremont, California 94538, U.S.A.
URL: http://www.orchardpublications.com
Product and corporate names are trademarks or registered trademarks of the MathWorks, Inc., and Microsoft
Corporation. They are used only for identification and explanation, without intent to infringe.
Library of Congress Cataloging-in-Publication Data
Library of Congress Control Number: 2009930247
ISBN10: 1934404201
ISBN13: 9781934404209
TX 5745064
Disclaimer
The author has made every effort to make this text as complete and accurate as possible, but no warranty is implied.
The author and publisher shall have neither liability nor responsibility to any person or entity with respect to any loss
or damages arising from the information contained in this text.
This book was created electronically using Adobe Framemaker.
Preface
This text is written for use in a second course in circuit analysis. It encompasses a spectrum of
subjects ranging from the most abstract to the most practical, and the material can be covered in
one semester or two quarters.The reader of this book should have the traditional undergraduate
knowledge of an introductory circuit analysis material such as Circuit Analysis I with
MATLABComputing and Simulink/ SimPowerSystemsModeling, ISBN 978-1-934404-17-1.
Another prerequisite would be a basic knowledge of differential equations, and in most cases,
engineering students at this level have taken all required mathematics courses. Appendix H serves
as a review of differential equations with emphasis on engineering related topics and it is
recommended for readers who may need a review of this subject.
There are several textbooks on the subject that have been used for years. The material of this
book is not new, and this author claims no originality of its content. This book was written to fit
the needs of the average student. Moreover, it is not restricted to computer oriented circuit
analysis. While it is true that there is a great demand for electrical and computer engineers,
especially in the internet field, the demand also exists for power engineers to work in electric
utility companies, and facility engineers to work in the industrial areas.
Chapter 1 is an introduction to second order circuits and it is essentially a sequel to first order
circuits discussed in the last chapter of Circuit Analysis I with MATLABComputing and
Simulink/ SimPowerSystemsModeling, ISBN 978-1-934404-17-1. Chapter 2 is devoted to
resonance, and Chapter 3 presents practical methods of expressing signals in terms of the
elementary functions, i.e., unit step, unit ramp, and unit impulse functions. Accordingly, any
signal can be represented in the complex frequency domain using the Laplace transformation.
Chapters 4 and 5 are introductions to the unilateral Laplace transform and Inverse Laplace
transform respectively, while Chapter 6 presents several examples of analyzing electric circuits
using Laplace transformation methods. Chapter 7 is an introduction to state space and state
equations. Chapter 8 begins with the frequency response concept and Bode magnitude and
frequency plots. Chapter 9 is devoted to transformers with an introduction to self and mutual
inductances. Chapter 10 is an introduction to one- and two-terminal devices and presents several
practical examples. Chapters 11 and 12 are introductions to three-phase circuits.
It is not necessary that the reader has previous knowledge of MATLAB. The material of this
text can be learned without MATLAB. However, this author highly recommends that the reader
studies this material in conjunction with the inexpensive MATLAB Student Version package that
is available at most college and university bookstores. Appendix A of this text provides a practical
introduction to MATLAB, Appendix B is an introduction to Simulink, and Appendix C
introduces SimPowerSystems. The pages where MATLAB scripts, Simulink / SimPowerSystems
models appear are indicated in the Table of Contents.
The author highly recommends that the reader studies this material in conjunction with the
inexpensive Student Versions of The MathWorks Inc., the developers of these outstanding
products, available from:
The MathWorks, Inc.
3 Apple Hill Drive
Natick, MA, 01760
Phone: 508-647-7000,
www.mathworks.com
info@mathworks.com.
Appendix D is a review of complex numbers, Appendix E is an introduction to matrices,
Appendix F discusses scaling methods, Appendix G introduces the per unit system used
extensively in power systems and in SimPwerSystems examples and demos. As stated above,
Appendix H is a review of differential equations. Appendix I provides instructions for
constructing semilog templates to be used with Bode plots.
In addition to numerous examples, this text contains several exercises at the end of each
chapter. Detailed solutions of all exercises are provided at the end of each chapter. The
rationale is to encourage the reader to solve all exercises and check his effort for correct
solutions and appropriate steps in obtaining the correct solution. And since this text was
written to serve as a self-study or supplementary textbook, it provides the reader with a
resource to test his knowledge.
The author is indebted to several readers who have brought some errors to our attention.
Additional feedback with other errors, advice, and comments will be most welcomed and
greatly appreciated.
Orchard Publications
39510 Paseo Padre Parkway
Suite 315
Fremont, California 94538
www.orchardpublications.com
info@orchardpublications.com
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling i
Copyright Orchard Publications
Table of Contents
1 Second Order Circuits 1-1
1.1 Response of a Second Order Circuit ....................................................................1-1
1.2 Series RLC Circuit with DC Excitation ...............................................................1-2
1.2.1 Response of Series RLC Circuits with DC Excitation...............................1-3
1.2.2 Response of Series RLC Circuits with AC Excitation.............................1-11
1.3 Parallel RLC Circuit ...........................................................................................1-15
1.3.1 Response of Parallel RLC Circuits with DC Excitation..........................1-17
1.3.2 Response of Parallel RLC Circuits with AC Excitation..........................1-26
1.4 Other Second Order Circuits .............................................................................1-30
1.5 Summary .............................................................................................................1-36
1.6 Exercises..............................................................................................................1-38
1.7 Solutions to End-of-Chapter Exercises .............................................................1-40
MATLAB Computing: Pages 1-6, 1-7, 1-9, 1-13, 1-19, 1-21 through 1-23,
1-25, 1-26, 1-28, 1-29, 1-32 through 1-34, 1-42,
1-44, 1-45
Simulink/SimPowerSystems Models: Pages 1-10, 1-14, 1-29, 1-53
2 Resonance 2-1
2.1 Series Resonance.................................................................................................. 2-1
2.2 Quality Factor Q
0s
in Series Resonance .............................................................. 2-4
2.3 Parallel Resonance ............................................................................................... 2-6
2.4 Quality Factor Q
0P
in Parallel Resonance........................................................... 2-9
2.5 General Definition of Q....................................................................................... 2-9
2.6 Energy in L and C at Resonance........................................................................ 2-10
2.7 Half-Power Frequencies - Bandwidth ............................................................... 2-11
2.8 A Practical Parallel Resonant Circuit................................................................ 2-16
2.9 Radio and Television Receivers......................................................................... 2-18
2.10 Summary ............................................................................................................ 2-21
2.11 Exercises ............................................................................................................. 2-23
2.12 Solutions to End-of-Chapter Exercises............................................................. 2-25
MATLAB Computing: Pages 2-5, 2-6, 2-25, 2-27, 2-30, 2-31
Simulink / SimPowerSystems models: Pages 2-15, 2-16
3 Elementary Signals 3-1
3.1 Signals Described in Math Form...........................................................................3-1

ii Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
3.2 The Unit Step Function........................................................................................ 3-2
3.3 The Unit Ramp Function ..................................................................................... 3-9
3.4 The Delta Function ............................................................................................ 3-11
3.4.1 The Sampling Property of the Delta Function.......................................... 3-11
3.4.2 The Sifting Property of the Delta Function .............................................. 3-12
3.5 Higher Order Delta Functions............................................................................ 3-13
3.6 Summary ............................................................................................................. 3-19
3.7 Exercises .............................................................................................................. 3-20
3.8 Solutions to End-of-Chapter Exercises.............................................................. 3-21
Simulink model: Pages 3-17, 3-18
4 The Laplace Transformation 4-1
4.1 Definition of the Laplace Transformation.............................................................. 4-1
4.2 Properties and Theorems of the Laplace Transform............................................... 4-2
4.2.1 Linearity Property........................................................................................ 4-2
4.2.2 Time Shifting Property................................................................................. 4-3
4.2.3 Frequency Shifting Property........................................................................ 4-3
4.2.4 Scaling Property........................................................................................... 4-4
4.2.5 Differentiation in Time Domain Property .................................................. 4-4
4.2.6 Differentiation in Complex Frequency Domain Property........................... 4-5
4.2.7 Integration in Time Domain Property ........................................................ 4-6
4.2.8 Integration in Complex Frequency Domain Property ................................ 4-7
4.2.9 Time Periodicity Property ........................................................................... 4-8
4.2.10 Initial Value Theorem................................................................................. 4-9
4.2.11 Final Value Theorem ................................................................................ 4-10
4.2.12 Convolution in Time Domain Property.................................................... 4-11
4.2.13 Convolution in Complex Frequency Domain Property ............................ 4-11
4.3 Laplace Transform of Common Functions of Time.............................................. 4-12
4.3.1 Laplace Transform of the Unit Step Function ................................. 4-12
4.3.2 Laplace Transform of the Ramp Function ....................................... 4-12
4.3.3 Laplace Transform of .................................................................... 4-14
4.3.4 Laplace Transform of the Delta Function ......................................... 4-17
4.3.5 Laplace Transform of the Delayed Delta Function ...................... 4-17
4.3.6 Laplace Transform of .................................................................. 4-18
4.3.7 Laplace Transform of ............................................................... 4-18
4.3.8 Laplace Transform of ................................................................. 4-19
4.3.9 Laplace Transform of ................................................................ 4-19
4.3.10 Laplace Transform of ......................................................... 4-20
4.3.11 Laplace Transform of ........................................................ 4-20
4.4 Laplace Transform of Common Waveforms......................................................... 4-21
u
0
t ( )
u
1
t ( )
t
n
u
0
t ( )
o t ( )
o t a ( )
e
at
u
0
t ( )
t
n
e
at
u
0
t ( )
ct u
0
t sin
c cos t u
0
t
e
at
ct u
0
sin t ( )
e
at
c cos t u
0
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling iii
Copyright Orchard Publications
4.4.1 Laplace Transform of a Pulse.......................................................................4-22
4.4.2 Laplace Transform of a Linear Segment ......................................................4-22
4.4.3 Laplace Transform of a Triangular Waveform.............................................4-23
4.4.4 Laplace Transform of a Rectangular Periodic Waveform............................4-24
4.4.5 Laplace Transform of a Half-Rectified Sine Waveform..............................4-25
4.5 Using MATLAB for Finding the Laplace Transforms of Time Functions.............4-26
4.6 Summary .................................................................................................................4-27
4.7 Exercises .................................................................................................................4-30
Laplace Transform of a Sawtooth Periodic Waveform .......................................4-31
Laplace Transform of a Full-Rectified Sine Waveform......................................4-31
4.8 Solutions to End-of-Chapter Exercises .................................................................4-32
MATLAB Computing: Page 4-37
Simulink Model: Page 4-38
5 The Inverse Laplace Transformation 5-1
5.1 The Inverse Laplace Transform Integral ................................................................ 5-1
5.2 Partial Fraction Expansion ..................................................................................... 5-1
5.2.1 Distinct Poles ............................................................................................... 5-2
5.2.2 Complex Poles.............................................................................................. 5-5
5.2.3 Multiple (Repeated) Poles............................................................................ 5-8
5.3 Case where F(s) is Improper Rational Function................................................... 5-13
5.4 Alternate Method of Partial Fraction Expansion................................................. 5-14
5.5 Summary............................................................................................................... 5-18
5.6 Exercises ............................................................................................................... 5-19
5.7 Solutions to End-of-Chapter Exercises ............................................................... 5-20
MATLAB Computing: Pages 5-3 through 5-6, 5-8, 5-10
5-12 through 5-14, 5-20
6 Circuit Analysis with Laplace Transforms 6-1
6.1 Circuit Transformation from Time to Complex Frequency .................................. 6-1
6.1.1 Resistive Network Transformation............................................................. 6-1
6.1.2 Inductive Network Transformation............................................................ 6-1
6.1.3 Capacitive Network Transformation.......................................................... 6-2
6.2 Complex Impedance Z(s)..................................................................................... 6-11
6.3 Complex Admittance Y(s)................................................................................... 6-13
6.4 Transfer Functions ............................................................................................... 6-16
6.5 Using the Simulink Transfer Fcn Block............................................................... 6-20
6.6 Summary .............................................................................................................. 6-23
6.7 Exercises ............................................................................................................... 6-24

iv Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
6.8 Solutions to End-of-Chapter Exercises............................................................... 6-27
MATLAB Computing: Pages 6-6, 6-8, 6-15, 6-19 through 6-21,
6-29 through 6-32, 6-37
Simulink / SimPowerSystems models: Pages 6-8 through 6-11, 6-20 through 6-22
7 State Variables and State Equations 7-1
7.1 Expressing Differential Equations in State Equation Form................................... 7-1
7.2 Solution of Single State Equations ........................................................................ 7-6
7.3 The State Transition Matrix ................................................................................. 7-8
7.4 Computation of the State Transition Matrix...................................................... 7-10
7.4.1 Distinct Eigenvalues (Real of Complex)................................................... 7-11
7.4.2 Multiple (Repeated) Eigenvalues.............................................................. 7-15
7.5 Eigenvectors......................................................................................................... 7-18
7.6 Circuit Analysis with State Variables.................................................................. 7-22
7.7 Relationship between State Equations and Laplace Transform.......................... 7-29
7.8 Summary.............................................................................................................. 7-37
7.9 Exercises .............................................................................................................. 7-40
7.10 Solutions to End-of-Chapter Exercises .............................................................. 7-42
MATLAB Computing: Pages 7-4, 7-6, 7-8, 7-12, 7-13, 7-15, 7-17, 7-21
7-30, 7-44, 7-45, 7-46, 7-48, 7-50
Simulink models: Pages 7-9, 7-10
8 Frequency Response and Bode Plots 8-1
8.1 Decibel Defined .................................................................................................... 8-1
8.2 Bandwidth and Frequency Response..................................................................... 8-3
8.3 Octave and Decade ............................................................................................... 8-4
8.4 Bode Plot Scales and Asymptotic Approximations............................................... 8-5
8.5 Construction of Bode Plots when the Zeros and Poles are Real ........................... 8-6
8.6 Construction of Bode Plots when the Zeros and Poles are Complex.................. 8-12
8.7 Corrected Amplitude Plots.................................................................................. 8-24
8.8 Summary.............................................................................................................. 8-35
8.9 Exercises .............................................................................................................. 8-37
8.10 Solutions to End-of-Chapter Exercises .............................................................. 8-38
MATLAB Computing: Pages 8-19, 8-20, 8-22, 8-23, 8-33, 8-40, 8-43, 8-45
9 Self and Mutual Inductances - Transformers 9-1
9.1 Self-Inductance .......................................................................................................9-1
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling v
Copyright Orchard Publications
9.2 The Nature of Inductance..................................................................................... 9-1
9.3 Lenzs Law.............................................................................................................. 9-3
9.4 Mutually Coupled Coils......................................................................................... 9-3
9.5 Establishing Polarity Markings ............................................................................ 9-11
9.6 Energy Stored in a Pair of Mutually Coupled Inductors ..................................... 9-14
9.7 Circuits with Linear Transformers....................................................................... 9-19
9.8 Reflected Impedance in Transformers................................................................. 9-24
9.9 The Ideal Transformer......................................................................................... 9-27
9.10 Impedance Matching........................................................................................... 9-30
9.11 Simplified Transformer Equivalent Circuit ......................................................... 9-31
9.12 Thevenin Equivalent Circuit............................................................................... 9-32
9.13 Autotransformer .................................................................................................. 9-36
9.14 Transformers with Multiple Secondary Windings............................................... 9-37
9.15 Transformer Tests................................................................................................ 9-37
9.16 Efficiency.............................................................................................................. 9-42
9.17 Voltage Regulation.............................................................................................. 9-46
9.18 Transformer Modeling with Simulink / SimPowerSystems ................................. 9-49
9.19 Summary .............................................................................................................. 9-57
9.20 Exercises............................................................................................................... 9-62
9.21 Solutions to End-of-Chapter Exercises .............................................................. 9-65
MATLAB Computing: Page 9-13, 9-14, 9-22, 9-44
Simulink / SimPowerSystems model: Page 9-49 through 9-56
10 One- and Two-Port Networks 10-1
10.1 Introduction and Definitions............................................................................... 10-1
10.2 One-Port Driving-Point and Transfer Admittances........................................... 10-2
10.3 One-Port Driving-Point and Transfer Impedances ............................................. 10-7
10.4 Two-Port Networks ........................................................................................... 10-11
10.4.1 The y Parameters................................................................................... 10-11
10.4.2 The z parameters ................................................................................... 10-17
10.4.3 The h Parameters .................................................................................. 10-22
10.4.4 The g Parameters................................................................................... 10-26
10.5 Reciprocal Two-Port Networks ......................................................................... 10-31
10.6 Summary ............................................................................................................ 10-35
10.7 Exercises............................................................................................................. 10-40
10.8 Solutions to End-of-Chapter Exercises ............................................................ 10-42
MATLAB Computing: Page 10-49
Simulink / SimPowerSystems model: Page 10-50

vi Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
11 Balanced Three-Phase Systems 11-1
11.1 Advantages of Three-Phase Systems ................................................................ 11-1
11.2 Three-Phase Connections................................................................................. 11-1
11.3 Transformer Connections in Three-Phase Systems ......................................... 11-4
11.4 Line-to-Line and Line-to-Neutral Voltages and Currents............................. 11-5
11.5 Equivalent Y and A Loads.................................................................................. 11-9
11.6 Computation by Reduction to Single Phase.................................................... 11-19
11.7 Three-Phase Power .......................................................................................... 11-20
11.8 Instantaneous Power in Three-Phase Systems ................................................ 11-22
11.9 Measuring Three-Phase Power ....................................................................... 11-25
11.10 Practical Three-Phase Transformer Connections .......................................... 11-28
11.11 Transformers Operated in Open A Configuration .......................................... 11-29
11.12 Three-Phase Systems Modeling with Simulink / SimPowerSystems .............. 11-31
11.13 Summary .......................................................................................................... 11-36
11.14 Exercises........................................................................................................... 11-38
11.15 Solutions to End-of-Chapter Exercises .......................................................... 11-41
MATLAB Computing: Pages 11-46, 11-51
Simulink / SimPowerSystems models: Pages 11-32, 11-43
12 Unbalanced Three-Phase Systems 12-1
12.1 Unbalanced Loads.............................................................................................. 12-1
12.2 Voltage Computations ....................................................................................... 12-3
12.3 Phase-Sequence Indicator ................................................................................. 12-4
12.4 A-Y Transformation........................................................................................... 12-7
12.5 Practical and Impractical Connections.............................................................. 12-8
12.6 Symmetrical Components................................................................................ 12-10
12.7 Cases where Zero-Sequence Components are Zero........................................ 12-16
12.8 Summary .......................................................................................................... 12-20
12.9 Exercises ........................................................................................................... 12-22
12.10 Solutions to End-of-Chapter Exercises........................................................... 12-23
MATLAB Computing: Page 12-27
Simulink / SimPowerSystems models: Page 12-28
A Introduction to MATLAB A-1
A.1 Command Window .............................................................................................. A-1
A.2 Roots of Polynomials ............................................................................................ A-3
A.3 Polynomial Construction from Known Roots ...................................................... A-4
A.4 Evaluation of a Polynomial at Specified Values .................................................. A-5
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling vii
Copyright Orchard Publications
A.5 Rational Polynomials ...........................................................................................A-8
A.6 Using MATLAB to Make Plots ..........................................................................A-9
A.7 Subplots .............................................................................................................A-18
A.8 Multiplication, Division and Exponentiation ...................................................A-19
A.9 Script and Function Files ..................................................................................A-26
A.10 Display Formats .................................................................................................A-31
MATLAB Computations: Entire Appendix A
B Introduction to Simulink B-1
B.1 Simulink and its Relation to MATLAB ............................................................... B-1
B.2 Simulink Demos ................................................................................................. B-20
Simulink Modeling: Entire Appendix B
C Introduction to SimPowerSystems C-1
C.1 Simulation of Electric Circuits with SimPowerSystems ...................................... C-1
SimPowerSystems Modeling: Entire Appendix C
D Review of Complex Numbers D-1
D.1 Definition of a Complex Number ........................................................................ D-1
D.2 Addition and Subtraction of Complex Numbers ................................................ D-2
D.3 Multiplication of Complex Numbers................................................................... D-3
D.4 Division of Complex Numbers ............................................................................ D-4
D.5 Exponential and Polar Forms of Complex Numbers ........................................... D-4
MATLAB Computing: Pages D-6 through D-8
Simulink Modeling: Page D-7
E Matrices and Determinants E-1
E.1 Matrix Definition................................................................................................ E-1
E.2 Matrix Operations............................................................................................... E-2
E.3 Special Forms of Matrices ................................................................................... E-6
E.4 Determinants .................................................................................................... E-10
E.5 Minors and Cofactors........................................................................................ E-12
E.6 Cramers Rule.................................................................................................... E-17
E.7 Gaussian Elimination Method .......................................................................... E-19
E.8 The Adjoint of a Matrix ................................................................................... E-21
E.9 Singular and Non-Singular Matrices ............................................................... E-21
E.10 The Inverse of a Matrix .................................................................................... E-22

viii Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
E.11 Solution of Simultaneous Equations with Matrices .......................................... E-24
E.12 Exercises ............................................................................................................ E-31
MATLAB Computing: Pages E-3, E-4, E-5, E-7, E-8, E-9, E-10, E-12,
E-15, E-16, E-18, E-22, E-25, E-26, E-29
Simulink Modeling: Page E-3
Excel Spreadsheet: Page E-27
F Scaling F-1
F.1 Magnitude Scaling .................................................................................................. F-1
F.2 Frequency Scaling................................................................................................... F-1
F.3 Exercises.................................................................................................................. F-8
F.4 Solutions to End-of-Appendix Exercises............................................................... F-9
MATLAB Computing: Pages F-3, F-5
G Per Unit System G-1
G.1 Per Unit Defined.................................................................................................... G-1
G.2 Impedance Transformation from One Base to Another Base ............................... G-3
H Review of Differential Equations H-1
H.1 Simple Differential Equations................................................................................H-1
H.2 Classification..........................................................................................................H-3
H.3 Solutions of Ordinary Differential Equations (ODE)............................................H-6
H.4 Solution of the Homogeneous ODE......................................................................H-8
H.5 Using the Method of Undetermined Coefficients for the Forced Response .......H-10
H.6 Using the Method of Variation of Parameters for the Forced Response.............H-20
H.7 Exercises...............................................................................................................H-24
MATLAB Computing: Pages H-11, H-13, H-14, H-16, H-17, H-19, H-22, H-23
I Constructing Semilog Paper with Excel and with MATLAB I-1
I.1 Instructions for Constructing Semilog Paper with Excel.......................................... I-1
I.4 Instructions for Constructing Semilog Paper with MATLAB.................................. I-4
Excel Spreadsheet: Page I-1
MATLAB Computing: Page I-4
References R-1
Index IN-1
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-1
Copyright Orchard Publications
Chapter 1
Second Order Circuits
his chapter discusses the natural, forced and total responses in circuits that contain resis-
tors, inductors and capacitors. These circuits are characterized by linear second-order dif-
ferential equations whose solutions consist of the natural and the forced responses. We will
consider both DC (constant) and AC (sinusoidal) excitations.
1.1 Response of a Second Order Circuit
A circuit that contains energy storage devices (inductors and capacitors) is said to be an nth-
order circuit, and the differential equation describing the circuit is an nth-order differential equa-
tion. For example, if a circuit contains an inductor and a capacitor, or two capacitors or two
inductors, along with other devices such as resistors, it is said to be a second-order circuit and the
differential equation that describes it will be a second order differential equation. It is possible,
however, to describe a circuit having two energy storage devices with a set of two first-order dif-
ferential equations, a circuit which has three energy storage devices with a set of three first-order
differential equations and so on. These are called state equations and are discussed in Chapter 7.
As we know from previous studies,
*
the response is found from the differential equation describ-
ing the circuit, and its solution is obtained as follows:
1. We write the differential or integrodifferential (nodal or mesh) equation describing the circuit.
We differentiate, if necessary, to eliminate the integral.
2. We obtain the forced (steady-state) response. Since the excitation in our work here will be
either a constant (DC) or sinusoidal (AC) in nature, we expect the forced response to have
the same form as the excitation. We evaluate the constants of the forced response by substitu-
tion of the assumed forced response into the differential equation and equate terms of the left
side with the right side. The form of the forced response (particular solution), is described in
Appendix H.
3. We obtain the general form of the natural response by setting the right side of the differential
equation equal to zero, in other words, solve the homogeneous differential equation using the
characteristic equation.
4. We add the forced and natural responses to form the complete response.
5. Using the initial conditions, we evaluate the constants from the complete response.
* The natural and forced responses for first-order circuits are discussed in Circuit Analysis I with MATLAB
Computing and Simulink/ SimPowerSystems Modeling, ISBN 978-1-934404-17-1.
T
n




Chapter 1 Second Order Circuits
1-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
1.2 Series RLC Circuit with DC Excitation
Consider the circuit of Figure 1.1 where the initial conditions are , , and
is the unit step function.
*
We want to find an expression for the current for .
Figure 1.1. Series RLC Circuit
For this circuit
(1.1)
and by differentiation
To find the forced response, we must first specify the nature of the excitation , that is DC or
AC.
If is DC ( ), the right side of (1.1) will be zero and thus the forced response com-
ponent . If is AC ( , the right side of (1.1) will be another sinusoid
and therefore . Since in this section we are concerned with DC excitations, the
right side will be zero and thus the total response will be just the natural response.
The natural response is found from the homogeneous equation of (1.1), that is,
(1.2)
whose characteristic equation is
or
from which
* The unit step function and other elementary functions used in science and engineering are discussed in Chapter
3.
i
L
0 ( ) I
0
= v
C
0 ( ) V
0
=
u
0
t ( ) i t ( ) t 0 >
R
+
-
v
S
u
0
t ( )
i t ( )
L
C
Ri L
di
dt
-----
1
C
---- i t d
0
t
}
V
0
+ + + v
S
= t 0 >
R
di
dt
----- L
d
2
i
dt
2
-------
i
C
---- + +
dv
S
dt
-------- = t 0 > ,
v
S
v
S
v
S
cons t tan =
i
f
0 = v
S
v
S
V ct 0 + ( ) cos =
i
f
I ct + ( ) cos =
R
di
dt
----- L
d
2
i
dt
2
-------
i
C
---- + + 0 =
Ls
2
Rs
1
C
---- + + 0 =
s
2 R
L
----s
1
LC
-------- + + 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-3
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
(1.3)
We will use the following notations:
(1.4)
where the subscript stands for series circuit. Then, we can express (1.3) as
(1.5)
or
(1.6)
Case I: If , the roots and are real, negative, and unequal. This results in the over-
damped natural response and has the form
(1.7)
Case II: If , the roots and are real, negative, and equal. This results in the critically
damped natural response and has the form
(1.8)
Case III: If , the roots and are complex conjugates. This is known as the under-
damped or oscillatory natural response and has the form
(1.9)
Typical overdamped, critically damped and underdamped responses are shown in Figure 1.2, 1.3,
and 1.4 respectively where it is assumed that .
1.2.1 Response of Series RLC Circuits with DC Excitation
Depending on the circuit constants , , and , the total response of a series circuit which
is excited by a DC source, may be overdamped, critically damped or underdamped. In this section
we will derive the total response of series circuits that are excited by DC sources.
s
1
s
2
,
R
2L
-------
R
2
4L
2
---------
1
LC
-------- =
o
S
R
2L
------- =
o or Damping
Coefficient

c
0
1
LC
------------ =
Resonant
Frequency

S
o
S
2
c
0
2
=
Beta
Coefficient

c
nS
c
0
2
o
S
2
=
Damped Natural
Frequency




s
s
1
s
2
, o
S
o
S
2
c
0
2
o
S

S
if o
S
2
c
0
2
> = =
s
1
s
2
, o
S
c
0
2
o
S
2
o
S
c
nS
if c
0
2
o
S
2
> = =
o
S
2
c
0
2
> s
1
s
2
i
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ =
o
S
2
c
0
2
= s
1
s
2
i
n
t ( ) Ae
o
S
t
k
1
k
2
t + ( ) =
c
0
2
o
S
2
> s
1
s
2
i
n
t ( ) e
o
S
t
k
1
c
nS
cos t k
2
c
nS
t sin + ( ) k
3
e
o
S
t
c
nS
cos t + ( ) = =
i
n
0 ( ) 0 =
R L C RLC
RLC
Chapter 1 Second Order Circuits
1-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 1.2. Typical overdamped response
Figure 1.3. Typical critically damped response
Figure 1.4. Typical underdamped (oscillatory) response
Example 1.1
For the circuit of Figure 1.5, , , and the resistor represents the
resistance of the inductor. Compute and sketch for .
Solution:
This circuit can be represented by the integrodifferential equation
(1.10)
Typical Overdamped Response
Time
V
o
l
t
a
g
e
Typical Critically Damped Response
Time
V
o
l
t
a
g
e
Typical Underdamped Response
Time
V
o
l
t
a
g
e
i
L
0 ( ) 5 A = v
C
0 ( ) 2.5 V = 0.5 O
i t ( ) t 0 >
Ri L
di
dt
-----
1
C
---- i t d
0
t
}
v
C
0 ( ) + + + 15 = t 0 > ,
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-5
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
Figure 1.5. Circuit for Example 1.1
Differentiating and noting that the derivatives of the constants and are zero, we obtain
the homogeneous differential equation
or
and by substitution of the known values , , and
(1.11)
The roots of the characteristic equation of (1.11) are and . The total
response is just the natural response and for this example it is overdamped. Therefore, from (1.7),
(1.12)
The constants and can be evaluated from the initial conditions. Thus from the first initial
condition and (1.12) we obtain
or
(1.13)
We need another equation in order to compute the values of and . This equation will make
use of the second initial condition, that is, . Since , we differ-
entiate (1.12), we evaluate it at , and we equate it with this initial condition. Then,
(1.14)
Also, at ,
+
-
15u
0
t ( ) V
i t ( )
0.5 O 1 mH
100 6 mF '
v
C
0 ( ) 15
R
di
dt
----- L
d
2
i
dt
2
-------
i
C
---- + + 0 =
d
2
i
dt
2
-------
R
L
----
di
dt
-----
i
LC
-------- + + 0 =
R L C
d
2
i
dt
2
------- 500
di
dt
----- 60000i + + 0 =
s
1
200 = s
2
300 =
i t ( ) i
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ k
1
e
200 t
k
2
e
300 t
+ = = =
k
1
k
2
i
L
0 ( ) i 0 ( ) 5 A = =
i 0 ( ) k
1
e
0
k
2
e
0
+ 5 = =
k
1
k
2
+ 5 =
k
1
k
2
v
C
0 ( ) 2.5 V = i
C
t ( ) i t ( ) C
dv
C
dt
--------- = =
t 0
+
=
di
dt
----- 200k
1
e
200 t
300k
2
e
300 t
and =
di
dt
-----
t 0
+
=
200k
1
300 k
2
=
t 0
+
=
Chapter 1 Second Order Circuits
1-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and solving for we obtain
(1.15)
Next, equating (1.14) with (1.15) we obtain:
(1.16)
Simultaneous solution of (1.13) and (1.16) yields and . By substitution into
(1.12) we find the total response as
(1.17)
Check with MATLAB
*
:
syms t; % Define symbolic variable t
% Must have Symbolic Math Toolbox installed
R=0.5; L=10^(-3); C=100*10^(-3)/6; % Circuit constants
y0=115*exp(-200*t)-110*exp(-300*t); % Let solution i(t)=y0
y1=diff(y0); % Compute the first derivative of y0, i.e., di/dt
y2=diff(y0,2); % Compute the second derivative of y0, i.e, di2/dt2
% Substitute the solution i(t), i.e., equ (1.17)
% into differential equation of (1.11) to verify that
% correct solution was obtained. We must also
% verify that the initial conditions are satisfied.
y=y2+500*y1+60000*y0;
i0=115*exp(-200*0)-110*exp(-300*0);
vC0=-R*i0-L*(-23000*exp(-200*0)+33000*exp(-300*0))+15;
fprintf(' \n');...
disp('Solution was entered as y0 = '); disp(y0);...
disp('1st derivative of solution is y1 = '); disp(y1);...
disp('2nd derivative of solution is y2 = '); disp(y2);...
disp('Differential equation is satisfied since y = y2+y1+y0 = '); disp(y);...
disp('1st initial condition is satisfied since at t = 0, i0 = '); disp(i0);...
disp('2nd initial condition is also satisfied since vC+vL+vR=15 and vC0 = ');...
disp(vC0);...
fprintf(' \n')
* An introduction to MATLAB is presented in Appendix A.
Ri 0
+
( ) L
di
dt
-----
t 0
+
=
v
c
0
+
( ) + + 15 =
di
dt
-----
t 0
+
=
di
dt
-----
t 0
+
=
15 0.5 5 2.5
10
3
--------------------------------------- 10000 = =
200k
1
300 k
2
10000 =
k
1
1.5 k
2
50 =
k
1
115 = k
2
110 =
i t ( ) i
n
t ( ) 115e
200 t
110 e
300 t
= =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-7
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
Solution was entered as y0 =
115*exp(-200*t)-110*exp(-300*t)
1st derivative of solution is y1 =
-23000*exp(-200*t)+33000*exp(-300*t)
2nd derivative of solution is y2 =
4600000*exp(-200*t)-9900000*exp(-300*t)
Differential equation is satisfied since y = y2+y1+y0 = 0
1st initial condition is satisfied since at t = 0, i0 = 5
2nd initial condition is also satisfied since vC+vL+vR=15 and vC0
= 2.5000
We denote the first term as , the second term as , and the total
current as the difference of these two terms. The response is shown in Figure 1.6.
Figure 1.6. Plot for of Example 1.1
In the above example, differentiation eliminated (set equal to zero) the right side of the differen-
tial equation and thus the total response was just the natural response. A different approach how-
ever, may not set the right side equal to zero, and therefore the total response will contain both
the natural and forced components. To illustrate, we will use the following approach.
The capacitor voltage, for all time t, may be expressed as and as before, the cir-
cuit can be represented by the integrodifferential equation
(1.18)
and since
i
1
t ( ) 115e
200t
= i
2
t ( ) 110e
300t
=
i t ( )
i t ( ) 115e
200 t
110 e
300 t
=
i
1
t ( ) 115e
200 t
=
i
2
t ( ) 110e
300 t
=
Time (sec)
C
u
r
r
e
n
t

(
A
)
i t ( )
v
C
t ( )
1
C
---- i t d

t
}
=
Ri L
di
dt
-----
1
C
---- i t d

t
}
+ + 15 = u
0
t ( )
Chapter 1 Second Order Circuits
1-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
we rewrite (1.18) as
(1.19)
We observe that this is a non-homogeneous differential equation whose solution will have both
the natural and the forced response components. Of course, the solution of (1.19) will give us the
capacitor voltage . This presents no problem since we can obtain the current by differentia-
tion of the expression for .
Substitution of the given values into (1.19) yields
or
(1.20)
The characteristic equation of (1.20) is the same as of that of (1.11) and thus the natural response
is
(1.21)
Since the right side of (1.20) is a constant, the forced response will also be a constant and we
denote it as . By substitution into (1.20) we obtain
or
(1.22)
The total solution then is the summation of (1.21) and (1.22), that is,
(1.23)
As before, the constants and will be evaluated from the initial conditions. First, using
and evaluating (1.23) at , we obtain
or
(1.24)
Also,
(1.25)
i i
C
C
dv
C
dt
--------- = =
RC
dv
C
dt
--------- LC
dv
C
2
dt
2
--------- v
C
+ + 15 = u
0
t ( )
v
C
t ( )
v
C
t ( )
50
6
------ 10
3

dv
C
dt
--------- 1 10
3

100
6
---------10
3

dv
C
2
dt
2
--------- v
C
+ + 15 = u
0
t ( )
dv
C
2
dt
2
--------- 500
dv
C
dt
--------- 60000v
C
+ + 9 10
5
= u
0
t ( )
v
Cn
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ k
1
e
200 t
k
2
e
300 t
+ = =
v
Cf
k
3
=
0 0 60000k
3
+ + 900000 =
v
Cf
k
3
15 = =
v
C
t ( ) v
Cn
t ( ) v
Cf
+ = k
1
e
200 t
k
2
e
300 t
15 + + =
k
1
k
2
v
C
0 ( ) 2.5 V = t 0 =
v
C
0 ( ) k
1
e
0
k
2
e
0
15 + + 2.5 = =
k
1
k
2
+ 12.5 =
i
L
i
C
C
dv
C
dt
--------- = =
dv
C
dt
---------
i
L
C
---- and
dv
C
dt
---------
t 0 =
i
L
0 ( )
C
------------
5
100 6 ' 10
3

-------------------------------- 300 = = = = ,
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-9
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
Next, we differentiate (1.23), we evaluate it at and equate it with (1.25). Then,
(1.26)
Equating the right sides of (1.25) and (1.26) we obtain
or
(1.27)
From (1.24) and (1.27), we obtain and . By substitution into (1.23), we obtain
the total solution as
(1.28)
Check with MATLAB:
syms t % Define symbolic variable t. Must have Symbolic Math Toolbox installed
y0=22*exp(-300*t)-34.5*exp(-200*t)+15; % The total solution y(t)
y1=diff(y0) % The first derivative of y(t)
y1 = -6600*exp(-300*t)+6900*exp(-200*t)
y2=diff(y0,2) % The second derivative of y(t)
y2 = 1980000*exp(-300*t)-1380000*exp(-200*t)
y=y2+500*y1+60000*y0 % Summation of y and its derivatives
y = 900000
Using the expression for we can find the current as
(1.29)
We observe that (1.29) is the same as (1.17). The plot for (1.28) is shown in Figure 1.7.
The same results are obtained with the Simulink/SimPowerSystems
*
model shown in Figure 1.8.
The waveforms for the current and the voltage across the capacitor are shown in Figure 1.9.
* For an introduction to Simulink SimPowerSystems please refer to Appendices B and C respectively.
t 0 =
dv
C
dt
--------- 200k
1
e
200 t
300k
2
e
300 t
and
dv
C
dt
---------
t 0 =
200k
1
300k
2
= =
200k
1
300k
2
300 =
k
1
1.5k
2
1.5 =
k
1
34.5 = k
2
22 =
v
C
t ( ) 22e
300 t
34.5 e
200 t
15 + ( )u
0
t ( ) =
v
C
t ( )
i i
L
= i
C
C
dv
C
dt
---------
100
6
--------- 10
3
6900e
200t
6600 e
300t
( ) 115e
200t
110 e
300t
A = = = =
Chapter 1 Second Order Circuits
1-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 1.7. Plot for of Example 1.1
Figure 1.8. Simulink/SimPowerSystems model for the circuit in Figure 1.5
Figure 1.9. Waveforms produced by the Simulink/SimPowerSystems model in Figure 1.8
v
C
t ( ) 22e
300 t
34.5 e
200 t
15 + ( )u
0
t ( ) =
Time (sec)
V
o
l
t
a
g
e

(
V
)
v
C
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-11
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
1.2.2 Response of Series RLC Circuits with AC Excitation
The total response of a series RLC circuit, which is excited by a sinusoidal source, will also consist
of the natural and forced response components. As we found in the previous section, the natural
response can be overdamped, or critically damped, or underdamped. The forced component will
be a sinusoid of the same frequency as that of the excitation, and since it represents the AC
steady-state condition, we can use phasor analysis to find it. The following example illustrates the
procedure.
Example 1.2
For the circuit in Figure 1.10, , , and the resistor represents the
resistance of the inductor. Compute and sketch for .
Figure 1.10. Circuit for Example 1.2
Solution:
This circuit is the same as that in Example 1.1 except that the circuit is excited by a sinusoidal
source; therefore it can be represented by the integrodifferential equation
(1.30)
whose solution consists of the summation of the natural and forced responses. We know its natu-
ral response from the previous example. We begin with
(1.31)
where the constants and will be evaluated from the initial conditions after has been
found. The steady state (or forced) response will have the form in the
time domain ( ) and the form in the frequency domain ( ).
To find we will use the phasor analysis relation where is the phasor current, is
the phasor voltage, and is the impedance of the phasor circuit which, as we know, is
i
L
0 ( ) 5 A = v
C
0 ( ) 2.5 V = 0.5 O
i t ( ) t 0 >
v
S
200 10000t cos ( )u
0
t ( ) V =
i t ( )
0.5 O 1 mH
100 6 mF '
v
S
Ri L
di
dt
-----
1
C
---- i t d
0
t
}
v
C
0 ( ) + + + 200 10000t cos = t 0 >
i t ( ) i
n
t ( ) i
f
t ( ) + k
1
e
200 t
k
2
e
300 t
i
f
t ( ) + + = =
k
1
k
2
i
f
t ( )
i
f
t ( ) k
3
10 000t 0 + , ( ) cos =
t domain k
3
0 Z jc domain
i
f
t ( ) I V Z ' = I V
Z
Chapter 1 Second Order Circuits
1-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(1.32)
The inductive and capacitive reactances are
and
Then,
Also,
and this yields . Then, by substitution into (1.32),
and thus
The total solution is
(1.33)
As before, the constants and are evaluated from the initial conditions. From (1.33) and the
first initial condition we obtain
or
or
(1.34)
We need another equation in order to compute the values of and . This equation will make
use of the second initial condition, that is, . Since , we differ-
entiate (1.33), we evaluate it at , and we equate it with this initial condition. Then,
(1.35)
Z R j cL
1
cC
--------
\ .
| |
+ R
2
cL
1
cC
--------
\ .
| |
2
+ cL
1
cC
--------
\ .
| |
R '
1
tan Z = =
X
L
cL 10
4
10
3
10 O = = =
X
C
1
cC
--------
1
10
4
100 6 ' ( )10
3

--------------------------------------------- 6 10
3
O = = =
R
2
0.5 ( )
2
0.25 and cL
1
cC
--------
\ .
| |
2
10 6 10
3
( )
2
99.88 = = = =
cL
1
cC
--------
\ .
| |
R '
1
tan
10 6 10
3
( )
0.5
------------------------------------
1
tan
9.994
0.5
-------------
\ .
| |
1
tan = =
0 1.52 rads 87.15 = =
Z 0.25 99.88 + 0
o
Z 10 87.15
o
Z = =
I
V
Z
----
200 0
o
Z
10 87.15
o
Z
--------------------------- 20 87.15
o
Z = = = 20 10000t 87.15
o
( ) cos = i
f
t ( ) =
i t ( ) i
n
t ( ) i
f
t ( ) + k
1
e
200 t
k
2
e
300 t
20 10000t 87.15
o
( ) cos + + = =
k
1
k
2
i
L
0 ( ) 5 A =
i 0 ( ) k
1
e
0
k
2
e
0
20 87.15
o
( ) cos + + = 5 =
i 0 ( ) k
1
k
2
20 0.05 + + = 5 =
k
1
k
2
+ 4 =
k
1
k
2
v
C
0 ( ) 2.5 V = i
C
t ( ) i t ( ) C
dv
C
dt
--------- = =
t 0 =
di
dt
----- 200k
1
e
200 t
300k
2
e
300 t
2 10
5
10000t 87.15
o
( ) sin =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-13
Copyright Orchard Publications
Series RLC Circuit with DC Excitation
and at ,
(1.36)
Also, at
and solving for we obtain
(1.37)
Next, equating (1.36) with (1.37) we obtain
or
(1.38)
Simultaneous solution of (1.34) and (1.38) yields and . Then, by substitution
into (1.31), the total response is
(1.39)
The plot is shown in Figure 1.11 and it was created with the following MATLAB script:
t=0:0.005:0.25; t1=-38.*exp(-200.*t); t2=42.*exp(-300.*t); t3=20.*cos(10000.*t-87.5*pi/180);
x=t1+t2+t3; plot(t,t1,t,t2,t,t3,t,x); grid
Figure 1.11. Plot for of Example 1.2
t 0 =
di
dt
-----
t 0 =
200k
1
300k
2
2 10
6
87.15
o
( ) sin = 200k
1
300k
2
2 10
5
+ =
t 0
+
=
Ri 0
+
( ) L
di
dt
-----
t 0
+
=
v
c
0
+
( ) + + 200 0 ( ) cos 200 = =
di
dt
-----
t 0
+
=
di
dt
-----
t 0
+
=
200 0.5 5 2.5
10
3
------------------------------------------ 195000 = =
200k
1
300 k
2
5000 =
k
1
1.5k
2
+ 25 =
k
1
38 = k
2
42 =
i t ( ) 38 e
200 t
42e
300 t
20 10000t 87.15
o
( ) A cos + + =
i t ( )
i
2
t ( ) 42e
300t
=
i
1
t ( ) 38e
200t
=
Time (sec)
C
u
r
r
e
n
t

(
A
)
i t ( )
Chapter 1 Second Order Circuits
1-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The same results are obtained with the Simulink/SimPowerSystems model shown in Figure 1.12.
Figure 1.12. Simulink/SimPowerSystems model for the circuit in Figure 1.10
The waveforms for the current and the voltage across the capacitor are shown in Figures 1.13 and
1.14 respectively. We observe that the steady-state current is consistent with the waveform shown
in Figure 1.11, and the steady state voltage across the capacitor is small since the magnitude of
the capacitive reactance is .
Figure 1.13. Waveform displayed in Scope 1 for the Simulink/SimPowerSystems model in Figure 1.12
X
C
6 10
3
O =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-15
Copyright Orchard Publications
Parallel RLC Circuit
Figure 1.14. Waveform displayed in Scope 2 for the Simulink/SimPowerSystems model in Figure 1.12
1.3 Parallel RLC Circuit
Consider the circuit of Figure 1.10 where the initial conditions are , , and
is the unit step function. We want to find an expression for the voltage for .
Figure 1.15. Parallel RLC circuit
For this circuit
or
By differentiation,
(1.40)
To find the forced response, we must first specify the nature of the excitation , that is DC or AC.
If is DC ( ), the right side of (1.40) will be zero and thus the forced response com-
ponent . If is AC ( , the right side of (1.40) will be another sinusoid and
therefore . Since in this section we are concerned with DC excitations, the
right side will be zero and thus the total response will be just the natural response.
The natural response is found from the homogeneous equation of (1.40), that is,
i
L
0 ( ) I
0
= v
C
0 ( ) V
0
=
u
0
t ( ) v t ( ) t 0 >
i
S
u
0
t ( )
v t ( ) G L
C
i
C
i
L
i
G
i
G
t ( ) i
L
t ( ) i
C
t ( ) + + i
S
t ( ) =
Gv
1
L
--- v t d
0
t
}
I
0
+ + C
dv
dt
------ + i
S
= t 0 >
C
dv
2
dt
2
-------- G
dv
dt
------
v
L
--- + +
di
S
dt
------- = t 0 >
i
S
i
S
v
S
cons t tan =
v
f
0 = i
S
i
S
I ct 0 + ( ) cos =
v
f
V ct + ( ) cos =
Chapter 1 Second Order Circuits
1-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(1.41)
whose characteristic equation is
or
from which
(1.42)
and with the following notations,
(1.43)
where the subscript stands for parallel circuit, we can express (1.42) as
(1.44)
or
(1.45)
Note: From (1.4), Page 1-3, and (1.43), Page 1-14, we observe that
As in the series circuit, the natural response can be overdamped, critically damped, or
underdamped.
Case I: If , the roots and are real, negative, and unequal. This results in the over-
damped natural response and has the form
(1.46)
Case II: If , the roots and are real, negative, and equal. This results in the criti-
cally damped natural response and has the form
(1.47)
Case III: If , the roots and are complex conjugates. This results in the under-
damped or oscillatory natural response and has the form
C
dv
2
dt
2
-------- G
dv
dt
------
v
L
--- + + 0 =
Cs
2
Gs
1
L
--- + + 0 =
s
2 G
C
----s
i
LC
-------- + + 0 =
s
1
s
2
,
G
2C
-------
G
2
4C
2
---------
1
LC
-------- =
o
P
G
2C
------- =
o or Damping
Coefficient

c
0
1
LC
------------ =
Resonant
Frequency

P
o
P
2
c
0
2
=
Beta
Coefficient

c
nP
c
0
2
o
P
2
=
Damped Natural
Frequency



p
s
1
s
2
, o
P
o
P
2
c
0
2
o
P

P
if o
P
2
c
0
2
> = =
s
1
s
2
, o
P
c
0
2
o
P
2
o
P
c
nP
if c
0
2
o
P
2
> = =
o
S
o
P

v
n
t ( )
o
P
2
c
0
2
> s
1
s
2
v
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ =
o
P
2
c
0
2
= s
1
s
2
v
n
t ( ) e
o
P
t
k
1
k
2
t + ( ) =
c
0
2
o
P
2
> s
1
s
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-17
Copyright Orchard Publications
Parallel RLC Circuit
(1.48)
1.3.1 Response of Parallel RLC Circuits with DC Excitation
Depending on the circuit constants G (or R), L, and C, the natural response of a parallel RLC cir-
cuit may be overdamped, critically damped or underdamped. In this section we will derive the
total response of a parallel RLC circuit which is excited by a DC source for the example which fol-
lows.
Example 1.3
For the circuit of Figure 1.16, and . Compute and sketch for .
Figure 1.16. Circuit for Example 1.3
Solution:
We could write the integrodifferential equation that describes the given circuit, differentiate, and
find the roots of the characteristic equation from the homogeneous differential equation as we did
in the previous section. However, we will skip these steps and begin with
(1.49)
and when steady-state conditions have been reached, we will have ,
and .
To find out whether the natural response is overdamped, critically damped, or oscillatory, we need
to compute the values of and using (1.43) and the values of and using (1.44) or
(1.45). Then we will use (1.46), or (1.47), or (1.48) as appropriate. For this example,
or
and
Then
v
n
t ( ) e
o
P
t
k
1
c
nP
cos t k
2
c
nP
t sin + ( ) k
3
e
o
P
t
c
nP
cos t + ( ) = =
i
L
0 ( ) 2 A = v
C
0 ( ) 5 V = v t ( ) t 0 >
10u
0
t ( ) A
v t ( ) 32 O
1 640 F '
i
C
i
L
i
R
10 H
v t ( ) v
f
t ( ) v
n
t ( ) + =
v v
L
L
di
dt
----- 0 = = = v
f
0 =
v t ( ) v
n
t ( ) =
o
P
c
0
s
1
s
2
o
P
G
2C
-------
1
2RC
-----------
1
2 32 1 640 '
------------------------------------- 10 = = = =
o
P
2
100 =
c
0
2 1
LC
--------
1
10 1 640 '
---------------------------- 64 = = =
s
1
s
2
, o
P
o
P
2
c
0
2
10 6 = =
Chapter 1 Second Order Circuits
1-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or and . Therefore, the natural response is overdamped and from (1.46) we
obtain
(1.50)
and the constants and will be evaluated from the initial conditions.
With the initial condition and (1.50) we obtain
or
(1.51)
The second equation that is needed for the computation of the values of and is found from
the other initial condition, that is, . Since , we differentiate
(1.50), we evaluate it at , and we equate it with this initial condition.Then,
(1.52)
Also, at
and solving for we obtain
(1.53)
Next, equating (1.52) with (1.53) we obtain
or
(1.54)
Simultaneous solution of (1.51) and (1.54) yields , , and by substitution
into (1.50) we obtain the total response as
(1.55)
Check with MATLAB:
syms t % Define symbolic variable t. Must have Symbolic Math Toolbox installed
y0=291*exp(-4*t)/6-261*exp(-16*t)/6; % Let solution v(t) = y0
s
1
4 = s
2
16 =
v t ( ) v
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ k
1
e
4 t
k
2
e
16 t
+ = = =
k
1
k
2
v
C
0 ( ) v 0 ( ) 5 V = =
v 0 ( ) k
1
e
0
k
2
e
0
+ 5 = =
k
1
k
2
+ 5 =
k
1
k
2
i
L
0 ( ) 2 A = i
C
t ( ) C
dv
C
dt
--------- C
dv
dt
------ = =
t 0
+
=
dv
dt
------ 4k
1
e
4 t
16k
2
e
16 t
and =
dv
dt
------
t 0
+
=
4k
1
16 k
2
=
t 0
+
=
1
R
----v 0
+
( ) i
L
0
+
( ) C
dv
dt
------
t 0
+
=
+ + 10 =
dv
dt
------
t 0
+
=
dv
dt
------
t 0
+
=
10 5 32 ' 2
1 640 '
------------------------------- 502 = =
4k
1
16 k
2
502 =
2k
1
8 k
2
251 =
k
1
291 6 ' = k
2
261 6 ' =
v t ( ) v
n
t ( )
291
6
---------e
4 t 261
6
--------- e
16 t
= = 48.5e
4 t
43.5 e
16 t
V =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-19
Copyright Orchard Publications
Parallel RLC Circuit
y1=diff(y0) % Compute and display first derivative
y1 = -194*exp(-4*t)+696*exp(-16*t)
y2=diff(y0,2) % Compute and display second derivative
y2 = 776*exp(-4*t)-11136*exp(-16*t)
y=y2/640+y1/32+y0/10 % Verify that (1.40) is satisfied
y = 0
The plot is shown in Figure 1.17.
Figure 1.17. Plot for of Example 1.3
From the plot of Figure 1.17, we observe that attains its maximum value somewhere in the
interval and sec., and the maximum voltage is approximately . If we desire to com-
pute precisely the maximum voltage and the exact time it occurs, we can compute the derivative
of (1.55), set it equal to zero, and solve for . Thus,
(1.56)
Division of (1.56) by yields
or
or
and
v
2
t ( ) 43.5 e
16t
=
v
1
t ( ) 48.5e
4t
=
v t ( )
Time (sec)
V
o
l
t
a
g
e

(
V
)
v t ( )
v t ( )
0.10 0.12 24 V
t
dv
dt
------
t 0 =
1164e
4 t
4176e
16 t
+ 0 = =
e
16t
1164e
12t
4176 + 0 =
e
12t 348
97
--------- =
12t
348
97
---------
\ .
| |
ln = 1.2775 =
Chapter 1 Second Order Circuits
1-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
By substitution into (1.55)
(1.57)
A useful quantity, especially in electronic circuit analysis, is the settling time, denoted as , and it
is defined as the time required for the voltage to drop to of its maximum value. Therefore,
is an indication of the time it takes for to damp-out, meaning to decrease the amplitude of
to approximately zero. For this example, , and we can find by sub-
stitution into (1.55). Then,
(1.58)
and we need to solve for the time . To simplify the computation, we neglect the second term on
the right side of (1.58) since this component of the voltage damps out much faster than the other
component. This expression then simplifies to
or
or
(1.59)
Example 1.4
For the circuit of Figure 1.18, and , and the resistor is to be adjusted so
that the natural response will be critically damped.Compute and sketch for .
Figure 1.18. Circuit for Example 1.4
Solution:
Since the natural response is to be critically damped, we must have because the L and C
values are the same as in the previous example. Please refer to (1.43), Page 1-16. We must also
have
or
t t
max
1.2775
12
---------------- 0.106 s = = =
v
max
48.5e
4 x0.106
43.5 e
16 x0.106
23.76 V = =
t
S
1% t
S
v t ( )
v t ( ) 0.01 23.76 0.2376 V = t
S
0.01v
max
0.2376 48.5e
4t
43.5e
16t
= =
t
0.2376 48.5e
4 t
s
=
4 t
S
0.005 ( ) ln 5.32 ( ) = =
t
S
1.33 s =
i
L
0 ( ) 2 A = v
C
0 ( ) 5 V =
v t ( ) t 0 >
10u
0
t ( ) A
v t ( )
1 640 F '
i
C
i
L
i
R
10 H
c
0
2
64 =
o
P
G
2C
-------
1
2RC
----------- c
0
= = =
1
LC
-------- 8 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-21
Copyright Orchard Publications
Parallel RLC Circuit
or and thus . The natural response will have the form
(1.60)
Using the initial condition , and evaluating (1.60) at , we obtain

or
(1.61)
and (1.60) simplifies to
(1.62)
As before, we need to compute the derivative in order to apply the second initial condition
and find the value of the constant .
We obtain the derivative using MATLAB as follows:
syms t k2; v0=exp(-8*t)*(5+k2*t); v1=diff(v0); % v1 is 1st derivative of v0
% Must have Symbolic Math Toolbox installed
v1 = -8*exp(-8*t)*(5+k2*t)+exp(-8*t)*k2
Thus,
and
(1.63)
Also, or and
(1.64)
or
(1.65)
Equating (1.63) with (1.65) and solving for we obtain
or
(1.66)
1
R
---- 8
2
640
---------
1
40
------ = =
R 40 O = s
1
s
2
o
P
8 = = =
v t ( ) v
n
t ( ) = e
o
P
t
k
1
k
2
t + ( ) or v t ( ) v
n
t ( ) = e
8t
k
1
k
2
t + ( ) = =
v
C
0 ( ) 5 V = t 0 =
v 0 ( ) e
0
k
1
k
2
0 + ( ) = 5 =
k
1
5 =
v t ( ) e
8t
5 k
2
t + ( ) =
dv dt '
k
2
dv
dt
------ 8e
8t
5 k
2
t + ( ) = k
2
e
8t
+
dv
dt
------
t 0 =
40 = k
2
+
i
C
C
dv
dt
------ =
dv
dt
------
i
C
C
---- =

dv
dt
------
t 0
+
=
i
C
0
+
( )
C
---------------
I
S
i
R
0
+
( ) i
L
0
+
( )
C
------------------------------------------- = =
dv
dt
------
t 0 =
I
S
v
C
0 ( ) R ' i
L
0 ( )
C
--------------------------------------------------
10 5 40 ' 2
1 640 '
-------------------------------
7.875
1 640 '
---------------- 5040 = = = =
k
2
40 k
2
+ 5040 =
k
2
5080 =
Chapter 1 Second Order Circuits
1-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and by substitution into (1.62), we obtain the total solution as
(1.67)
Check with MATLAB:
syms t; y0=exp(-8*t)*(5+5080*t); y1=diff(y0) % Compute 1st derivative
% Must have Symbolic Math Toolbox installed
y1 = -8*exp(-8*t)*(5+5080*t)+5080*exp(-8*t)
y2=diff(y0,2) % Compute 2nd derivative
y2 = 64*exp(-8*t)*(5+5080*t)-81280*exp(-8*t)
y=y2/640+y1/40+y0/10 % Verify differential equation, see (1.40), Pg 1-15
y = 0
The plot is shown in Figure 1.19.
Figure 1.19. Plot for of Example 1.4
By inspection of (1.67), we see that at , and thus the second initial condition is
satisfied. We can verify that the first initial condition is also satisfied by differentiation of (1.67).
We can also show that approaches zero as approaches infinity with LHpitals rule, i.e.,
(1.68)
Example 1.5
For the circuit of Figure 1.20, and . Compute and sketch for .
v t ( ) e
8t
5 5080t + ( ) V =
Time (sec)
V
o
l
t
a
g
e

(
V
)
v t ( )
t 0 = v t ( ) 5 V =
v t ( ) t
v t ( )
t
lim e
8t
5 5080t + ( )
t
lim
5 5080t + ( )
e
8t
----------------------------
t
lim
d
dt
----- 5 5080t + ( )
d
dt
-----e
8t
---------------------------------
t
lim
5080
8e
8t
------------
t
lim 0 = = = = =
i
L
0 ( ) 2 A = v
C
0 ( ) 5 V = v t ( ) t 0 >
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-23
Copyright Orchard Publications
Parallel RLC Circuit
Figure 1.20. Circuit for Example 1.5
Solution:
This is the same circuit as the that of the two previous examples except that the resistance has
been increased to . For this example,
or
and as before,
Also, . Therefore, the natural response is underdamped with natural frequency
Since , the total response is just the natural response. Then, from (1.48),
(1.69)
and the constants and will be evaluated from the initial conditions.
From the initial condition and (1.69) we obtain
or
(1.70)
To evaluate the constants and we differentiate (1.69), we evaluate it at , we write the
equation which describes the circuit at , and we equate these two expressions. Using MAT-
LAB we obtain:
syms t k phi; y0=k*exp(-6.4*t)*cos(4.8*t+phi); y1=diff(y0)
% Must have Symbolic Math Toolbox installed
y1 = -32/5*k*exp(-32/5*t)*cos(24/5*t+phi)
-24/5*k*exp(-32/5*t)*sin(24/5*t+phi)
pretty(y1)
10u
0
t ( ) A
v t ( )
50 O
1 640 F '
i
C
i
L i
R
10 H
50 O
o
P
G
2C
-------
1
2RC
-----------
1
2 50 1 640 '
------------------------------------- 6.4 = = = =
o
P
2
40.96 =
c
0
2 1
LC
--------
1
10 1 640 '
---------------------------- 64 = = =
c
0
2
o
P
2
>
c
nP
c
0
2
o
P
2
64 40.96 23.04 4.8 = = = =
v
f
0 =
v t ( ) v
n
t ( ) ke
o
P
t
c
nP
t + ( ) cos = = ke
6.4t
4.8t + ( ) cos =
k
v
C
0 ( ) v 0 ( ) 5 V = =
v 0 ( ) ke
0
0 + ( ) cos 5 = =
k cos 5 =
k t 0 =
t 0
+
=
Chapter 1 Second Order Circuits
1-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- 32/5 k exp(- 32/5 t) cos(24/5 t + phi)
- 24/5 k exp(- 32/5 t) sin(24/5 t + phi)
Thus,
(1.71)
and
By substitution of (1.70), the above expression simplifies to
(1.72)
Also, or and
or
(1.73)
Equating (1.72) with (1.73) we obtain
or
(1.74)
The phase angle can be found by dividing (1.74) by (1.70). Then,
or
The value of the constant is found from (1.70) as
or
and by substitution into (1.69), the total solution is
(1.75)
The plot is shown in Figure 1.21.
dv
dt
------ 6.4ke
6.4t
4.8t + ( ) cos 4.8ke
6.4t
4.8t + ( ) sin =
dv
dt
------
t 0 =
6.4k cos 4.8k sin =
dv
dt
------
t 0 =
32 4.8k sin =
i
C
C
dv
dt
------ =
dv
dt
------
i
C
C
---- =
dv
dt
------
t 0
+
=
i
C
0
+
( )
C
---------------
I
S
i
R
0
+
( ) i
L
0
+
( )
C
------------------------------------------- = =
dv
dt
------
t 0 =
I
S
v
C
0 ( ) R ' i
L
0 ( )
C
--------------------------------------------------
10 5 50 ' 2
1 640 '
------------------------------- 7.9 640 5056 = = = =
32 4.8k sin 5056 =
k sin 1060 =

k sin
k cos
--------------- tan
1060
5
--------------- 212 = = =
212 ( )
1
tan 1.566 rads 89.73 deg = = =
k
k 1.566 ( ) cos 5 =
k
5
1.566 ( ) cos
------------------------------ 1042 = =
v t ( ) 1042e
6.4t
4.8t 89.73 ( ) cos =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-25
Copyright Orchard Publications
Parallel RLC Circuit
Figure 1.21. Plot for of Example 1.5
From the plot of Figure 1.21 we observe that the maximum value occurs somewhere between
and , while the minimum value occurs somewhere between
and . Values for the maximum and minimum accurate to 3 decimal places are deter-
mined with the MATLAB script below.
fprintf(' \n');
disp(' t Vc');
disp('-----------------');
t=0.10:0.01:0.20; Vc=zeros(11,2); Vc(:,1)=t';
Vc(:,2)=1042.*exp(-6.4.*t).*cos(4.8.*t-87.5*pi./180);
fprintf('%0.2f\t %8.3f\n',Vc')
t Vc
-----------------
0.10 274.736
0.11 278.822
0.12 280.743
0.13 280.748
0.14 279.066
0.15 275.911
0.16 271.478
0.17 265.948
0.18 259.486
0.19 252.242
0.20 244.354
fprintf(' \n');
disp(' t Vc');
disp('-----------------');
Time (sec)
V
o
l
t
a
g
e

(
V
)
v t ( )
t 0.10 sec = t 0.20 sec = t 0.73 sec =
t 0.83 sec =
Chapter 1 Second Order Circuits
1-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
t=0.73:0.01:0.83; Vc=zeros(11,2); Vc(:,1)=t';
Vc(:,2)=1042.*exp(-6.4.*t).*cos(4.8.*t-87.5*pi./180);
fprintf('%0.2f\t %8.3f\n',Vc')
t Vc
-----------------
0.73 -3.850
0.74 -4.010
0.75 -4.127
0.76 -4.205
0.77 -4.248
0.78 -4.261
0.79 -4.246
0.80 -4.208
0.81 -4.149
0.82 -4.073
0.83 -3.981
The maximum and minimum values and the times at which they occur are listed in the table
below.
Alternately, we can find the maxima and minima by differentiating the response of (1.75) and set-
ting it equal to zero.
1.3.2 Response of Parallel RLC Circuits with AC Excitation
The total response of a parallel RLC circuit that is excited by a sinusoidal source also consists of
the natural and forced response components. The natural response will be overdamped, critically
damped or underdamped. The forced component will be a sinusoid of the same frequency as that
of the excitation, and since it represents the AC steady-state condition, we can use phasor analy-
sis to find the forced response. We will derive the total response of a parallel RLC circuit which is
excited by an AC source with the following example.
Example 1.6
For the circuit of Figure 1.22, and . Compute and sketch for .
t (sec) v (V)
Maximum 0.13 280.748
Minimum 0.78 -4.261
i
L
0 ( ) 2 A = v
C
0 ( ) 5 V = v t ( ) t 0 >
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-27
Copyright Orchard Publications
Parallel RLC Circuit
Figure 1.22. Circuit for Example 1.6
Solution:
This is the same circuit as the previous example where the DC source has been replaced by an AC
source. The total response will consist of the natural response which we already know from
the previous example, and the forced response which is the AC steady-state response, will be
found by phasor analysis.
The to j transformation yields
The admittance is
where
and thus
Now, we find the phasor voltage as
and to transformation yields
The total solution is
(1.76)
Now, we need to evaluate the constants and .
With the initial condition (1.76) becomes
i
S
20 6400t 90 + ( )u sin
0
t ( ) A =
v t ( ) 50 O
1 640 F '
i
C
i
L
i
R
10 H
i
S
v
n
t ( )
v
f
t ( )
t domain jc domain
i
s
t ( ) 20 6400t 90 + ( ) sin 20 6400t I = cos 20 0 Z = = =
Y
Y G j cC
1
cL
--------
\ .
| |
+ G
2
cC
1
cL
--------
\ .
| |
2
+ cC
1
cL
--------
\ .
| |
G '
1
tan Z = =
G
1
R
---- =
1
50
------ = cC 6400
1
640
--------- 10 and
1
cL
--------
1
6400 10
------------------------
1
64000
--------------- = = = = ,
Y
1
50
------
\ .
| |
2
10
1
64000
---------------
\ .
| |
2
+ 10
1
64000
---------------
\ .
| |
1
50
------ '
\ .
| |
1
tan Z 10 89.72 Z = =
V
V
I
Y
----
20 0 Z
10 89.72 Z
--------------------------- 2 89.72 Z = = =
jc domain t domain
V 2 89.72 Z v
f
t ( ) = 2 6400t 89.72 ( ) cos = =
v t ( ) v
n
t ( ) v
f
t ( ) + ke
6.4t
4.8t + ( ) cos = = 2 6400t 89.72 ( ) cos +
k
v
C
0 ( ) 5 V =
Chapter 1 Second Order Circuits
1-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or
(1.77)
To make use of the second initial condition, we differentiate (1.76) using MATLAB as follows,
and then we evaluate it at .
syms t k phi; y0=k*exp(-6.4*t)*cos(4.8*t+phi)+2*cos(6400*t-1.5688); % Must have Sym Math
y1=diff(y0); % Differentiate v(t) of (1.76)
y1 = -32/5*k*exp(-32/5*t)*cos(24/5*t+phi)-24/5*k*exp(-32/
5*t)*sin(24/5*t+phi)-12800*sin(6400*t-1961/1250)
or
and
(1.78)
With (1.77) we obtain
(1.79)
Also, or and
or
(1.80)
Equating (1.79) with (1.80) and solving for we obtain
or
Then with (1.77) and (1.81),
or
The value of the constant is found from (1.77), that is,
v 0 ( ) v
C
0 ( ) ke
0
cos = = 2 89.72 ( ) cos + 5 =
k cos 5 =
t 0 =
dv
dt
------ 6.4ke
6.4t
4.8t + ( ) cos 4.8ke
6.4t
4.8t + ( ) sin 12800 6400t 1.5688 ( ) sin =
dv
dt
------
t 0 =
6.4k cos 4.8k sin 12800 1.5688 ( ) sin =
6.4k cos 4.8k sin 12800 + =
dv
dt
------
t 0 =
32 4.8k sin 12800 + = 4.8k sin 12832 + =
i
C
C
dv
dt
------ =
dv
dt
------
i
C
C
---- =
dv
dt
------
t 0
+
=
i
C
0
+
( )
C
---------------
i
S
0
+
( ) i
R
0
+
( ) i
L
0
+
( )
C
------------------------------------------------------ = =
dv
dt
------
t 0 =
i
S
0
+
( ) v
C
0 ( ) R ' i
L
0 ( )
C
-------------------------------------------------------------
20 5 50 ' 2
1 640 '
------------------------------- 11456 = = =
k
4.8k sin 12832 + 11456 =
k sin 287 =
k sin
k cos
--------------- tan
287
5
--------- 57.4 = = =
1.53 rad 89 = =
k
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-29
Copyright Orchard Publications
Parallel RLC Circuit
By substitution into (1.76), we obtain the total solution as
(1.81)
With MATLAB we obtain the plot shown in Figure 1.23. The plot was created with the MAT-
LAB script below.
t=0: 0.01: 1; vt=279.4.*exp(-6.4.*t).*cos(4.8.*t+89*pi./180)+2.*cos(6400.*t-89.72.*pi./180);
plot(t,vt); grid
Figure 1.23. Plot for of Example 1.6
The same results are obtained with the Simulink/SimPowerSystems model shown in Figure 1.24.
Figure 1.24. Simulink/SimPowerSystems model for the circuit in Figure 1.23
The waveform displayed by the Scope block is shown in Figures 1.25, and we observe that it is
consistent with the waveform shown in Figure 1.23.
k 5 89 cos ( ) ' 279.4 = =
v t ( ) 279.4e
6.4t
4.8t 89 + ( ) cos = 2 6400t 89.72 ( ) cos +
v t ( )
Chapter 1 Second Order Circuits
1-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 1.25. Waveform displayed by the Scope block in Figure 1.24
1.4 Other Second Order Circuits
Second order circuits are not restricted to RLC circuits. They include amplifiers and filter among
others, and since it is beyond the scope of this text to analyze such circuits in detail, we will illus-
trate the transient analysis of a second order active low-pass filter.
Example 1.7
The circuit of Figure 1.26 a known as a Multiple Feed Back (MFB) active low-pass filter. For this
circuit, the initial conditions are . Compute and sketch for .
Figure 1.26. Circuit for Example 1.7
Solution:
At node :
(1.82)
At node :
(1.83)
v
C1
v
C2
0 = = v
out
t ( ) t 0 >
v
in
v
out
40 kO
200 kO
50 kO
25 nF
10 nF
R
1
C
1
v
1
v
2
+
+
-
-
v
in
(t)= (6.25 cos 6280t)u(t) V
R
3
R
2
C
2
V
1
v
1
v
i n

R
1
----------------- C
1
dv
1
dt
--------
v
1
v
out

R
2
-------------------
v
1
v
2

R
3
---------------- + + + 0 t 0 > =
V
2
v
2
v
1

R
3
---------------- C
2
dv
out
dt
------------ =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-31
Copyright Orchard Publications
Other Second Order Circuits
We observe that (virtual ground).
Collecting like terms and rearranging (1.83) and (1.84) we obtain
(1.84)
and
(1.85)
Differentiation of (1.86) yields
(1.86)
and by substitution of given numerical values into (1.85) through (1.87), we obtain
or
(1.87)
(1.88)
(1.89)
Next, substitution of (1.89) and (1.90) into (1.88) yields
(1.90)
or
and division by yields
or
(1.91)
v
2
0 =
1
R
1
------
1
R
2
------
1
R
3
------ + +
\ .
| |
v
1
C
1
dv
1
dt
--------
1
R
2
------v
out
+
1
R
1
------v
i n
=
v
1
R
3
C
2
dv
out
dt
------------ =
dv
1
dt
-------- R
3
C
2
dv
2
out
dt
2
-------------- =
1
2 10
5

------------------
1
4 10
4

------------------
1
5 10
4

------------------ + +
\ .
| |
v
1
25 10
9

dv
1
dt
--------
1
4 10
4

------------------v
out
+
1
2 10
5

------------------v
i n
=
0.05 10
3
( )v
1
25 10
9

dv
1
dt
-------- 0.25 10
4
( )v
out
+ 0.5 10
5
( )v
in
=
v
1
5 10
4

dv
out
dt
------------ =
dv
1
dt
-------- 5 10
4 d
2
v
out
dt
2
-------------- =
0.05 10
3
5 10
4
dv
out
dt
------------
\ .
| |
25 10
9
5 10
4
( )
d
2
v
out
dt
2
--------------
0.25 10
4
( )v
out

+
0.5 10
5
( )v
i n
=
125 10
13

d
2
v
out
dt
2
-------------- 0.25 10
7
dv
out
dt
------------ 0.25 10
4
( )v
out
10
4
v
in
=
125 10
13

d
2
v
out
dt
2
--------------- 2 10
3
dv
out
dt
------------ 2 10
6
v
out
+ + 1.6 10
5
( )v
i n
=
d
2
v
out
dt
2
--------------- 2 10
3
dv
out
dt
------------ 2 10
6
v
out
+ + 10
6
6280t cos =
Chapter 1 Second Order Circuits
1-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We use MATLAB to find the roots of the characteristic equation of (1.92).
syms s; y0=solve('s^2+2*10^3*s+2*10^6') % Must have Symbolic Math Toolbox installed
y0 =
[-1000+1000*i]
[-1000-1000*i]
that is,
We cannot classify the given circuit as series or parallel and therefore, we should not use the
damping ratio or . Instead, for the natural response we will use the general expression
(1.92)
where
Therefore, the natural response is oscillatory and has the form
(1.93)
Since the right side of (1.92) is a sinusoid, the forced response has the form
(1.94)
Of course, for the derivation of the forced response we could use phasor analysis but we must first
derive an expression for the impedance or admittance, since the expressions we used earlier were
for series and parallel circuits only.
The coefficients and will be found by substitution of (1.95) into (1.92) and then by equat-
ing like terms. Using MATLAB we obtain:
syms t k3 k4; y0=k3*cos(6280*t)+k4*sin(6280*t); y1=diff(y0)
y1 =
-6280*k3*sin(6280*t)+6280*k4*cos(6280*t)
y2=diff(y0,2)
y2 =
-39438400*k3*cos(6280*t)-39438400*k4*sin(6280*t)
y=y2+2*10^3*y1+2*10^6*y0
y =
-37438400*k3*cos(6280*t)-37438400*k4*sin(6280*t)-
12560000*k3*sin(6280*t)+12560000*k4*cos(6280*t)
Equating like terms with (1.92) we obtain
s
1
s
2
, o j 1000 j1000 1000 1 j1 ( ) = = =
o
S
o
P
v
n
t ( )
v
n
t ( ) Ae
s
1
t
= Be
s
2
t
+ e
ot
k
1
t cos k
2
t sin + ( ) =
s
1
s
2
, o j 1000 j1000 = =
v
n
t ( ) e
1000t
k
1
1000t cos k
2
1000t sin + ( ) =
v
f
t ( ) k
3
6280t cos k
4
6280t sin + =
k
3
k
4
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-33
Copyright Orchard Publications
Other Second Order Circuits
(1.95)
Simultaneous solution of the equations of (1.96) is done with MATLAB.
syms k3 k4
eq1=-37438400*k3+12560000*k4+10^6;
eq2=-12560000*k3-37438400*k4+0;
y=solve(eq1,eq2)
y =
k3: [1x1 sym]
k4: [1x1 sym]
y.k3
ans =
0.0240
y.k4
ans =
-0.0081
that is, and . Then, by substitution into (1.95)
(1.96)
The total response is
(1.97)
We will use the initial conditions to evaluate and . We observe that
and at relation (1.98) becomes
or and thus (1.98) simplifies to
(1.98)
To evaluate the constant , we make use of the initial condition . We observe that
and by KCL at node we have:
37438400 k
3
12560000 k
4
+ ( ) 6280t cos 10
6
6280t cos =
12560000 k
3
37438400 k
4
( ) 6280t sin 0 =
k
3
0.024 = k
4
0.008 =
v
f
t ( ) 0.024 6280t cos 0.008 6280t sin =
v
out
t ( ) v
n
t ( ) v
f
t ( ) + e
1000t
k
1
1000t cos k
2
1000t sin + ( )
0.024 6280t cos 0.008 6280t sin +
= =
v
C1
v
C2
0 = = k
1
k
2
v
C2
v
out
= t 0 =
v
out
0 ( ) e
0
k
1
0 cos 0 + ( ) 0.024 0 cos 0 + 0 = =
k
1
0.024 =
v
out
t ( ) e
1000t
0.024 1000t cos k
2
1000t sin + ( )
0.024 6280t cos 0.008 6280t sin +
=
k
2
v
C1
0 ( ) 0 =
v
C1
v
1
= v
1
v
1
v
2

R
3
---------------- C
2
dv
out
dt
------------ + 0 =
Chapter 1 Second Order Circuits
1-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or
or
and since , it follows that
(1.99)
The last step in finding the constant is to differentiate (1.99), evaluate it at , and equate
it with (1.100). This is done with MATLAB as follows:
y0=exp(-1000*t)*(-0.024*cos(1000*t)+k2*sin(1000*t))...
+0.024*cos(6280*t)-0.008*sin(6280*t);
y1=diff(y0)
y1 =
-1000*exp(-1000*t)*(-3/125*cos(1000*t)+k2*sin(1000*t))+exp(-
1000*t)*(24*sin(1000*t)+1000*k2*cos(1000*t))-3768/
25*sin(6280*t)-1256/25*cos(6280*t)
or
and
(1.100)
Simplifying and equating (1.100) with (1.101) we obtain
or
and by substitution into (1.99),
(1.101)
The plot is shown in Figure 1.27.
v
1
0
5 10
4

----------------- 10
8
=
dv
out
dt
------------
v
1
5 10
4
=
dv
out
dt
------------
v
C1
0 ( ) v
1
0 ( ) 0 = =
dv
out
dt
------------
t 0 =
0 =
k
2
t 0 =
dv
out
dt
------------ 1000e
1000t 3
125
--------- 1000t k
2
1000t sin + cos
\ .
| |
e
1000t
24 1000t 1000k
2
1000t cos + sin ( )
3768
25
------------ 6280t ( ) sin
1256
25
------------ 6280t cos
+ =
dv
out
dt
------------
t 0 =
1000
3
125
---------
\ .
| |
1000k
2
1256
25
------------ + =
1000k
2
26.24 0 =
k
2
0.026 =
v
out
t ( ) e
1000t
0.024 1000t cos 0.026 1000t sin + ( ) 0.024 6280t cos 0.008 6280t sin + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-35
Copyright Orchard Publications
Other Second Order Circuits
Figure 1.27. Plot of for Example 1.7
Time (sec)
V
o
l
t
a
g
e

(
V
)
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
x 10
-3
-0.04
-0.03
-0.02
-0.01
0
0.01
0.02
0.03
t
v
t
Response vt for Example 1.7
v
out
t ( )
Chapter 1 Second Order Circuits
1-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
1.5 Summary
- Circuits that contain energy storing devices can be described by integrodifferential equations
and upon differentiation can be simplified to differential equations with constant coefficients.
- A second order circuit contains two energy storing devices. Thus, an RLC circuit is a second
order circuit.
- The total response is the summation of the natural and forced responses.
- If the differential equation describing a series RLC circuit that is excited by a constant (DC)
voltage source is written in terms of the current, the forced response is zero and thus the total
response is just the natural response.
- If the differential equation describing a parallel RLC circuit that is excited by a constant (DC)
current source is written in terms of the voltage, the forced response is zero and thus the total
response is just the natural response.
- If a circuit is excited by a sinusoidal (AC) source, the forced response is never zero.
- The natural response of a second order circuit may be overdamped, critically damped, or
underdamped depending on the values of the circuit constants.
- For a series RLC circuit, the roots and are found from
or
where
If , the roots and are real, negative, and unequal. This results in the overdamped
natural response and has the form
If , the roots and are real, negative, and equal. This results in the critically
damped natural response and has the form
If , the roots and are complex conjugates. This is known as the underdamped or
oscillatory natural response and has the form
s
1
s
2
s
1
s
2
, o
S
o
S
2
c
0
2
o
S

S
if o
S
2
c
0
2
> = =
s
1
s
2
, o
S
c
0
2
o
S
2
o
S
c
nS
if c
0
2
o
S
2
> = =
o
S
R
2L
------- = c
0
1
LC
------------ =
S
o
S
2
c
0
2
= c
nS
c
0
2
o
S
2
=
o
S
2
c
0
2
> s
1
s
2
i
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ =
o
S
2
c
0
2
= s
1
s
2
i
n
t ( ) e
o
S
t
k
1
k
2
t + ( ) =
c
0
2
o
S
2
> s
1
s
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-37
Copyright Orchard Publications
Summary
- For a parallel RLC circuit, the roots and are found from
or
where
If , the roots and are real, negative, and unequal. This results in the overdamped
natural response and has the form
If , the roots and are real, negative, and equal. This results in the critically
damped natural response and has the form
If , the roots and are complex conjugates. This results in the underdamped or
oscillatory natural response and has the form
- If a second order circuit is neither series nor parallel, the natural response if found from
or
or
depending on the roots of the characteristic equation being real and unequal, real and equal, or
complex conjugates respectively.
i
n
t ( ) e
o
S
t
k
1
c
nS
cos t k
2
c
nS
t sin + ( ) k
3
e
o
S
t
c
nS
cos t + ( ) = =
s
1
s
2
s
1
s
2
, o
P
o
P
2
c
0
2
o
P

P
if o
P
2
c
0
2
> = =
s
1
s
2
, o
P
c
0
2
o
P
2
o
P
c
nP
if c
0
2
o
P
2
> = =
o
P
G
2C
------- = c
0
1
LC
------------ =
P
o
P
2
c
0
2
= c
nP
c
0
2
o
P
2
=
o
P
2
c
0
2
> s
1
s
2
v
n
t ( ) k
1
e
s
1
t
k
2
e
s
2
t
+ =
o
P
2
c
0
2
= s
1
s
2
v
n
t ( ) e
o
P
t
k
1
k
2
t + ( ) =
c
0
2
o
P
2
> s
1
s
2
v
n
t ( ) e
o
P
t
k
1
c
nP
cos t k
2
c
nP
t sin + ( ) k
3
e
o
P
t
c
nP
cos t + ( ) = =
y
n
k
1
e
s
1
t
= k
2
e
s
2
t
+
y
N
k
1
k
2
t + ( ) e
s
1
t
=
y
n
e
ot
k
3
t cos k
4
sin t + ( ) e
ot
k
5
t + ( ) cos = =
Chapter 1 Second Order Circuits
1-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
1.6 Exercises
1. For the circuit below it is known that and . Compute and sketch
and for .
2. For the circuit below it is known that and . Compute and sketch
and for .
3. In the circuit below the switch has been closed for a very long time and opens at .
Compute for .
4. In the circuit below, the switch has been closed for a very long time and opens at .
Compute for .
v
C
0
-
( ) 0 = i
L
0
-
( ) 0 = v
C
t ( )
i
L
t ( ) t 0 >
+
-
100u
0
t ( ) V
10 O
0.2 H
8 mF
i
L
t ( )
+
-
v
C
t ( )
v
C
0
-
( ) 0 = i
L
0
-
( ) 0 = v
C
t ( )
i
L
t ( ) t 0 >
+
-
100u
0
t ( ) V
4 O
5 H
21.83 mF
i
L
t ( )
+
-
v
C
t ( )
S t 0 =
v
C
t ( ) t 0 >
+
-
-
+
20 H 100 O
100 V
400 O
v
C
t ( )
1 120 ' F
S t 0 =
S t 0 =
v
C
t ( ) t 0 >
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-39
Copyright Orchard Publications
Exercises
5. In the circuit below the switch has been in position for closed for a very long time and it is
placed in position at . Find the value of that will cause the circuit to become criti-
cally damped and then compute and for
6. In the circuit below the switch has been closed for a very long time and opens at . Com-
pute for .
7. Create a Simulink/SimPowerSystems model for the circuit below.
This is the same circuit as in Example 1.4, Page 1-21 where we found that . The ini-
tial conditions are the same as in Example 1.4, that is, and ,
+
-
-
+
20 H 100 O
400 O
v
C
t ( )
1 120 ' F
S
t 0 =
v
S
v
S
100 t cos ( )u
0
t ( ) V =
S A
B t 0 = R
v
C
t ( ) i
L
t ( ) t 0 >
+
-
-
+
12 V
3 O
2 O
R
A
B
S
6 O
3 H
v
C
t ( )
1 12 ' F
i
L
t ( )
t 0 =
S t 0 =
v
AB
t ( ) t 0 >
+
-
12 V
4 O
2 H 1 4 F '
B
A
S
t 0 =
2 O
10u
0
t ( ) A
v t ( ) 40 O
1 640 F '
i
C
i
L
i
R
10 H
R 40 O =
i
L
0 ( ) 2 A = v
C
0 ( ) 5 V =
Chapter 1 Second Order Circuits
1-40 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
1.7 Solutions to End-of-Chapter Exercises
Dear Reader:
The remaining pages on this chapter contain solutions to the End-of-Chapter exercises.
You must, for your benefit, make an honest effort to solve the problems without first looking at
the solutions that follow. It is recommended that first you go through and answer those you feel
that you know. For the exercises that you are uncertain, review the pertinent section(s) in this
chapter and try again. If your answers to the exercises do not agree with those provided, look over
your procedures for inconsistencies and computational errors. Refer to the solutions as a last
resort and rework those problems at a later date.
You should follow this practice with the problems in all chapters of this book.
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-41
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
1.
and since , the above becomes
From the characteristic equation
we obtain (critical damping) and
The total solution is
(1)
With the first initial condition the above expression becomes
and by substitution into (1) we obtain
(2)
+
-
100u
0
t ( ) V
10 O
0.2 H
8 mF
i
L
t ( )
+
-
v
C
t ( )
i t ( )
Ri L
di
dt
----- v
C
+ + 100 = t 0 >
i i
C
C
dv
C
dt
--------- = =
RC
dv
C
dt
--------- LC
d
2
v
C
dt
2
----------- v
C
+ + 100 =
d
2
v
C
dt
2
-----------
R
L
----
dv
C
dt
---------
1
LC
--------v
C
+ +
100
LC
--------- =
d
2
v
C
dt
2
-----------
10
0.2
-------
dv
C
dt
---------
1
0.2 8 10
3

--------------------------------- v
C
+ +
100
0.2 8 10
3

--------------------------------- =
d
2
v
C
dt
2
----------- 50
dv
C
dt
--------- 625 v
C
+ + 62500 =
s
2
50s 625 + + 0 =
s
1
s
2
25 = = o
S
R 2L ' 25 = =
v
C
t ( ) v
Cf
v
Cn
+ 100 e
o
S
t
k
1
k
2
t + ( ) + 100 e
25t
k
1
k
2
t + ( ) + = = =
v
C
0
-
( ) 0 =
0 100 e
0
k
1
0 + ( ) + =
k
1
100 =
v
C
t ( ) 100 e
25 t
k
2
t 100 ( ) + =
Chapter 1 Second Order Circuits
1-42 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
To evaluate we make use of the second initial condition and since , and
, we differentiate (2) using the following MATLAB script:
syms t k2 % Must have Symbolic Math Toolbox installed
v0=100+exp(-25*t)*(k2*t-100); v1=diff(v0)
v1 =
-25*exp(-25*t)*(k2*t-100)+exp(-25*t)*k2
Thus,
and
(3)
Also, and at
(4)
From (3) and (4) or and by substitution into (2)
(5)
We find by differentiating (5) and multiplication by .
Using MATLAB we obtain:
syms t % Must have Symbolic Math Toolbox installed
C=8*10^(-3); i0=C*(100-exp(-25*t)*(100+2500*t)); iL=diff(i0)
iL =
1/5*exp(-25*t)*(100+2500*t)-20*exp(-25*t)
Thus,
The plots for and are shown below.
k
2
i
L
0
-
( ) 0 = i
L
i
C
=
i i
C
C
dv
C
dt
--------- = =
dv
C
dt
--------- k
2
e
25t
25e
25t
k
2
t 100 ( ) =
dv
C
dt
---------
t 0 =
k
2
2500 + =
dv
C
dt
---------
i
C
C
----
i
L
C
---- = = t 0 =
dv
C
dt
---------
t 0 =
i
L
0
-
( )
C
--------------- 0 = =
k
2
2500 + 0 = k
2
2500 =
v
C
t ( ) 100 e
25t
2500t 100 + ( ) =
i
L
t ( ) i
C
t ( ) = C
i
L
t ( ) i
C
t ( ) 0.2e
25t
100 2500t + ( ) 20e
25t
= =
v
C
t ( ) i
L
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-43
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
2.
The general form of the differential equation that describes this circuit is same as in Exercise 1,
that is,
From the characteristic equation and the MATLAB script below
Time (sec)
V
o
l
t
a
g
e

(
V
) v
C
t ( ) 100 e
25 t
2500t 100 + ( ) =
Time (sec)
C
u
r
r
e
n
t

(
A
)
i
L
t ( ) 0.2e
25t
100 2500t + ( ) 20e
25t
=
+
-
100u
0
t ( ) V
4 O
5 H
21.83 mF
i
L
t ( )
+
-
v
C
t ( )
d
2
v
C
dt
2
-----------
R
L
----
dv
C
dt
---------
1
LC
--------v
C
+ +
100
LC
--------- = t 0 >
d
2
v
C
dt
2
----------- 0.8
dv
C
dt
--------- 9.16v
C
+ + 916 =
s
2
0.8s 9.16 + + 0 =
Chapter 1 Second Order Circuits
1-44 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
s=[1 0.8 9.16]; roots(s)
we obtain
ans =
-0.4000 + 3.0000i
-0.4000 - 3.0000i
that is, and . Therefore, the total solution is
where
and
Thus,
(1)
and with the initial condition we obtain
or
(2)
To evaluate and we differentiate (1) using MATLAB and evaluate it at .
syms t k phi; v0=100+k*exp(-0.4*t)*cos(3*t+phi); v1=diff(v0)
% Must have Symbolic Math Toolbox installed
v1 =
-2/5*k*exp(-2/5*t)*cos(3*t+phi)-3*k*exp(-2/5*t)*sin(3*t+phi)
or
and with (2)
(3)
Also, and at
s
1
0.4 j3 + = s
2
0.4 j3 =
v
C
t ( ) v
Cf
v
Cn
+ 100 ke
o
S
t
c
nS
t + ( ) cos + = =
o
S
R 2L ' 0.4 = =
c
nS
c
0
2
o
S
2
1 LC ' R
2
4L
2
' 9.16 0.16 3 = = = =
v
C
t ( ) 100 ke
0.4t
3t + ( ) cos + =
v
C
0
-
( ) 0 =
0 100 k 0 + ( ) cos + =
k cos 100 =
k t 0 =
dv
C
dt
--------- 0.4k e
0.4t
3t + ( ) cos 3ke
0.4t
3 t + ( ) sin =
dv
C
dt
---------
t 0 =
0.4k cos 3k sin =
dv
C
dt
---------
t 0 =
40 3k sin =
dv
C
dt
---------
i
C
C
----
i
L
C
---- = = t 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-45
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
(4)
From (3) and (4)
(5)
and from (2) and (5)
The value of can be found from either (2) or (5). From (2)
and by substitution into (1)
(6)
Since , we use MATLAB to differentiate (6).
syms t; vC=100-100.8*exp(-0.4*t)*cos(3*t-0.1326); C=0.02183; iL=C*diff(vC)
% Must have Symbolic Math Toolbox installed
iL =
137529/156250*exp(-2/5*t)*cos(3*t-663/5000)+412587/62500*exp(-
2/5*t)*sin(3*t-663/5000)
137529/156250, 412587/62500
ans =
0.8802
ans =
6.6014
The plots for and are shown below.
dv
C
dt
---------
t 0 =
i
L
0
-
( )
C
--------------- 0 = =
3k sin 40 =
3k sin
k cos
------------------
40
100
------------ =
3 tan 0.4 =
0.4 3 ' ( )
1
tan 0.1326 rad 7.6 = = =
k
k 0.1236 ( ) cos 100 =
k
100
0.1236 ( ) cos
--------------------------------- 100.8 = =
v
C
t ( ) 100 100.8 e
0.4t
3t 7.6 ( ) cos =
i
L
t ( ) i
C
t ( ) C dv
C
dt ' ( ) = =
i
L
t ( ) 0.88e
0.4t
3t 7.6 ( ) 6.6e
0.4t
3t 7.6 ( ) sin + cos =
v
C
t ( ) i
L
t ( )
Chapter 1 Second Order Circuits
1-46 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
3.
At the circuit is as shown below.
At this time the inductor behaves as a short and the capacitor as an open. Then,
and this establishes the first initial condition as . Also,
Time (sec)
V
o
l
t
a
g
e

(
V
)
v
C
t ( ) 100 100.8 e
0.4t
3t 7.6 ( ) cos =
C
u
r
r
e
n
t

(
A
)
Time (sec)
i
L
t ( ) 0.88e
0.4t
3t 7.6 ( )
6.6e
0.4t
3t 7.6 ( ) sin
+ cos =
t 0
-
=
+
-
-
+
20 H 100 O
100 V
400 O
v
C
0
-
( )
1 120 ' F
i
L
0
-
( )
i
L
0
-
( ) 100 100 400 + ( ) ' I
0
0.2 A = = =
I
0
0.2 A =
v
C
0
-
( ) v
400 O
400 i
L
0
-
( ) 400 0.2 V
0
80 V = = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-47
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and this establishes the second initial condition as .
For the circuit is as shown below.
The general form of the differential equation that describes this circuit is same as in Exercise 1,
that is,
From the characteristic equation we find that and and the
total response for the capacitor voltage is
(1)
Using the initial condition we obtain
or
(2)
Differentiation of (1) and evaluation at yields
(3)
Also, and at
(4)
Equating (3) and (4) we obtain
V
0
80 V =
t 0 >
+
-
-
+
20 H 100 O
100 V
v
C
t ( )
1 120 ' F
d
2
v
C
dt
2
-----------
R
L
----
dv
C
dt
---------
1
LC
--------v
C
+ +
100
LC
--------- = t 0 >
d
2
v
C
dt
2
----------- 5
dv
C
dt
--------- 6v
C
+ + 600 =
s
2
5s 6 + + 0 = s
1
2 = s
2
3 =
v
C
t ( ) v
Cf
v
Cn
+ 100 k
1
e
s
1
t
k
2
e
s
2
t
+ + 100 k
1
e
2t
k
2
e
3t
+ + = = =
V
0
80 V =
v
C
0
-
( ) V
0
80 V 100 k
1
e
0
k
2
e
0
+ + = = =
k
1
k
2
+ 20 =
t 0 =
dv
C
dt
---------
t 0 =
2k
1
3k
2
=
dv
C
dt
---------
i
C
C
----
i
L
C
---- = = t 0 =
dv
C
dt
---------
t 0 =
i
L
0
-
( )
C
---------------
0.2
1 120 '
---------------- 24 = = =
Chapter 1 Second Order Circuits
1-48 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(5)
and simultaneous solution of (2) and (5) yields and
By substitution into (1) we find the total solution
4.
This is the same circuit as in Exercise 3 where the DC voltage source has been replaced by an
AC source that is being applied at . No initial conditions were given so we will assume
that and . Also, the circuit constants are the same and thus the natu-
ral response has the form .
We will find the forced (steady-state) response using phasor circuit analysis where ,
, , and . The phasor circuit is shown below.
Using the voltage division expression we obtain
and in the . Therefore, the total response is
(1)
2k
1
3k
2
24 =
k
1
36 = k
2
16 =
v
C
t ( ) v
Cf
v
Cn
+ 100 36 e
2t
16e
3t
+ = =
+
-
-
+
20 H
100 O
400 O
v
C
t ( )
1 120 ' F
S
t 0 =
v
S
v
S
100 t cos ( )u
0
t ( ) V =
t 0
+
=
i
L
0
-
( ) 0 = v
C
0
-
( ) 0 =
v
Cn
k
1
e
2t
k
2
e
3t
+ =
c 1 =
jcL j20 = j cC ' j120 = 100 t 100 0 Z = cos
+
-
-
+
j20 O
100 O
V
S
V
S
100 0 V Z =
V
C
j 120 O
V
C
j120
100 j20 j120 +
----------------------------------------100 0 Z
j120
100 j100 +
--------------------------100 0 Z
120 90 100 0 Z Z
100 2 45 Z
---------------------------------------------------- 60 2 135 Z = = = =
t domain v
Cf
60 2 t 135 ( ) cos =
v
C
t ( ) 60 2 t 135 ( ) cos k
1
e
2t
k
2
e
3t
+ + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-49
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Using the initial condition and (1) we obtain
and since , the above expression reduces to
(2)
Differentiating (1) we obtain
and
or
(3)
Also, and at
(4)
Equating (3) and (4) we obtain
(5)
Simultaneous solution of (2) and (5) yields and . Then, by substitution into
(1) we obtain
5.
We must first find the value of before we can establish initial conditions for and
.
v
C
0
-
( ) 0 =
v
C
0
-
( ) 0 60 2 135 ( ) cos k
1
k
2
+ + = =
135 ( ) cos 2 2 ' =
k
1
k
2
+ 60 =
dv
C
dt
--------- 60 2 t 45 + ( ) sin 2k
1
e
2t
3k
2
e
3t
+ =
dv
C
dt
---------
t 0 =
60 2 45 ( ) sin 2k
1
3k
2
=
dv
C
dt
---------
t 0 =
60 2k
1
3k
2
=
dv
C
dt
---------
i
C
C
----
i
L
C
---- = = t 0 =
dv
C
dt
---------
t 0 =
i
L
0
-
( )
C
--------------- 0 = =
2k
1
3k
2
+ 60 =
k
1
120 = k
2
60 =
v
C
t ( ) 60 2 t 135 ( ) cos 120e
2t
60 e
3t
+ =
+
-
-
+
12 V
3 O
2 O
R
A
B
S
6 O
3 H
v
C
t ( ) 1 12 ' F
i
L
t ( )
t 0 =
R i
L
0
-
( ) 0 =
v
C
0
-
( ) 0 =
Chapter 1 Second Order Circuits
1-50 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The condition for critical damping is where and
. Then, where . Therefore,
, or , or , or and thus .
At the circuit is as shown below.
From the circuit above
and
At the circuit is as shown below.
Since the circuit is critically damped, the solution has the form
where and thus
(1)
With the initial condition relation (1) becomes or
and (1) simplifies to
(2)
o
P
2
c
0
2
0 = o
P
G 2C ' 1 2R' C ' = =
c
0
2
1 LC ' = o
P
2 1
2R' 1 12 '
---------------------------
\ .
| |
2
c
0
2
= =
1
3 1 12 '
---------------------- = R' R 2 O + =
12
2 R 2 + ( )
---------------------
\ .
| |
2
4 =
6
R 2 +
-------------
\ .
| |
2
4 = R 2 + ( )
2
36 4 ' 9 = = R 2 + 3 = R 1 =
t 0
-
=
+
-
-
+
12 V
3 O 1 O 6 O
v
C
0
-
( )
i
L
0
-
( )
v
6 O
+
-
v
C
0
-
( ) v
6 O
6
3 1 6 + +
--------------------- 12 7.2 V = = =
i
L
0
-
( )
v
6 O
6
---------
7.2
6
------- 1.2 A = = =
t 0
+
=
-
+
6 O
3 H v
C
t ( )
1 12 ' F
i
L
t ( )
1 O
2 O
i
C
t ( )
i
R
t ( )
v
C
t ( ) e
o
P
t
k
1
k
2
t + ( ) =
o
P
1
2 1 2 + ( ) 1 12 '
---------------------------------------
\ .
| |
2 = =
v
C
t ( ) e
2t
k
1
k
2
t + ( ) =
v
C
0
-
( ) 7.2 V = 7.2 e
0
k
1
0 + ( ) =
k
1
7.2 V =
v
C
t ( ) e
2t
7.2 k
2
t + ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-51
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Differentiating (2) we obtain
and
(3)
Also, and at
(4)
because at the capacitor is an open circuit.
Equating (3) and (4) we obtain or and by substitution into (2)
We find from or where
and . Then,
6.
At the circuit is as shown below where , , and
thus the initial conditions have been established.
For the circuit is as shown below.
dv
C
dt
--------- k
2
e
2 t
2e
2t
7.2 k
2
t + ( ) =
dv
C
dt
---------
t 0 =
k
2
2 7.2 0 + ( ) k
2
14.4 = =
dv
C
dt
---------
i
C
C
---- = t 0 =
dv
C
dt
---------
t 0 =
i
C
0 ( )
C
------------
0
C
---- 0 = = =
t 0 =
k
2
14.4 0 = k
2
14.4 =
v
C
t ( ) e
2t
7.2 14.4t + ( ) 7.2e
2t
2t 1 + ( ) = =
i
L
t ( ) i
R
t ( ) i
C
t ( ) i
L
t ( ) + + 0 = i
L
t ( ) i
C
t ( ) i
R
t ( ) = i
C
t ( ) C dv
C
dt ' ( ) =
i
R
t ( ) v
R
t ( ) 1 2 + ( ) ' v
C
t ( ) 3 ' = =
i
L
t ( )
1
12
------ 14.4e
2t
2t 1 + ( ) 14.4e
2t
+ ( )
7.2
3
-------e
2t
2t 1 + ( ) 2.4e
2t
t 1 + ( ) = =
t 0
-
= i
L
0
-
( ) 12 2 ' 6 A = = v
C
0
-
( ) 12 V =
+
-
12 V
4 O
2 H
1 4 F '
B
A
2 O
-
+
v
C
0
-
( )
i
L
0
-
( )
t 0 >
Chapter 1 Second Order Circuits
1-52 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
For this circuit
and with the above relation can be written as
The characteristic equation of the last expression above yields and and thus
(1)
With the initial condition and (1) we obtain
(2)
Differentiating (1) we obtain
and
(3)
Also, and at
(4)
From (3) and (4)
(5)
4 O
2 H
1 4 F '
B
A
2 O
-
+
v
C
t ( )
i
L
t ( )
R
1
R
2
L
R
1
R
2
+ ( ) i
L
v
C
L
di
L
dt
------- + + 0 =
i
L
i
C
C dv
C
dt ' ( ) = =
R
1
R
2
+ ( )C
dv
C
dt
--------- LC
d
2
v
C
dt
2
----------- v
C
+ + 0 =
d
2
v
C
dt
2
-----------
R
1
R
2
+ ( )
L
-----------------------
dv
C
dt
---------
1
LC
--------v
C
+ + 0 =
d
2
v
C
dt
2
----------- 3
dv
C
dt
--------- 2v
C
+ + 0 =
s
1
1 = s
2
2 =
v
C
t ( ) k
1
e
t
k
2
e
2t
+ =
v
C
0
-
( ) 12 V =
k
1
k
2
+ 12 =
dv
C
dt
--------- k
1
e
t
2k
2
e
2t
=
dv
C
dt
---------
t 0 =
k
1
2k
2
=
dv
C
dt
---------
i
C
C
----
i
L
C
---- = = t 0 =
dv
C
dt
---------
t 0 =
i
L
0 ( )
C
------------
6
1 4 '
---------- 24 = = =
k
1
2k
2
24 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 1-53
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and from (2) and (5) and . By substitution into (1) we obtain
Thus,
The plot for is shown below.
k
1
48 = k
2
36 =
v
C
t ( ) 48e
t
36 e
2t
=
v
AB
v
L
t ( ) v
C
t ( ) L
di
L
dt
------- v
C
t ( ) LC
d
2
i
C
dt
2
---------- v
C
t ( ) = = =
0.5
d
2
dt
2
------- 48e
t
36 e
2t
( )
\ .
| |
48e
t
36 e
2t
=
0.5 48e
t
144 e
2t
( ) 48e
t
36 e
2t
=
24 e
t
108 e
2t
24 e
t
4.5e
2t
+ ( ) = =
v
AB
Time (sec)
V
o
l
t
a
g
e

(
V
)
v
AB
24 e
t
4.5e
2t
+ ( ) =
Chapter 1 Second Order Circuits
1-54 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-1
Copyright Orchard Publications
Chapter 2
Resonance
his chapter defines series and parallel resonance. The quality factor is then defined in
terms of the series and parallel resonant frequencies. The half-power frequencies and
bandwidth are also defined in terms of the resonant frequency.
2.1Series Resonance
Consider phasor series circuit of Figure 2.1.
Figure 2.1. Series RLC phasor circuit
The impedance is
(2.1)
or
(2.2)
Therefore, the magnitude and phase angle of the impedance are:
(2.3)
and
(2.4)
The components of are shown on the plot in Figure 2.2.
The frequency at which the capacitive reactance and the inductive reactance
are equal is called the resonant frequency. The resonant frequency is denoted as or
and these can be expressed in terms of the inductance and capacitance by equating the
reactances, that is,
T
Q
RLC
V
S
I
R

1 jcC '
jcL
Z
Impedance Z
Phasor Voltage
Phasor Current
-------------------------------------
V
S
I
------ R jcL
1
jcC
---------- + + R j cL
1
cC
--------


+ = = = = =
Z R
2
cL 1 cC ' ( )
2
+ cL 1 cC ' ( ) R '
1
tan Z =
Z R
2
cL 1 cC ' ( )
2
+ =
0
Z
cL 1 cC ' ( ) R '
1
tan =
Z
X
C
1 cC ' =
X
L
cL = c
0
f
0
L C
c
0
L
1
c
0
C
---------- =




Chapter 2 Resonance
2-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 2.2. The components of in a series RLC circuit
or
(2.5)
and
(2.6)
We observe that at resonance where denotes the impedance value at resonance, and
. In our subsequent discussion the subscript zero will be used to indicate that the circuit
variables are at resonance.
Example 2.1
For the circuit shown in Figure 2.3, compute , , C, , , and . Then, draw a
phasor diagram showing , , and .
Figure 2.3. Circuit for Example 2.1
M
a
g
n
i
t
u
d
e

o
f

I
m
p
e
d
a
n
c
e
Radian Frequency c ( )
Z
R
cL
1
cC
--------
cL
1
cC
--------
Series Resonance Curves
Z
c
0
2 1
LC
-------- =
c
0
1
LC
------------ =
f
0
1
2r LC
------------------ =
Z
0
R = Z
0
0
Z
0 =
I
0
c
0
V
R0
V
L0
V
C0
V
R0
V
L0
V
C0
V
S
I
L=0.2 mH
C
j X
C
120 0 V Z
1.2 O jX
L
j10 O =
R
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-3
Copyright Orchard Publications
Series Resonance
Solution:
At resonance,
and thus
Then,
Since
it follows that
Therefore,
or
Now,
and
The phasor diagram showing , , and is shown in Figure 2.4.
Figure 2.4. Phasor diagram for Example 2.1
Figure 2.4 reveals that and these voltages are much higher than the
applied voltage of . This illustrates the useful property of resonant circuits to develop high
voltages across capacitors and inductors.
jX
L
jX
C
=
Z
0
R 1.2 O = =
I
0
120 V
1.2 O
--------------- 100 A = =
X
L0
c
0
L 10 O = =
c
0
10
L
------
10
0.2 10
3

------------------------ 50000 rad s ' = = =


X
C0
X
L0
10
1
c
0
C
---------- = = =
C
1
10 50000
--------------------------- 2 F = =
V
R0
RI
0
1.2 100 120 V = = =
V
L0
c
0
LI
0
50000 0.2 10
3
100 1000 = = =
V
C0
1
c
0
C
----------I
0
1
50000 2 10
6

----------------------------------------- 100 1000 V = = =
V
R0
V
L0
V
C0
V
R0
= 120 V
|V
L0
| = 1000 V
|V
C0
| = 1000 V
V
L0
V
C0
1000 V = =
120 V
Chapter 2 Resonance
2-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
2.2 Quality Factor Q
0
s
in Series Resonance
The quality factor
*
is an important parameter in resonant circuits. Its definition is derived from
the following relations:
At resonance,
and
Then
(2.7)
and
(2.8)
At series resonance the left sides of (2.7) and (2.8) are equal and therefore,
Then, by definition
(2.9)
In a practical circuit, the resistance in the definition of above, represents the resistance of
the inductor and thus the quality factor is a measure of the energy storage property of the induc-
tance in relation to the energy dissipation property of the resistance of that inductance.
In terms of , the magnitude of the voltages across the inductor and capacitor are
(2.10)
and therefore, we say that there is a resonant rise in the voltage across the reactive devices and
it is equal to the times the applied voltage. Thus in Example 2.1,
* We denote the quality factor for series resonant circuits as , and the quality factor for parallel resonant cir-
cuits as .
Q
0S
Q
0P
c
0
L
1
c
0
C
---------- =
I
0
V
S
R
--------- =
V
L0
c
0
LI
0
c
0
L
V
S
R
---------
c
0
L
R
---------- V
S
= = =
V
C0
1
c
0
C
----------I
0
1
c
0
C
----------
V
S
R
---------
1
c
0
RC
-------------- V
S
= = =
c
0
L
R
----------
1
c
0
RC
-------------- =
Q
0S
c
0
L
R
----------
1
c
0
RC
-------------- = =
Quality Factor at Series Resonance
R Q
0S
Q
0S
L R
Q
0S
V
L0
V
C0
Q
0S
V
S
= =
Q
0S
Q
0S
V
L0
V
S
------------
V
C0
V
S
------------
1000
120
------------
25
3
------ = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-5
Copyright Orchard Publications
Quality Factor Q
0s
in Series Resonance
The quality factor is also a measure of frequency selectivity. Thus, we say that a circuit with a
high has a high selectivity, whereas a low circuit has low selectivity. The high frequency
selectivity is more desirable in parallel circuits as we will see in the next section.
We will see later that
(2.11)
Figure 2.5 shows the relative response versus for , and where we observe that
highest provides the best frequency selectivity, i.e., higher rejection of signal components out-
side the bandwidth which is the difference in the frequencies. The curves
were created with the MATLAB script below.
w=450:1:550; x1=1./(1+25.^2*(w./500-500./w).^2); plot(w,x1);...
x2=1./(1+50.^2*(w./500-500./w).^2); plot(w,x2);...
x3=1./(1+100.^2*(w./500-500./w).^2); plot(w,x3);...
plot(w,x1,w,x2,w,x3); grid
We also observe from (2.9) that selectivity depends on and this dependence is shown on the
plot of Figure 2.6.
Figure 2.5. Selectivity curves with , and
The curves in Figure 2.6 were created with the MATLAB script below.
w=0:10:6000; R1=0.5; R2=1; L=10^(-3); C=10^(-4); Y1=1./sqrt(R1.^2+(w.*L-1./(w.*C)).^2);...
Y2=1./sqrt(R2.^2+(w.*L-1./(w.*C)).^2); plot(w,Y1,w,Y2)
Q
Q Q
Q
c
0
c
2
c
1

------------------
Resonant Frequency
Bandwidth
------------------------------------------------------- = =
c Q 25 50 , = 100
Q
BW c
2
c
1
= 3 dB
R
c
1
c
2
Q
0
25 =
Q
0
50 =
Q
0
100 =
Radian Frequency c ( )
R
e
l
a
t
i
v
e

R
e
s
p
o
n
s
e
Q 25 50 , = 100
Chapter 2 Resonance
2-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 2.6. Selectivity curves with different values of R
If we keep one reactive device, say , constant while varying , the relative response shifts as
shown in Figure 2.7, but the general shape does not change.
Figure 2.7. Relative response with constant L and variable C
The curves in Figure 2.7 were created with the MATLAB script below.
w=0:10:6000; R=0.5; L=10^(-3); C1=10^(-4); C2=0.5*10^(-4);...
Y1=1./sqrt(R.^2+(w.*L-1./(w.*C1)).^2);...
Y2=1./sqrt(R.^2+(w.*L-1./(w.*C2)).^2); plot(w,Y1,w,Y2)
2.3 Parallel Resonance
Parallel resonance (antiresonance) applies to parallel circuits such as that shown in Figure 2.8.
The admittance for this circuit is given by
R
e
l
a
t
i
v
e

R
e
s
p
o
n
s
e
Radian Frequency c ( )
R 0.5 O =
R 1.0 O =
L C
R
e
l
a
t
i
v
e

R
e
s
p
o
n
s
e
Radian Frequency c ( )
C 10
4
F =
C 0.5 10
4
F =
Y
Admit ce tan Y
Phasor Current
Phasor Voltage
------------------------------------
I
S
V
---- G jcC
1
jcL
--------- + + G j cC
1
cL
-------


+ = = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-7
Copyright Orchard Publications
Parallel Resonance
Figure 2.8. Parallel GLC circuit for defining parallel resonance
or
(2.12)
Therefore, the magnitude and phase angle of the admittance are:
(2.13)
and
(2.14)
The frequency at which the inductive susceptance and the capacitive susceptance
are equal is, again, called the resonant frequency and it is also denoted as . We can
find in terms of and as before.
Since
then,
(2.15)
as before. The components of are shown on the plot of Figure 2.9.
Figure 2.9. The components of in a parallel RLC circuit
V G L
C
+
-
I
C
I
G
I
L
I
S
Y G
2
cC 1 cL ' ( )
2
+ cC 1 cL ' ( ) G '
1
tan Z =
Y
Y G
2
cC 1 cL ( ) ' ( )
2
+ =
0
Y
cC 1 cL ' ( )
G
---------------------------------
1
tan =
B
L
1 cL ' =
B
C
cC = c
0
c
0
L C
c
0
C
1
c
0
L
----------
c
0
1
LC
------------ =
Y
M
a
g
n
i
t
u
d
e

o
f

A
d
m
i
t
t
a
n
c
e
Radian Frequency c ( )
Y
G
cC
1
cL
-------
cC
1
cL
--------
Parallel Resonance Curves
Y
Chapter 2 Resonance
2-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We observe that at this parallel resonant frequency,
(2.16)
and
(2.17)
Example 2.2
For the circuit of Figure 2.10, . Compute , , and .
Figure 2.10. Circuit for Example 2.2
Solution:
The capacitive and inductive susceptances are
and
and since , the given circuit operates at parallel resonance with .
Then,
and
Next, to compute and , we must first find . For this example,
In phasor form,
Now,
and in the -domain,
Y
0
G =
0
Y
0 =
i
S
t ( ) 10 5000t mA cos = i
G
t ( ) i
L
t ( ) i
C
t ( )
G
L C
+
-
10 mH
i
S
t ( ) i
G
t ( ) i
L
t ( )
i
C
t ( )
v t ( )
0.01O
1
4 F
B
C
cC 5000 4 10
6
0.02 O
1
= = =
B
L
1
cL
-------
1
5000 10 10
3

----------------------------------------- 0.02 O
1
= = =
B
L
B
C
= c
0
5000 rad s ' =
Y
0
G 0.01 O
1
= =
i
G
t ( ) i
S
t ( ) 10 5000t mA cos = =
i
L
t ( ) i
C
t ( ) v
0
t ( )
v
0
t ( )
i
G
t ( )
G
------------
10 5000t mA cos
0.01 O
1
---------------------------------------- 1000 5000t mV cos 5000t V cos = = = =
v
0
t ( ) 5000t V cos = V
0
1 0 Z = =
I
L0
jB
L
( )V
0
1 90 Z ( ) 0.02 ( ) 1 0 Z ( ) 0.02 90 A Z = = =
t
I
L0
0.02 90 A Z = i
L0
t ( ) 0.02 5000t 90 ( ) A cos = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-9
Copyright Orchard Publications
Quality Factor Q
0P
in Parallel Resonance
or
Similarly,
and in the -domain,
or
We observe that as expected.
2.4 Quality Factor Q
0P
in Parallel Resonance
At parallel resonance,
and
Then,
(2.18)
Also,
(2.19)
At parallel resonance the left sides of (2.18) and (2.19) are equal and therefore,
Now, by definition
(2.20)
The above expressions indicate that at parallel resonance, it is possible to develop high currents
through the capacitors and inductors. This was found to be true in Example 2.2.
2.5 General Definition of Q
The general (and best) definition of is
(2.21)
i
L0
t ( ) 20 5000t mA sin =
I
C0
jB
C
V
0
1 90 Z ( ) 0.02 ( ) 1 0 Z ( ) 0.02 90 A Z = = =
t
I
C0
0.02 90 A Z = i
C0
t ( ) 0.02 5000t 90 + ( ) A cos = =
i
C0
t ( ) 20 5000t mA sin =
i
L0
t ( ) i
C0
t ( ) + 0 =
c
0
C
1
c
0
L
---------- =
V
0
I
S
G
------- =
I
C0
c
0
CV
0
c
0
C
I
S
G
-------
c
0
C
G
---------- I
S
= = =
I
L0
1
c
0
L
----------V
0
1
c
0
L
----------
V
S
G
---------
1
c
0
GL
-------------- I
S
= = =
c
0
C
G
----------
1
c
0
GL
-------------- =
Q
0P
c
0
C
G
----------
1
c
0
GL
-------------- = =
Quality Factor at Parallel Resonance
Q
Q 2r
Maximum Energy Stored
Energy Dissipated per Cycle
------------------------------------------------------------------------------
=
Chapter 2 Resonance
2-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Essentially, the resonant frequency is the frequency at which the inductor gives up energy just as
fast as the capacitor requires it during one quarter cycle, and absorbs energy just as fast as it is
released by the capacitor during the next quarter cycle. This can be seen from Figure 2.11 where
at the instant of maximum current the energy is all stored in the inductance, and at the instant of
zero current all the energy is stored in the capacitor.
Figure 2.11. Waveforms for and at resonance
2.6 Energy in L and C at Resonance
For a series circuit we let
Then,
Also,
(2.22)
and
(2.23)
Therefore, by (2.22) and (2.23), the total energy at any instant is
(2.24)
and this expression is true for any series circuit, that is, the circuit need not be at resonance.
However, at resonance,
E
n
e
r
g
y

(
J
)
Radian Frequency c ( )
w
C
v
C
i
L
w
L
W
L
W
C
RLC
i I
p
ct cos C
dv
C
dt
--------- = =
v
C
I
p
cC
-------- ct sin =
W
L
1
2
---Li
2 1
2
---LI
p
2
ct
2
cos = =
W
C
1
2
-- -Cv
2 1
2
-- -
I
p
2
c
2
C
---------- ct
2
sin = =
W
T
W
T
W
L
W
C
+
1
2
-- -I
p
2
L ct
2
cos
1
c
2
C
---------- ct
2
sin + = =
c
0
L
1
c
0
C
---------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-11
Copyright Orchard Publications
Half-Power Frequencies - Bandwidth
or
By substitution into (2.24),
(2.25)
and (2.25) shows that the total energy is dependent only on the circuit constants , and
resonant frequency, but it is independent of time.
Next, using the general definition of we obtain:
or
(2.26)
and we observe that (2.26) is the same as (2.9). Similarly,
or
(2.27)
and this is also the same as (2.9).
Following the same procedure for a simple (or ) parallel circuit we can show that:
(2.28)
and this is the same as (2.20).
2.7 Half-Power Frequencies - Bandwidth
Parallel resonance is by far more important and practical than series resonance and therefore, the
remaining discussion will be on parallel (or ) circuits. The plot in Figure 2.12 shows
the magnitude of the voltage response versus radian frequency for a typical parallel circuit.
L
1
c
0
2
C
---------- =
W
T
1
2
---I
p
2
L c
0
t
2
cos L c
0
t
2
sin + [ ]
1
2
---I
p
2
L
1
2
-- -I
p
2 1
c
0
2
C
---------- = = =
W
T
L C
Q
Q
0S
2r
Maximum Energy Stored
Energy Dissipated per Cycle
------------------------------------------------------------------------------ 2r
1 2 ' ( )I
p
2
L
1 2 ' ( )I
p
2
R f
0
'
--------------------------------- 2r
f
0
L
R
-------- = = =
Q
0S
c
0
L
R
---------- =
Q
0S
2r
Maximum Energy Stored
Energy Dissipated per Cycle
------------------------------------------------------------------------------ 2r
1 2 ' ( )I
p
2
1 c
0
2
C ' ( )
1 2 ' ( )I
p
2
R f
0
'
------------------------------------------- 2r
f
0
c
0
2
RC
--------------- = = =
Q
0S
c
0
c
0
2
RC
-----------------
1
c
0
RC
-------------- = =
GLC RLC
Q
0P
c
0
C
G
----------
1
c
0
LG
-------------- = =
GLC RLC
RLC
Chapter 2 Resonance
2-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 2.12. Relative voltage vs.radian frequency in a parallel circuit
By definition, the half-power frequencies and in Figure 2.12 are the frequencies at which
the magnitude of the input admittance of a parallel resonant circuit, is greater than the magni-
tude at resonance by a factor of , or equivalently, the frequencies at which the magnitude of
the input impedance of a parallel resonant circuit, is less than the magnitude at resonance by a
factor of as shown above. We observe also, that and are not exactly equidistant from
. However, it is convenient to assume that they are equidistant, and unless otherwise stated,
this assumption will be followed in the subsequent discussion.
We call the lower half-power point, and the upper half-power point. The difference
is the half-power bandwidth , that is,
(2.29)
The names half-power frequencies and half-power bandwidth arise from the fact that the power
at these frequencies drop to since .
The bandwidth can also be expressed in terms of the quality factor as follows:
Consider the admittance
Multiplying the term by , we obtain
R
e
l
a
t
i
v
e

V
o
l
t
a
g
e

(
V
)
Radian Frequency c ( )
0.707V
P
c
c
0
c
1
c
2
Bandwidth
RLC
c
1
c
2
2
2 c
1
c
2
c
0
c
1
c
2
c
2
c
1

BW
Bandwidth BW c
2
c
1
= =
0.5 2 2 ' ( )
2
0.5 =
BW Q
Y G j cC
1
cL
-------


+ =
j G
c
0
c
0
G
----------


Y G jG
cc
0
C
c
0
G
--------------
c
0
cc
0
LG
------------------


+ =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-13
Copyright Orchard Publications
Half-Power Frequencies - Bandwidth
Recalling that for parallel resonance
by substitution we obtain
(2.30)
and if , then
Next, we want to find the bandwidth in terms of the quality factor . At the half-
power points, the magnitude of the admittance is and, if we use the half-power
points as reference, then to obtain the admittance value of
we must set
for .
We must also set
for .
Recalling that and solving the above expressions for and , we obtain
(2.31)
and
(2.32)
Subtraction of (2.32) from (2.31) yields
(2.33)
or
(2.34)
As mentioned earlier, and are not equidistant from . In fact, the resonant frequency
Q
0P
c
0
C
G
----------
1
c
0
LG
-------------- = =
Y G 1 jQ
0P
c
c
0
------
c
0
c
------


+ =
c c
0
=
Y G =
c
2
c
1
Q
0P
2 2 ' ( ) Y
p
|Y
max
2G =
Q
0P
c
2
c
0
------
c
0
c
2
------


1 =
c c
2
=
Q
0P
c
1
c
0
------
c
0
c
1
------


1 =
c c
1
=
1 j1 ( ) 2 = c
1
c
2
c
2
1
1
2Q
0P
------------


2
+
1
2Q
0P
------------ + =
c
1
1
1
2Q
0P
------------


2
+
1
2Q
0P
------------ =
BW c
2
c
1

c
0
Q
0P
--------- = =
BW f
2
f
1

f
0
Q
0P
--------- = =
c
1
c
2
c
0
Chapter 2 Resonance
2-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
is the geometric mean
*
of and , that is,
(2.35)
This can be shown by multiplication of the two expressions in (2.31) and (2.32) and substitution
into (2.33).
Example 2.3
For the network of Figure 2.13, find:
a.
b.

c.
d.
e.

Figure 2.13. Network for Example 2.3
Solution:
a.
or
b.
c.
d.
* The geometric mean of n positive numbers , ,..., is the nth root of the product.
c
0
c
1
c
2
a
1
a
2
a
n
a
1
a
2
. a
n

c
0
c
1
c
2
=
c
0
Q
0P
BW
c
1
c
2
Y
G
L
C
1 mH 0.001O
1
0.4F
c
0
2 1
LC
--------
1
1 10
3
0.4 10
6

-------------------------------------------------- 25 10
8
= = =
c
0
50000 r s ' = f
0
8000 Hz =
Q
0P
c
0
C
G
----------
5 10
4
0.4 10
6

10
3
------------------------------------------------ 20 = = =
BW
c
0
Q
0P
---------
50000
20
--------------- 2500 = rad s ' = = =
c
1
c
0
BW
2
---------- 50000 1250 48750 rad s ' = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-15
Copyright Orchard Publications
Half-Power Frequencies - Bandwidth
e.
The SimPowerSystems model for the circuit in Figure 2.13 is shown in Figure 2.14.
Figure 2.14. SimPowerSystems model for the circuit in Figure 2.13
To observe the impedance of the parallel RLC circuit in Figure 2.14 we double-click the power-
gui block to open the Simulation and configuration options window shown in Figure 2.15, we
click the Impedance vs Frequency option, and the magnitude an phase of the impedance as a
function of frequency are shown in Figure 2.16.
Figure 2.15. Simulation and configuration options in the powergui
c
2
c
0
BW
2
---------- + 50000 1250 + 51250 rad s ' = = =
Chapter 2 Resonance
2-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
In Figure 2.16, the frequency is in logarithmic scale for the frequency range to as
shown on the right pane. The resonant frequency is about and at that frequency the mag-
nitude of the impedance is (purely resistive) and the phase is degrees.
Figure 2.16. Plots for the magnitude and phase for the model in Figure 2.14
2.8 A Practical Parallel Resonant Circuit
In our previous discussion, we assumed that the inductors are ideal, but a real inductor has some
resistance. The circuit shown in Figure 2.17 is a practical parallel resonant circuit. To derive an
expression for its resonant frequency, we make use of the fact that the resonant frequency is inde-
pendent of the conductance and, for simplicity, it is omitted from the network of Figure 2.17.
We will therefore, find an expression for the network of Figure 2.18.
10
3
Hz 10
5
Hz
8 KHz
1 KO 0
G
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-17
Copyright Orchard Publications
A Practical Parallel Resonant Circuit

Figure 2.17. A practical parallel resonant circuit
Figure 2.18. Simplified network for derivation of the resonant frequency
For the network of Figure 2.18,
and
where
and
Also,
and
Then,
(2.36)
Now, at resonance, the imaginary component of

must be zero, that is,
Y
G
L
C
R
I
T
L
C
R
I
L
I
C
+
V
-
I
L
V
R jcL +
--------------------
R j cL ( )
R
2
cL ( )
2
+
---------------------------V = =
I
C
V
1 jcC ( ) '
--------------------- jcC ( )V = =
Re I
L
{
R
R
2
cL ( )
2
+
---------------------------V =
Im I
L
{
c L
R
2
cL ( )
2
+
---------------------------V =
Re I
C
{ 0 =
Im I
C
{ cC ( )V =
I
T
I
L
I
C
+ Re I
L
{ Im I
L
{ + [ ]V Re I
C
{ Im I
C
{ + [ ]V + = =
Re I
L
{ Re I
C
{ Im I
L
{ Im I
C
{ + + + [ ]V =
Re I
T
{ Im I
T
{ + [ ]V =
I
T
Chapter 2 Resonance
2-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and solving for we obtain
(2.37)
or
(2.38)
We observe that for , (2.37) reduces to as before.
2.9 Radio and Television Receivers
When a radio or TV receiver is tuned to a particular station or channel, it is set to operate at the
resonant frequency of that station or channel. As we have seen, a parallel circuit has high imped-
ance (low admittance) at its resonant frequency. Therefore, it attenuates signals at all frequen-
cies except the resonant frequency.
We have also seen that one particular inductor and one particular capacitor will resonate to one
frequency only. Varying either the inductance or the capacitance of the tuned circuit, will
change the resonant frequency. Generally, the inductance is kept constant and the capacitor
value is changed as we select different stations or channels.
The block diagram of Figure 2.19 is a typical (Amplitude Modulation) radio receiver.
Figure 2.19. Block diagram of a typical AM radio receiver
The antenna picks up signals from several stations and these are fed into the Radio Frequency
( ) Amplifier which improves the Signal-to-Noise ( ) ratio. The amplifier also serves as
a preselector. This preselection suppresses the image-frequency interference as explained below.
Im I
T
{ Im I
L
{ Im I
C
{ + c
0
C
c
0
L
R
2
c
0
L ( )
2
+
------------------------------



V 0 = = =
c
0
c
0
1
LC
--------
R
2
L
2
------ =
f
0
1
2r
------
1
LC
--------
R
2
L
2
------ =
R 0 = c
0
1
LC
------------ =
AM
Speaker
Audio
Frequency
Amplifier
Detector
Intermediate
Frequency
Amplifier
Mixer
Local
Oscillator
Radio
Frequency
Amplifier
Antenna
RF S N ' RF
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-19
Copyright Orchard Publications
Radio and Television Receivers
When we tune to a station of, say , we are setting the circuit to and at
the same time the local oscillator is set at . This is accom-
plished by the capacitor in the amplifier which is also ganged to the local oscillator. These
two signals, one of and the other of , are fed into the mixer whose output
into the Intermediate Frequency ( ) amplifier is ; this is the difference between these
two frequencies ( ).
The amplifier is always set at and therefore if the antenna picks another signal from
another station, say , it would be mixed with the local oscillator to produce a frequency
of but since the IF amplifier is set at , the unwanted
signal will not be amplified. Of course, in order to hear the signal at the radio
receiver must be retuned to that frequency and the local oscillator frequency will be changed to
so that the difference of these frequencies will be again
.
Now let us assume that we select a station at . Then, the local oscillator will be set to
so that the signal will again be . Now, let us sup-
pose that a powerful nearby station broadcasts at and this signal is picked up by the
mixer circuit. The difference between this signal and the local oscillator will also be
. The amplifier will then amplify both signals and the result
will be a strong interference so that the radio speaker will produce unintelligent sounds. This
interference is called image-frequency interference and it is reduced by the amplifier before
entering the mixer circuit and for this reason the amplifier is said to act as a preselector.
The function of the detector circuit is to convert the signal which contains both the carrier
and the desired signal to an audio signal and this signal is amplified by the Audio Frequency
( ) Amplifier whose output appears at the radio speaker.
Example 2.4
A radio receiver with a parallel circuit whose inductance is is tuned to a radio
station transmitting at frequency.
a. What is the value of the capacitor of this circuit at this resonant frequency?
b. What is the value of conductance if ?
c. If a nearby radio station transmits at and both signals picked up by the antenna have
the same current amplitude ( ), what is the ratio of the voltage at to the volt-
age at ?
740 KHz RF 740 KHz
740 KHz 456 KHz + 1196 KHz =
RF
740 KHz 1196 KHz
IF 456 KHz
1196 KHz 740 KHz 456 KHz =
IF 456 KHz
850 KHz
1196 KHz 850 KHz 346 KHz = 456 KHz
850 KHz 850 KHz
850 KHz 456 KHz + 1306 KHz =
456 KHz
600 KHz
600 KHz 456 KHz + 1056 KHz = IF 456 KHz
1512 KHz
456 KHz
1512 KHz 1056 KHz 456 KHz = IF
RF
RF
IF
AF
GLC L 0.5 mH =
810 KHz
G Q
0P
75 =
740 KHz
I A 810 KHz
740 KHz
Chapter 2 Resonance
2-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
a.
or
Then,
b.
or
c.
(2.39)
Also,
where
or
or
and
(2.40)
Then from (2.39) and (2.40),
(2.41)
that is, the voltage developed across the parallel circuit when it is tuned at is
times larger than the voltage developed at .
c
0
2 1
LC
-------- =
f
0
2 1
4r
2
LC
----------------- =
C
1
4r
2
0.5 10
3
810 10
3
( )
2

----------------------------------------------------------------------- 77.2 pF = =
Q
0P
c
0
C
G
---------- =
G
2rf
0
C
Q
0P
---------------
2r 8.1 10
5
77.2 10
12

75
---------------------------------------------------------------------- 5.4 O
1
= = =
V
810 KHz
I
Y
810 KHz
------------------------
I
Y
0
------
I
G
----
I
5.24 10
6

--------------------------- = = = =
V
740 KHz
I
Y
740 KHz
------------------------ =
Y
740 KHz
G
2
cC
1
cL
-------


2
+ =
Y
740 KHz
5.24 10
6
( )
2
2r 740 10
3
77.2 10
12

1
2r 740 10
3
0.5 10
3

-------------------------------------------------------------------


2
+ =
Y
740 KHz
71.2 O
1
=
V
740 KHz
I
71.2 10
6

--------------------------- =
V
810 KHz
V
740 KHz
-------------------------
I 5.24 10
6
'
I 71.2 10
6
'
---------------------------------
71.2 10
6

5.24 10
6

--------------------------- 13.6 = = =
f 810 KHz =
13.6 f 740 KHz =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-21
Copyright Orchard Publications
Summary
2.10 Summary
- In a series circuit, the frequency at which the capacitive reactance and the
inductive reactance are equal, is called the resonant frequency.
- The resonant frequency is denoted as or where
and
- The quality factor at series resonance is defined as
- In a parallel circuit, the frequency at which the inductive susceptance and
the capacitive susceptance are equal is, again, called the resonant frequency and it
is also denoted as . As in a series circuit, the resonant frequency is
- The quality factor at parallel resonance is defined as
- The general definition of is
- In a parallel circuit, the half-power frequencies and are the frequencies at which
the magnitude of the input admittance of a parallel resonant circuit, is greater than the magni-
tude at resonance by a factor of , or equivalently, the frequencies at which the magnitude
of the input impedance of a parallel resonant circuit, is less than the magnitude at resonance
by a factor of .
RLC X
C
1 cC ' =
X
L
cL =
c
0
f
0
c
0
1
LC
------------ =
f
0
1
2r LC
------------------ =
Q
0S
Q
0S
c
0
L
R
----------
1
c
0
RC
-------------- = =
GLC B
L
1 cL ' =
B
C
cC =
c
0
RLC
c
0
1
LC
------------ =
Q
0P
Q
0P
c
0
C
G
----------
1
c
0
GL
-------------- = =
Q
Q 2r
Maximum Energy Stored
Energy Dissipated per Cycle
------------------------------------------------------------------------------ =
RLC c
1
c
2
2
2
Chapter 2 Resonance
2-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- We call the lower half-power point, and the upper half-power point. The difference
is the half-power bandwidth , that is,
- The bandwidth can also be expressed in terms of the quality factor as
or
c
1
c
2
c
2
c
1
BW
Bandwidth BW c
2
c
1
= =
BW Q
BW c
2
c
1

c
0
Q
0P
--------- = =
BW f
2
f
1

f
0
Q
0P
--------- = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-23
Copyright Orchard Publications
Exercises
2.11 Exercises
1. A series circuit is resonant at with and its half-power band-
width is . Find , , and for this circuit.
2. For the network below the impedance is variable, and . To what
value should be adjusted so that the network will operate at resonant frequency?
3. For the circuit below with the capacitance adjusted to , the half-power frequencies are
and .
a. Compute the approximate resonant frequency.
b. Compute the exact resonant frequency.
c. Using the approximate value of the resonant frequency, compute the values of , ,
and .
4. The circuit below is resonant at with and its half-power
bandwidth is .
a. Compute , , and for this circuit.
b. Compute the magnitude of the admittances and corresponding to the half-
power frequencies and . Use MATLAB to plot in the
range.
RLC f
0
1 MHz = Z
0
100 O =
BW 20 KHz = R L C
Z
1
Z
2
3 j4 + = Z
3
4 j3 =
Z
1
Z
1
Z
2
Z
3 Z
IN
C 1 F
f
1
925 KHz = f
2
1075 KHz =
Q
op
G
L
G L
C

GLC f
0
500 KHz = V
0
20 V =
BW 20 KHz =
L C I
0
Y
1
Y
2
f
1
f
2
Y 100 KHz f s 1000 KHz s
G L
C
+
-
V

Chapter 2 Resonance
2-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
5. For the circuit below and . Find:
a.
b.
c.

and
d.
6. The series-parallel circuit below will behave as a filter if the parallel part is made resonant to
the frequency we want to suppress, and the series part is made resonant to the frequency we
wish to pass. Accordingly, we can adjust capacitor to achieve parallel resonance which will
reject the unwanted frequency by limiting the current through the resistive load to its mini-
mum value. Afterwards, we can adjust to make the entire circuit series resonant at the
desired frequency thus making the total impedance minimum so that maximum current will
flow into the load.
For this circuit, we want to set the values of capacitors so that will be maximum at
and minimum at . Compute the values of and that will
achieve these values. It is suggested that you use MATLAB to plot versus frequency
in the interval to verify your answers.
v
s
170 ct cos = Q
0
50 =
c
0
BW
c
1
c
2
V
C0
1 mH

R
2
C
L R
1

1 O
v
s
10 O
1 F
C
2
C
1
v
LOAD
f
1
10 KHz = f
2
43 KHz = C
1
C
2
v
LOAD
f 1 KHz f 100 KH s s
2 mH

R
L
L
R
1
C
1
C
2

100 O
1 O
v
S
170 ct cos =
v
LOAD
+
+
-
-
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-25
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
2.12 Solutions to End-of-Chapter Exercises
1. At series resonance and thus . We find from
where . Also,
Then,
and from
Check with MATLAB:
f0=10^6; w0=2*pi*f0; Z0=100; BW=2*pi*20000; w1=w0-BW/2; w2=w0+BW/2;...
R=Z0; Qos=w0/BW; L=R*Qos/w0; C=1/(w0^2*L); fprintf(' \n');...
fprintf('R = %5.2f Ohms \t', R); fprintf('L = %5.2e H \t', L);...
fprintf('C = %5.2e F \t', C); fprintf(' \n'); fprintf(' \n');
R = 100. 00 Ohms L = 7. 96e - 004 H C = 3. 18e - 011 F
2.
where
We let and . For resonance we must have
Z
0
R 100 = = R 100 O = L Q
0S
c
0
L R ' =
c
0
2rf
0
=
Q
0S
c
0
c
2
c
1

-------------------
c
0
BW
----------
2r 10
6

2r 20 10
3

--------------------------------- 50 = = = =
L
R Q
0S

c
0
------------------
100 50
2r 10
6

--------------------- 0.796 mH = = =
c
0
2
1 LC ' =
C
1
c
0
2
L
----------
1
2r 10
6
( )
2
7.96 10
4

-------------------------------------------------------------- 31.8 pF = = =
Z
1
Z
2
Z
3 Z
IN
Z
IN
Z
1
Z
2
Z
3

+ =
Z
2
Z
3

3 j4 + ( ) 4 j3 ( )
3 j4 4 j3 + +
------------------------------------------
12 j9 j16 12 + +
7 j +
-------------------------------------------
7 j
7 j
---------- = =
168 j49 j24 7 + +
7
2
1
2
+
----------------------------------------------
175 j25 +
50
----------------------- 3.5 j0.5 + = = =
Z
IN
R
IN
jX
IN
+ = Z
1
R
1
jX
1
+ =
Z
IN
R
IN
jX
IN
+ R
1
jX
1
3.5 j0.5 + + + R
IN
0 + R
1
jX
1
3.5 j0.5 + + + = = = =
Chapter 2 Resonance
2-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Equating real and imaginary parts we obtain
and while can be any real number, we must have and thus
3.
a.
Then,
b. The exact value of is the geometric mean of and and thus
c.
. Also,
Then
and
4.
a.
Also, or
R
IN
R
1
3.5 + =
0 jX
1
j0.5 + =
R
1
jX
1
j0.5 =
Z
1
R
1
j0.5 O =
BW f
2
f
1
1075 925 150 KHz = = =
f
0
f
1
BW 2 ' + 925 150 2 ' + 1000 KHz = = =
f
0
f
1
f
2
f
0
f
1
f
2
925 1075 + ( )10
3
997.18 KHz = = =
Q
0P
f
0
f
2
f
1

--------------
1000
150
------------ 20 3 ' = = = Q
0P
c
0
C
G
---------- =
G
c
0
C
Q
0P
----------
2rf
0
C
Q
0P
---------------
2r 10
6
10
6

20 3 '
--------------------------------------
3r
10
------ 0.94 O
1
= = = = =
L
1
c
0
C
----------
1
4r
2
f
0
2
C
-------------------
1
4r
2
10
12
10
6

------------------------------------------- 0.025 H = = = =
Q
0P
f
0
BW
----------
500
20
--------- 25 = = =
Q
0P
c
0
C
G
---------- =
C
Q
0P
G
c
0
------------------
25 10
3

2r 5 10
5

------------------------------ 7.96 10
9
F 7.96 nF = = = =
L
1
c
0
C
----------
1
4r
2
f
0
2
C
-------------------
1
4r
2
25 10
10
7.96 10
9

------------------------------------------------------------------------ 12.73 10
6
H 12.73 H = = = = =
I
0
V
0
Y
0
V
0
G 20 10
3
A 20 mA = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-27
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
b. and
Likewise,
We will use MATLAB to do the computations.
G=10^(-3); BC1=2*pi*490*10^3*7.96*10^(-9);...
BL1=1/(2*pi*490*10^3*12.73*10^(-6)); Y1=G+j*(BC1-BL1);...
BC2=2*pi*510*10^3*7.96*10^(-9); BL2=1/(2*pi*510*10^3*12.73*10^(-6));...
Y2=G+j*(BC2-BL2); fprintf(' \n'); fprintf('magY1 = %5.2e mho \t', abs(Y1));...
fprintf('magY2 = %5.2e mho \t', abs(Y2)); fprintf(' \n'); fprintf(' \n')
ma gY1 = 1. 42e - 003 mho ma gY2 = 1. 41e - 003 mho
We will use the following MATLAB script for the plot
f=100*10^3: 10^3: 1000*10^3; w=2*pi*f;...
G=10^(-3); C=7.96*10^(-9); L=12.73*10^(-6);...
BC=w.*C; BL=1./(w.*L); Y=G+j*(BC-BL); plot(f,abs(Y));...
xlabel('Frequency in Hz'); ylabel('Magnitude of Admittance');grid
The plot is shown below.
f
1
f
0
BW 2 ' 500 10 490 KHz = = = f
2
f
0
BW 2 ' + 500 10 + 510 KHz = = =
Y
f f
1
=
G j c
1
C
1
c
1
L
----------


+ =
10
3
j 2r 490 10
3
7.96 10
9

1
2r 490 10
3
12.73 10
6

-------------------------------------------------------------------------


+ =
Y
f f
2
=
G j c
1
C
1
c
1
L
----------


+ =
10
3
j 2r 510 10
3
7.96 10
9

1
2r 510 10
3
12.73 10
6

-------------------------------------------------------------------------


+ =
Chapter 2 Resonance
2-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
5.
a. It is important to remember that the relation applies only to series and
parallel circuits. For any other circuit we must find the input impedance , set the
imaginary part of equal to zero, and solve for . Thus, for the given circuit
1 mH

R
2
C
L R
1

1 O
Z
IN
10 O
1 F 1
jcC
----------
jcL
c
0
1 LC ' = RLC
GLC Z
IN
Z
IN
c
0
Z
IN
R
1
1
jcC
---------- R
2
jcL + ( )

+ 1
1 jcC ' 10 jcL + ( )
10 j cL 1 cC ' ( ) +
------------------------------------------------- + = =
10 j cL 1 cC ' ( ) 10 jcC ' L C ' + + +
10 j cL 1 cC ' ( ) +
---------------------------------------------------------------------------------------------
10 j cL 1 cC ' ( )
10 j cL 1 cC ' ( )
------------------------------------------------ =
100 j10 cL 1 cC ' ( ) 100 jcC ( ) ' 10L C ' j10 cL 1 cC ' ( ) + + +
100 cL 1 cC ' ( )
2
+
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- =
+
cL 1 cC ' ( )
2
10 cC ' ( ) cL 1 cC ' ( ) jL C ' cL 1 cC ' ( )
100 cL 1 cC ' ( )
2
+
-----------------------------------------------------------------------------------------------------------------------------------------------------------
100 10L C ' cL 1 cC ' ( )
2
10 cC ' ( ) cL 1 cC ' ( ) + +
100 cL 1 cC ' ( )
2
+
-------------------------------------------------------------------------------------------------------------------------------------------- =
+
100 jcC ( ) ' jL C ' cL 1 cC ' ( )
100 cL 1 cC ' ( )
2
+
----------------------------------------------------------------------------------
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-29
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
For resonance, the imaginary part of must be zero, that is,
and thus
b.
c.
d. At resonance
and
The phasor equivalent circuit is shown below.
We let , , and . Using nodal analysis we obtain:
Z
IN
100
jc
0
C
------------
jL
C
----- c
0
L
1
c
0
C
----------


0 =
j
C
----
100
c
0
--------- L c
0
L
1
c
0
C
----------


+ 0 =
100
c
0
--------- c
0
L
2 L
c
0
C
---------- + 0 =
L
2
Cc
0
2
100C L + 0 =
c
0
2 1
LC
--------
100
L
2
---------
1
10
3
10
6

---------------------------
100
10
6
---------- 10
9
10
8
9 10
8
= = = =
c
0
9 10
8
30 000 r s ' , = =
BW c
0
Q ' 30 000 50 ' , 600 r s ' = = =
c
1
c
0
BW 2 ' 30 000 300 , 29 700 r s ' , = = =
c
2
c
0
BW 2 ' + 30 000 300 + , 30 300 r s ' , = = =
jc
0
L j3 10
4
10
3
j30 O = = 1 jc
0
C ' j10
4
10
6
3 ' j100 3 ' = =

V
S
170 0 V Z
j30 O
j100 3 ' O
1 O
10 O
V
C0
z
1
1 O = z
2
j100 3 ' O = z
3
10 j30 O + =
V
C0
V
S

z
1
-----------------------
V
C0
z
2
----------
V
C0
z
3
---------- + + 0 =
Chapter 2 Resonance
2-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We will use MATLAB to obtain the value of .
Vs=170; z1=1; z2=-j*100/3; z3=10+j*30; Z=1/z1+1/z2+1/z3; Vc0=Vs/Z;...
fprintf(' \n'); fprintf('Vc0 = %6.2f', abs(Vc0)); fprintf(' \n'); fprintf(' \n')
Vc 0 = 168. 32
6.
First, we will find the appropriate value of . We recall that at parallel resonance the voltage
is maximum and the current is minimum. For this circuit the parallel resonance was found as
in (2.37), that is,
or
Next, we must find the value of that will make the entire circuit series resonant (minimum
impedance, maximum current) at . In the circuit below we let ,
, , and .
Then,
1
z
1
-----
1
z
2
-----
1
z
3
----- + +


V
C0
V
S
z
1
------ =
V
C0
C
2
c
0
1
LC
--------
R
2
L
2
------ =
2r 43 000 ,
1
2 10
3
C
2

--------------------------
10
4
4 10
6

-------------------- =
10
3
2C
2
---------
10
4
4 10
6

-------------------- 2r 4.3 10
4
( )
2
+
10
4
2r 4.3 10
4
( )
2
4 10
6
+
4 10
6

----------------------------------------------------------------------------------- = =
C
2
500
4 10
6

10
4
2r 4.3 10
4
( )
2
4 10
6
+
----------------------------------------------------------------------------------- 6.62 10
9
F 6.62 nF = = =
C
1
f 10 KHz = z
1
jX
C1
=
z
2
jX
C2
= z
3
R
1
jX
L
+ = z
LD
1 =
2 mH

R
LD
L
R
1
C
1
C
2

100 O
1 O
V
S
170 0 V Z =
v
LD
+
+
-
-
jX
C1

jX
L
jX
C2

Z
IN
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 2-31
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and
(1)
where is found with the MATLAB script below.
format short g; f=10000; w=2*pi*f; C2=6.62*10^(-9); XC2=1/(w*C2); L=2*10^(-3);...
XL=w*L; R1=100; z2=-j*XC2; z3=R1+j*XL; Zp=z2*z3/(z2+z3)
Zp =
111. 12 + 127. 72i
and by substitution into (1)
(2)
The expression of (2) will be minimum if we let at . Then, the
capacitor value must be such that or
Shown below is the plot of versus frequency and the MATLAB script that produces this
plot.
f=1000: 100: 60000; w=2*pi*f; Vs=170; C1=1.25*10^(-7); C2=6.62*10^(-9); L=2.*10.^(-3);...
R1=100; Rld=1; z1=-j./(w.*C1); z2=-j./(w.*C2); z3=R1+j.*w.*L; Zld=Rld;...
Zin=z1+z2.*z3./(z2+z3); Vld=Zld.*Vs./(Zin+Zld); magVld=abs(Vld);...
plot(f,magVld); axis([1000 60000 0 2]);...
xlabel('Frequency f'); ylabel('|Vld|'); grid
Z
IN
z
1
z
2
z
3

z
LOAD
+ + =
Z
IN
f 10 KHz = ( ) z
1
z
2
z
3

f 10 KHz =
z
LOAD
+ + z
1
z
2
z
3

f 10 KHz =
+ + = =
z
2
z
3

f 10 KHz =
Z
IN
f 10 KHz = ( ) z
1
111.12 j127.72 1 + + + z
1
113.12 + j127.72 O + = =
z
1
j127.72 O = f 10 KHz =
C
1
1 cC ' 127.72 =
C
1
1
2r 10
4
127.72
-------------------------------------------- 1.25 10
7
F 0.125 F = = =
V
LD
Chapter 2 Resonance
2-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
This circuit is considered to be a special type of filter that allows a specific frequency (not a
band of frequencies) to pass, and attenuates another specific frequency.
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-1
Copyright Orchard Publications
Chapter 3
Elementary Signals
his chapter begins with a discussion of elementary signals that may be applied to electric
networks. The unit step, unit ramp, and delta functions are then introduced. The sampling
and sifting properties of the delta function are defined and derived. Several examples for
expressing a variety of waveforms in terms of these elementary signals are provided.
3.1 Signals Described in Math Form
Consider the network of Figure 3.1 where the switch is closed at time .
Figure 3.1. A switched network with open terminals
We wish to describe in a math form for the time interval . To do this, it is conve-
nient to divide the time interval into two parts, , and .
For the time interval , the switch is open and therefore, the output voltage is zero.
In other words,
(3.1)
For the time interval , the switch is closed. Then, the input voltage appears at the
output, i.e.,
(3.2)
Combining (3.1) and (3.2) into a single relationship, we obtain
(3.3)
We can express (3.3) by the waveform shown in Figure 3.2.
The waveform of Figure 3.2 is an example of a discontinuous function. A function is said to be dis-
continuous if it exhibits points of discontinuity, that is, the function jumps from one value to
another without taking on any intermediate values.
T
t 0 =
+
-
+
-
v
out
v
S
t 0 = R
open terminals
v
out
t + < <
t 0 < < 0 t < <
t 0 < < v
out
v
out
0 for t 0 < < =
0 t < < v
S
v
out
v
S
for 0 t < < =
v
out
0 t 0 < <
v
S
0 t < <

=




Chapter 3 Elementary Signals
3-2 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 3.2. Waveform for as defined in relation (3.3)
3.2 The Unit Step Function
A well known discontinuous function is the unit step function
*
which is defined as
(3.4)
It is also represented by the waveform of Figure 3.3.
Figure 3.3. Waveform for
In the waveform in Figure 3.3, the unit step function changes abruptly from to at
. But if it changes at instead, it is denoted as . In this case, its waveform and
definition are as shown in Figure 3.4 and relation (3.5) respectively.
Figure 3.4. Waveform for
(3.5)
If the unit step function changes abruptly from to at , it is denoted as . In
this case, its waveform and definition are as shown in Figure 3.5 and relation (3.6) respectively.
* In some books, the unit step function is denoted as , that is, without the subscript 0. In this text, however, we
will reserve the designation for any input when we will discuss state variables in Chapter 7.
0
v
out
v
S
t
v
out
u
0
t ( )
u
0
t ( )
u t ( )
u t ( )
u
0
t ( )
0 t 0 <
1 t 0 >

=
u
0
t ( )
0
1
t
u
0
t ( )
u
0
t ( ) 0 1
t 0 = t t
0
= u
0
t t
0
( )
1
t
0
0
u
0
t t
0
( )
t
u
0
t t
0
( )
u
0
t t
0
( )
0 t t
0
<
1 t t
0
>

=
0 1 t t
0
= u
0
t t
0
+ ( )
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-3
Copyright Orchard Publications
The Unit Step Function
Figure 3.5. Waveform for
(3.6)
Example 3.1
Consider the network of Figure 3.6, where the switch is closed at time .
Figure 3.6. Network for Example 3.1
Express the output voltage as a function of the unit step function, and sketch the appropriate
waveform.
Solution:
For this example, the output voltage for , and for . Therefore,
(3.7)
and the waveform is shown in Figure 3.7.
Figure 3.7. Waveform for Example 3.1
Other forms of the unit step function are shown in Figure 3.8.
Unit step functions can be used to represent other time-varying functions such as the rectangular
pulse shown in Figure 3.9.
t
-t
0
0
1
u
0
t t
0
+ ( )
u
0
t t
0
+ ( )
u
0
t t
0
+ ( )
0 t t
0
<
1 t t
0
>

=
t T =
+
-
+
-
v
out
v
S
t T = R
open terminals
v
out
v
out
0 = t T < v
out
v
S
= t T >
v
out
v
S
u
0
t T ( ) =
T
t
0
v
S
u
0
t T ( )
v
out
Chapter 3 Elementary Signals
3-4 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 3.8. Other forms of the unit step function
Figure 3.9. A rectangular pulse expressed as the sum of two unit step functions
Thus, the pulse of Figure 3.9(a) is the sum of the unit step functions of Figures 3.9(b) and 3.9(c)
and it is represented as .
The unit step function offers a convenient method of describing the sudden application of a volt-
age or current source. For example, a constant voltage source of applied at , can be
denoted as . Likewise, a sinusoidal voltage source that is applied to
a circuit at , can be described as . Also, if the excitation in a
circuit is a rectangular, or triangular, or sawtooth, or any other recurring pulse, it can be repre-
sented as a sum (difference) of unit step functions.
Example 3.2
Express the square waveform of Figure 3.10 as a sum of unit step functions. The vertical dotted
lines indicate the discontinuities at , and so on.
0
t
t
t
t
T -T
0
0 0
0 T
0
0
t
t t
0
0
t t
-T
-T
T
(a) (b) (c)
(d)
(e)
(f)
(g)
(h) (i)
-A
-A
-A
-A -A
-A
A
A A
Au
0
t ( )
A u
0
t ( )
A u
0
t T ( )
A u
0
t T + ( )
Au
0
t T + ( )
Au
0
t T ( )
A u
0
t ( )
A u
0
t T + ( )
A u
0
t T ( )
0 0 0
t t t
1
1
1
u
0
t ( )
u
0
t 1 ( )
a ( )
b ( )
c ( )
u
0
t ( ) u
0
t 1 ( )
24 V t 0 =
24u
0
t ( ) V v t ( ) V
m
ct V cos =
t t
0
= v t ( ) V
m
ct cos ( )u
0
t t
0
( ) V =
T 2T 3T , ,
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-5
Copyright Orchard Publications
The Unit Step Function
Figure 3.10. Square waveform for Example 3.2
Solution:
Line segment has height , starts at , and terminates at . Then, as in Example 3.1, this
segment is expressed as
(3.8)
Line segment has height , starts at and terminates at . This segment is
expressed as
(3.9)
Line segment has height , starts at and terminates at . This segment is expressed
as
(3.10)
Line segment has height , starts at , and terminates at . It is expressed as
(3.11)
Thus, the square waveform of Figure 3.10 can be expressed as the summation of (3.8) through
(3.11), that is,
(3.12)
Combining like terms, we obtain
(3.13)
Example 3.3
Express the symmetric rectangular pulse of Figure 3.11 as a sum of unit step functions.
Solution:
This pulse has height , starts at , and terminates at . Therefore, with refer-
ence to Figures 3.5 and 3.8 (b), we obtain

t
v t ( )
3T
A
0
A
T 2T
A t 0 = t T =
v
1
t ( ) A u
0
t ( ) u
0
t T ( ) [ ] =
A t T = t 2T =
v
2
t ( ) A u
0
t T ( ) u
0
t 2T ( ) [ ] =
A t 2T = t 3T =
v
3
t ( ) A u
0
t 2T ( ) u
0
t 3T ( ) [ ] =
A t 3T = t 4T =
v
4
t ( ) A u
0
t 3T ( ) u
0
t 4T ( ) [ ] =
v t ( ) v
1
t ( ) v
2
t ( ) v
3
t ( ) v
4
t ( ) + + + =
A u
0
t ( ) u
0
t T ( ) [ ] A u
0
t T ( ) u
0
t 2T ( ) [ ] =
+A u
0
t 2T ( ) u
0
t 3T ( ) [ ] A u
0
t 3T ( ) u
0
t 4T ( ) [ ]
v t ( ) A u
0
t ( ) 2u
0
t T ( ) 2u
0
t 2T ( ) 2u
0
t 3T ( ) . + + [ ] =
A t T 2 ' = t T 2 ' =
Chapter 3 Elementary Signals
3-6 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 3.11. Symmetric rectangular pulse for Example 3.3
(3.14)
Example 3.4
Express the symmetric triangular waveform of Figure 3.12 as a sum of unit step functions.
Figure 3.12. Symmetric triangular waveform for Example 3.4
Solution:
We first derive the equations for the linear segments and shown in Figure 3.13.
Figure 3.13. Equations for the linear segments in Figure 3.12
For line segment ,
(3.15)
and for line segment ,
(3.16)
Combining (3.15) and (3.16), we obtain
(3.17)
t
A
T 2 '
T 2 '
0
i t ( )
i t ( ) Au
0
t
T
2
--- +
\ .
| |
Au
0
t
T
2
---
\ .
| |
A u
0
t
T
2
--- +
\ .
| |
u
0
t
T
2
---
\ .
| |
= =
t
1
0
T 2 '
v t ( )
T 2 '
t
1
0
T 2 '
v t ( )
T 2 '
2
T
--- t 1 +
2
T
--- t 1 +


v
1
t ( )
2
T
--- t 1 +
\ .
| |
u
0
t
T
2
--- +
\ .
| |
u
0
t ( ) =
v
2
t ( )
2
T
--- t 1 +
\ .
| |
u
0
t ( ) u
0
t
T
2
---
\ .
| |
=
v t ( ) v
1
t ( ) v
2
t ( ) +
2
T
--- t 1 +
\ .
| |
u
0
t
T
2
--- +
\ .
| |
u
0
t ( )
2
T
--- t 1 +
\ .
| |
u
0
t ( ) u
0
t
T
2
---
\ .
| |
+ = =
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-7
Copyright Orchard Publications
The Unit Step Function
Example 3.5
Express the waveform of Figure 3.14 as a sum of unit step functions.
Figure 3.14. Waveform for Example 3.5
Solution:
As in the previous example, we first find the equations of the linear segments linear segments
and shown in Figure 3.15.
Figure 3.15. Equations for the linear segments of Figure 3.14
Following the same procedure as in the previous examples, we obtain
Multiplying the values in parentheses by the values in the brackets, we obtain
and combining terms inside the brackets, we obtain
(3.18)
1
2
3
1 2 3
0
t
v t ( )
1
2
3
1 2
3
0

2t 1 +
v t ( )
t
t 3 +

v t ( ) 2t 1 + ( ) u
0
t ( ) u
0
t 1 ( ) [ ] 3 u
0
t 1 ( ) u
0
t 2 ( ) [ ] + =
+ t 3 + ( ) u
0
t 2 ( ) u
0
t 3 ( ) [ ]
v t ( ) 2t 1 + ( )u
0
t ( ) 2t 1 + ( )u
0
t 1 ( ) 3u
0
t 1 ( ) + =
3u
0
t 2 ( ) t 3 + ( )u
0
t 2 ( ) t 3 + ( )u
0
t 3 ( ) +
v t ( ) 2t 1 + ( )u
0
t ( ) 2t 1 + ( ) 3 + [ ]u
0
t 1 ( ) + =
+ 3 t 3 + ( ) + [ ]u
0
t 2 ( ) t 3 + ( )u
0
t 3 ( )
v t ( ) 2t 1 + ( )u
0
t ( ) 2 t 1 ( )u
0
t 1 ( ) t u
0
t 2 ( ) t 3 ( )u
0
t 3 ( ) + =
Chapter 3 Elementary Signals
3-8 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Two other functions of interest are the unit ramp function, and the unit impulse or delta function.
We will introduce them with the examples that follow.
Example 3.6
In the network of Figure 3.16 is a constant current source and the switch is closed at time
. Express the capacitor voltage as a function of the unit step.
Figure 3.16. Network for Example 3.6
Solution:
The current through the capacitor is , and the capacitor voltage is
*
(3.19)
where is a dummy variable.
Since the switch closes at , we can express the current as
(3.20)
and assuming that for , we can write (3.19) as
(3.21)
or
(3.22)
Therefore, we see that when a capacitor is charged with a constant current, the voltage across it is
a linear function and forms a ramp with slope as shown in Figure 3.17.
* Since the initial condition for the capacitor voltage was not specified, we express this integral with at the lower limit of
integration so that any non-zero value prior to would be included in the integration.
i
S
t 0 = v
C
t ( )
v
C
t ( )
t 0 =
i
S
R
C
-
+
i
C
t ( ) i
S
cons t tan = = v
C
t ( )
v
C
t ( )
1
C
---- i
C
t ( ) t d

t
}
=

t 0 <
t
t 0 = i
C
t ( )
i
C
t ( ) i
S
u
0
t ( ) =
v
C
t ( ) 0 = t 0 <
v
C
t ( )
1
C
---- i
S
u
0
t ( ) t d

t
}
i
S
C
---- u
0
t ( ) t d

0
}
0
i
S
C
---- u
0
t ( ) t d
0
t
}
+ = =

v
C
t ( )
i
S
C
----- tu
0
t ( ) =
i
S
C '
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-9
Copyright Orchard Publications
The Unit Ramp Function
Figure 3.17. Voltage across a capacitor when charged with a constant current source
3.3 The Unit Ramp Function
The unit ramp function, denoted as , is defined as
(3.23)
where is a dummy variable.
We can evaluate the integral of (3.23) by considering the area under the unit step function
from as shown in Figure 3.18.
Figure 3.18. Area under the unit step function from
Therefore, we define as
(3.24)
Since is the integral of , then must be the derivative of , i.e.,
(3.25)
Higher order functions of can be generated by repeated integration of the unit step function. For
example, integrating twice and multiplying by , we define as
(3.26)
v
C
t ( )
0
slope i
S
C ' =
t
u
1
t ( )
u
1
t ( )
u
1
t ( ) u
0
t ( ) t d

t
}
=
t
u
0
t ( )
to t
Area 1 t t t = = =
1
t
t
to t
u
1
t ( )
u
1
t ( )
0 t 0 <
t t 0

=
u
1
t ( ) u
0
t ( ) u
0
t ( ) u
1
t ( )
d
dt
-----u
1
t ( ) u
0
t ( ) =
t
u
0
t ( ) 2 u
2
t ( )
u
2
t ( )
0 t 0 <
t
2
t 0

= or u
2
t ( ) 2 u
1
t ( ) t d

t
}
=
Chapter 3 Elementary Signals
3-10 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Similarly,
(3.27)
and in general,
(3.28)
Also,
(3.29)
Example 3.7
In the network of Figure 3.19, the switch is closed at time and for . Express
the inductor voltage in terms of the unit step function.
Figure 3.19. Network for Example 3.7
Solution:
The voltage across the inductor is
(3.30)
and since the switch closes at ,
(3.31)
Therefore, we can write (3.30) as
(3.32)
But, as we know, is constant ( or ) for all time except at where it is discontinuous.
Since the derivative of any constant is zero, the derivative of the unit step has a non-zero
value only at . The derivative of the unit step function is defined in the next section.
u
3
t ( )
0 t 0 <
t
3
t 0

= or u
3
t ( ) 3 u
2
t ( ) t d

t
}
=
u
n
t ( )
0 t 0 <
t
n
t 0

= or u
n
t ( ) n u
n 1
t ( ) t d

t
}
=
u
n 1
t ( )
1
n
-- -
d
dt
-----u
n
t ( ) =
t 0 = i
L
t ( ) 0 = t 0 <
v
L
t ( )
R
i
S
t 0 =
L
v
L
t ( )
i
L
t ( )
+
-
v
L
t ( ) L
di
L
dt
------- =
t 0 =
i
L
t ( ) i
S
u
0
t ( ) =
v
L
t ( ) Li
S
d
dt
-----u
0
t ( ) =
u
0
t ( ) 0 1 t 0 =
u
0
t ( )
t 0 =
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-11
Copyright Orchard Publications
The Delta Function
3.4 The Delta Function
The delta function or unit impulse, denoted as , is the derivative of the unit step . It is also
defined as
(3.33)
and
(3.34)
To better understand the delta function , let us represent the unit step as shown in Fig-
ure 3.20 (a).
Figure 3.20. Representation of the unit step as a limit
The function of Figure 3.20 (a) becomes the unit step as . Figure 3.20 (b) is the derivative of
Figure 3.20 (a), where we see that as , becomes unbounded, but the area of the rect-
angle remains . Therefore, in the limit, we can think of as approaching a very large spike or
impulse at the origin, with unbounded amplitude, zero width, and area equal to .
Two useful properties of the delta function are the sampling property and the sifting property.
3.4.1 The Sampling Property of the Delta Function
The sampling property of the delta function states that
(3.35)
or, when ,
(3.36)
that is, multiplication of any function by the delta function results in sampling the func-
tion at the time instants where the delta function is not zero. The study of discrete-time systems is
based on this property.
Proof:
Since then,
o t ( )
o t ( ) u
0
t ( )
o t ( ) t d

t
}
u
0
t ( ) =
o t ( ) 0 for all t 0 =
o t ( ) u
0
t ( )
-r r
1
2r
Figure (a)
Figure (b)
Area =1
r -r
1
t
t
0
0
r 0
r 0 1 2 ' r
1 o t ( )
1
o t ( )
f t ( )o t a ( ) f a ( )o t ( ) =
a 0 =
f t ( )o t ( ) f 0 ( )o t ( ) =
f t ( ) o t ( )
o t ( ) 0 for t 0 and t 0 > < =
Chapter 3 Elementary Signals
3-12 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
(3.37)
We rewrite as
(3.38)
Integrating (3.37) over the interval and using (3.38), we obtain
(3.39)
The first integral on the right side of (3.39) contains the constant term ; this can be written
outside the integral, that is,
(3.40)
The second integral of the right side of (3.39) is always zero because
and
Therefore, (3.39) reduces to
(3.41)
Differentiating both sides of (3.41), and replacing with , we obtain
(3.42)
3.4.2 The Sifting Property of the Delta Function
The sifting property of the delta function states that
(3.43)
that is, if we multiply any function by , and integrate from , we will obtain
the value of evaluated at .
Proof:
Let us consider the integral
(3.44)
f t ( )o t ( ) 0 for t 0 and t 0 > < =
f t ( )
f t ( ) f 0 ( ) f t ( ) f 0 ( ) [ ] + =
to t
f t ( )o t ( ) t d

t
}
f 0 ( )o t ( ) t d

t
}
f t ( ) f 0 ( ) [ ]o t ( ) t d

t
}
+ =
f 0 ( )
f 0 ( )o t ( ) t d

t
}
f 0 ( ) o t ( ) t d

t
}
=
o t ( ) 0 for t 0 and t 0 > < =
f t ( ) f 0 ( ) [ ]
t 0 =
f 0 ( ) f 0 ( ) 0 = =
f t ( )o t ( ) t d

t
}
f 0 ( ) o t ( ) t d

t
}
=
t t
f t ( )o t ( ) f 0 ( )o t ( ) =
Sampling Property of o t ( )
o t ( )
f t ( )o t o ( ) t d

}
f o ( ) =
f t ( ) o t o ( ) to +
f t ( ) t o =
f t ( )o t o ( ) t where a o b < < d
a
b
}
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-13
Copyright Orchard Publications
Higher Order Delta Functions
We will use integration by parts to evaluate this integral. We recall from the derivative of prod-
ucts that
(3.45)
and integrating both sides we obtain
(3.46)
Now, we let ; then, . We also let ; then, . By sub-
stitution into (3.44), we obtain
(3.47)
We have assumed that ; therefore, for , and thus the first term of the
right side of (3.47) reduces to . Also, the integral on the right side is zero for , and there-
fore, we can replace the lower limit of integration by . We can now rewrite (3.47) as
and letting , we obtain
(3.48)
3.5 Higher Order Delta Functions
An nth-order delta function is defined as the derivative of , that is,
(3.49)
The function is called doublet, is called triplet, and so on. By a procedure similar to the
derivation of the sampling property of the delta function, we can show that
(3.50)
Also, the derivation of the sifting property of the delta function can be extended to show that
(3.51)
d xy ( ) xdy ydx or xdy + d xy ( ) ydx = =
x y d
}
xy y x d
}
=
x f t ( ) = dx f t ( )

= dy o t o ( ) = y u
0
t o ( ) =
f t ( )o t o ( ) t d
a
b
}
f t ( )u
0
t o ( )
a
b
u
0
t o ( )f t ( )

t d
a
b
}
=
a o b < < u
0
t o ( ) 0 = o a <
f b ( ) o a <
a o
f t ( )o t o ( ) t d
a
b
}
f b ( ) f t ( )

t d
o
b
}
f b ( ) f b ( ) f o ( ) + = =
a and b for any o <
f t ( )o t o ( ) t d

}
f o ( ) =
Sifting Property of o t ( )
nth u
0
t ( )
o
n
t ( )
o
n
dt
----- u
0
t ( ) [ ] =
o' t ( ) o'' t ( )
f t ( )o' t a ( ) f a ( )o' t a ( ) f

' a ( )o t a ( ) =
f t ( )o
n
t o ( ) t d

}
1 ( )
n d
n
dt
n
-------- f t ( ) [ ]
t o =
=
Chapter 3 Elementary Signals
3-14 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
Example 3.8
Evaluate the following expressions:
a. b. c.
Solution:
a. The sampling property states that For this example, and
. Then,
b. The sifting property states that . For this example, and
. Then,
c. The given expression contains the doublet; therefore, we use the relation
Then, for this example,
Example 3.9
a. Express the voltage waveform shown in Figure 3.21 as a sum of unit step functions for the
time interval .
b. Using the result of part (a), compute the derivative of and sketch its waveform.
Solution:
a. We begin with the derivation of the equations for the linear segments of the given waveform
as shown in Figure 3.22.
Next, we express in terms of the unit step function , and we obtain
(3.52)
3t
4
o t 1 ( ) to t 2 ( ) t d

}
t
2
o' t 3 ( )
f t ( )o t a ( ) f a ( )o t ( ) = f t ( ) 3t
4
=
a 1 =
3t
4
o t 1 ( ) 3t
4
t 1 =
{ o t 1 ( ) 3o t ( ) = =
f t ( )o t o ( ) t d

}
f o ( ) = f t ( ) t =
o 2 =
to t 2 ( ) t d

}
f 2 ( ) t
t 2 =
2 = = =
f t ( )o' t a ( ) f a ( )o' t a ( ) f

' a ( )o t a ( ) =
t
2
o' t 3 ( ) t
2
t 3 =
o' t 3 ( )
d
dt
-----t
2
t 3 =
o t 3 ( ) 9o' t 3 ( ) 6o t 3 ( ) = =
v t ( )
1 t 7 s < <
v t ( )
v t ( ) u
0
t ( )
v t ( ) 2t u
0
t 1 + ( ) u
0
t 1 ( ) [ ] 2 u
0
t 1 ( ) u
0
t 2 ( ) [ ] + =
+ t 5 + ( ) u
0
t 2 ( ) u
0
t 4 ( ) [ ] u
0
t 4 ( ) u
0
t 5 ( ) [ ] +
+ t 6 + ( ) u
0
t 5 ( ) u
0
t 7 ( ) [ ]
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-15
Copyright Orchard Publications
Higher Order Delta Functions
Figure 3.21. Waveform for Example 3.9
Figure 3.22. Equations for the linear segments of Figure 3.21
Multiplying and collecting like terms in (3.52), we obtain
or
b. The derivative of is
-1
-2
-1
1
2
3
1 2 3 4 5 6 7
0
V ( )
t s ( )
v t ( )
-1
-2
-1
1
2
3
1 2 3 4 5 6 7
0
v t ( )
t 6 +
t 5 +
2t
t s ( )
V ( )
v t ( )
v t ( ) 2tu
0
t 1 + ( ) 2tu
0
t 1 ( ) 2u
0
t 1 ( ) 2u
0
t 2 ( ) tu
0
t 2 ( ) =
+ 5u
0
t 2 ( ) tu
0
t 4 ( ) 5u
0
t 4 ( ) u
0
t 4 ( ) u
0
t 5 ( ) + +
tu
0
t 5 ( ) 6u
0
t 5 ( ) tu
0
t 7 ( ) 6u
0
t 7 ( ) + +
v t ( ) 2tu
0
t 1 + ( ) 2t 2 + ( )u
0
t 1 ( ) t 3 + ( )u
0
t 2 ( ) + + =
+ t 4 ( )u
0
t 4 ( ) t 5 + ( )u
0
t 5 ( ) t 6 ( )u
0
t 7 ( ) + +
v t ( )
Chapter 3 Elementary Signals
3-16 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
(3.53)
From the given waveform, we observe that discontinuities occur only at , , and
. Therefore, , , and , and the terms that contain
these delta functions vanish. Also, by application of the sampling property,
and by substitution into (3.53), we obtain
(3.54)
The plot of is shown in Figure 3.23.

Figure 3.23. Plot of the derivative of the waveform of Figure 3.21
We observe that a negative spike of magnitude occurs at , and two positive spikes of
magnitude occur at , and . These spikes occur because of the discontinuities at
these points.
dv
dt
------ 2u
0
t 1 + ( ) 2to t 1 + ( ) 2u
0
t 1 ( ) 2t 2 + ( )o t 1 ( ) + + =
u
0
t 2 ( ) t 3 + ( )o t 2 ( ) u
0
t 4 ( ) t 4 ( )o t 4 ( ) + + +
u
0
t 5 ( ) t 5 + ( )o t 5 ( ) u
0
t 7 ( ) t 6 ( )o t 7 ( ) + + +
t 1 = t 2 =
t 7 = o t 1 ( ) 0 = o t 4 ( ) 0 = o t 5 ( ) 0 =
2to t 1 + ( ) 2t
t 1 =
{ o t 1 + ( ) 2o t 1 + ( ) = =
t 3 + ( )o t 2 ( ) t 3 + ( )
t 2 =
{ o t 2 ( ) o t 2 ( ) = =
t 6 ( )o t 7 ( ) t 6 ( )
t 7 =
{ o t 7 ( ) o t 7 ( ) = =
dv
dt
------ 2u
0
t 1 + ( ) 2 o t 1 + ( ) 2u
0
t 1 ( ) u
0
t 2 ( ) =
o t 2 ( ) u
0
t 4 ( ) u
0
t 5 ( ) u
0
t 7 ( ) o t 7 ( ) + + + +
dv dt '
-1
-1
1
2
1 2 3 4 5 6 7
0
2o t 1 + ( )
dv
dt
------
V s ' ( )
o t 2 ( )
o t 7 ( )
t s ( )
2 t 1 =
1 t 2 = t 7 =
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-17
Copyright Orchard Publications
Higher Order Delta Functions
It would be interesting to observe the given signal and its derivative on the Scope block of the
Simulink
*
model of Figure 3.24. They are shown in Figure 3.25.
Figure 3.24. Simulink model for Example 3.9
Figure 3.25. Piece-wise linear waveform for the Signal Builder block in Figure 3.24
The waveform in Figure 3.25 is created with the following procedure:
1. We open a new model by clicking the new model icon shown as a blank page on the left corner
of the top menu bar. Initially, the name Untitled appears on the top of this new model. We
save it with the name Figure_3.25 and Simulink appends the .mdl extension to it.
2. From the Sources library, we drag the Signal Builder block into this new model. We also drag
the Derivative block from the Continuous library, the Bus Creator block from the Com-
monly Used Blocks library, and the Scope block into this model, and we interconnect these
blocks as shown in Figure 3.24.
* A brief introduction to Simulink is presented in Appendix B. For a detailed procedure for generating piece-wise
linear functions with Simulinks Signal Builder block, please refer to Introduction to Simulink with Engineering
Applications, ISBN 978-1-934404-09-6
Chapter 3 Elementary Signals
3-18 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
3. We double-click the Signal Builder block in Figure 3.24, and on the plot which appears as a
square pulse, we click the y-axis and we enter Minimum: -2.5, and Maximum: 3.5. Likewise
we right-click anywhere on the plot and we specify the Change Time Range at Min time: -2,
and Max time: 8.
4. To select a particular point, we position the mouse cursor over that point and we left-click. A
circle is drawn around that point to indicate that it is selected.
5. To select a line segment, we left-click on that segment. That line segment is now shown as a
thick line indicating that it is selected. To deselect it, we press the Esc key.
6. To drag a line segment to a new position, we place the mouse cursor over that line segment and
the cursor shape shows the position in which we can drag the segment.
7. To drag a point along the y-axis, we move the mouse cursor over that point, and the cursor
changes to a circle indicating that we can drag that point. Then, we can move that point in a
direction parallel to the x-axis.
8. To drag a point along the x-axis, we select that point, and we hold down the Shift key while
dragging that point.
9. When we select a line segment on the time axis (x-axis) we observe that at the lower end of
the waveform display window the Left Point and Right Point fields become visible. We can
then reshape the given waveform by specifying the Time (T) and Amplitude (Y) points.
Figure 3.26. Waveforms for the Simulink model in Figure 3.24
The two positive spikes that occur at , and , are clearly shown in Figure 3.26.
MATLAB
*
has built-in functions for the unit step, and the delta functions. These are denoted by
the names of the mathematicians who used them in their work. The unit step function is
referred to as Heaviside(t), and the delta function is referred to as Dirac(t).
* An introduction to MATLAB

is given in Appendix A.
t 2 = t 7 =
u
0
t ( )
o t ( )
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-19
Copyright Orchard Publications
Summary
3.6 Summary
- The unit step function is defined as
- The unit step function offers a convenient method of describing the sudden application of a
voltage or current source.
- The unit ramp function, denoted as , is defined as
- The unit impulse or delta function, denoted as , is the derivative of the unit step . It is
also defined as
and
- The sampling property of the delta function states that
or, when ,
- The sifting property of the delta function states that
- The sampling property of the doublet function states that
u
0
t ( )
u
0
t ( )
0 t 0 <
1 t 0 >

=
u
1
t ( )
u
1
t ( ) u
0
t ( ) t d

t
}
=
o t ( ) u
0
t ( )
o t ( ) t d

t
}
u
0
t ( ) =
o t ( ) 0 for all t 0 =
f t ( )o t a ( ) f a ( )o t ( ) =
a 0 =
f t ( )o t ( ) f 0 ( )o t ( ) =
f t ( )o t o ( ) t d

}
f o ( ) =
o' t ( )
f t ( )o' t a ( ) f a ( )o' t a ( ) f

' a ( )o t a ( ) =
Chapter 3 Elementary Signals
3-20 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
3.7 Exercises
1. Evaluate the following functions:
a. b. c.
d. e. f.
2.
a. Express the voltage waveform shown below as a sum of unit step functions for the time
interval .
b. Using the result of part (a), compute the derivative of , and sketch its waveform. This
waveform cannot be used with Sinulinks Function Builder block because it contains the
decaying exponential segment which is a non-linear function.
to sin t
r
6
---
\ .
| |
2to cos t
r
4
---
\ .
| |
t
2
o t
r
2
---
\ .
| |
cos
2to tan t
r
8
---
\ .
| |
t
2
e
t
o t 2 ( ) t d

}
t
2
o
1
t
r
2
---
\ .
| |
sin
v t ( )
0 t 7 s < <
-10
-20
10
20
1 2 3 4 5 6 7
0
v t ( )
t s ( )
e
2t
V ( ) v t ( )
v t ( )
Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling 3-21
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
3.8 Solutions to End-of-Chapter Exercises
1. We apply the sampling property of the function for all expressions except (e) where we
apply the sifting property. For part (f) we apply the sampling property of the doublet.
We recall that the sampling property states that . Thus,
a.
b.
c.
d.
We recall that the sampling property states that . Thus,
e.
f. We recall that the sampling property for the doublet states that
Thus,

2.
a.
o t ( )
f t ( )o t a ( ) f a ( )o t ( ) =
to sin t
r
6
---
\ .
| |
t
t r 6 ' =
o t ( ) sin
r
6
---o t ( ) sin 0.5o t ( ) = = =
2to cos t
r
4
---
\ .
| |
2t
t r 4 ' =
o t ( ) cos
r
2
---o t ( ) cos 0 = = =
t
2
o t
r
2
---
\ .
| |
cos
1
2
--- 1 2t cos + ( )
t r 2 ' =
o t ( )
1
2
-- - 1 r cos + ( )o t ( )
1
2
--- 1 1 ( )o t ( ) 0 = = = =
2to tan t
r
8
---
\ .
| |
2t
t r 8 ' =
o tan t ( )
r
4
---o t ( ) tan o t ( ) = = =
f t ( )o t o ( ) t d

}
f o ( ) =
t
2
e
t
o t 2 ( ) t d

}
t
2
e
t
t 2 =
4e
2
0.54 = = =
f t ( )o' t a ( ) f a ( )o' t a ( ) f

' a ( )o t a ( ) =
t
2
o' t
r
2
---
\ .
| |
sin t
t r 2 ' =
2
o' t
r
2
---
\ .
| |
sin
d
dt
----- t
t r 2 ' =
2
o t
r
2
---
\ .
| |
sin =
1
2
-- - 1 2t cos ( )
t r 2 ' =
o' t
r
2
---
\ .
| |
2t
t r 2 ' =
o t
r
2
---
\ .
| |
sin =
1
2
-- - 1 1 + ( )o' t
r
2
---
\ .
| |
ro t
r
2
---
\ .
| |
sin o' t
r
2
---
\ .
| |
= =
v t ( ) e
2t
u
0
t ( ) u
0
t 2 ( ) [ ] 10t 30 ( ) u
0
t 2 ( ) u
0
t 3 ( ) [ ] + =
+ 10 t 50 + ( ) u
0
t 3 ( ) u
0
t 5 ( ) [ ] 10t 70 ( ) u
0
t 5 ( ) u
0
t 7 ( ) [ ] +
Chapter 3 Elementary Signals
3-22 Circuit Analysis II with MATLAB

Computing and Simulink



/ SimPowerSystems

Modeling
Copyright Orchard Publications
b.
(1)
Referring to the given waveform we observe that discontinuities occur only at , ,
and . Therefore, and . Also, by the sampling property of the delta
function
and with these simplifications (1) above reduces to
The waveform for is shown below.
v t ( ) e
2t
u
0
t ( ) e
2t
u
0
t 2 ( ) 10tu
0
t 2 ( ) 30u
0
t 2 ( ) 10tu
0
t 3 ( ) 30u
0
t 3 ( ) + + =
10tu
0
t 3 ( ) 50u
0
t 3 ( ) 10tu
0
t 5 ( ) 50u
0
t 5 ( ) 10tu
0
t 5 ( ) + + +
70u
0
t 5 ( ) 10tu
0
t 7 ( ) 70u
0
t 7 ( ) +
v t ( ) e
2t
u
0
t ( ) e
2t
10t 30 + ( )u
0
t 2 ( ) 20t 80 + ( )u
0
t 3 ( ) 20t 120 ( )u
0
t 5 ( ) + + + =
+ 10t 70 + ( )u
0
t 7 ( )
dv
dt
------ 2e
2t
u
0
t ( ) e
2t
o t ( ) 2e
2t
10 + ( )u
0
t 2 ( ) e
2t
10t 30 + ( )o t 2 ( ) + + + =
20u
0
t 3 ( ) 20t 80 + ( )o t 3 ( ) 20u
0
t 5 ( ) 20t 120 ( )o t 5 ( ) + + +
10u
0
t 7 ( ) 10t 70 + ( )o t 7 ( ) +
t 2 = t 3 =
t 5 = o t ( ) 0 = o t 7 ( ) 0 =
e
2t
10t 30 + ( )o t 2 ( ) e
2t
10t 30 + ( )
t 2 =
o t 2 ( ) = 10o t 2 ( ) =
20t 80 + ( )o t 3 ( ) 20t 80 + ( )
t 3 =
o t 3 ( ) = 20o t 3 ( ) =
20t 120 ( )o t 5 ( ) 20t 120 ( )
t 5 =
o t 5 ( ) = 20 o t 5 ( ) =
dv dt ' 2e
2t
u
0
t ( ) 2e
2t
u
0
t 2 ( ) 10u
0
t 2 ( ) 10o t 2 ( ) + + =
20u
0
t 3 ( ) 20o t 3 ( ) 20u
0
t 5 ( ) 20o t 5 ( ) 10u
0
t 7 ( ) + +
2e
2t
u
0
t ( ) u
0
t 2 ( ) [ ] 10o t 2 ( ) 10 u
0
t 2 ( ) u
0
t 3 ( ) [ ] 20o t 3 ( ) + + =
10 u
0
t 3 ( ) u
0
t 5 ( ) [ ] 20o t 5 ( ) 10 u
0
t 5 ( ) u
0
t 7 ( ) [ ] +
dv dt '
dv dt '
20
10
V s ' ( )
t s ( )
20
10
1
2
3
4
5
6
7
10o t 2 ( )
20o t 3 ( )
20o t 5 ( )
2e
2t

Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-1
Copyright Orchard Publications
Chapter 4
The Laplace Transformation
his chapter begins with an introduction to the Laplace transformation, definitions, and
properties of the Laplace transformation. The initial value and final value theorems are also
discussed and proved. It continues with the derivation of the Laplace transform of common
functions of time, and concludes with the derivation of the Laplace transforms of common wave-
forms.
4.1 Definition of the Laplace Transformation
The two-sided or bilateral Laplace Transform pair is defined as
(4.1)
(4.2)
where denotes the Laplace transform of the time function , denotes the
Inverse Laplace transform, and is a complex variable whose real part is , and imaginary part
, that is, .
In most problems, we are concerned with values of time greater than some reference time, say
, and since the initial conditions are generally known, the two-sided Laplace trans-
form pair of (4.1) and (4.2) simplifies to the unilateral or one-sided Laplace transform defined as
(4.3)
(4.4)
The Laplace Transform of (4.3) has meaning only if the integral converges (reaches a limit), that
is, if
(4.5)
T
L f t ( ) { F s ( ) = f t ( )

}
e
st
dt =
L
1
F s ( ) { f t ( ) =
1
2rj
-------- F s ( )
o jc
o jc +
}
e
st
ds =
L f t ( ) { f t ( ) L
1
F s ( ) {
s o
c s o jc + =
t
t t
0
0 = =
L f t ( ) { F = s ( ) f t ( )
t
0

}
e
st
dt f t ( )
0

}
e
st
dt = =
L
1
F s ( ) { f = t ( )
1
2rj
-------- F s ( )
o jc
o jc +
}
e
st
ds =
f t ( )
0

}
e
st
dt <




Chapter 4 The Laplace Transformation
4-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
To determine the conditions that will ensure us that the integral of (4.3) converges, we rewrite
(4.5) as
(4.6)
The term in the integral of (4.6) has magnitude of unity, i.e., , and thus the con-
dition for convergence becomes
(4.7)
Fortunately, in most engineering applications the functions are of exponential order
*
. Then,
we can express (4.7) as,
(4.8)
and we see that the integral on the right side of the inequality sign in (4.8), converges if .
Therefore, we conclude that if is of exponential order, exists if
(4.9)
where denotes the real part of the complex variable .
Evaluation of the integral of (4.4) involves contour integration in the complex plane, and thus, it
will not be attempted in this chapter. We will see in the next chapter that many Laplace trans-
forms can be inverted with the use of a few standard pairs, and thus there is no need to use (4.4)
to obtain the Inverse Laplace transform.
In our subsequent discussion, we will denote transformation from the time domain to the com-
plex frequency domain, and vice versa, as
(4.10)
4.2 Properties and Theorems of the Laplace Transform
The most common properties and theorems of the Laplace transform are presented in Subsec-
tions 4.2.1 through 4.2.13 below.
4.2.1 Linearity Property
The linearity property states that if the functions
* A function is said to be of exponential order if .
f t ( )e
ot
0

}
e
jct
dt <
e
jct
e
jct
1 =
f t ( )e
ot
0

}
dt <
f t ( )
f t ( ) f t ( ) ke
o
0
t
for all t 0 <
f t ( )e
ot
0

}
dt ke
o
0
t
e
ot
0

}
dt <
o o
0
>
f t ( ) L f t ( ) {
Re s { o o
0
> =
Re s { s
f t ( ) F s ( ) =
f
1
t ( ) f
2
t ( ) . f
n
t ( ) , , ,
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-3
Copyright Orchard Publications
Properties and Theorems of the Laplace Transform
have Laplace transforms
respectively, and
are arbitrary constants, then,
(4.11)
Proof:
Note 1:
It is desirable to multiply by the unit step function to eliminate any unwanted non-
zero values of for .
4.2.2 Time Shifting Property
The time shifting property states that a right shift in the time domain by units, corresponds to
multiplication by in the complex frequency domain. Thus,
(4.12)
Proof:
(4.13)
Now, we let ; then, and . With these substitutions and with ,
the second integral on the right side of (4.13) is expressed as
4.2.3 Frequency Shifting Property
The frequency shifting property states that if we multiply a time domain function by an expo-
nential function where is an arbitrary positive constant, this multiplication will produce a
F
1
s ( ) F
2
s ( ) . F
n
s ( ) , , ,
c
1
c
2
. c
n
, , ,
c
1
f
1
t ( ) c
2
f
2
t ( ) . c
n
f
n
t ( ) + + + c
1
F
1
s ( ) c
2
F
2
s ( ) . c
n
F
n
s ( ) + + + =
L c
1
f
1
t ( ) c
2
f
2
t ( ) . c
n
f
n
t ( ) + + + { c
1
f
1
t ( ) c
2
f
2
t ( ) . c
n
f
n
t ( ) + + + [ ]
t
0

}
dt =
c
1
f
1
t ( )
t
0

}
e
st
dt c
2
f
2
t ( )
t
0

}
e
st
dt . + c
n
f
n
t ( )
t
0

}
e
st
dt + + =
c
1
F
1
s ( ) c
2
F
2
s ( ) . c
n
F
n
s ( ) + + + =
f t ( ) u
0
t ( )
f t ( ) t 0 <
a
e
as
f t a ( )u
0
t a ( ) e
as
F s ( ) =
L f t a ( )u
0
t a ( ) { 0
0
a
}
e
st
dt f t a ( )
a

}
e
st
dt + =
t a t = t t a + = dt dt = a 0
f t ( )
0

}
e
s t a + ( )
dt e
as
f t ( )
0

}
e
st
dt e
as
F s ( ) = =
f t ( )
e
at
a
Chapter 4 The Laplace Transformation
4-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
shift of the s variable in the complex frequency domain by units. Thus,
(4.14)
Proof:
Note 2:
A change of scale is represented by multiplication of the time variable by a positive scaling fac-
tor . Thus, the function after scaling the time axis, becomes .
4.2.4 Scaling Property
Let be an arbitrary positive constant; then, the scaling property states that
(4.15)
Proof:
and letting , we obtain
Note 3:
Generally, the initial value of is taken at to include any discontinuity that may be
present at . If it is known that no such discontinuity exists at , we simply interpret
as .
4.2.5 Differentiation in Time Domain Property
The differentiation in time domain property states that differentiation in the time domain corre-
sponds to multiplication by in the complex frequency domain, minus the initial value of at
. Thus,
(4.16)
Proof:
Using integration by parts where
a
e
at
f t ( ) F s a + ( ) =
L e
at
f t ( ) { e
at
f t ( )
0

}
e
st
dt f t ( )
0

}
e
s a + ( )t
dt F s a + ( ) = = =
t
a f t ( ) f at ( )
a
f at ( )
1
a
-- -F
s
a
--
\ .
| |
=
L f at ( ) { f at ( )
0

}
e
st
dt =
t t a ' =
L f at ( ) { f t ( )
0

}
e
s t a ' ( )
d
t
a
--
\ .
| |
1
a
--- f t ( )
0

}
e
s a ' ( ) t
d t ( )
1
a
-- -F
s
a
--
\ .
| |
= = =
f t ( ) t 0
-
=
t 0 = t 0
-
=
f 0
-
( ) f 0 ( )
s f t ( )
t 0
-
=
f

' t ( )
d
dt
----- f t ( ) = sF s ( ) f 0
-
( ) =
L f

' t ( ) { f

' t ( )
0

}
e
st
dt =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-5
Copyright Orchard Publications
Properties and Theorems of the Laplace Transform
(4.17)
we let and . Then, , , and thus
The time differentiation property can be extended to show that
(4.18)
(4.19)
and in general
(4.20)
To prove (4.18), we let
and as we found above,
Then,
Relations (4.19) and (4.20) can be proved by similar procedures.
We must remember that the terms , and so on, represent the initial condi-
tions. Therefore, when all initial conditions are zero, and we differentiate a time function
times, this corresponds to multiplied by to the power.
4.2.6 Differentiation in Complex Frequency Domain Property
This property states that differentiation in complex frequency domain and multiplication by minus
one, corresponds to multiplication of by in the time domain. In other words,
v u d
}
uv u v d
}
=
du f

' t ( ) = v e
st
= u f t ( ) = dv se
st
=
L f

' t ( ) { f t ( )e
st
0
-

s f t ( )
0
-

}
e
st
dt + f t ( )e
st
0
-
a
a
lim sF s ( ) + = =
e
sa
f a ( ) f 0
-
( ) [ ]
a
lim sF s ( ) + 0 f 0
-
( ) sF s ( ) + = =
d
2
dt
2
-------- f t ( ) s
2
F s ( ) sf 0
-
( ) f

' 0
-
( ) =
d
3
dt
3
-------- f t ( ) s
3
F s ( ) s
2
f 0
-
( ) sf

' 0
-
( ) f

'' 0
-
( ) =
d
n
dt
n
-------- f t ( ) s
n
F s ( ) s
n 1
f 0
-
( ) s
n 2
f

' 0
-
( ) . f
n 1
0
-
( ) =
g t ( ) f

' t ( )
d
dt
----- f t ( ) = =
L g

' t ( ) { sL g t ( ) { g 0
-
( ) =
L f

'' t ( ) { sL f

' t ( ) { f

' 0
-
( ) s sL f t ( ) [ ] f 0
-
( ) [ ] f

' 0
-
( ) = =
s
2
F s ( ) sf 0
-
( ) f

' 0
-
( ) =
f 0
-
( ) f

' 0
-
( ) f

'' 0
-
( ) , ,
f t ( ) n
F s ( ) s nth
f t ( ) t
Chapter 4 The Laplace Transformation
4-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(4.21)
Proof:
Differentiating with respect to and applying Leibnitzs rule
*
for differentiation under the integral,
we obtain
In general,
(4.22)
The proof for follows by taking the second and higher-order derivatives of with
respect to .
4.2.7 Integration in Time Domain Property
This property states that integration in time domain corresponds to divided by plus the ini-
tial value of at , also divided by . That is,
(4.23)
Proof:
We begin by expressing the integral on the left side of (4.23) as two integrals, that is,
(4.24)
The first integral on the right side of (4.24), represents a constant value since neither the upper,
nor the lower limits of integration are functions of time, and this constant is an initial condition
denoted as . We will find the Laplace transform of this constant, the transform of the sec-
* This rule states that if a function of a parameter is defined by the equation where f is some known
function of integration x and the parameter , a and b are constants independent of x and , and the partial derivative
exists and it is continuous, then .
tf t ( )
d
ds
----- F s ( ) =
L f t ( ) { F s ( ) f t ( )
0

}
e
st
dt = =
s
o F o ( ) f x o , ( ) x d
a
b
}
=
o o
f o o o '
dF
do
-------
x o , ( ) o
o ( ) o
----------------- x d
a
b
}
=
d
ds
-----F s ( )
d
ds
----- f t ( )
0

}
e
st
dt
s o
o
0

}
e
st
f t ( )dt t
0

}
e
st
f t ( )dt tf t ( ) [ ]
0

}
e
st
dt L tf t ( ) [ ] = = = = =
t
n
f t ( ) 1 ( )
n d
n
ds
n
--------F s ( ) =
n 2 F s ( )
s
F s ( ) s
f t ( ) t 0
-
= s
f t ( )

t
}
dt
F s ( )
s
----------
f 0
-
( )
s
------------- + =
f t ( )

t
}
dt f t ( )

0
}
dt f t ( )
0
t
}
dt + =
f 0
-
( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-7
Copyright Orchard Publications
Properties and Theorems of the Laplace Transform
ond integral on the right side of (4.24), and will prove (4.23) by the linearity property. Thus,
(4.25)
This is the value of the first integral in (4.24). Next, we will show that
We let
then,
and
Now,
(4.26)
and the proof of (4.23) follows from (4.25) and (4.26).
4.2.8 Integration in Complex Frequency Domain Property
This property states that integration in complex frequency domain with respect to corresponds to
division of a time function by the variable , provided that the limit exists. Thus,
(4.27)
Proof:
L f 0
-
( ) { f 0
-
( )
0

}
e
st
dt f 0
-
( ) e
st
0

}
dt f 0
-
( )
e
st
s
--------
0

= = =
f 0
-
( ) 0
f 0
-
( )
s
-------------
\ .
| |

f 0
-
( )
s
------------ = =
f t ( )
0
t
}
dt
F s ( )
s
---------- =
g t ( ) f t ( )
0
t
}
dt =
g' t ( ) f t ( ) =
g 0 ( ) f t ( )
0
0
}
dt 0 = =
L g' t ( ) { G s ( ) sL g t ( ) { g 0
-
( ) G s ( ) 0 = = =
sL g t ( ) { G s ( ) =
L g t ( ) {
G s ( )
s
----------- =
L f t ( )
0
t
}
dt
)
`

F s ( )
s
---------- =
s
f t ( ) t
f t ( )
t
--------
t 0
lim
f t ( )
t
-------- F s ( ) s d
s

}
=
F s ( ) f t ( )
0

}
e
st
dt =
Chapter 4 The Laplace Transformation
4-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Integrating both sides from to , we obtain
Next, we interchange the order of integration, i.e.,
and performing the inner integration on the right side integral with respect to , we obtain
4.2.9 Time Periodicity Property
The time periodicity property states that a periodic function of time with period corresponds to
the integral divided by in the complex frequency domain. Thus, if we let
be a periodic function with period , that is, , for we obtain
the transform pair
(4.28)
Proof:
The Laplace transform of a periodic function can be expressed as
In the first integral of the right side, we let , in the second , in the third
, and so on. The areas under each period of are equal, and thus the upper and
lower limits of integration are the same for each integral. Then,
(4.29)
Since the function is periodic, i.e., , we can express
(4.29) as
s
F s ( ) s d
s

}
f t ( )
0

}
e
st
dt s d
s

}
=
F s ( ) s d
s

}
e
st
s

}
s d f t ( ) t d
0

}
=
s
F s ( ) s d
s

}
1
t
--- e
st
s

f t ( ) t d
0

}
f t ( )
t
--------e
st
t d
0

}
L
f t ( )
t
--------
)
`

= = =
T
f t ( )
0
T
}
e
st
dt 1 e
sT
( )
f t ( ) T f t ( ) f t nT + ( ) = n 1 2 3 . , , , =
f t nT + ( )
f t ( )
0
T
}
e
st
dt
1 e
sT

------------------------------ =
L f t ( ) { f t ( )
0

}
e
st
dt f t ( )
0
T
}
e
st
dt f t ( )
T
2T
}
e
st
dt f t ( )
2T
3T
}
e
st
dt . + + + = =
t t = t t T + =
t t 2T + = f t ( )
L f t ( ) { f t ( )
0
T
}
e
st
dt f t T + ( )
0
T
}
e
s t T + ( )
dt f t 2T + ( )
0
T
}
e
s t 2T + ( )
dt . + + + =
f t ( ) f t T + ( ) f t 2T + ( ) . f t nT + ( ) = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-9
Copyright Orchard Publications
Properties and Theorems of the Laplace Transform
(4.30)
By application of the binomial theorem, that is,
(4.31)
we find that expression (4.30) reduces to
4.2.10 Initial Value Theorem
The initial value theorem states that the initial value of the time function can be found
from its Laplace transform multiplied by and letting .That is,
(4.32)
Proof:
From the time domain differentiation property,
or
Taking the limit of both sides by letting , we obtain
Interchanging the limiting process, we obtain
and since
L f t ( ) { 1 e
sT
e
2sT
. + + + ( ) f t ( )
0
T
}
e
st
dt =
1 a a
2
a
3
. + + + +
1
1 a
----------- =
L f t ( ) {
f t ( )
0
T
}
e
st
dt
1 e
sT

---------------------------------- =
f 0
-
( ) f t ( )
s s
f t ( )
t 0
lim sF s ( )
s
lim f 0
-
( ) = =
d
dt
----- f t ( ) sF s ( ) f 0
-
( ) =
L
d
dt
----- f t ( )
)
`

sF s ( ) f 0
-
( )
d
dt
----- f t ( )
0

}
e
st
dt = =
s
sF s ( ) f 0
-
( ) [ ]
s
lim
d
dt
----- f t ( )
r
T
}
e
st
dt
T
r 0
lim
s
lim =
sF s ( ) f 0
-
( ) [ ]
s
lim
d
dt
----- f t ( )
r
T
}
e
st
s
lim dt
T
r 0
lim =
e
st
s
lim 0 =
Chapter 4 The Laplace Transformation
4-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
the above expression reduces to
or
4.2.11 Final Value Theorem
The final value theorem states that the final value of the time function can be found
from its Laplace transform multiplied by , then, letting . That is,
(4.33)
Proof:
From the time domain differentiation property,
or
Taking the limit of both sides by letting , we obtain
and by interchanging the limiting process, the expression above is written as
Also, since
it reduces to
Therefore,
sF s ( ) f 0
-
( ) [ ]
s
lim 0 =
sF s ( )
s
lim f 0
-
( ) =
f ( ) f t ( )
s s 0
f t ( )
t
lim sF s ( )
s 0
lim f ( ) = =
d
dt
----- f t ( ) sF s ( ) f 0
-
( ) =
L
d
dt
----- f t ( )
)
`

sF s ( ) f 0
-
( )
d
dt
----- f t ( )
0

}
e
st
dt = =
s 0
sF s ( ) f 0
-
( ) [ ]
s 0
lim
d
dt
----- f t ( )
r
T
}
e
st
dt
T
r 0
lim
s 0
lim =
sF s ( ) f 0
-
( ) [ ]
s 0
lim
d
dt
----- f t ( )
r
T
}
e
st
s 0
lim dt
T
r 0
lim =
e
st
s 0
lim 1 =
sF s ( ) f 0
-
( ) [ ]
s 0
lim
d
dt
----- f t ( )
r
T
}
dt
T
r 0
lim f t ( )
r
T
}
T
r 0
lim f T ( ) f r ( ) [ ]
T
r 0
lim f ( ) f 0
-
( ) = = = =
sF s ( )
s 0
lim f ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-11
Copyright Orchard Publications
Properties and Theorems of the Laplace Transform
4.2.12 Convolution in Time Domain Property
Convolution
*
in the time domain corresponds to multiplication in the complex frequency domain,
that is,
(4.34)
Proof:
(4.35)
We let ; then, , and . Then, by substitution into (4.35),
4.2.13 Convolution in Complex Frequency Domain Property
Convolution in the complex frequency domain divided by , corresponds to multiplication in
the time domain. That is,
(4.36)
Proof:
(4.37)
and recalling that the Inverse Laplace transform from (4.2) is
* Convolution is the process of overlapping two time functions and . The convolution integral indicates
the amount of overlap of one function as it is shifted over another function The convolution of two time functions
and is denoted as , and by definition, where is a dummy
variable. Convolution is discussed in Signals and Systems with MATLAB Computing and Simulink Modeling,
ISBN 978-1-934404-11-9.
f
1
t ( ) f
2
t ( )
f
1
t ( ) f
2
t ( ) f
1
t ( )*f
2
t ( ) f
1
t ( )*f
2
t ( ) f
1
t ( )f
2
t t ( )

}
dt = t
f
1
t ( )*f
2
t ( ) F
1
s ( )F
2
s ( ) =
L f
1
t ( )*f
2
t ( ) { L f
1
t ( )f
2
t t ( )

}
dt f
1
t ( )f
2
t t ( )
0

}
dt
0

}
e
st
dt = =
f
1
t ( ) f
2
t t ( )
0

}
e
st
dt
0

}
dt =
t t / = t / t + = dt d/ =
L f
1
t ( )*f
2
t ( ) { f
1
t ( ) f
2
/ ( )
0

}
e
s / t + ( )
d/
0

}
dt f
1
t ( )e
st
dt
0

}
f
2
/ ( )
0

}
e
s/
d/ = =
F
1
s ( )F
2
s ( ) =
1 2rj '
f
1
t ( )f
2
t ( )
1
2rj
-------- F
1
s ( )*F
2
s ( ) =
L f
1
t ( )f
2
t ( ) { f
1
t ( )f
2
t ( )
0

}
e
st
dt =
f
1
t ( )
1
2rj
-------- F
1
o jc
o jc +
}
( )e
t
d =
Chapter 4 The Laplace Transformation
4-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
by substitution into (4.37), we obtain
We observe that the bracketed integral is ; therefore,
For easy reference, the Laplace transform pairs and theorems are summarized in Table 4.1.
4.3 Laplace Transform of Common Functions of Time
In this section, we will derive the Laplace transform of common functions of time. They are pre-
sented in Subsections 4.3.1 through 4.3.11 below.
4.3.1 Laplace Transform of the Unit Step Function
We begin with the definition of the Laplace transform, that is,
or
Thus, we have obtained the transform pair
(4.38)
for .
*
4.3.2 Laplace Transform of the Ramp Function
We apply the definition
* This condition was established in relation (4.9), Page 4-2.
L f
1
t ( )f
2
t ( ) {
1
2rj
-------- F
1
o jc
o jc +
}
( )e
t
d f
2
t ( )
0

}
e
st
dt
1
2rj
-------- F
1
o jc
o jc +
}
( ) f
2
t ( )
0

}
e
s ( )t
dt d = =
F
2
s ( )
L f
1
t ( )f
2
t ( ) {
1
2rj
-------- F
1
o jc
o jc +
}
( )F
2
s ( )d
1
2rj
--------F
1
s ( )*F
2
s ( ) = =
u
0
t ( )
L f t ( ) { F s ( ) f t ( )
0

}
e
st
dt = =
L u
0
t ( ) { 1
0

}
e
st
dt
e
st

s
---------
0

0
1
s
-- -
\ .
| |

1
s
-- - = = = =
u
0
t ( )
1
s
--- =
Re s { o 0 > =
u
1
t ( )
L f t ( ) { F s ( ) f t ( )
0

}
e
st
dt = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-13
Copyright Orchard Publications
Laplace Transform of Common Functions of Time
or
TABLE 4.1 Summary of Laplace Transform Properties and Theorems
Property/Theorem Time Domain Complex Frequency Domain
1 Linearity
2 Time Shifting
3 Frequency Shifting
4 Time Scaling
5 Time Differentiation
See also (4.18) through (4.20)
6 Frequency Differentiation
See also (4.22)
7 Time Integration
8 Frequency Integration
9 Time Periodicity
10 Initial Value Theorem
11 Final Value Theorem
12 Time Convolution
13 Frequency Convolution
c
1
f
1
t ( ) c
2
f
2
t ( ) +
+ . c
n
f
n
t ( ) +
c
1
F
1
s ( ) c
2
F
2
s ( ) +
+ . c
n
F
n
s ( ) +
f t a ( )u
0
t a ( )
e
as
F s ( )
e
as
f t ( )
F s a + ( )
f at ( )
1
a
-- -F
s
a
--
\ .
| |
d
dt
----- f t ( )
sF s ( ) f 0
-
( )
tf t ( ) d
ds
----- F s ( )
f t ( )

t
}
dt F s ( )
s
----------
f 0
-
( )
s
------------- +
f t ( )
t
--------
F s ( ) s d
s

}
f t nT + ( )
f t ( )
0
T
}
e
st
dt
1 e
sT

------------------------------
f t ( )
t 0
lim
sF s ( )
s
lim f 0
-
( ) =
f t ( )
t
lim sF s ( )
s 0
lim f ( ) =
f
1
t ( )*f
2
t ( ) F
1
s ( )F
2
s ( )
f
1
t ( )f
2
t ( ) 1
2rj
-------- F
1
s ( )*F
2
s ( )
L u
1
t ( ) { L t { t
0

}
e
st
dt = =
Chapter 4 The Laplace Transformation
4-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We will perform integration by parts by recalling that
(4.39)
We let
then,
By substitution into (4.39),
(4.40)
Since the upper limit of integration in (4.40) produces an indeterminate form, we apply L Hpi-
tals rule
*
, that is,
Evaluating the second term of (4.40), we obtain
Thus, we have obtained the transform pair
(4.41)
for .
4.3.3 Laplace Transform of
Before deriving the Laplace transform of this function, we digress to review the gamma or general-
* Often, the ratio of two functions, such as , for some value of x, say a, results in an indeterminate form. To work
around this problem, we consider the limit , and we wish to find this limit, if it exists. To find this limit, we use
LHpitals rule which states that if , and if the limit as x approaches a exists, then,
u v d
}
uv v u d
}
=
u t and dv e
st
= =
du 1 and v
e
st

s
----------- = =
L t {
t e
st
s
-------------
0

e
st

s
-----------
0

}
dt
t e
st
s
-------------
e
st
s
2
--------
0

= =
f x ( )
g x ( )
-----------
f x ( )
g x ( )
-----------
x a
lim
f a ( ) g a ( ) 0 = =
d
dx
------f x ( )
d
dx
------g x ( ) '
f x ( )
g x ( )
-----------
x a
lim
d
dx
------f x ( )
d
dx
------g x ( ) '
\ .
| |
x a
lim =
te
st
t
lim
t
e
st
------
t
lim
t d
d
t ( )
t d
d
e
st
( )
----------------
t
lim
1
se
st
--------
t
lim 0 = = = =
L t {
1
s
2
---- =
t
1
s
2
---- =
o 0 >
t
n
u
0
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-15
Copyright Orchard Publications
Laplace Transform of Common Functions of Time
ized factorial function which is an improper integral
*
but converges (approaches a limit) for
all . It is defined as
(4.42)
We will now derive the basic properties of the gamma function, and its relation to the well
known factorial function
The integral of (4.42) can be evaluated by performing integration by parts. Thus, in (4.42) we let
Then,
and (4.42) is written as
(4.43)
With the condition that , the first term on the right side of (4.43) vanishes at the lower
limit . It also vanishes at the upper limit as . This can be proved with L Hpitals
rule by differentiating both numerator and denominator times, where . Then,
Therefore, (4.43) reduces to
and with (4.42), we have
* Improper integrals are two types and these are:
a. where the limits of integration a or b or both are infinite
b. where f(x) becomes infinite at a value x between the lower and upper limits of integration inclusive.
I n ( )
f x ( ) x d
a
b
}
f x ( ) x d
a
b
}
n 0 >
I n ( ) x
n 1
e
x
x d
0

}
=
n! n n 1 ( ) n 2 ( ) 3 2 1 =
u e
x
and dv x
n 1
= =
du e
x
dx and v
x
n
n
----- = =
I n ( )
x
n
e
x
n
-------------
x 0 =

1
n
-- - x
n
e
x
x d
0

}
+ =
n 0 >
x 0 = x
m m n
x
n
e
x
n
-------------
x
lim
x
n
ne
x
--------
x
lim
x
m
m
d
d
x
n
x
m
m
d
d
ne
x
--------------------
x
lim
x
m 1
m 1
d
d
nx
n 1
x
m 1
m 1
d
d
ne
x
------------------------------------
x
lim . = = = =
n n 1 ( ) n 2 ( ). n m 1 + ( )x
n m
ne
x
-------------------------------------------------------------------------------------
x
lim
n 1 ( ) n 2 ( ). n m 1 + ( )
x
m n
e
x
--------------------------------------------------------------------
x
lim 0 = = =
I n ( )
1
n
-- - x
n
e
x
x d
0

}
=
Chapter 4 The Laplace Transformation
4-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(4.44)
By comparing the integrals in (4.44), we observe that
(4.45)
or
(4.46)
It is convenient to use (4.45) for , and (4.46) for . From (4.45), we see that
becomes infinite as .
For , (4.42) yields
(4.47)
and thus we have obtained the important relation,
(4.48)
From the recurring relation of (4.46), we obtain
(4.49)
and in general
(4.50)
for
The formula of (4.50) is a noteworthy relation; it establishes the relationship between the
function and the factorial
We now return to the problem of finding the Laplace transform pair for , that is,
(4.51)
To make this integral resemble the integral of the gamma function, we let , or ,
and thus . Now, we rewrite (4.51) as
I n ( ) x
n 1
e
x
x d
0

}
1
n
--- x
n
e
x
x d
0

}
= =
I n ( )
I n 1 + ( )
n
--------------------- =
nI n ( ) I n 1 + ( ) =
n 0 < n 0 > I n ( )
n 0
n 1 =
I 1 ( ) e
x
x d
0

}
e
x
0

1 = = =
I 1 ( ) 1 =
I 2 ( ) 1 I 1 ( ) 1 = =
I 3 ( ) 2 I 2 ( ) 2 1 2! = = =
I 4 ( ) 3 I 3 ( ) 3 2 3! = = =
I n 1 + ( ) n! =
n 1 2 3 . , , , =
I n ( )
n!
t
n
u
0
t
L t
n
u
0
t { t
n
0

}
e
st
dt =
st y = t y s ' =
dt dy s ' =
L t
n
u
0
t {
y
s
-- -
\ .
| |
n
0

}
e
y
d
y
s
---
\ .
| |
1
s
n 1 +
----------- y
n
0

}
e
y
dy
I n 1 + ( )
s
n 1 +
--------------------
n!
s
n 1 +
----------- = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-17
Copyright Orchard Publications
Laplace Transform of Common Functions of Time
Therefore, we have obtained the transform pair
(4.52)
for positive integers of and .
4.3.4 Laplace Transform of the Delta Function
We apply the definition
and using the sifting property of the delta function,
*
we obtain
Thus, we have the transform pair
(4.53)
for all .
4.3.5 Laplace Transform of the Delayed Delta Function
We apply the definition
and again, using the sifting property of the delta function, we obtain
Thus, we have the transform pair
(4.54)
for .
* The sifting property of the is described in Subsection 3.4.2, Chapter 3.
t
n
u
0
t ( )
n!
s
n 1 +
----------- =
n o 0 >
o t ( )
L o t ( ) { o t ( )
0

}
e
st
dt =
o t ( )
L o t ( ) { o t ( )
0

}
e
st
dt e
s 0 ( )
1 = = =
o t ( ) 1 =
o
o t a ( )
L o t a ( ) { o t a ( )
0

}
e
st
dt =
L o t a ( ) { o t a ( )
0

}
e
st
dt e
as
= =
o t a ( ) e
as
=
o 0 >
Chapter 4 The Laplace Transformation
4-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
4.3.6 Laplace Transform of
We apply the definition
Thus, we have the transform pair
(4.55)
for .
4.3.7 Laplace Transform of
For this derivation, we will use the transform pair of (4.52), i.e.,
(4.56)
and the frequency shifting property of (4.14), that is,
(4.57)
Then, replacing with in (4.56), we obtain the transform pair
(4.58)
where is a positive integer, and . Thus, for , we obtain the transform pair
(4.59)
for .
For , we obtain the transform
(4.60)
and in general,
(4.61)
for .
e
a t
u
0
t ( )
L e
at
u
0
t ( ) { e
at
0

}
e
st
dt e
s a + ( )t
0

}
dt =
1
s a +
-----------
\ .
| |
e
s a + ( )t
0

1
s a +
----------- = = =
e
at
u
0
t ( )
1
s a +
----------- =
o a >
t
n
e
a t
u
0
t ( )
t
n
u
0
t ( )
n!
s
n 1 +
----------- =
e
at
f t ( ) F s a + ( ) =
s s a +
t
n
e
at
u
0
t ( )
n!
s a + ( )
n 1 +
------------------------- =
n o a > n 1 =
te
at
u
0
t ( )
1
s a + ( )
2
------------------ =
o a >
n 2 =
t
2
e
at
u
0
t ( )
2!
s a + ( )
3
------------------ =
t
n
e
at
u
0
t ( )
n!
s a + ( )
n 1 +
------------------------- =
o a >
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-19
Copyright Orchard Publications
Laplace Transform of Common Functions of Time
4.3.8 Laplace Transform of
We apply the definition
and from tables of integrals
*
Then,
Thus, we have obtained the transform pair
(4.62)
for .
4.3.9 Laplace Transform of
We apply the definition
and from tables of integrals

Then,
* This can also be derived from , and the use of (4.55) where . By the linear-
ity property, the sum of these terms corresponds to the sum of their Laplace transforms. Therefore,
ct u
0
sin t ( )
L ct u
0
sin t ( ) { ct sin ( )
0

}
e
st
dt ct sin ( )
0
a
}
e
st
dt
a
lim = =
ct sin
1
j2
----- e
jct
e
jct
( ) = e
at
u
0
t ( )
1
s a +
----------- =
L ctu
0
sin t ( ) [ ]
1
j2
---- -
1
s jc
--------------
1
s jc +
--------------
\ .
| |
c
s
2
c
2
+
----------------- = =
e
ax
bx sin
}
dx
e
ax
a bx sin b bx cos ( )
a
2
b
2
+
------------------------------------------------------ =
L ct u
0
sin t ( ) {
e
st
s ct sin c ct cos ( )
s
2
c
2
+
-----------------------------------------------------------
0
a
a
lim =
e
as
s ca sin c ca cos ( )
s
2
c
2
+
--------------------------------------------------------------
c
s
2
c
2
+
----------------- +
a
lim
c
s
2
c
2
+
----------------- = =
ct u
0
t sin
c
s
2
c
2
+
----------------- =
o 0 >
c cos t u
0
t ( )
L c cos t u
0
t ( ) { ct cos ( )
0

}
e
st
dt ct cos ( )
0
a
}
e
st
dt
a
lim = =
e
ax
bx cos
}
dx
e
ax
bx acos b bx sin + ( )
a
2
b
2
+
------------------------------------------------------ =
Chapter 4 The Laplace Transformation
4-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Thus, we have the fransform pair
(4.63)
for .
4.3.10 Laplace Transform of
From (4.62),
Using the frequency shifting property of (4.14), that is,
(4.64)
we replace with , and we obtain
(4.65)
for and .
4.3.11 Laplace Transform of
From (4.63),
We can use the relation and the linearity property, as in the derivation of the transform of
on the footnote of the previous page. We can also use the transform pair ; this is the time
differentiation property of (4.16). Applying this transform pair for this derivation, we obtain
ct cos
1
2
--- e
jct
e
jct
+ ( ) =
c sin t
d
dt
----- f t ( ) sF s ( ) f 0
-
( ) =
L c cos tu
0
t ( ) [ ] L
1
c
----
d
dt
----- c sin tu
0
t ( )
1
c
----L
d
dt
----- c sin tu
0
t ( )
1
c
----s
c
s
2
c
2
+
-----------------
s
s
2
c
2
+
----------------- = = = =
L c cos t u
0
t ( ) {
e
st
s ct cos c ct sin + ( )
s
2
c
2
+
-----------------------------------------------------------
0
a
a
lim =
e
as
s ca cos c ca sin + ( )
s
2
c
2
+
--------------------------------------------------------------
s
s
2
c
2
+
----------------- +
a
lim
s
s
2
c
2
+
----------------- = =
c cos t u
0
t
s
s
2
c
2
+
----------------- =
o 0 >
e
a t
ct u
0
sin t ( )
ctu
0
t sin
c
s
2
c
2
+
----------------- =
e
at
f t ( ) F s a + ( ) =
s s a +
e
at
ct u
0
sin t ( )
c
s a + ( )
2
c
2
+
------------------------------- =
o 0 > a 0 >
e
a t
c cos t u
0
t ( )
c cos t u
0
t ( )
s
s
2
c
2
+
----------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-21
Copyright Orchard Publications
Laplace Transform of Common Waveforms
and using the frequency shifting property of (4.14), we replace with , and we obtain
(4.66)
for and .
For easy reference, we have summarized the above derivations in Table 4.2.
4.4 Laplace Transform of Common Waveforms
In this section, we will present procedures for deriving the Laplace transform of common wave-
forms using the transform pairs of Tables 4.1 and 4.2. The derivations are described in Subsec-
tions 4.4.1 through 4.4.5 below.
TABLE 4.2 Laplace Transform Pairs for Common Functions
1
2
3
4
5
6
7
8
9
10
11
s s a +
e
at
c cos t u
0
t ( )
s a +
s a + ( )
2
c
2
+
------------------------------- =
o 0 > a 0 >
f t ( ) F s ( )
u
0
t ( ) 1 s '
t u
0
t ( )
1 s
2
'
t
n
u
0
t ( )
n!
s
n 1 +
-----------
o t ( ) 1
o t a ( )
e
as
e
at
u
0
t ( )
1
s a +
-----------
t
n
e
at
u
0
t ( )
n!
s a + ( )
n 1 +
-------------------------
ct u
0
t ( ) sin c
s
2
c
2
+
-----------------
c cos t u
0
t ( ) s
s
2
c
2
+
-----------------
e
at
ct u
0
t ( ) sin
c
s a + ( )
2
c
2
+
-------------------------------
e
at
c cos t u
0
t ( )
s a +
s a + ( )
2
c
2
+
-------------------------------
Chapter 4 The Laplace Transformation
4-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
4.4.1 Laplace Transform of a Pulse
The waveform of a pulse, denoted as , is shown in Figure 4.1.
Figure 4.1. Waveform for a pulse
We first express the given waveform as a sum of unit step functions as weve learned in Chapter 3.
Then,
(4.67)
From Table 4.1, Page 4-13,
and from Table 4.2, Page 4-22
Thus,
and
Then, in accordance with the linearity property, the Laplace transform of the pulse of Figure 4.1
is
4.4.2 Laplace Transform of a Linear Segment
The waveform of a linear segment, denoted as , is shown in Figure 4.2.
Figure 4.2. Waveform for a linear segment
We must first derive the equation of the linear segment. This is shown in Figure 4.3.
f
P
t ( )
f
P
t ( )
A
a
t
0
f
P
t ( ) A u
0
t ( ) u
0
t a ( ) [ ] =
f t a ( )u
0
t a ( ) e
as
F s ( ) =
u
0
t ( ) 1 s ' =
Au
0
t ( ) A s ' =
Au
0
t a ( ) e
as A
s
---- =
A u
0
t ( ) u
0
t a ( ) [ ]
A
s
---- e
as

A
s
----
A
s
---- 1 e
as
( ) = =
f
L
t ( )
1
t
0
1
2
f
L
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-23
Copyright Orchard Publications
Laplace Transform of Common Waveforms
Figure 4.3. Waveform for a linear segment with the equation that describes it
Next, we express the given waveform in terms of the unit step function as follows:
From Table 4.1, Page 4-13,
and from Table 4.2, Page 4-22,
Therefore, the Laplace transform of the linear segment of Figure 4.2 is
(4.68)
4.4.3 Laplace Transform of a Triangular Waveform
The waveform of a triangular waveform, denoted as , is shown in Figure 4.4.

Figure 4.4. Triangular waveform
The equations of the linear segments are shown in Figure 4.5.
Figure 4.5. Triangular waveform with the equations of the linear segments
Next, we express the given waveform in terms of the unit step function.
1
t
0
1
2
f
L
t ( ) t 1
f
L
t ( ) t 1 ( )u
0
t 1 ( ) =
f t a ( )u
0
t a ( ) e
as
F s ( ) =
tu
0
t ( )
1
s
2
---- =
t 1 ( )u
0
t 1 ( ) e
s 1
s
2
---- =
f
T
t ( )
1
t
0
1
2
f
T
t ( )
1
t
0
1
2
f
T
t ( )
t 2 +
t
f
T
t ( ) t u
0
t ( ) u
0
t 1 ( ) [ ] t 2 + ( ) u
0
t 1 ( ) u
0
t 2 ( ) [ ] + =
tu
0
t ( ) tu
0
t 1 ( ) tu
0
t 1 ( ) 2u
0
t 1 ( ) tu
0
t 2 ( ) 2u
0
t 2 ( ) + + =
Chapter 4 The Laplace Transformation
4-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Collecting like terms, we obtain
From Table 4.1, Page 4-13,
and from Table 4.2, Page 4-22,
Then,
or
Therefore, the Laplace transform of the triangular waveform of Figure 4.4 is
(4.69)
4.4.4 Laplace Transform of a Rectangular Periodic Waveform
The waveform of a rectangular periodic waveform, denoted as , is shown in Figure 4.6. This
is a periodic waveform with period , and we can apply the time periodicity property
where the denominator represents the periodicity of .
Figure 4.6. Rectangular periodic waveform
For this waveform,
f
T
t ( ) tu
0
t ( ) 2 t 1 ( )u
0
t 1 ( ) t 2 ( )u
0
t 2 ( ) + =
f t a ( )u
0
t a ( ) e
as
F s ( ) =
tu
0
t ( )
1
s
2
---- =
tu
0
t ( ) 2 t 1 ( )u
0
t 1 ( ) t 2 ( )u
0
t 2 ( ) +
1
s
2
---- 2e
s
1
s
2
---- e
2s 1
s
2
---- + =
tu
0
t ( ) 2 t 1 ( )u
0
t 1 ( ) t 2 ( )u
0
t 2 ( ) +
1
s
2
---- 1 2e
s
e
2s
+ ( ) =
f
T
t ( )

1
s
2
---- 1 e
s
( )
2
=
f
R
t ( )
T 2a =
L f t ( ) {
f t ( )
0
T
}
e
st
dt
1 e
sT

-------------------------------- =
f t ( )
a
t
0
A
2a 3a
-A
f
R
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-25
Copyright Orchard Publications
Laplace Transform of Common Waveforms
(4.70)
4.4.5 Laplace Transform of a Half-Rectified Sine Waveform
The waveform of a half-rectified sine waveform, denoted as , is shown in Figure 4.7. This
is a periodic waveform with period , and we can apply the time periodicity property
where the denominator represents the periodicity of .
Figure 4.7. Half-rectified sine waveform
*
For this waveform,
L f
R
t ( ) {
1
1 e
2as

-------------------- f
R
t ( )
0
2a
}
e
st
dt
1
1 e
2as

-------------------- A
0
a
}
e
st
dt A ( )
a
2a
}
e
st
dt + = =
A
1 e
2as

--------------------
e
st

s
-----------
0
a
e
st
s
--------
a
2a
+ =
L f
R
t ( ) {
A
s 1 e
2as
( )
---------------------------- e
as
1 e
2as
e
as
+ + ( ) =
A
s 1 e
2as
( )
---------------------------- 1 2e
as
e
2as
+ ( )
A 1 e
as
( )
2
s 1 e
as
+ ( ) 1 e
as
( )
------------------------------------------------- = =
A
s
----
1 e
as
( )
1 e
as
+ ( )
-----------------------
A
s
----
e
as 2 '
e
as 2 '
e
as 2 '
e
as 2 '

e
as 2 '
e
as 2 '
e
as 2 '
e
as 2 '
+
--------------------------------------------------------------
\ .
|
| |
= =
A
s
----
e
as 2 '
e
as 2 '
--------------
e
as 2 '
e
as 2 '

e
as 2 '
e
as 2 '
+
--------------------------------
\ .
|
| |
A
s
----
as 2 ' ( ) sinh
as 2 ' ( ) cosh
----------------------------- = =
f
R
t ( )
A
s
----
as
2
-----
\ .
| |
tanh =
f
HW
t ( )
T 2a =
L f t ( ) {
f t ( )
0
T
}
e
st
dt
1 e
sT

-------------------------------- =
f t ( )
2r r
3r
4r
5r
f
HW
t ( )
Chapter 4 The Laplace Transformation
4-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(4.71)
4.5 Using MATLAB for Finding the Laplace Transforms of Time Functions
We can use the MATLAB function laplace to find the Laplace transform of a time function. For
examples, please type
help laplace
in MATLABs Command prompt.
We will be using this function extensively in the subsequent chapters of this book.
* This waveform was produced with the following MATLAB script:
t=0:pi/64:5*pi; x=sin(t); y=sin(t-2*pi); z=sin(t-4*pi); plot(t,x,t,y,t,z); axis([0 5*pi 0 1])
L f
HW
t ( ) {
1
1 e
2rs

--------------------- f t ( )
0
2r
}
e
st
dt
1
1 e
2rs

--------------------- t sin
0
r
}
e
st
dt = =
1
1 e
2rs

---------------------
e
st
s t t cos sin ( )
s
2
1 +
------------------------------------------
0
r
1
s
2
1 + ( )
------------------
1 e
rs
+ ( )
1 e
2rs
( )
-------------------------- = =
L f
HW
t ( ) {
1
s
2
1 + ( )
------------------
1 e
rs
+ ( )
1 e
rs
+ ( ) 1 e
rs
( )
----------------------------------------------- =
f
HW
t ( )
1
s
2
1 + ( ) 1 e
rs
( )
------------------------------------------ =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-27
Copyright Orchard Publications
Summary
4.6 Summary
- The two-sided or bilateral Laplace Transform pair is defined as

where denotes the Laplace transform of the time function , denotes
the Inverse Laplace transform, and is a complex variable whose real part is , and imagi-
nary part , that is, .
- The unilateral or one-sided Laplace transform defined as
- We denote transformation from the time domain to the complex frequency domain, and vice
versa, as
- The linearity property states that
- The time shifting property states that
- The frequency shifting property states that
- The scaling property states that
- The differentiation in time domain property states that
Also,
L f t ( ) { F s ( ) = f t ( )

}
e
st
dt =
L
1
F s ( ) { f t ( ) =
1
2rj
-------- F s ( )
o jc
o jc +
}
e
st
ds =
L f t ( ) { f t ( ) L
1
F s ( ) {
s o
c s o jc + =
L f t ( ) { F = s ( ) f t ( )
t
0

}
e
st
dt f t ( )
0

}
e
st
dt = =
f t ( ) F s ( ) =
c
1
f
1
t ( ) c
2
f
2
t ( ) . c
n
f
n
t ( ) + + + c
1
F
1
s ( ) c
2
F
2
s ( ) . c
n
F
n
s ( ) + + + =
f t a ( )u
0
t a ( ) e
as
F s ( ) =
e
at
f t ( ) F s a + ( ) =
f at ( )
1
a
-- -F
s
a
--
\ .
| |
=
f

' t ( )
d
dt
----- f t ( ) = sF s ( ) f 0
-
( ) =
d
2
dt
2
-------- f t ( ) s
2
F s ( ) sf 0
-
( ) f

' 0
-
( ) =
Chapter 4 The Laplace Transformation
4-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and in general
where the terms , and so on, represent the initial conditions.
- The differentiation in complex frequency domain property states that
and in general,
- The integration in time domain property states that
- The integration in complex frequency domain property states that
provided that the limit exists.
- The time periodicity property states that
- The initial value theorem states that
- The final value theorem states that
d
3
dt
3
-------- f t ( ) s
3
F s ( ) s
2
f 0
-
( ) sf

' 0
-
( ) f

'' 0
-
( ) =
d
n
dt
n
-------- f t ( ) s
n
F s ( ) s
n 1
f 0
-
( ) s
n 2
f

' 0
-
( ) . f
n 1
0
-
( ) =
f 0
-
( ) f

' 0
-
( ) f

'' 0
-
( ) , ,
tf t ( )
d
ds
----- F s ( ) =
t
n
f t ( ) 1 ( )
n d
n
ds
n
--------F s ( ) =
f t ( )

t
}
dt
F s ( )
s
----------
f 0
-
( )
s
------------- + =
f t ( )
t
-------- F s ( ) s d
s

}
=
f t ( )
t
--------
t 0
lim
f t nT + ( )
f t ( )
0
T
}
e
st
dt
1 e
sT

------------------------------ =
f t ( )
t 0
lim sF s ( )
s
lim f 0
-
( ) = =
f t ( )
t
lim sF s ( )
s 0
lim f ( ) = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-29
Copyright Orchard Publications
Summary
- Convolution in the time domain corresponds to multiplication in the complex frequency
domain, that is,
- Convolution in the complex frequency domain divided by , corresponds to multiplica-
tion in the time domain. That is,
- The Laplace transforms of some common functions of time are shown in Table 4.1, Page 4-13
- The Laplace transforms of some common waveforms are shown in Table 4.2, Page 4-22
- We can use the MATLAB function laplace to find the Laplace transform of a time function
f
1
t ( )*f
2
t ( ) F
1
s ( )F
2
s ( ) =
1 2rj '
f
1
t ( )f
2
t ( )
1
2rj
-------- F
1
s ( )*F
2
s ( ) =
Chapter 4 The Laplace Transformation
4-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
4.7 Exercises
1. Derive the Laplace transform of the following time domain functions:
a. b. c. d. e.
2. Derive the Laplace transform of the following time domain functions:
a. b. c. d. e.
3. Derive the Laplace transform of the following time domain functions:
a. b.
c. d.
e. Be careful with this! Comment and you may skip derivation.
4. Derive the Laplace transform of the following time domain functions:
a. b. c.
d. e.
5. Derive the Laplace transform of the following time domain functions:
a. b. c.
d. e.
6. Derive the Laplace transform of the following time domain functions:
a. b. c. d. e.
7. Derive the Laplace transform of the following time domain functions:
a. b. c. d. e.
12 6u
0
t ( ) 24u
0
t 12 ( ) 5tu
0
t ( ) 4t
5
u
0
t ( )
j8 j5 90 Z 5e
5t
u
0
t ( ) 8t
7
e
5t
u
0
t ( ) 15o t 4 ( )
t
3
3t
2
4t 3 + + + ( )u
0
t ( ) 3 2t 3 ( )o t 3 ( )
3 5t sin ( )u
0
t ( ) 5 3t cos ( )u
0
t ( )
2 4t tan ( )u
0
t ( )
3t 5t sin ( )u
0
t ( ) 2t
2
3t cos ( )u
0
t ( ) 2e
5t
5t sin
8e
3t
4t cos t cos ( )o t r 4 ' ( )
5tu
0
t 3 ( ) 2t
2
5t 4 + ( )u
0
t 3 ( ) t 3 ( )e
2t
u
0
t 2 ( )
2t 4 ( )e
2 t 2 ( )
u
0
t 3 ( ) 4te
3t
2t cos ( )u
0
t ( )
t d
d
3t sin ( )
t d
d
3e
4t
( )
t d
d
t
2
2t cos ( )
t d
d
e
2t
2t sin ( )
t d
d
t
2
e
2t
( )
t sin
t
---------
t sin
t
---------- t d
0
t
}
at sin
t
------------
t cos
t
----------- t d
t

}
e
t
t
------- t d
t

}
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-31
Copyright Orchard Publications
Exercises
8. Derive the Laplace transform for the sawtooth waveform below.
9. Derive the Laplace transform for the full-rectified waveform below.
Write a simple MATLAB script that will produce the waveform above.
f
ST
t ( )
A
a 2a
t
f
ST
t ( )
3a
f
FR
t ( )
f
FR
t ( )
r
2r 3r 4r
Chapter 4 The Laplace Transformation
4-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
4.8 Solutions to End-of-Chapter Exercises
1. From the definition of the Laplace transform or from Table 4.2, Page 4-22, we obtain:
a. b. c. d. e.
2. From the definition of the Laplace transform or from Table 4.2, Page 4-22, we obtain:
a. b. c. d. e.
3.
a. From Table 4.2, Page 4-22, and the linearity property, we obtain
b. and
c. d. e.
This answer for part (e) looks suspicious because and the Laplace transform is
unilateral, that is, there is one-to-one correspondence between the time domain and the com-
plex frequency domain. The fallacy with this procedure is that we assumed that if
and , we cannot conclude that . For this exercise
, and as weve learned, multiplication in the time domain corre-
sponds to convolution in the complex frequency domain. Accordingly, we must use the
Laplace transform definition and this requires integration by parts. We skip
this analytical derivation. The interested reader may try to find the answer with the MATLAB
script
syms s t; 2*laplace(sin(4*t)/cos(4*t))
4. From (4.22), Page 4-6,
a.
12 s ' 6 s ' e
12s 24
s
------ 5 s
2
' 4
5!
s
6
-----
j8 s ' 5 s '
5
s 5 +
----------- 8
7!
s 5 + ( )
8
------------------ 15e
4s
3!
s
4
-----
3 2!
s
3
--------------
4
s
2
----
3
s
-- - + + +
3 2t 3 ( )o t 3 ( ) 3 2t 3 ( )
t 3 =
o t 3 ( ) 9o t 3 ( ) = = 9o t 3 ( ) 9e
3s
=
3
5
s
2
5
2
+
---------------- 5
s
s
2
3
2
+
---------------- 2 4t tan 2
4t sin
4t cos
------------- 2
4 s
2
2
2
+ ( ) '
s s
2
2
2
+ ( ) '
----------------------------
8
s
--- = = =
8 s ' 8u
0
t ( ) =
f
1
t ( ) F
1
s ( ) = f
2
t ( ) F
2
s ( ) =
f
1
t ( )
f
2
t ( )
-----------
F
1
s ( )
F
2
s ( )
------------- =
f
1
t ( ) f
2
t ( ) 4t
1
4t cos
------------- sin =
2 4t tan ( )e
st
t d
0

}
t
n
f t ( ) 1 ( )
n d
n
ds
n
--------F s ( ) =
3 1 ( )
1 d
ds
-----
5
s
2
5
2
+
----------------
\ .
| |
3
5 2s ( )
s
2
25 + ( )
2
------------------------
30s
s
2
25 + ( )
2
------------------------ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-33
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
b.
c.
d.
e.
and
5.
a.
b.
c.
d.
2 1 ( )
2 d
2
ds
2
--------
s
s
2
3
2
+
----------------
\ .
| |
2
d
ds
-----
s
2
3
2
s 2s ( ) +
s
2
9 + ( )
2
----------------------------------- 2
d
ds
-----
s
2
9 +
s
2
9 + ( )
2
---------------------
\ .
|
| |
= =
2
s
2
9 + ( )
2
2s ( ) 2 s
2
9 + ( ) 2s ( ) s
2
9 + ( )
s
2
9 + ( )
4
-------------------------------------------------------------------------------------------------- =
2
s
2
9 + ( ) 2s ( ) 4s s
2
9 + ( )
s
2
9 + ( )
3
-------------------------------------------------------------------- 2
2s
3
18s 4s
3
36s +
s
2
9 + ( )
3
-------------------------------------------------------- = =
2
2s
3
54s
s
2
9 + ( )
3
---------------------- 2
2s s
2
27 ( )
s
2
9 + ( )
3
---------------------------
4s s
2
27 ( )
s
2
9 + ( )
3
--------------------------- = = =
2 5
s 5 + ( )
2
5
2
+
------------------------------
10
s 5 + ( )
2
25 +
------------------------------- =
8 s 3 + ( )
s 3 + ( )
2
4
2
+
------------------------------
8 s 3 + ( )
s 3 + ( )
2
16 +
------------------------------- =
t
r 4 '
o cos t r 4 ' ( ) 2 2 ' ( )o t r 4 ' ( ) = 2 2 ' ( )o t r 4 ' ( ) 2 2 ' ( )e
r 4 ' ( )s
=
5tu
0
t 3 ( ) 5 t 3 ( ) 15 + [ ]u
0
t 3 ( ) e
3s 5
s
2
----
15
s
------ +
\ .
| |
5
s
---e
3s 1
s
-- - 3 +
\ .
| |
= = =
2t
2
5t 4 + ( )u
0
t 3 ( ) 2 t 3 ( )
2
12t 18 5t 4 + + [ ]u
0
t 3 ( ) =
2 t 3 ( )
2
7t 14 + [ ]u
0
t 3 ( ) =
2 t 3 ( )
2
7 t 3 ( ) 21 14 + + [ ]u
0
t 3 ( ) =
2 t 3 ( )
2
7 t 3 ( ) 7 + + [ ]u
0
t 3 ( ) e
3s 2 2!
s
3
--------------
7
s
2
----
7
s
-- - + +
\ .
| |
= =
t 3 ( )e
2t
u
0
t 2 ( ) t 2 ( ) 1 [ ]e
2 t 2 ( )
e
4
u
0
t 2 ( ) =
e
4
e
2s 1
s 2 + ( )
2
------------------
1
s 2 + ( )
---------------- e
4
e
2s s 1 + ( )
s 2 + ( )
2
------------------- = =
2t 4 ( )e
2 t 2 ( )
u
0
t 3 ( ) 2 t 3 ( ) 6 4 + [ ]e
2 t 3 ( )
e
2
u
0
t 3 ( ) =
e
2
e
3s 2
s 3 + ( )
2
------------------
2
s 3 + ( )
---------------- + 2e
2
e
3s s 4 +
s 3 + ( )
2
------------------ = =
Chapter 4 The Laplace Transformation
4-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
e.
6.
a.
b.
c.
Thus,
and
d.
4te
3t
2t cos ( )u
0
t ( ) 4 1 ( )
1 d
ds
-----
s 3 +
s 3 + ( )
2
2
2
+
------------------------------ 4
d
ds
-----
s 3 +
s
2
6s 9 4 + + +
----------------------------------- = =
4
d
ds
-----
s 3 +
s
2
6s 13 + +
----------------------------- 4
s
2
6s 13 s 3 + ( ) 2s 6 + ( ) + +
s
2
6s 13 + + ( )
2
------------------------------------------------------------------------ = =
4
s
2
6s 13 2s
2
6s 6s 18 + +
s
2
6s 13 + + ( )
2
------------------------------------------------------------------------------
4 s
2
6s 5 + + ( )
s
2
6s 13 + + ( )
2
------------------------------------ = =
3t
3
s
2
3
2
+
---------------- = sin
d
dt
-----f t ( ) sF s ( ) f 0
-
( ) = f 0
-
( ) 3t sin
t 0 =
0 = =
t d
d
3t sin ( ) s
3
s
2
3
2
+
---------------- 0
3s
s
2
9 +
-------------- = =
3e
4t 3
s 4 +
----------- =
d
dt
-----f t ( ) sF s ( ) f 0
-
( ) = f 0
-
( ) 3e
4t
t 0 =
3 = =
t d
d
3e
4t
( ) s
3
s 4 +
----------- 3
3s
s 4 +
-----------
3 s 4 + ( )
s 4 +
-------------------
12
s 4 +
----------- = = =
2t cos
s
s
2
2
2
+
---------------- = t
2
2t cos 1 ( )
2 d
2
ds
2
--------
s
s
2
4 +
-------------- =
d
ds
-----
s
2
4 s 2s ( ) +
s
2
4 + ( )
2
---------------------------------
d
ds
-----
s
2
4 +
s
2
4 + ( )
2
---------------------
s
2
4 + ( )
2
2s ( ) s
2
4 + ( ) s
2
4 + ( )2 2s ( )
s
2
4 + ( )
4
------------------------------------------------------------------------------------------------- = =
s
2
4 + ( ) 2s ( ) s
2
4 + ( ) 4s ( )
s
2
4 + ( )
3
------------------------------------------------------------------------
2s
3
8s 4s
3
16s +
s
2
4 + ( )
3
-----------------------------------------------------
2s s
2
12 ( )
s
2
4 + ( )
3
--------------------------- = = =
t
2
2t cos
2s s
2
12 ( )
s
2
4 + ( )
3
--------------------------- =
t d
d
t
2
2t cos ( ) sF s ( ) f 0
-
( ) s
2s s
2
12 ( )
s
2
4 + ( )
3
--------------------------- 0
2s
2
s
2
12 ( )
s
2
4 + ( )
3
------------------------------ = = =
2 sin t
2
s
2
2
2
+
---------------- = e
2t
2t sin
2
s 2 + ( )
2
4 +
---------------------------- =
d
dt
-----f t ( ) sF s ( ) f 0
-
( ) =
t d
d
e
2t
2t sin ( ) s
2
s 2 + ( )
2
4 +
---------------------------- 0
2s
s 2 + ( )
2
4 +
---------------------------- = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-35
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
e.
7.
a.
but to find we must first show that the limit exists. Since
, this condition is satisfied and thus . From tables of inte-
grals, . Then, and the constant of
integration is evaluated from the final value theorem. Thus,
and
b.
From (a) above, and since , it follows that
c.
From (a) above and since , it follows that
or
d.
, , and from tables of integrals,
. Then, and the constant of inte-
gration is evaluated from the final value theorem. Thus,
and using we
t
2 2!
s
3
----- = t
2
e
2t
2!
s 2 + ( )
3
------------------ =
d
dt
-----f t ( ) sF s ( ) f 0
-
( ) =
t d
d
t
2
e
2t
( ) s
2!
s 2 + ( )
3
------------------ 0
2s
s 2 + ( )
3
------------------ = =
t sin
1
s
2
1 +
-------------- = L
t sin
t
---------
)
`

t sin
t
---------
t 0
lim
x sin
x
----------
x 0
lim 1 =
t sin
t
---------
1
s
2
1 +
-------------- s d
s

}
=
1
x
2
a
2
+
---------------- x d
}
1
a
-- - x a ' ( )
1
tan C + =
1
s
2
1 +
-------------- s d
}
1 s ' ( )
1
tan = C +
C
f t ( )
t
lim sF s ( )
s 0
lim s 1 s ' ( )
1
tan C + [ ]
s 0
lim 0 = = =
t sin
t
--------- 1 s ' ( )
1
tan =
t sin
t
--------- 1 s ' ( )
1
tan = f t ( )

t
}
dt
F s ( )
s
----------
f 0
-
( )
s
------------- + =
t sin
t
----------
0
t
}
dt
1
s
--- 1 s ' ( )
1
tan =
t sin
t
--------- 1 s ' ( )
1
tan = f at ( )
1
a
-- -F
s
a
--
\ .
| |
=
at sin
at
------------
1
a
---
1 s '
a
---------
\ .
| |
1
tan =
at sin
t
------------ a s ' ( )
1
tan =
t cos
s
s
2
1 +
-------------- =
t cos
t
----------
s
s
2
1 +
-------------- s d
s

}
=
x
x
2
a
2
+
---------------- x d
}
1
2
-- - x
2
a
2
+ ( ) ln C + =
s
s
2
1 +
-------------- s d
}
1
2
-- - s
2
1 + ( ) ln C + =
C
f t ( )
t
lim sF s ( )
s 0
lim s
1
2
-- - s
2
1 + ( ) ln C +
s 0
lim 0 = = = f t ( )

t
}
dt
F s ( )
s
----------
f 0
-
( )
s
------------- + =
Chapter 4 The Laplace Transformation
4-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
obtain
e.
, , and from tables of integrals . Then,
and the constant of integration is evaluated from the final value
theorem. Thus,
and using , we obtain
8.
This is a periodic waveform with period , and its Laplace transform is
(1)
and from (4.41), Page 4-14, and limits of integration to , we obtain
Adding and subtracting in the last expression above, we obtain
t cos
t
----------- t d
t

}
1
2s
----- s
2
1 + ( ) ln =
e
t 1
s 1 +
----------- =
e
t
t
------
1
s 1 +
----------- s d
s

}
=
1
ax b +
--------------- x d
}
1
2
-- - ax b + ( ) ln =
1
s 1 +
----------- s d
}
s 1 + ( ) ln C + = C
f t ( )
t
lim sF s ( )
s 0
lim s s 1 + ( ) ln C + [ ]
s 0
lim 0 = = =
f t ( )

t
}
dt
F s ( )
s
----------
f 0
-
( )
s
------------- + =
e
t
t
------- t d
t

}
1
s
--- s 1 + ( ) ln =
A
a 2a
t
f
ST
t ( )
3a
A
a
----t
T a =
F s ( )
1
1 e
as

------------------
A
a
----te
st
t d
0
a
}
A
a 1 e
as
( )
-------------------------- te
st
t d
0
a
}
= =
0 a
L t {
0
a
te
st
t d
0
a
}
te
st
s
----------
e
st
s
2
--------
0
a
te
st
s
----------
e
st
s
2
-------- +
a
0
= = =
1
s
2
----
ae
as
s
------------
e
as
s
2
---------
1
s
2
---- 1 1 as + ( )e
as
[ ] = =
as
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 4-37
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
By substitution into (1) we obtain
9.
This is a periodic waveform with period and its Laplace transform is
From tables of integrals,
Then,
The full-rectified waveform can be produced with the MATLAB script below.
t=0:pi/16:4*pi; x=sin(t); plot(t,abs(x)); axis([0 4*pi 0 1])
The full-rectified waveform can also be produced with the Simulink model below. The Sine
Wave, Abs, and Reshape blocks are in the Math Operations library, the MATLAB Func-
tion block is in the User-Defined Functions library, and the Scope and Display blocks are
found in the Sinks library.
L t {
0
a 1
s
2
---- 1 as + ( ) 1 as + ( )e
as
as [ ]
1
s
2
---- 1 as + ( ) 1 e
as
( ) as [ ] = =
F s ( )
A
a 1 e
as
( )
--------------------------
1
s
2
---- 1 as + ( ) 1 e
as
( ) as [ ]
A
as
2
1 e
as
( )
------------------------------- 1 as + ( ) 1 e
as
( ) as [ ] = =
A 1 as + ( )
as
2
------------------------
Aa
as 1 e
as
( )
----------------------------
A
as
-----
1 as + ( )
s
-------------------
a
1 e
as
( )
----------------------- = =
T a r = =
F s ( )
1
1 e
sT

------------------ f t ( )e
st
t d
0
T
}
1
1 e
rs
( )
----------------------- te
st
sin t d
0
r
}
= =
bxe
ax
sin x d
}
e
ax
bx b bx cos asin ( )
a
2
b
2
+
------------------------------------------------------ =
F s ( )
1
1 e
rs

------------------
e
st
s t sin t cos ( )
s
2
1 +
------------------------------------------
0
r

1
1 e
rs

------------------
1 e
rs
+
s
2
1 +
------------------- = =
1
s
2
1 +
--------------
1 e
rs
+
1 e
rs

-------------------
1
s
2
1 +
--------------
rs
2
-----
\ .
| |
coth = =
0 2 4 6 8 10 12
0
0.2
0.4
0.6
0.8
1
Chapter 4 The Laplace Transformation
4-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Before simulation execution, the following script must be entered at the MATLAB command
prompt:
x=[0 pi/6 pi/3 pi/2 2*pi/3 5*pi/6 pi]; string1='abs(sin(x))';
The Scope block displays the waveform shown below.
We can use MATLAB polyfit(x,y,n) and polyval(p,x) functions to find a suitable polynomial
*
that approximates the full-rectifier waveform.
* For an example with a step-by-step procedure, please refer to Numerical Analysis Using MATLAB and
Excel, ISBN 978-1-934404-03-4, Chapter 8, Example 8.8.
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-1
Copyright Orchard Publications
Chapter 5
The Inverse Laplace Transformation
his chapter is a continuation to the Laplace transformation topic of the previous chapter
and presents several methods of finding the Inverse Laplace Transformation. The partial
fraction expansion method is explained thoroughly and it is illustrated with several exam-
ples.
5.1 The Inverse Laplace Transform Integral
The Inverse Laplace Transform Integral was stated in the previous chapter; it is repeated here for
convenience.
(5.1)
This integral is difficult to evaluate because it requires contour integration using complex vari-
ables theory. Fortunately, for most engineering problems we can refer to Tables of Properties, and
Common Laplace transform pairs to lookup the Inverse Laplace transform.
5.2 Partial Fraction Expansion
Quite often the Laplace transform expressions are not in recognizable form, but in most cases
appear in a rational form of , that is,
(5.2)
where and are polynomials, and thus (5.2) can be expressed as
(5.3)
The coefficients and are real numbers for , and if the highest power of
is less than the highest power of , i.e., , is said to be expressed as a proper
rational function. If , is an improper rational function.
In a proper rational function, the roots of in (5.3) are found by setting ; these are
called the zeros of . The roots of , found by setting , are called the poles of .
We assume that in (5.3) is a proper rational function. Then, it is customary and very conve-
nient to make the coefficient of unity; thus, we rewrite as
T
L
1
F s ( ) { f t ( ) =
1
2rj
-------- F s ( )
o jc
o jc +
}
e
st
ds =
s
F s ( )
N s ( )
D s ( )
----------- =
N s ( ) D s ( )
F s ( )
N s ( )
D s ( )
-----------
b
m
s
m
b
m 1
s
m 1
b
m 2
s
m 2
. b
1
s b
0
+ + + + +
a
n
s
n
a
n 1
s
n 1
a
n 2
s
n 2
. a
1
s a
0
+ + + + +
-------------------------------------------------------------------------------------------------------------------- = =
a
k
b
k
k 1 2 . n , , , = m
N s ( ) n D s ( ) m n < F s ( )
m n F s ( )
N s ( ) N s ( ) 0 =
F s ( ) D s ( ) D s ( ) 0 = F s ( )
F s ( )
s
n
F s ( )





Chapter 5 The Inverse Laplace Transformation
5-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(5.4)
The zeros and poles of (5.4) can be real and distinct, repeated, complex conjugates, or combina-
tions of real and complex conjugates. However, we are mostly interested in the nature of the
poles, so we will consider each case separately, as indicated in Subsections 5.2.1 through 5.2.3
below.
5.2.1 Distinct Poles
If all the poles of are distinct (different from each another), we can factor the
denominator of in the form
(5.5)
where is distinct from all other poles. Next, using the partial fraction expansion method,
*
we can
express (5.5) as
(5.6)
where are the residues, and are the poles of .
To evaluate the residue , we multiply both sides of (5.6) by ; then, we let , that is,
(5.7)
Example 5.1
Use the partial fraction expansion method to simplify of (5.8) below, and find the time
domain function corresponding to .
(5.8)
* The partial fraction expansion method applies only to proper rational functions. It is used extensively in integration, and in
finding the inverses of the Laplace transform, the Fourier transform, and the z-transform. This method allows us to decom-
pose a rational polynomial into smaller rational polynomials with simpler denominators from which we can easily recognize
their integrals and inverse transformations. This method is also being taught in intermediate algebra and introductory cal-
culus courses.
F s ( )
N s ( )
D s ( )
-----------
1
a
n
----- b
m
s
m
b
m 1
s
m 1
b
m 2
s
m 2
. b
1
s b
0
+ + + + + ( )
s
n
a
n 1
a
n
-----------s
n 1
a
n 2
a
n
-----------s
n 2
.
a
1
a
n
-----s
a
0
a
n
----- + + + + +
------------------------------------------------------------------------------------------------------------------------------- = =
p
1
p
2
p
3
. p
n
, , , , F s ( )
F s ( )
F s ( )
N s ( )
s p
1
( ) s p
2
( ) s p
3
( ) . s p
n
( )
------------------------------------------------------------------------------------------------- =
p
k
F s ( )
r
1
s p
1
( )
------------------
r
2
s p
2
( )
------------------
r
3
s p
3
( )
------------------ .
r
n
s p
n
( )
------------------ + + + + =
r
1
r
2
r
3
. r
n
, , , , p
1
p
2
p
3
. p
n
, , , , F s ( )
r
k
s p
k
( ) s p
k

r
k
s p
k
( )F s ( )
s p
k

lim s p
k
( )F s ( )
s p
k
=
= =
F
1
s ( )
f
1
t ( ) F
1
s ( )
F
1
s ( )
3s 2 +
s
2
3s 2 + +
-------------------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-3
Copyright Orchard Publications
Partial Fraction Expansion
Solution:
Using (5.6), we obtain
(5.9)
The residues are
(5.10)
and
(5.11)
Therefore, we express (5.9) as
(5.12)
and from Table 4.2, Chapter 4, Page 4-22, we find that
(5.13)
Therefore,
(5.14)
The residues and poles of a rational function of polynomials such as (5.8), can be found easily
using the MATLAB residue(a,b) function. For this example, we use the script
Ns = [3, 2]; Ds = [1, 3, 2]; [r, p, k] = residue(Ns, Ds)
and MATLAB returns the values
r =
4
- 1
p =
- 2
- 1
k =
[ ]
For the MATLAB script above, we defined Ns and Ds as two vectors that contain the numerator
and denominator coefficients of . When this script is executed, MATLAB displays the r and
p vectors that represent the residues and poles respectively. The first value of the vector r is asso-
ciated with the first value of the vector p, the second value of r is associated with the second
F
1
s ( )
3s 2 +
s
2
3s 2 + +
--------------------------
3s 2 +
s 1 + ( ) s 2 + ( )
---------------------------------
r
1
s 1 + ( )
----------------
r
2
s 2 + ( )
---------------- + = = =
r
1
s 1 + ( )F s ( )
s 1
lim
3s 2 +
s 2 + ( )
----------------
s 1 =
1 = = =
r
2
s 2 + ( )F s ( )
s 2
lim
3s 2 +
s 1 + ( )
----------------
s 2 =
4 = = =
F
1
s ( )
3s 2 +
s
2
3s 2 + +
--------------------------
1
s 1 + ( )
----------------
4
s 2 + ( )
---------------- + = =
e
at
u
0
t ( )
1
s a +
----------- =
F
1
s ( )
1
s 1 + ( )
----------------
4
s 2 + ( )
---------------- + = e
t
4e
2t
+ ( ) u
0
t ( ) f
1
t ( ) = =
F s ( )
Chapter 5 The Inverse Laplace Transformation
5-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
value of p, and so on.
The vector k is referred to as the direct term and it is always empty (has no value) whenever
is a proper rational function, that is, when the highest degree of the denominator is larger than
that of the numerator. For this example, we observe that the highest power of the denominator is
, whereas the highest power of the numerator is and therefore the direct term is empty.
We can also use the MATLAB ilaplace(f) function to obtain the time domain function directly
from . This is done with the script that follows.
syms s t; Fs=(3*s+2)/(s^2+3*s+2); ft=ilaplace(Fs); pretty(ft)
% Must have Symbolic Math Toolbox installed
When this script is executed, MATLAB displays the expression
4 e xp( - 2 t ) - e xp( - t )
Example 5.2
Use the partial fraction expansion method to simplify of (5.15) below, and find the time
domain function corresponding to .
(5.15)
Solution:
First, we use the MATLAB factor(s) symbolic function to express the denominator polynomial of
in factored form. For this example,
syms s; factor(s^3 + 12*s^2 + 44*s + 48) % Must have Symbolic Math Toolbox installed
a ns =
( s +2) *( s +4) *( s +6)
Then,
(5.16)
The residues are
(5.17)
(5.18)
F s ( )
s
2
s
F s ( )
F
2
s ( )
f
2
t ( ) F
2
s ( )
F
2
s ( )
3s
2
2s 5 + +
s
3
12s +
2
44s 48 + +
------------------------------------------------- =
F
2
s ( )
F
2
s ( )
3s
2
2s 5 + +
s
3
12s +
2
44s 48 + +
-------------------------------------------------
3s
2
2s 5 + +
s 2 + ( ) s 4 + ( ) s 6 + ( )
--------------------------------------------------
r
1
s 2 + ( )
----------------
r
2
s 4 + ( )
----------------
r
3
s 6 + ( )
---------------- + + = = =
r
1
3s
2
2s 5 + +
s 4 + ( ) s 6 + ( )
---------------------------------
s 2 =
9
8
--- = =
r
2
3s
2
2s 5 + +
s 2 + ( ) s 6 + ( )
---------------------------------
s 4 =
37
4
------ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-5
Copyright Orchard Publications
Partial Fraction Expansion
(5.19)
Then, by substitution into (5.16) we obtain
(5.20)
From Table 4.2, Chapter 4, Page 4-22,
(5.21)
Therefore,
(5.22)
Check with MATLAB:
syms s t; Fs = (3*s^2 + 4*s + 5) / (s^3 + 12*s^2 + 44*s + 48); ft = ilaplace(Fs)
f t =
- 37/ 4*e xp( - 4*t ) +9/ 8*e xp( - 2*t ) +89/ 8*e xp( - 6*t )
5.2.2 Complex Poles
Quite often, the poles of are complex,
*
and since complex poles occur in complex conjugate
pairs, the number of complex poles is even. Thus, if is a complex root of , then, its com-
plex conjugate pole, denoted as , is also a root of . The partial fraction expansion method
can also be used in this case, but it may be necessary to manipulate the terms of the expansion in
order to express them in a recognizable form. The procedure is illustrated with the following
example.
Example 5.3
Use the partial fraction expansion method to simplify of (5.23) below, and find the time
domain function corresponding to .
(5.23)
* A review of complex numbers is presented in Appendix D
r
3
3s
2
2s 5 + +
s 2 + ( ) s 4 + ( )
---------------------------------
s 6 =
89
8
------ = =
F
2
s ( )
3s
2
2s 5 + +
s
3
12s +
2
44s 48 + +
-------------------------------------------------
9 8 '
s 2 + ( )
----------------
37 4 '
s 4 + ( )
----------------
89 8 '
s 6 + ( )
---------------- + + = =
e
at
u
0
t ( )
1
s a +
----------- =
F
2
s ( )
9 8 '
s 2 + ( )
----------------
37 4 '
s 4 + ( )
----------------
89 8 '
s 6 + ( )
---------------- + + =
9
8
---e
2t 37
4
------ e
4t 89
8
------e
6t
+
\ .
| |
u
0
t ( ) f
2
t ( ) = =
F s ( )
p
k
D s ( )
p
k
-
D s ( )
F
3
s ( )
f
3
t ( ) F
3
s ( )
F
3
s ( )
s 3 +
s
3
5s +
2
12s 8 + +
------------------------------------------- =
Chapter 5 The Inverse Laplace Transformation
5-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
Let us first express the denominator in factored form to identify the poles of using the
MATLAB factor(s) symbolic function. Then,
syms s; factor(s^3 + 5*s^2 + 12*s + 8)
a ns =
( s +1) *( s ^2+4*s +8)
The factor(s) function did not factor the quadratic term. We will use the roots(p) function.
p=[1 4 8]; roots_p=roots(p)
r oot s _p =
- 2. 0000 + 2. 0000i
- 2. 0000 - 2. 0000i
Then,
or
(5.24)
The residues are
(5.25)
(5.26)
(5.27)
By substitution into (5.24),
(5.28)
The last two terms on the right side of (5.28), do not resemble any Laplace transform pair that we
derived in Chapter 2. Therefore, we will express them in a different form. We combine them into
a single term
*
, and now (5.28) is written as
F
3
s ( )
F
3
s ( )
s 3 +
s
3
5s +
2
12s 8 + +
-------------------------------------------
s 3 +
s 1 + ( ) s 2 j2 + + ( ) s 2 j2 + ( )
------------------------------------------------------------------------ = =
F
3
s ( )
s 3 +
s
3
5s +
2
12s 8 + +
-------------------------------------------
r
1
s 1 + ( )
----------------
r
2
s 2 j2 + + ( )
---------------------------
r
2
-
s 2 j 2 + ( )
------------------------- + + = =
r
1
s 3 +
s
2
4s 8 + +
--------------------------
s 1 =
2
5
-- - = =
r
2
s 3 +
s 1 + ( ) s 2 j 2 + ( )
------------------------------------------
s 2 j2 =
1 j2
1 j2 ( ) j4 ( )
------------------------------------
1 j2
8 j4 +
------------------ = = =
1 j2 ( )
8 j4 + ( )
-----------------------
8 j4 ( )
8 j4 ( )
-----------------------
16 j12 +
80
------------------------
1
5
-- -
j3
20
------ + = = =
r
2
-
1
5
---
j3
20
------ +
\ .
| |
-
1
5
-- -
j3
20
------ = =
F
3
s ( )
2 5 '
s 1 + ( )
----------------
1 5 ' j3 20 ' +
s 2 j2 + + ( )
-----------------------------------
1 5 ' j3 20 '
s 2 j 2 + ( )
----------------------------------- + + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-7
Copyright Orchard Publications
Partial Fraction Expansion
(5.29)
For convenience, we denote the first term on the right side of (5.29) as , and the second as
. Then,
(5.30)
Next, for
(5.31)
From Table 4.2, Chapter 4, Page 4-22,
(5.32)
Accordingly, we express as
(5.33)
Addition of (5.30) with (5.33) yields
Check with MATLAB:
syms a s t w; % Define several symbolic variables. Must have Symbolic Math Tootbox installed
Fs=(s + 3)/(s^3 + 5*s^2 + 12*s + 8); ft=ilaplace(Fs)
* Here, we used MATLAB function simple((-1/5 +3j/20)/(s+2+2j)+(-1/5 -3j/20)/(s+2-2j)). The simple function,
after several simplification tools that were displayed on the screen, returned ( - 2*s - 1) / ( 5*s ^2+20*s +40) .
F
3
s ( )
2 5 '
s 1 + ( )
----------------
1
5
-- -
2s 1 + ( )
s
2
4s 8 + + ( )
------------------------------- =
F
31
s ( )
F
32
s ( )
F
31
s ( )
2 5 '
s 1 + ( )
---------------- =
2
5
-- -e
t
f
31
t ( ) = =
F
32
s ( )
F
32
s ( )
1
5
---
2s 1 + ( )
s
2
4s 8 + + ( )
------------------------------- =
e
at
ctu
0
t sin
c
s a + ( )
2
c
2
+
------------------------------- =
e
at
ctu
0
t cos
s a +
s a + ( )
2
c
2
+
------------------------------- =
F
32
s ( )
F
32
s ( )
2
5
---
s
1
2
-- -
3
2
-- -
3
2
-- - + +
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
|
|
| |
2
5
---
s 2 +
s 2) +
2
2
2
+ ( )
---------------------------------
3 2 '
s 2) +
2
2
2
+ ( )
--------------------------------- +
\ .
| |
= =
2
5
---
s 2 +
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
6 10 '
2
-------------
2
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
+ =
2
5
---
s 2 +
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
3
10
------
2
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
+ =
F
3
s ( ) F
31
s ( ) F
32
s ( ) +
2 5 '
s 1 + ( )
----------------
2
5
---
s 2 +
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
3
10
------
2
s 2) +
2
2
2
+ ( )
---------------------------------
\ .
| |
+ = =

2
5
---e
t 2
5
---e
2t
2t
3
10
------e
2t
2t sin + cos f
3
t ( ) = =
Chapter 5 The Inverse Laplace Transformation
5-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
f t =
2/ 5*e xp( - t ) - 2/ 5*e xp( - 2*t ) *c os ( 2*t ) +3/ 10*e xp( - 2*t ) *s i n( 2*t )
5.2.3 Multiple (Repeated) Poles
In this case, has simple poles, but one of the poles, say , has a multiplicity . For this con-
dition, we express it as
(5.34)
Denoting the residues corresponding to multiple pole as , the partial frac-
tion expansion of (5.34) is expressed as
(5.35)
For the simple poles , we proceed as before, that is, we find the residues from
(5.36)
The residues corresponding to the repeated poles, are found by multiplication
of both sides of (5.35) by . Then,
(5.37)
Next, taking the limit as on both sides of (5.37), we obtain
or
(5.38)
and thus (5.38) yields the residue of the first repeated pole.
F s ( ) p
1
m
F s ( )
N s ( )
s p
1
( )
m
s p
2
( ). s p
n 1
( ) s p
n
( )
------------------------------------------------------------------------------------------ =
m p
1
r
11
r
12
r
13
. r
1m
, , , ,
F s ( )
r
11
s p
1
( )
m
---------------------
r
12
s p
1
( )
m 1
----------------------------
r
13
s p
1
( )
m 2
---------------------------- .
r
1m
s p
1
( )
------------------ + + + + =
+
r
2
s p
2
( )
------------------
r
3
s p
3
( )
------------------ .
r
n
s p
n
( )
------------------ + + +
p
1
p
2
. p
n
, , ,
r
k
s p
k
( )F s ( )
s p
k

lim s p
k
( )F s ( )
s p
k
=
= =
r
11
r
12
r
13
. r
1m
, , , ,
s p ( )
m
s p
1
( )
m
F s ( ) r
11
s p
1
( )r
12
s p
1
( )
2
r
13
. s p
1
( )
m 1
r
1m
+ + + + =
+ s p
1
( )
m r
2
s p
2
( )
------------------
r
3
s p
3
( )
------------------ .
r
n
s p
n
( )
------------------ + + +
\ .
| |
s p
1

s p
1
( )
m
F s ( )
s p
1

lim r
11
s p
1
( )r
12
s p
1
( )
2
r
13
. s p
1
( )
m 1
r
1m
+ + + [ ]
s p
1

lim + =
+ s p
1
( )
m r
2
s p
2
( )
------------------
r
3
s p
3
( )
------------------ .
r
n
s p
n
( )
------------------ + + +
\ .
| |
s p
1

lim
r
11
s p
1
( )
m
F s ( )
s p
1

lim =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-9
Copyright Orchard Publications
Partial Fraction Expansion
The residue for the second repeated pole , is found by differentiating (5.37) with respect to
and again, we let , that is,
(5.39)
In general, the residue can be found from
(5.40)
whose derivative of both sides is
(5.41)
or
(5.42)
Example 5.4
Use the partial fraction expansion method to simplify of (5.43) below, and find the time
domain function corresponding to .
(5.43)
Solution:
We observe that there is a pole of multiplicity 2 at , and thus in partial fraction expansion
form, is written as
(5.44)
The residues are
r
12
p
1
s s p
1

r
12
d
ds
-----
s p
1

lim s p
1
( )
m
F s ( ) [ ] =
r
1k
s p
1
( )
m
F s ( ) r
11
r
12
s p
1
( ) r
13
s p
1
( )
2
. + + + =
m 1 ( )th
k 1 ( )!r
1k
1
k 1 ( )!
------------------
s p
1

lim
d
k 1
ds
k 1
-------------- s p
1
( )
m
F s ( ) [ ] =
r
1k
1
k 1 ( )!
------------------
s p
1

lim
d
k 1
ds
k 1
-------------- s p
1
( )
m
F s ( ) [ ] =
F
4
s ( )
f
4
t ( ) F
4
s ( )
F
4
s ( )
s 3 +
s 2 + ( ) s 1 + ( )
2
----------------------------------- =
s 1 =
F
4
s ( )
F
4
s ( )
s 3 +
s 2 + ( ) s 1 + ( )
2
-----------------------------------
r
1
s 2 + ( )
----------------
r
21
s 1 + ( )
2
------------------
r
22
s 1 + ( )
---------------- + + = =
r
1
s 3 +
s 1 + ( )
2
------------------
s 2 =
1 = =
r
21
s 3 +
s 2 +
-----------
s 1 =
2 = =
r
22
d
ds
-----
s 3 +
s 2 +
-----------
\ .
| |
s 1 =
s 2 + ( ) s 3 + ( )
s 2 + ( )
2
---------------------------------------
s 1 =
1 = = =
Chapter 5 The Inverse Laplace Transformation
5-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The value of the residue can also be found without differentiation as follows:
Substitution of the already known values of and into (5.44), and letting
*
, we obtain
or
from which as before. Finally,
(5.45)
Check with MATLAB:
syms s t; Fs=(s+3)/((s+2)*(s+1)^2); ft=ilaplace(Fs) % Must have Symbolic Math Toolbox installed
f t = e xp( - 2*t ) +2*t *e xp( - t ) - e xp( - t )
We can use the following script to check the partial fraction expansion.
syms s
Ns = [1 3]; % Coefficients of the numerator N(s) of F(s)
expand((s + 1)^2); % Expands (s + 1)^2 to s^2 + 2*s + 1;
d1 = [1 2 1]; % Coefficients of (s + 1)^2 = s^2 + 2*s + 1 term in D(s)
d2 = [0 1 2]; % Coefficients of (s + 2) term in D(s)
Ds=conv(d1,d2); % Multiplies polynomials d1 and d2 to express the
% denominator D(s) of F(s) as a polynomial
[r,p,k]=residue(Ns,Ds)
r =
1. 0000
- 1. 0000
2. 0000
* This is permissible since (5.44) is an identity.
r
22
r
1
r
21
s 0 =
s 3 +
s 1 + ( )
2
s 2 + ( )
-----------------------------------
s 0 =
1
s 2 + ( )
----------------
s 0 =
2
s 1 + ( )
2
------------------
s 0 =
r
22
s 1 + ( )
----------------
s 0 =
+ + =
3
2
-- -
1
2
-- - 2 r
22
+ + =
r
22
1 =
F
4
s ( )
s 3 +
s 2 + ( ) s 1 + ( )
2
----------------------------------- =
1
s 2 + ( )
----------------
2
s 1 + ( )
2
------------------
1
s 1 + ( )
---------------- + + = e
2t
2te
t
e
t
+ f
4
t ( ) = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-11
Copyright Orchard Publications
Partial Fraction Expansion
p =
- 2. 0000
- 1. 0000
- 1. 0000
k =
[ ]
Example 5.5
Use the partial fraction expansion method to simplify of (5.46) below, and find the time
domain function corresponding to the given .
(5.46)
Solution:
We observe that there is a pole of multiplicity at , and a pole of multiplicity at .
Then, in partial fraction expansion form, is written as
(5.47)
The residues are
Next, for the pole at ,
F
5
s ( )
f
5
t ( ) F
5
s ( )
F
5
s ( )
s
2
3 + s 1 +
s 1 + ( )
3
s 2 + ( )
2
-------------------------------------- =
3 s 1 = 2 s 2 =
F
5
s ( )
F
5
s ( )
r
11
s 1 + ( )
3
------------------
r
12
s 1 + ( )
2
------------------
r
13
s 1 + ( )
----------------
r
21
s 2 + ( )
2
------------------
r
22
s 2 + ( )
---------------- + + + + =
r
11
s
2
3 + s 1 +
s 2 + ( )
2
--------------------------
s 1 =
1 = =
r
12
d
ds
-----
s
2
3 + s 1 +
s 2 + ( )
2
--------------------------
\ .
|
| |
s 1 =
=
s 2 + ( )
2
2s 3 + ( ) 2 s 2 + ( ) s
2
3 + s 1 + ( )
s 2 + ( )
4
----------------------------------------------------------------------------------------------
s 1 =
s 4 +
s 2 + ( )
3
------------------
s 1 =
3 = = =
r
13
1
2!
-----
d
2
ds
2
--------
s
2
3 + s 1 +
s 2 + ( )
2
--------------------------
\ .
|
| |
s 1 =
1
2
-- -
d
ds
-----
d
ds
-----
s
2
3 + s 1 +
s 2 + ( )
2
--------------------------
\ .
|
| |
s 1 =
1
2
-- -
d
ds
-----
s 4 +
s 2 + ( )
3
------------------
\ .
| |
s 1 =
= = =

1
2
-- -
s 2 + ( )
3
3 s 2 + ( )
2
s 4 + ( )
s 2 + ( )
6
----------------------------------------------------------------
s 1 =
=
1
2
---
s 2 3s 12 +
s 2 + ( )
4
-----------------------------------
\ .
| |
s 1 =
s 5
s 2 + ( )
4
------------------
s 1 =
4 = = =
s 2 =
Chapter 5 The Inverse Laplace Transformation
5-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and
By substitution of the residues into (5.47), we obtain
(5.48)
We will check the values of these residues with the MATLAB script below.
syms s; % The function collect(s) below multiplies (s+1)^3 by (s+2)^2
% and we use it to express the denominator D(s) as a polynomial so that we can
% use the coefficients of the resulting polynomial with the residue function
Ds=collect(((s+1)^3)*((s+2)^2))
Ds =
s ^5+7*s ^4+19*s ^3+25*s ^2+16*s +4
Ns=[1 3 1]; Ds=[1 7 19 25 16 4]; [r,p,k]=residue(Ns,Ds)
r =
4. 0000
1. 0000
- 4. 0000
3. 0000
- 1. 0000
p =
- 2. 0000
- 2. 0000
- 1. 0000
- 1. 0000
- 1. 0000
k =
[ ]
From Table 4.2, Chapter 4,

r
21
s
2
3 + s 1 +
s 1 + ( )
3
--------------------------
s 2 =
1 = =
r
22
d
ds
-----
s
2
3 + s 1 +
s 1 + ( )
3
--------------------------
\ .
|
| |
s 2 =
s 1 + ( )
3
2s 3 + ( ) 3 s 1 + ( )
2
s
2
3 + s 1 + ( )
s 1 + ( )
6
---------------------------------------------------------------------------------------------------
s 2 =
= =
s 1 + ( ) 2s 3 + ( ) 3 s
2
3 + s 1 + ( )
s 1 + ( )
4
-----------------------------------------------------------------------------
s 2 =
s
2
4s
s 1 + ( )
4
--------------------
s 2 =
4 = = =
F
5
s ( )
1
s 1 + ( )
3
------------------
3
s 1 + ( )
2
------------------
4
s 1 + ( )
----------------
1
s 2 + ( )
2
------------------
4
s 2 + ( )
---------------- + + + + =
e
at 1
s a +
----------- = te
at 1
s a + ( )
2
------------------ = t
n 1
e
at n 1 ( )!
s a + ( )
n
------------------ =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-13
Copyright Orchard Publications
Case where F(s) is Improper Rational Function
and with these, we derive from (5.48) as
(5.49)
We can verify (5.49) with MATLAB as follows:
syms s t; Fs=-1/((s+1)^3) + 3/((s+1)^2) - 4/(s+1) + 1/((s+2)^2) + 4/(s+2); ft=ilaplace(Fs)
f t = - 1/ 2*t ^2*e xp( - t ) +3*t *e xp( - t ) - 4*e xp( - t )
+t *e xp( - 2*t ) +4*e xp( - 2*t )
5.3 Case where F(s) is Improper Rational Function
Our discussion thus far, was based on the condition that is a proper rational function. How-
ever, if is an improper rational function, that is, if , we must first divide the numerator
by the denominator to obtain an expression of the form
(5.50)
where is a proper rational function.
Example 5.6
Derive the Inverse Laplace transform of
(5.51)
Solution:
For this example, is an improper rational function. Therefore, we must express it in the form
of (5.50) before we use the partial fraction expansion method.
By long division, we obtain
Now, we recognize that
and
but
f
5
t ( )
f
5
t ( )
1
2
-- - t
2
e
t
3te
t
4e
t
te
2t
4e
2t
+ + + =
F s ( )
F s ( ) m n
N s ( ) D s ( )
F s ( ) k
0
k
1
s k
2
s
2
. k
m n
s
m n N s ( )
D s ( )
----------- + + + + + =
N s ( ) D s ( ) '
f
6
t ( )
F
6
s ( )
s
2
2s 2 + +
s 1 +
-------------------------- =
F
6
s ( )
F
6
s ( )
s
2
2s 2 + +
s 1 +
--------------------------
1
s 1 +
----------- 1 s + + = =
1
s 1 +
----------- e
t
=
1 o t ( ) =
s ? =
Chapter 5 The Inverse Laplace Transformation
5-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
To answer that question, we recall that
and

where is the doublet of the delta function. Also, by the time differentiation property
Therefore, we have the new transform pair
(5.52)
and thus,
(5.53)
In general,
(5.54)
We verify (5.53) with MATLAB as follows:
Ns = [1 2 2]; Ds = [1 1]; [r, p, k] = residue(Ns, Ds)
r =
1
p =
- 1
k =
1 1
The direct terms k= [ 1 1] above are the coefficients of and respectively.
5.4 Alternate Method of Partial Fraction Expansion
Partial fraction expansion can also be performed with the method of clearing the fractions, that is,
making the denominators of both sides the same, then equating the numerators. As before, we
assume that is a proper rational function. If not, we first perform a long division, and then
work with the quotient and the remainder as we did in Example 5.6. We also assume that the
denominator can be expressed as a product of real linear and quadratic factors. If these
assumptions prevail, we let be a linear factor of , and we assume that is the
highest power of that divides . Then, we can express as
u
0
' t ( ) o t ( ) =
u
0
'' t ( ) o' t ( ) =
o' t ( )
u
0
'' t ( ) o' t ( ) = s
2
F s ( ) sf 0 ( ) f

' 0 ( ) = s
2
F s ( ) s
2 1
s
--- s = = =
s o' t ( ) =
F
6
s ( )
s
2
2s 2 + +
s 1 +
--------------------------
1
s 1 +
----------- 1 s + + = = e
t
o t ( ) o' t ( ) + + f
6
t ( ) = =
d
n
dt
n
--------o t ( ) s
n
=
o t ( ) o' t ( )
F s ( )
D s ( )
s a ( ) D s ( ) s a ( )
m
s a ( ) D s ( ) F s ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-15
Copyright Orchard Publications
Alternate Method of Partial Fraction Expansion
(5.55)
Let be a quadratic factor of , and suppose that is the highest power
of this factor that divides . Now, we perform the following steps:
1. To this factor, we assign the sum of n partial fractions, that is,
2. We repeat step 1 for each of the distinct linear and quadratic factors of
3. We set the given equal to the sum of these partial fractions
4. We clear the resulting expression of fractions and arrange the terms in decreasing powers of
5. We equate the coefficients of corresponding powers of
6. We solve the resulting equations for the residues
Example 5.7
Express of (5.56) below as a sum of partial fractions using the method of clearing the frac-
tions.
(5.56)
Solution:
Using Steps 1 through 3 above, we obtain
(5.57)
With Step 4,
(5.58)
and with Step 5,
(5.59)
Relation (5.59) will be an identity is if each power of is the same on both sides of this relation.
Therefore, we equate like powers of and we obtain
F s ( )
N s ( )
D s ( )
-----------
r
1
s a
-----------
r
2
s a ( )
2
------------------ .
r
m
s a ( )
m
------------------- + + = =
s
2
os + + D s ( ) s
2
os + + ( )
n
D s ( )
r
1
s k
1
+
s
2
os + +
---------------------------
r
2
s k
2
+
s
2
os + + ( )
2
---------------------------------- .
r
n
s k
n
+
s
2
os + + ( )
n
---------------------------------- + + +
D s ( )
F s ( )
s
s
F
7
s ( )
F
7
s ( )
2s 4 +
s
2
1 + ( ) s 1 ( )
2
------------------------------------- =
F
7
s ( )
2s 4 +
s
2
1 + ( ) s 1 ( )
2
-------------------------------------
r
1
s A +
s
2
1 + ( )
------------------
r
21
s 1 ( )
2
------------------
r
22
s 1 ( )
---------------- + + = =
2s 4 + r
1
s A + ( ) s 1 ( )
2
r
21
s
2
1 + ( ) r
22
s 1 ( ) s
2
1 + ( ) + + =
2s 4 + r
1
r
22
+ ( )s
3
2r
1
A r
22
r
21
+ + ( )s
2
+ =
+ r
1
2A r
22
+ ( ) s A r
22
r
21
+ ( ) +
s s
s
Chapter 5 The Inverse Laplace Transformation
5-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(5.60)
Subtracting the second equation of (5.60) from the fourth, we obtain
or
(5.61)
By substitution of (5.61) into the first equation of (5.60), we obtain
or
(5.62)
Next, substitution of (5.61) and (5.62) into the third equation of (5.60) yields
or
(5.63)
Finally by substitution of (5.61), (5.62), and (5.63) into the fourth equation of (5.60), we obtain
or
(5.64)
Substitution of these values into (5.57) yields
(5.65)
Example 5.8
Use partial fraction expansion to simplify of (5.66) below, and find the time domain func-
tion corresponding to .
(5.66)
Solution:
This is the same transform as in Example 5.3, Page 5-6, where we found that the denominator
0 r
1
r
22
+ =
0 2r
1
A r
22
r
21
+ + =
2 r
1
2A r
22
+ =
4 A r
22
r
21
+ =
4 2r
1
=
r
1
2 =
0 2 r
22
+ =
r
22
2 =
2 2 2A 2 =
A 1 =
4 1 2 r
21
+ + =
r
21
1 =
F
7
s ( )
2s 4 +
s
2
1 + ( ) s 1 ( )
2
-------------------------------------
2s 1 +
s
2
1 + ( )
------------------
1
s 1 ( )
2
------------------
2
s 1 ( )
---------------- + = =
F
8
s ( )
f
8
t ( ) F
8
s ( )
F
8
s ( )
s 3 +
s
3
5s +
2
12s 8 + +
------------------------------------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-17
Copyright Orchard Publications
Alternate Method of Partial Fraction Expansion
can be expressed in factored form of a linear term and a quadratic. Thus, we write as
(5.67)
and using the method of clearing the fractions, we express (5.67) as
(5.68)
As in Example 5.3,
(5.69)
Next, to compute and , we follow the procedure of this section and we obtain
(5.70)
Since is already known, we only need two equations in and . Equating the coefficient of
on the left side, which is zero, with the coefficients of on the right side of (5.70), we obtain
(5.71)
and since , it follows that .
To obtain the third residue , we equate the constant terms of (5.70). Then, or
, or . Then, by substitution into (5.68), we obtain
(5.72)
as before.
The remaining steps are the same as in Example 5.3, and thus is the same as , that is,
D s ( ) F
8
s ( )
F
8
s ( )
s 3 +
s 1 + ( ) s
2
4s 8 + + ( )
------------------------------------------------ =
F
8
s ( )
s 3 +
s 1 + ( ) s
2
4s 8 + + ( )
------------------------------------------------
r
1
s 1 +
-----------
r
2
s r
3
+
s
2
4s 8 + +
-------------------------- + = =
r
1
s 3 +
s
2
4s 8 + +
--------------------------
s 1 =
2
5
--- = =
r
2
r
3
s 3 + ( ) r
1
s
2
4s 8 + + ( ) r
2
s r
3
+ ( ) s 1 + ( ) + =
r
1
r
2
r
3
s
2
s
2
0 r
1
= r
2
+
r
1
2 5 ' = r
2
2 5 ' =
r
3
3 8r
1
r
3
+ =
3 8 2 5 ' r
3
+ = r
3
1 5 ' =
F
8
s ( )
2 5 '
s 1 + ( )
----------------
1
5
---
2s 1 + ( )
s
2
4s 8 + + ( )
------------------------------- =
f
8
t ( ) f
3
t ( )
f
8
t ( ) f
3
t ( )
2
5
-- -e
t 2
5
---e
2t
2t
3
10
------e
2t
2t sin + cos
\ .
| |
u
0
t ( ) = =
Chapter 5 The Inverse Laplace Transformation
5-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
5.5 Summary
- The Inverse Laplace Transform Integral defined as
is difficult to evaluate because it requires contour integration using complex variables theory.
- For most engineering problems we can refer to Tables of Properties, and Common Laplace
transform pairs to lookup the Inverse Laplace transform. The partial fraction expansion
method offers a convenient means of expressing Laplace transforms in a recognizable form
from which we can obtain the equivalent time-domain functions. The partial fraction expan-
sion method can be applied whether the poles of are distinct, complex conjugates,
repeated, or a combination of these. The method of clearing the fractions is an alternate
method of partial fraction expansion.
- If the highest power of the numerator is less than the highest power of the denomi-
nator , i.e., , is said to be expressed as a proper rational function. If ,
is an improper rational function. The Laplace transform must be expressed as a proper
rational function before applying the partial fraction expansion. If is an improper rational
function, that is, if , we must first divide the numerator by the denominator to
obtain an expression of the form
- In a proper rational function, the roots of numerator are called the zeros of and the
roots of the denominator are called the poles of .
- When is expressed as
are called the residues and are the poles of .
- The residues and poles of a rational function of polynomials can be found easily using the
MATLAB resi due(a,b) function. The direct term is always empty (has no value) whenever
is a proper rational function. We can use the MATLAB factor(s) symbolic function to
convert the denominator polynomial form of into a factored form. We can also use the
MATLAB collect(s) and expand(s) symbolic functions to convert the denominator factored
form of into a polynomial form. In this chapter we introduced the new transform pair
and in general,
L
1
F s ( ) { f t ( ) =
1
2rj
-------- F s ( )
o jc
o jc +
}
e
st
ds =
F s ( )
m N s ( ) n
D s ( ) m n < F s ( ) m n F s ( )
F s ( )
F s ( )
m n N s ( ) D s ( )
F s ( ) k
0
k
1
s k
2
s
2
. k
m n
s
m n N s ( )
D s ( )
----------- + + + + + =
N s ( ) F s ( )
D s ( ) F s ( )
F s ( )
F s ( )
r
1
s p
1
( )
------------------
r
2
s p
2
( )
------------------
r
3
s p
3
( )
------------------ .
r
n
s p
n
( )
------------------ + + + + =
r
1
r
2
r
3
. r
n
, , , , p
1
p
2
p
3
. p
n
, , , , F s ( )
F s ( )
F
2
s ( )
F
2
s ( )
s o' t ( ) =
d
n
dt
n
--------o t ( ) s
n
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-19
Copyright Orchard Publications
Exercises
5.6 Exercises
1. Find the Inverse Laplace transform of the following:
a. b. c. d. e.
2. Find the Inverse Laplace transform of the following:
a. b. c.
d. e.
3. Find the Inverse Laplace transform of the following:
a. b. Hint:
c. d. e.
4. Use the Initial Value Theorem to find given that the Laplace transform of is
Compare your answer with that of Exercise 3(c).
5. It is known that the Laplace transform has two distinct poles, one at , the other at
. It also has a single zero at , and we know that . Find and
.
4
s 3 +
-----------
4
s 3 + ( )
2
------------------
4
s 3 + ( )
4
------------------
3s 4 +
s 3 + ( )
5
------------------
s
2
6s 3 + +
s 3 + ( )
5
--------------------------
3s 4 +
s
2
4s 85 + +
-----------------------------
4s 5 +
s
2
5s 18.5 + +
---------------------------------
s
2
3s 2 + +
s
3
5s
2
10.5s 9 + + +
------------------------------------------------
s
2
16
s
3
8s
2
24s 32 + + +
----------------------------------------------
s 1 +
s
3
6s
2
11s 6 + + +
-------------------------------------------
3s 2 +
s
2
25 +
-----------------
5s
2
3 +
s
2
4 + ( )
2
---------------------
1
2o
------- ot ot ot cos + sin ( )
s
2
s
2
o
2
+ ( )
2
------------------------ =
1
2o
3
--------- ot sin ot ot cos ( )
1
s
2
o
2
+ ( )
2
------------------------ =
)


`



2s 3 +
s
2
4.25s 1 + +
---------------------------------
s
3
8s
2
24s 32 + + +
s
2
6s 8 + +
---------------------------------------------- e
2s 3
2s 3 + ( )
3
----------------------
f 0 ( ) f t ( )
2s 3 +
s
2
4.25s 1 + +
---------------------------------
F s ( ) s 0 =
s 1 = s 1 = f t ( )
t
lim 10 = F s ( )
f t ( )
Chapter 5 The Inverse Laplace Transformation
5-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
5.7 Solutions to End-of-Chapter Exercises
1.
a. b. c.
d.
e.
2.
a.
b.
c. Using the MATLAB factor(s) function we obtain:
syms s; factor(s^2+3*s+2), factor(s^3+5*s^2+10.5*s+9)
% Must have Symbolic Math Toolbox installed
a ns = ( s +2) *( s +1)
a ns = 1/ 2*( s +2) *( 2*s ^2+6*s +9)
Then,
4
s 3 +
----------- 4e
3t
=
4
s 3 + ( )
2
------------------ 4te
3t
=
4
s 3 + ( )
4
------------------
4
3!
-----t
3
e
3t
2
3
-- -t
3
e
3t
= =
3s 4 +
s 3 + ( )
5
------------------
3 s 4 3 5 3 ' 5 3 ' + ' + ( )
s 3 + ( )
5
----------------------------------------------------------- 3
s 3 + ( ) 5 3 '
s 3 + ( )
5
-------------------------------- 3
1
s 3 + ( )
4
------------------ 5
1
s 3 + ( )
5
------------------ = = =

3
3!
-----t
3
e
3t 5
4!
-----t
4
e
3t

1
2
-- - t
3
e
3t 5
12
------t
4
e
3t

\ .
| |
= =
s
2
6s 3 + +
s 3 + ( )
5
--------------------------
s
2
6s 9 6 + +
s 3 + ( )
5
-----------------------------------
s 3 + ( )
2
s 3 + ( )
5
------------------
6
s 3 + ( )
5
------------------
1
s 3 + ( )
3
------------------ 6
1
s 3 + ( )
5
------------------ = = =

1
2!
-----t
2
e
3t 6
4!
-----t
4
e
3t

1
2
-- - t
2
e
3t 1
2
---t
4
e
3t

\ .
| |
= =
3s 4 +
s
2
4s 85 + +
-----------------------------
3 s 4 3 2 3 ' 2 3 ' + ' + ( )
s 2 + ( )
2
81 +
----------------------------------------------------------- 3
s 2 + ( ) 2 3 '
s 2 + ( )
2
9
2
+
-------------------------------- 3
s 2 + ( )
s 2 + ( )
2
9
2
+
------------------------------
1
9
---
2 9
s 2 + ( )
2
9
2
+
------------------------------ = = =
3
s 2 + ( )
s 2 + ( )
2
9
2
+
------------------------------
2
9
-- -
9
s 2 + ( )
2
9
2
+
------------------------------ 3e
2t
9t cos
2
9
-- -e
2t
9t sin = =
4s 5 +
s
2
5s 18.5 + +
---------------------------------
4s 5 +
s
2
5s 6.25 12.25 + + +
-----------------------------------------------------
4s 5 +
s 2.5 + ( )
2
3.5
2
+
--------------------------------------- 4
s 5 4 ' +
s 2.5 + ( )
2
3.5
2
+
--------------------------------------- = = =
4
s 10 4 ' 10 4 ' 5 4 ' + +
s 2.5 + ( )
2
3.5
2
+
--------------------------------------------------------- 4
s 2.5 +
s 2.5 + ( )
2
3.5
2
+
---------------------------------------
1
3.5
-------
5 3.5
s 2.5 + ( )
2
3.5
2
+
--------------------------------------- = =
4
s 2.5 + ( )
s 2.5 + ( )
2
3.5
2
+
---------------------------------------
10
7
------
3.5
s 2.5 + ( )
2
3.5
2
+
--------------------------------------- 4e
2.5t
3.5t cos
10
7
------e
2.5t
3.5t sin = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 5-21
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
d.
e.
3.
a.
b.
c.
s
2
3s 2 + +
s
3
5s
2
10.5s 9 + + +
------------------------------------------------
s 1 + ( ) s 2 + ( )
s 2 + ( ) s
2
3s 4.5 + + ( )
----------------------------------------------------
s 1 + ( )
s
2
3s 4.5 + + ( )
-----------------------------------
s 1 +
s
2
3s 2.25 2.25 4.5 + + +
---------------------------------------------------------------- = = =
s 1.5 1.5 1 + +
s 1.5 + ( )
2
1.5 ( )
2
+
--------------------------------------------
s 1.5 +
s 1.5 + ( )
2
1.5 ( )
2
+
--------------------------------------------
1
1.5
-------
0.5 1.5
s 1.5 + ( )
2
1.5 ( )
2
+
-------------------------------------------- = =
s 1.5 +
s 1.5 + ( )
2
1.5 ( )
2
+
--------------------------------------------
1
3
---
1.5
s 2.5 + ( )
2
3.5
2
+
--------------------------------------- e
1.5t
1.5t cos
1
3
---e
1.5t
1.5t sin = =
s
2
16
s
3
8s
2
24s 32 + + +
----------------------------------------------
s 4 + ( ) s 4 ( )
s 4 + ( ) s
2
4s 8 + + ( )
------------------------------------------------
s 4 ( )
s 2 + ( )
2
2
2
+
------------------------------
s 2 2 4 +
s 2 + ( )
2
2
2
+
------------------------------ = = =
s 2 +
s 2 + ( )
2
2
2
+
------------------------------
1
2
-- -
6 2
s 2 + ( )
2
2
2
+
------------------------------ =
s 2 +
s 2 + ( )
2
2
2
+
------------------------------ 3
2
s 2 + ( )
2
2
2
+
------------------------------ e
2t
2t cos 3e
2t
2t sin = =
s 1 +
s
3
6s
2
11s 6 + + +
-------------------------------------------
s 1 + ( )
s 1 + ( ) s 2 + ( ) s 3 + ( )
--------------------------------------------------
1
s 2 + ( ) s 3 + ( )
--------------------------------- = =
1
s 2 + ( ) s 3 + ( )
---------------------------------
r
1
s 2 +
-----------
r
2
s 3 +
----------- r
1
1
s 3 +
-----------
s 2 =
1 r
2
1
s 2 +
-----------
s 3 =
1 = = = = + = =
1
s 2 + ( ) s 3 + ( )
---------------------------------
1
s 2 +
-----------
1
s 3 +
----------- = e
2t
e
3t
= =
3s 2 +
s
2
25 +
-----------------
3s
s
2
5
2
+
----------------
1
5
---
2 5
s
2
5
2
+
---------------- + 3
s
s
2
5
2
+
----------------
2
5
-- -
5
s
2
5
2
+
---------------- + 3 5t
2
5
-- - 5t sin + cos = = =
5s
2
3 +
s
2
4 + ( )
2
---------------------
5s
2
s
2
2
2
+ ( )
2
-----------------------
3
s
2
2
2
+ ( )
2
----------------------- + 5
1
2 2
------------ 2t 2t 2t cos + sin ( ) 3
1
2 8
------------ 2t 2t 2t cos sin ( ) + = =

5
4
---
3
16
------ +
\ .
| |
2t sin
5
4
-- -
3
16
------
\ .
| |
2t 2t cos +
23
16
------ 2t
17
8
------t 2t cos + sin = =
2s 3 +
s
2
4.25s 1 + +
---------------------------------
2s 3 +
s 4 + ( ) s 1 4 ' + ( )
----------------------------------------
r
1
s 4 +
-----------
r
2
s 1 4 ' +
------------------ + = =
r
1
2s 3 +
s 1 4 ' +
------------------
s 4 =
5
15 4 '
----------------
4
3
-- - r
2
2s 3 +
s 4 +
---------------
s 1 4 ' =
5 2 '
15 4 '
------------- = =
2
3
-- - = = = =
Chapter 5 The Inverse Laplace Transformation
5-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
d.
e.
4. The initial value theorem states that . Then,
The value is the same as in the time domain expression found in Exercise 3(c).
5. We are given that and . Then,
Therefore,
that is,
and we observe that
4 3 '
s 4 +
-----------
2 3 '
s 1 4 ' +
------------------ +
2
3
--- 2e
4t
e
t 4 '
+ ( ) =
s
3
8s
2
24s 32 + + +
s
2
6s 8 + +
----------------------------------------------
s 4 + ( ) s
2
4s 8 + + ( )
s 2 + ( ) s 4 + ( )
------------------------------------------------
s
2
4s 8 + + ( )
s 2 + ( )
------------------------------- = = and by long division
s
2
4s 8 + +
s 2 +
-------------------------- s 2
4
s 2 +
----------- + + = o' t ( ) 2o t ( ) 4e
2t
+ + =
e
2s 3
2s 3 + ( )
3
---------------------- e
2s
F s ( ) f t 2 ( )u
0
t 2 ( ) =
F s ( )
3
2s 3 + ( )
3
---------------------- =
3 2
3
'
2s 3 + ( )
3
2
3
'
-------------------------------
3 8 '
2s 3 + ( ) 2 ' [ ]
3
----------------------------------
3 8 '
s 3 2 ' + ( )
3
--------------------------
3
8
---
1
2!
-----t
2
e
3 2 ' ( )t
\ .
| |
3
16
------t
2
e
3 2 ' ( )t
= = = = =
e
2s
F s ( ) e
2s 3
2s 3 + ( )
3
---------------------- =
3
16
------ t 2 ( )
2
e
3 2 ' ( ) t 2 ( )
u
0
t 2 ( ) =
f t ( )
t 0
lim sF s ( )
s
lim =
f 0 ( ) s
2s 3 +
s
2
4.25s 1 + +
---------------------------------
s
lim
2s
2
3s +
s
2
4.25s 1 + +
---------------------------------
s
lim = =
2s
2
s
2
' 3s s
2
' +
s
2
s
2
' 4.25s s
2
' 1 s
2
' + +
------------------------------------------------------------
s
lim
2 3 s ' +
1 4.25 s ' 1 s
2
' + +
--------------------------------------------
s
lim 2 = = =
f 0 ( ) 2 =
F s ( )
A s 1 ( )
s s 1 + ( )
-------------------- = f t ( )
t
lim sF s ( )
s 0
lim 10 = =
s
A s 1 ( )
s s 1 + ( )
--------------------
s 0
lim A
s 1 ( )
s 1 + ( )
----------------
s 0
lim A 10 = = =
F s ( )
10 s 1 ( )
s s 1 + ( )
-------------------------
r
1
s
----
r
2
s 1 +
----------- +
10
s
------
20
s 1 +
----------- = = = 10 20e
t
( )u
0
t ( ) =
f t ( ) 10 20e
t
( )u
0
t ( ) =
f t ( )
t
lim 10 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-1
Copyright Orchard Publications
Chapter 6
Circuit Analysis with Laplace Transforms
his chapter presents applications of the Laplace transform. Several examples are presented
to illustrate how the Laplace transformation is applied to circuit analysis. Complex imped-
ance, complex admittance, and transfer functions are also defined.
6.1 Circuit Transformation from Time to Complex Frequency
In this section we will show the voltage-current relationships for the three elementary circuit
networks, i.e., resistive, inductive, and capacitive in the time and complex frequency domains.
They are described in Subsections 6.1.1 through 6.1.3 below.
6.1.1 Resistive Network Transformation
The time and complex frequency domains for purely resistive networks are shown in Figure 6.1.
Figure 6.1. Resistive network in time domain and complex frequency domain
6.1.2 Inductive Network Transformation
The time and complex frequency domains for purely inductive networks are shown in Figure 6.2.
Figure 6.2. Inductive network in time domain and complex frequency domain
T
v
R
t ( ) Ri
R
t ( ) =
i
R
t ( )
v
R
t ( )
R
------------- =
-
R
+
Time Domain
v
R
t ( ) i
R
t ( )
R
+
-
Complex Frequency Domain
V
R
s ( ) I
R
s ( )
V
R
s ( ) RI
R
s ( ) =
I
R
s ( )
V
R
s ( )
R
--------------- =
-
+
Time Domain
L
v
L
t ( )
i
L
t ( )
v
L
t ( ) L
di
L
dt
------- =
i
L
t ( )
1
L
--- v
L
t d

t

=
+
-
Complex Frequency Domain
+
-
sL
Li
L
0
-
( )
V
L
s ( )
I
L
s ( )
V
L
s ( ) sLI
L
s ( ) Li
L
0
-
( ) =
I
L
s ( )
V
L
s ( )
Ls
--------------
i
L
0
-
( )
s
--------------- + =



Chapter 6 Circuit Analysis with Laplace Transforms
6-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
6.1.3 Capacitive Network Transformation
The time and complex frequency domains for purely capacitive networks are shown in Figure 6.3.
Figure 6.3. Capacitive circuit in time domain and complex frequency domain
Note:
In the complex frequency domain, the terms and are referred to as complex inductive
impedance, and complex capacitive impedance respectively. Likewise, the terms and and
are called complex capacitive admittance and complex inductive admittance respectively.
Example 6.1
Use the Laplace transform method and apply Kirchoffs Current Law (KCL) to find the voltage
across the capacitor for the circuit of Figure 6.4, given that .
Figure 6.4. Circuit for Example 6.1
Solution:
We apply KCL at node as shown in Figure 6.5.
Figure 6.5. Application of KCL for the circuit of Example 6.1
Then,
-
+
Time Domain
-
+
C
v
C
t ( )
i
C
t ( )
i
C
t ( ) C
dv
C
dt
--------- =
v
C
t ( )
1
C
---- i
C
t d

t

=
+
-
Complex Frequency Domain
+
-
-
+
V
C
s ( )
v
C
0
-
( )
s
----------------
I
C
s ( )
1
sC
------
I
C
s ( ) sCV
C
s ( ) Cv
C
0
-
( ) =
V
C
s ( )
I
C
s ( )
sC
------------
v
C
0
-
( )
s
---------------- + =
sL 1 sC '
sC 1 sL '
v
C
t ( ) v
C
0
-
( ) 6 V =
R
C
-
+
+
-
V
1 F
1 O
12u
0
t ( )
v
S
v
C
t ( )
A
R
C
-
+
+
-
V
1 F
1 O
12u
0
t ( )
v
S
v
C
t ( )
A
i
R
i
C
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-3
Copyright Orchard Publications
Circuit Transformation from Time to Complex Frequency
or
(6.1)
The Laplace transform of (6.1) is
By partial fraction expansion,
Therefore,
Example 6.2
Use the Laplace transform method and apply Kirchoffs Voltage Law (KVL) to find the voltage
across the capacitor for the circuit of Figure 6.6, given that .
Figure 6.6. Circuit for Example 6.2
i
R
i
C
+ 0 =
v
C
t ( ) 12u
0
t ( )
1
------------------------------------- 1
dv
C
dt
--------- + 0 =
dv
C
dt
--------- v
C
t ( ) + 12u
0
t ( ) =
sV
C
s ( ) v
C
0
-
( ) V
C
s ( ) +
12
s
------ =
s 1 + ( )V
C
s ( )
12
s
------ 6 + =
V
C
s ( )
6s 12 +
s s 1 + ( )
------------------- =
V
C
s ( )
6s 12 +
s s 1 + ( )
-------------------
r
1
s
----
r
2
s 1 + ( )
---------------- + = =
r
1
6s 12 +
s 1 + ( )
------------------
s 0 =
12 = =
r
2
6s 12 +
s
------------------
s 1 =
6 = =
V
C
s ( )
12
s
------
6
s 1 +
----------- = 12 6e
t
= 12 6e
t
( )u
0
t ( ) v
C
t ( ) = =
v
C
t ( ) v
C
0
-
( ) 6 V =
C
-
+
+
-
V
1 F
1 O
12u
0
t ( )
v
S
v
C
t ( )
R
Chapter 6 Circuit Analysis with Laplace Transforms
6-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
This is the same circuit as in Example 6.1. We apply KVL for the loop shown in Figure 6.7.
Figure 6.7. Application of KVL for the circuit of Example 6.2
and with and , we obtain
(6.2)
Next, taking the Laplace transform of both sides of (6.2), we obtain

or
Check: From Example 6.1,
Then,
(6.3)
The presence of the delta function in (6.3) is a result of the unit step that is applied at .
R
C
-
+
+
-
V
1 F
1 O
12u
0
t ( )
v
S
v
C
t ( )
i
C
t ( )
Ri
C
t ( )
1
C
---- i
C
t ( ) t d

t

+ 12u
0
t ( ) =
R 1 = C 1 =
i
C
t ( ) i
C
t ( ) t d

t

+ 12u
0
t ( ) =
I
C
s ( )
I
C
s ( )
s
------------
v
C
0
-
( )
s
---------------- + +
12
s
------ =
1
1
s
--- +


I
C
s ( )
12
s
------
6
s
---
6
s
--- = =
s 1 +
s
-----------


I
C
s ( )
6
s
-- - =
I
C
s ( )
6
s 1 +
----------- = i
C
t ( ) 6e
t
u
0
t ( ) = =
v
C
t ( ) 12 6e
t
( )u
0
t ( ) =
i
C
t ( ) C
dv
C
dt
---------
dv
C
dt
---------
t d
d
12 6e
t
( )u
0
t ( ) 6e
t
u
0
t ( ) 6o t ( ) + = = = =
t 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-5
Copyright Orchard Publications
Circuit Transformation from Time to Complex Frequency
Example 6.3
In the circuit of Figure 6.8, switch closes at , while at the same time, switch opens.
Use the Laplace transform method to find for .
Figure 6.8. Circuit for Example 6.3
Solution:
Since the circuit contains a capacitor and an inductor, we must consider two initial conditions
One is given as . The other initial condition is obtained by observing that there is
an initial current of in inductor ; this is provided by the current source just before
switch opens. Therefore, our second initial condition is .
For , we transform the circuit of Figure 6.8 into its s-domain
*
equivalent shown in Figure 6.9.
Figure 6.9. Transformed circuit of Example 6.3
In Figure 6.9 the current in inductor has been replaced by a voltage source of . This is
found from the relation
(6.4)
* Henceforth, for convenience, we will refer the time domain as t-domain and the complex frequency domain as s-domain.
S
1
t 0 = S
2
v
out
t ( ) t 0 >
-
+
C
-
+
1 O
2 A
1 F
2 O 0.5 H
0.5 H
v
C
0
-
( ) 3 V =
t 0 =
t 0 =
i
S
t ( )
v
out
t ( )
i
L1
t ( )
L
2
R
1
R
2
L
1
S
1
S
2
v
C
0
-
( ) 3 V =
2 A L
1
2 A
S
2
i
L1
0
-
( ) 2 A =
t 0 >
-
+
+
-
1
2 0.5s
0.5s
+
-
1/s
3/s
1 V
V
out
s ( )

L
1
1 V
L
1
i
L1
0
-
( )
1
2
--- 2 1 V = =
Chapter 6 Circuit Analysis with Laplace Transforms
6-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The polarity of this voltage source is as shown in Figure 6.9 so that it is consistent with the direc-
tion of the current in the circuit of Figure 6.8 just before switch opens. The initial
capacitor voltage is replaced by a voltage source equal to .
Applying KCL at node we obtain
(6.5)
and after simplification,
(6.6)
We will use MATLAB to factor the denominator of (6.6) into a linear and a quadratic fac-
tor.
p=[1 8 10 4]; r=roots(p) % Find the roots of D(s)
r =
- 6. 5708
- 0. 7146 + 0. 3132i
- 0. 7146 - 0. 3132i
y=expand((s + 0.7146 - 0.3132j)*(s + 0.7146 + 0.3132j)) % Find quadratic form
y =
s ^2+3573/ 2500*s +3043737/ 5000000
3573/2500 % Simplify coefficient of s
a ns =
1. 4292
3043737/5000000 % Simplify constant term
a ns =
0. 6087
Therefore,
(6.7)
Next, we perform partial fraction expansion.
(6.8)
i
L1
t ( ) S
2
3 s '

V
out
s ( ) 1 3 s '
1 s ' 2 s 2 ' + +
------------------------------------------
V
out
s ( )
1
------------------
V
out
s ( )
s 2 '
------------------ + + 0 =
V
out
s ( )
2s s 3 + ( )
s
3
8s
2
10s 4 + + +
------------------------------------------- =
D s ( )
V
out
s ( )
2s s 3 + ( )
s
3
8s
2
10s 4 + + +
-------------------------------------------
2s s 3 + ( )
s 6.57 + ( ) s
2
1.43s 0.61 + + ( )
---------------------------------------------------------------------- = =
V
out
s ( )
2s s 3 + ( )
s 6.57 + ( ) s
2
1.43s 0.61 + + ( )
----------------------------------------------------------------------
r
1
s 6.57 +
-------------------
r
2
s r
3
+
s
2
1.43s 0.61 + +
----------------------------------------- + = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-7
Copyright Orchard Publications
Circuit Transformation from Time to Complex Frequency
(6.9)
The residues and are found from the equality
(6.10)
Equating constant terms of (6.10), we obtain
and by substitution of the known value of from (6.9), we obtain
Similarly, equating coefficients of , we obtain
and using the known value of , we obtain
(6.11)
By substitution into (6.8),
*
or
(6.12)
Taking the Inverse Laplace of (6.12), we obtain
(6.13)
* We perform these steps to express the term in a form that resembles the transform pairs
and . The remaining steps are carried out in (6.12).
r
1
2s s 3 + ( )
s
2
1.43s 0.61 + +
-----------------------------------------
s 6.57 =
1.36 = =
r
2
r
3
2s s 3 + ( ) r
1
s
2
1.43s 0.61 + + ( ) r
2
s r
3
+ ( ) s 6.57 + ( ) + =
0 0.61r
1
6.57r
3
+ =
r
1
r
3
0.12 =
s
2
2 r
1
r
2
+ =
r
1
r
2
0.64 =
V
out
s ( )
1.36
s 6.57 +
-------------------
0.64s 0.12
s
2
1.43s 0.61 + +
----------------------------------------- +
1.36
s 6.57 +
-------------------
0.64s 0.46 0.58 +
s
2
1.43s 0.51 0.1 + + +
------------------------------------------------------- + = =
0.64s 0.12
s
2
1.43s 0.61 + +
-----------------------------------------
e
at
ctu
0
t ( ) cos
s a +
s a + ( )
2
c
2
+
------------------------------- = e
at
ctu
0
t ( ) sin
c
s a + ( )
2
c
2
+
------------------------------- =
V
out
s ( )
1.36
s 6.57 +
------------------- 0.64 ( )
s 0.715 0.91 +
s 0.715 + ( )
2
0.316 ( )
2
+
-------------------------------------------------------- + =
1.36
s 6.57 +
-------------------
0.64 s 0.715 + ( )
s 0.715 + ( )
2
0.316 ( )
2
+
--------------------------------------------------------
0.58
s 0.715 + ( )
2
0.316 ( )
2
+
-------------------------------------------------------- + =
1.36
s 6.57 +
-------------------
0.64 s 0.715 + ( )
s 0.715 + ( )
2
0.316 ( )
2
+
--------------------------------------------------------
1.84 0.316
s 0.715 + ( )
2
0.316 ( )
2
+
-------------------------------------------------------- + =
v
out
t ( ) 1.36e
6.57t
0.64e
0.715t
0.316t cos 1.84e
0.715t
0.316t sin + ( )u
0
t ( ) =
Chapter 6 Circuit Analysis with Laplace Transforms
6-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
From (6.13), we observe that as , . This is to be expected because is the
voltage across the inductor as we can see from the circuit of Figure 6.9. The MATLAB script
below will plot the relation (6.13) above.
t=0:0.01:10;...
Vout=1.36.*exp(-6.57.*t)+0.64.*exp(-0.715.*t).*cos(0.316.*t)-1.84.*exp(-0.715.*t).*sin(0.316.*t);...
plot(t,Vout); grid
Figure 6.10. Plot of for the circuit of Example 6.3
Figure 6.11 shows the Simulink/SimPower Systems model for the circuit in Figure 6.8.
Figure 6.11. The Simulink/SimPowerSystems model for the circuit in Figure 6.8
t v
out
t ( ) 0 v
out
t ( )
0 1 2 3 4 5 6 7 8 9 10
-0.5
0
0.5
1
1.5
2
v
out
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-9
Copyright Orchard Publications
Circuit Transformation from Time to Complex Frequency
In the model in Figure 6.11, the Switch 1 and Switch 2 blocks are modeled as current sources
and unless a snubber
*
circuit is present, cannot be connected in series with a current source or in
series with an inductor. The Current Source block and the series RL block in Figure 6.11 do not
include snubbers and in this case, the Resistor blocks and , both set as , are con-
nected in parallel with the Current Source block and the series RL block to act as snubbers.
The Block Parameters for the Simulink/SimPowerSystems blocks in Figure 6.11 are set as follows:
On the model in Figure 6.11 window click Simulation>Configuration Parameters, and select:
Type: Variable Step, Solver: ode23. Leave unlisted parameters in their default states.
Timer 1 and Timer 2 blocks - Time(s): [0 3/60]
Amplitude - Timer 1: [1 0] (Closed, then Open after 3/60 s)
Timer 2: [0 1] (Open, then Closed after 3/60 s)
Switch 1 block - as shown in Figure 6.12
Figure 6.12. Block parameters for Switch 1 block
Switch 2 block - as shown in Figure 6.12, except Initial state .
* A snubber is a device used to suppress transients such as voltage in electrical systems, force in mechanical sys-
tems, and pressure in fluid mechanics.
R3 R4 1 MO
0
Chapter 6 Circuit Analysis with Laplace Transforms
6-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Current Source block - Peak Amplitude: 2, Phase: 90, Frequency: 0, Measurement: Current
With these settings the Current Source block behaves as a 2 Amp DC current source.
block - As shown in Figure 6.13.
Figure 6.13. Block parameters for R1 L1 branch
The waveform for the voltage in expression 6.13 is displayed by the Scope 3 block in Fig-
ure 6.11 is shown in Figure 6.14 and it compares favorably with the waveform produced with
MATLAB in Figure 6.10.
R1 L1
v
out
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-11
Copyright Orchard Publications
Complex Impedance Z(s)
Figure 6.14. Waveform displayed by the Scope 3 block in Figure 6.11.
6.2 Complex Impedance Z(s)
Consider the series circuit of Figure 6.11, where the initial conditions are
assumed to be zero.
Figure 6.15. Series RLC circuit in s-domain
For this circuit, the sum represents the total opposition to current flow. Then,
(6.14)
and defining the ratio as , we obtain
(6.15)
and thus, the current can be found from the relation (6.16) below.
(6.16)
s domain RLC
-
+
R
+
V
S
s ( )
I s ( )
sL
1
sC
------
V
out
s ( )
-
R sL
1
sC
------ + +
I s ( )
V
S
s ( )
R sL 1 sC ' + +
------------------------------------ =
V
s
s ( ) I s ( ) ' Z s ( )
Z s ( )
V
S
s ( )
I s ( )
-------------- = R sL
1
sC
------ + + =
s domain I s ( )
I s ( )
V
S
s ( )
Z s ( )
-------------- =
Chapter 6 Circuit Analysis with Laplace Transforms
6-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
where
(6.17)
We recall that . Therefore, is a complex quantity, and it is referred to as the com-
plex input impedance of an series circuit. In other words, is the ratio of the
voltage excitation to the current response under zero state (zero initial conditions).
Example 6.4
For the network of Figure 6.16, all values are in (ohms). Find using:
a. nodal analysis
b. successive combinations of series and parallel impedances
Figure 6.16. Circuit for Example 6.4
Solution:
a.
We will first find , and we will compute using (6.15). We assign the voltage at
node as shown in Figure 6.17.
Figure 6.17. Network for finding in Example 6.4
By nodal analysis,
Z s ( ) R sL
1
sC
------ + + =
s o jc + = Z s ( )
s domain RLC Z s ( )
V
s
s ( ) I s ( )
O Z s ( )
-
+
1
V
S
s ( )
1 s '
s s
I s ( ) Z s ( ) V
A
s ( )
A
-
+
1
V
S
s ( )
1 s '
s s
I s ( )
V
A
s ( )
A
I s ( )
V
A
s ( ) V
S
s ( )
1
-----------------------------------
V
A
s ( )
s
---------------
V
A
s ( )
s 1 s ' +
------------------ + + 0 =
1
1
s
---
1
s 1 s ' +
------------------ + +


V
A
s ( ) V
S
s ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-13
Copyright Orchard Publications
Complex Admittance Y(s)
The current is now found as
and thus,
(6.18)
b.
The impedance can also be found by successive combinations of series and parallel
impedances, as it is done with series and parallel resistances. For convenience, we denote the
network devices as and shown in Figure 6.16.
Figure 6.18. Computation of the impedance of Example 6.4 by series - parallel combinations
To find the equivalent impedance , looking to the right of terminals and , we begin on
the right side of the network and we proceed to the left combining impedances as we would
combine resistances where the symbol denotes parallel combination. Then,
(6.19)
We observe that (6.19) is the same as (6.18).
6.3 Complex Admittance Y(s)
Consider the parallel circuit of Figure 6.19 where the initial conditions are
zero.
V
A
s ( )
s
3
1 +
s
3
2s
2
s 1 + + +
------------------------------------- V
S
s ( ) =
I s ( )
I s ( )
V
S
s ( ) V
A
s ( )
1
----------------------------------- 1
s
3
1 +
s
3
2s
2
s 1 + + +
-------------------------------------



V
S
s ( )
2s
2
1 +
s
3
2s
2
s 1 + + +
------------------------------------- V
S
s ( ) = = =
Z s ( )
V
S
s ( )
I s ( )
--------------
s
3
2s
2
s 1 + + +
2s
2
1 +
------------------------------------- = =
Z s ( )
Z
1
Z
2
Z
3
, , Z
4
1
1 s '
s s
Z s ( )
Z
1
Z
2
Z
3
Z
4
a
b
Z s ( ) a b
||
Z s ( ) Z
3
Z
4
+ ( ) || Z
2
[ ] Z
1
+ =
Z s ( )
s s 1 s ' + ( )
s s 1 s ' + +
-------------------------- 1 +
s
2
1 +
2s
2
1 + ( ) s '
---------------------------- 1 +
s
3
s +
2s
2
1 +
----------------- 1 +
s
3
2s
2
s 1 + + +
2s
2
1 +
------------------------------------- = = = =
s domain GLC
Chapter 6 Circuit Analysis with Laplace Transforms
6-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 6.19. Parallel GLC circuit in s-domain
For the circuit of Figure 6.19,
Defining the ratio as , we obtain
(6.20)
and thus the voltage can be found from
(6.21)
where
(6.22)
We recall that . Therefore, is a complex quantity, and it is referred to as the com-
plex input admittance of an parallel circuit. In other words, is the ratio of
the current excitation to the voltage response under zero state (zero initial condi-
tions).

Example 6.5
Compute and for the circuit of Figure 6.20. All values are in (ohms). Verify your
answers with MATLAB.
G
+
-
I
S
s ( )
V s ( )
1
sL
------
sC
GV s ( )
1
sL
------V s ( ) sCV s ( ) + + I s ( ) =
G
1
sL
------ sC + +


V s ( ) ( ) I s ( ) =
I
S
s ( ) V s ( ) ' Y s ( )
Y s ( )
I s ( )
V s ( )
----------- = G
1
sL
------ sC + +
1
Z s ( )
----------- = =
s domain V s ( )
V s ( )
I
S
s ( )
Y s ( )
------------ =
Y s ( ) G
1
sL
------ sC + + =
s o jc + = Y s ( )
s domain GLC Y s ( )
I
S
s ( ) V s ( )
Z s ( ) Y s ( ) O
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-15
Copyright Orchard Publications
Complex Admittance Y(s)
Figure 6.20. Circuit for Example 6.5
Solution:
It is convenient to represent the given circuit as shown in Figure 6.17.
Figure 6.21. Simplified circuit for Example 6.5
where
Then,
Check with MATLAB:
syms s; % Define symbolic variable s. Must have Symbolic Math Toolbox installed
z1 = 13*s + 8/s; z2 = 5*s + 10; z3 = 20 + 16/s; z = z1 + z2 * z3 / (z2+z3)
z =
13*s +8/ s +( 5*s +10) *( 20+16/ s ) / ( 5*s +30+16/ s )
z10 = simplify(z)
Z s ( )
Y s ( )
13s
8 s '
5s 16 s '
10
20
Z
3
Z
2
Z
1
Z s ( ) Y s ( ) ,
Z
1
13s
8
s
--- +
13s
2
8 +
s
-------------------- = =
Z
2
10 5s + =
Z
3
20
16
s
------ +
4 5s 4 + ( )
s
----------------------- = =
Z s ( ) Z
1
Z
2
Z
3
Z
2
Z
3
+
------------------ +
13s
2
8 +
s
--------------------
10 5s + ( )
4 5s 4 + ( )
s
-----------------------


10 5s +
4 5s 4 + ( )
s
----------------------- +
---------------------------------------------------- +
13s
2
8 +
s
--------------------
10 5s + ( )
4 5s 4 + ( )
s
-----------------------


5s
2
10s 4 5s 4 + ( ) + +
s
----------------------------------------------------
----------------------------------------------------- + = = =
13s
2
8 +
s
--------------------
20 5s
2
14s 8 + + ( )
5s
2
30s 16 + +
------------------------------------------- +
65s
4
490s
3
528s
2
400s 128 + + + +
s 5s
2
30s 16 + + ( )
------------------------------------------------------------------------------------- = =
Chapter 6 Circuit Analysis with Laplace Transforms
6-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
z 10 =
( 65*s ^4+490*s ^3+528*s ^2+400*s +128) / s / ( 5*s ^2+30*s +16)
pretty(z10)
4 3 2
65 s + 490 s + 528 s + 400 s + 128
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2
s ( 5 s + 30 s + 16)
The complex input admittance is found by taking the reciprocal of , that is,
(6.23)
6.4 Transfer Functions
In an circuit, the ratio of the output voltage to the input voltage
under zero state conditions, is of great interest
*
in network analysis. This ratio is referred to as the
voltage transfer function and it is denoted as , that is,
(6.24)
Similarly, the ratio of the output current to the input current under zero state condi-
tions, is called the current transfer function denoted as , that is,
(6.25)
The current transfer function of (6.25) is rarely used; therefore, from now on, the transfer func-
tion will have the meaning of the voltage transfer function, i.e.,
* To appreciate the usefulness of the transfer function, let us express relation (6.24) as .
This relation indicates that if we know the transfer function of a network, we can compute its output by multi-
plication of the transfer function by its input. We should also remember that the transfer function concept exists
only in the complex frequency domain. In the time domain this concept is known as the impulse response, and
it is discussed in Signals and Systems with MATLAB Computing and Simulink Modeling, ISBN 978-1-
934404-11-9.
Y s ( ) Z s ( )
Y s ( )
1
Z s ( )
-----------
s 5s
2
30s 16 + + ( )
65s
4
490s
3
528s
2
400s 128 + + + +
------------------------------------------------------------------------------------- = =
s domain V
out
s ( ) V
in
s ( )
V
out
s ( ) G
v
s ( ) V
in
s ( ) =
G
v
s ( )
G
v
s ( )
V
out
s ( )
V
in
s ( )
------------------ =
I
out
s ( ) I
in
s ( )
G
i
s ( )
G
i
s ( )
I
out
s ( )
I
in
s ( )
---------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-17
Copyright Orchard Publications
Transfer Functions
(6.26)
Example 6.6
Derive an expression for the transfer function for the circuit of Figure 6.22, where rep-
resents the internal resistance of the applied (source) voltage , and represents the resis-
tance of the load that consists of , , and .
Figure 6.22. Circuit for Example 6.6
Solution:
No initial conditions are given, and even if they were, we would disregard them since the transfer
function was defined as the ratio of the output voltage to the input voltage
under zero initial conditions. The circuit is shown in Figure 6.23.
Figure 6.23. The s-domain circuit for Example 6.6
The transfer function is readily found by application of the voltage division expression of
the circuit of Figure 6.23. Thus,
G s ( )
V
out
s ( )
V
in
s ( )
------------------ =
G s ( ) R
g
V
S
R
L
R
L
L C
+
-
R
g
R
L
L
C
v
out
v
g
-
+
V
out
s ( )
V
in
s ( ) V
g
s ( ) = s domain
+
-
+
-
V
in
s ( )
R
g
R
L
sL
1
sC
------
V
out
s ( )
G s ( )
s domain
Chapter 6 Circuit Analysis with Laplace Transforms
6-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Therefore,
(6.27)
Example 6.7
Compute the transfer function for the circuit of Figure 6.24 in terms of the circuit constants
Then, replace the complex variable with , and the circuit constants
with their numerical values and plot the magnitude versus radian fre-
quency .
Figure 6.24. Circuit for Example 6.7
Solution:
The complex frequency domain equivalent circuit is shown in Figure 6.25.
Figure 6.25. The s-domain circuit for Example 6.7
Next, we write nodal equations at nodes 1 and 2. At node 1,
(6.28)
V
out
s ( )
R
L
sL 1 sC ' + +
R
g
R
L
sL 1 sC ' + + +
----------------------------------------------------V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------ =
R
L
Ls 1 sC ' + +
R
g
R
L
Ls 1 sC ' + + +
---------------------------------------------------- =
G s ( )
R
1
R
2
R
3
C
1
and C
2
, , , , s jc
G s ( ) V
out
s ( ) V
in
s ( ) ' =
c
v
in
v
out
40 K
200 K
50K
25 nF
10 nF
R
2
R
1
C
2
C
1
R
3
R
2
1/sC
1
R
3
R
1
1/sC
2
Vin

(s)
Vout (s)
1
2
V
1
s ( )
V
2
s ( )
V
1
s ( ) V
in
s ( )
R
1
------------------------------------
V
1
1 sC
1
'
---------------
V
1
s ( ) V
out
s ( )
R
2
--------------------------------------
V
1
s ( ) V
2
s ( )
R
3
--------------------------------- + + + 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-19
Copyright Orchard Publications
Transfer Functions
At node 2,
(6.29)
Since (virtual ground), we express (6.29) as
(6.30)
and by substitution of (6.30) into (6.28), rearranging, and collecting like terms, we obtain:
or
(6.31)
To simplify the denominator of (6.31), we use the MATLAB script below with the given values
of the resistors and the capacitors.
syms s; % Define symbolic variable s
R1=2*10^5; R2=4*10^4; R3=5*10^4; C1=25*10^(-9); C2=10*10^(-9);...
DEN=R1*((1/R1+1/R2+1/R3+s*C1)*(s*R3*C2)+1/R2); simplify(DEN)
a ns =
1/ 200*s +188894659314785825/ 75557863725914323419136*s ^2+5
188894659314785825/75557863725914323419136 % Simplify coefficient of s^2
a ns =
2. 5000e - 006
1/200 % Simplify coefficient of s^2
a ns =
0. 0050
Therefore,
By substitution of with we obtain
(6.32)
We use MATLAB to plot the magnitude of (6.32) on a semilog scale with the following script:
V
2
s ( ) V
1
s ( )
R
3
---------------------------------
V
out
s ( )
1 sC
2
'
------------------- =
V
2
s ( ) 0 =
V
1
s ( ) sR
3
C
2
( )V
out
s ( ) =
1
R
1
-----
1
R
2
-----
1
R
3
----- sC
1
+ + +


sR
3
C
2
( )
1
R
2
----- V
out
s ( )
1
R
1
-----V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------- =
1
R
1
1 R
1
' 1 R
2
' 1 R
3
' sC
1
+ + + ( ) sR
3
C
2
( ) 1 R
2
' + [ ]
-------------------------------------------------------------------------------------------------------------------------------- =
G s ( )
V
out
s ( )
V
in
s ( )
------------------ =
1
2.5 10
6
s
2
5 10
3
s 5 + +
-------------------------------------------------------------------- =
s jc
G jc ( )
V
out
jc ( )
V
in
jc ( )
---------------------- =
1
2.5 10
6
c
2
j5 10
3
c 5 +
------------------------------------------------------------------------ =
Chapter 6 Circuit Analysis with Laplace Transforms
6-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
w=1:10:10000; Gs=-1./(2.5.*10.^(-6).*w.^2-5.*j.*10.^(-3).*w+5);...
semilogx(w,abs(Gs)); xlabel('Radian Frequency w'); ylabel('|Vout/Vin|');...
title('Magnitude Vout/Vin vs. Radian Frequency'); grid
The plot is shown in Figure 6.22. We observe that the given op amp circuit is a second order low-
pass filter whose cutoff frequency ( ) occurs at about .
Figure 6.26. versus for the circuit of Example 6.7
6.5 Using the Simulink Transfer Fcn Block
The Simulink Transfer Fcn block implements a transfer function where the input and
the output can be expressed in transfer function form as
(6.33)
Example 6.8
Let us reconsider the active low-pass filter op amp circuit of Figure 6.24, Page 6-18 where we
found that the transfer function is
3 dB 700 r s '
10
0
10
1
10
2
10
3
10
4
0
0.05
0.1
0.15
0.2
Radian Frequency w
|
V
o
u
t
/
V
i
n
|
Magnitude Vout/Vin vs. Radian Frequency
G jc ( ) c
V
IN
s ( )
V
OUT
s ( )
G s ( )
V
OUT
s ( )
V
IN
s ( )
--------------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-21
Copyright Orchard Publications
Using the Simulink Transfer Fcn Block
(6.34)
and for simplicity, let , and . By substitution into (6.34) we
obtain
(6.35)
Next, we let the input be the unit step function , and as we know from Chapter 4,
. Therefore,
(6.36)
To find , we perform partial fraction expansion, and for convenience, we use the MAT-
LAB residue function as follows:
num=-1; den=[1 3 1 0];[r p k]=residue(num,den)
r =
- 0. 1708
1. 1708
- 1. 0000
p =
- 2. 6180
- 0. 3820
0
k =
[ ]
Therefore,
(6.37)
The plot for is obtained with the following MATLAB script, and it is shown in Figure
6.27.
t=0:0.01:10; ft=-1+1.171.*exp(-0.382.*t)-0.171.*exp(-2.618.*t); plot(t,ft); grid
The same plot can be obtained using the Simulink model of Figure 6.29, where in the Function
Block Parameters dialog box for the Transfer Fcn block we enter for the numerator, and
G s ( )
V
out
s ( )
V
in
s ( )
------------------- =
1
R
1
1 R
1
' 1 R
2
' 1 R
3
' sC
1
+ + + ( ) sR
3
C
2
( ) 1 R
2
' + [ ]
-------------------------------------------------------------------------------------------------------------------------------- =
R
1
R
2
R
3
1 O = = = C
1
C
2
1 F = =
G s ( )
V
out
s ( )
V
in
s ( )
------------------- =
1
s
2
3s 1 + +
------------------------- =
u
0
t ( )
u
0
t ( ) 1 s ' =
V
out
s ( ) G s ( ) V
in
s ( )
1
s
-- -
1
s
2
3s 1 + +
-------------------------
1
s
3
3s
2
s + +
--------------------------- = = =
v
out
t ( )
1
s
-- -
1
s
2
3s 1 + +
-------------------------
1
s
---
1.171
s 0.382 +
----------------------
0.171
s 2.618 +
---------------------- + =


1 1.171e
0.382t
0.171e
2.618t
+ = v
out
t ( ) =
v
out
t ( )
1
Chapter 6 Circuit Analysis with Laplace Transforms
6-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
for the denominator. After the simulation command is executed, the Scope block dis-
plays the waveform of Figure 6.29.
Figure 6.27. Plot of for Example 6.8.
Figure 6.28. Simulink model for Example 6.8
Figure 6.29. Waveform for the Simulink model of Figure 6.28
1 3 1 [ ]
0 2 4 6 8 10
-1
-0.8
-0.6
-0.4
-0.2
0
v
out
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-23
Copyright Orchard Publications
Summary
6.6 Summary
- The Laplace transformation provides a convenient method of analyzing electric circuits since
integrodifferential equations in the are transformed to algebraic equations in the
.
- In the the terms and are called complex inductive impedance, and com-
plex capacitive impedance respectively. Likewise, the terms and and are called com-
plex capacitive admittance and complex inductive admittance respectively.
- The expression
is a complex quantity, and it is referred to as the complex input impedance of an
series circuit.
- In the the current can be found from
- The expression
is a complex quantity, and it is referred to as the complex input admittance of an
parallel circuit.
- In the the voltage can be found from
- In an circuit, the ratio of the output voltage to the input voltage
under zero state conditions is referred to as the voltage transfer function and it is denoted as
, that is,
t domain
s domain
s domain sL 1 sC '
sC 1 sL '
Z s ( ) R sL
1
sC
------ + + =
s domain
RLC
s domain I s ( )
I s ( )
V
S
s ( )
Z s ( )
-------------- =
Y s ( ) G
1
sL
------ sC + + =
s domain
GLC
s domain V s ( )
V s ( )
I
S
s ( )
Y s ( )
------------ =
s domain V
out
s ( ) V
in
s ( )
G s ( )
G s ( )
V
out
s ( )
V
in
s ( )
------------------ =
Chapter 6 Circuit Analysis with Laplace Transforms
6-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
6.7 Exercises
1. In the circuit below, switch has been closed for a long time, and opens at . Use the
Laplace transform method to compute for .
2. In the circuit below, switch has been closed for a long time, and opens at . Use the
Laplace transform method to compute for .
3. Use mesh analysis and the Laplace transform method, to compute and for the cir-
cuit below, given that and .
4. For the circuit below,
a. compute the admittance
b. compute the value of when , and all initial conditions are
zero.
S t 0 =
i
L
t ( ) t 0 >
1 mH
t 0 =
i
L
t ( )
+
-
L
32 V
10 O
20 O
R
1
R
2
S
S t 0 =
v
c
t ( ) t 0 >
S
t 0 =
+
-
72 V
6 KO
C
-
+
60 KO
30 KO 20 KO
10 KO
40
9
------F
v
C
t ( )
R
1
R
2
R
3
R
4
R
5
i
1
t ( ) i
2
t ( )
i
L
(0
-
) 0 = v
C
(0
-
) 0 =
+
-
C
-
+
1 O
3 O
1 F
i
1
t ( )
+
-
1 H
v
1
t ( ) u
0
t ( ) =
v
2
t ( ) 2u
0
t ( ) =
2 H
i
2
t ( )
L
1
R
1
R
2
L
2
s domain
Y s ( ) I
1
s ( ) V
1
s ( ) ' =
t domain i
1
t ( ) v
1
t ( ) u
0
t ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-25
Copyright Orchard Publications
Exercises
5. Derive the transfer functions for the networks (a) and (b) below.
6. Derive the transfer functions for the networks (a) and (b) below.
7. Derive the transfer functions for the networks (a) and (b) below.
8. Derive the transfer function for the networks (a) and (b) below.
R
1
R
2
+
-
1 O
+
R
3
1 O
3 O
1 s '
V
1
s ( )
-
V
C
s ( )
I
1
s ( )
+
-
V
2
s ( ) 2V
C
s ( ) =
2 O
R
4
R C
-
+
+
-
V
in
s ( )
V
out
s ( )
R
L
+
-
V
in
s ( )
-
+
V
out
s ( )
(a) (b)
R
C
-
+
+
-
V
in
s ( )
V
out
s ( )
R
L
+
-
V
in
s ( )
-
+
V
out
s ( )
(a) (b)
R
C
-
+
+
-
V
in
s ( )
V
out
s ( )
R
L
+
-
V
in
s ( )
-
+
V
out
s ( )
(a)
(b)
L
C
R
2
R
1
C
R
1
V
in
s ( )
V
out
s ( )
R
2
C
V
in
s ( )
(a) (b)
V
out
s ( )
Chapter 6 Circuit Analysis with Laplace Transforms
6-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
9. Derive the transfer function for the network below. Using MATLAB, plot versus fre-
quency in Hertz, on a semilog scale.
G s ( )
R
1
R
2
R
3
C
1
C
2
V
out
s ( )
V
in
s ( )
R
1
= 11.3 kO
R
2
= 22.6 kO
R
3
=R
4
= 68.1 kO
C
1
=C
2
= 0.01 F
R
4
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-27
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
6.8 Solutions to End-of-Chapter Exercises
1. At , the switch is closed, and the circuit is as shown below where the
resistor is shorted out by the inductor.
Then,
and thus the initial condition has been established as
For all the and circuits are as shown below.
From the circuit on the right side above we obtain
2. At , the switch is closed and the circuit is as shown below.
Then,
t 0
-
= t domain 20 O
1 mH
S
i
L
t ( )
+
-
32 V
10 O
20 O
i
L
t ( )
t 0
-
=
32
10
------ 3.2 A = =
i
L
0
-
( ) 3.2 A =
t 0 > t domain s domain
1 mH
i
L
0
-
( ) 3.2 A =
+
-
20 O
Li
L
0
-
( ) 3.2 10
3
V =
20 O
I
L
s ( )
10
3
s
s domain
I
L
s ( )
3.2 10
3

20 10
3
s +
-------------------------
3.2
s 20000 +
----------------------- = = 3.2e
20000t
u
0
t ( ) i
L
t ( ) = =
t 0
-
= t domain
+
-
72 V
6 KO
-
+
60 KO
30 KO 20 KO
10 KO
v
C
t ( )
i
T
t ( )
i
2
t ( )
S
Chapter 6 Circuit Analysis with Laplace Transforms
6-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and
Therefore, the initial condition is
For all , the circuit is as shown below.
Then,
3. The circuit is shown below where , , and
Then,
i
T
0
-
( )
72 V
6 KO 60 KO 60 KO

+
-------------------------------------------------------------
72 V
6 KO 30 KO +
--------------------------------------
72 V
36 KO
----------------- = = 2 mA = =
i
2
0
-
( )
1
2
---i
T
0
-
( ) 1 mA = =
v
C
0
-
( ) 20 KO 10 KO + ( ) i
2
0
-
( ) 30 KO ( ) 1 mA ( ) 30 V = = =
t 0 > s domain
+
-
60 KO
30 KO 20 KO
10 KO
1
40 9 ' 10
6
s
----------------------------------
30 s '
+
-
9 10
6

40s
-------------------
30 s '
60 KO 30 KO + ( ) 20 KO 10 KO + ( )

22.5 KO =
V
C
s ( )
V
R
V
R
V
C
s ( ) =
+
-
22.5 KO
V
C
s ( ) V
R
22.5 10
3

9 10
6
40s ' 22.5 10
3
+
-------------------------------------------------------------
30
s
------
30 22.5 10
3

9 10
6
40 ' 22.5 10
3
s +
------------------------------------------------------------- = = =
30 22.5 10
3
( ) 22.5 10
3
( ) '
9 10
6
40 22.5 10
3
( ) ' s +
----------------------------------------------------------------------------
30
9 10
6
90 10
4
' s +
---------------------------------------------------
30
10 s +
-------------- = = =
V
C
s ( )
30
s 10 +
-------------- = 30e
10t
u
0
t ( ) V = v
C
t ( ) =
s domain z
1
2s = z
2
1 1 s ' + = z
3
s 3 + =
+
-
-
+
I
1
s ( )
+
-
I
2
s ( )
2s
1
s
1 s '
1 s '
2 s '
3
z
1
z
3
z
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-29
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and in matrix form
We use the MATLAB script below we obtain the values of the currents.
syms s; z1=2*s; z2=1+1/s; z3=s+3; % Must have Symbolic Math Toolbox installed
Z=[z1+z2 -z2; -z2 z2+z3]; Vs=[1/s -2/s]'; Is=Z\Vs; fprintf(' \n');...
disp('Is1 = '); pretty(Is(1)); disp('Is2 = '); pretty(Is(2))
I s 1 =
2
2 s - 1 + s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 3
( 6 s + 3 + 9 s + 2 s )
I s 2 =
2
4 s + s + 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 3
( 6 s + 3 + 9 s + 2 s ) c onj ( s )
Therefore,
(1)
(2)
We use MATLAB to express the denominators of (1) and (2) as a product of a linear and a
quadratic term.
p=[2 9 6 3]; r=roots(p); fprintf(' \n'); disp('root1 ='); disp(r(1));...
disp('root2 ='); disp(r(2)); disp('root3 ='); disp(r(3)); disp('root2 + root3 ='); disp(r(2)+r(3));...
disp('root2 * root3 ='); disp(r(2)*r(3))
r oot 1 =
- 3. 8170
r oot 2 =
- 0. 3415 + 0. 5257i
z
1
z
2
+ ( )I
1
s ( ) z
2
I
2
s ( ) 1 s ' =
z
2
I
1
s ( ) z
2
z
3
+ ( )I
2
s ( ) + 2 s ' =
z
1
z
2
+ ( ) z
2

z
2
z
2
z
3
+ ( )
I
1
s ( )
I
2
s ( )

1 s '
2 s '
=
I
1
s ( )
s
2
2s 1 +
2s
3
9s
2
6s 3 + + +
-------------------------------------------- =
I
2
s ( )
4s
2
s 1 + +
2s
3
9s
2
6s 3 + + +
-------------------------------------------- =
Chapter 6 Circuit Analysis with Laplace Transforms
6-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
r oot 3 =
- 0. 3415 - 0. 5257i
r oot 2 + r oot 3 =
- 0. 6830
r oot 2 * r oot 3 =
0. 3930
and with these values (1) is written as
(3)
Multiplying every term by the denominator and equating numerators we obtain
Equating , , and constant terms we obtain
We will use MATLAB to find these residues.
A=[1 1 0; 0.683 3.817 1; 0.393 0 3.817]; B=[1 2 -1]'; r=A\B; fprintf(' \n');...
fprintf('r1 = %5.2f \t',r(1)); fprintf('r2 = %5.2f \t',r(2)); fprintf('r3 = %5.2f',r(3))
r 1 = 0. 48 r 2 = 0. 52 r 3 = - 0. 31
By substitution of these values into (3) we obtain
(4)
By inspection, the Inverse Laplace of first term on the right side of (4) is
(5)
The second term on the right side of (4) requires some manipulation. Therefore, we will use
the MATLAB ilaplace(s) function to find the Inverse Laplace as shown below.
syms s t % Must have Symbolic Math Toolbox installed
IL=ilaplace((0.52*s-0.31)/(s^2+0.68*s+0.39));
pretty(IL)
I
1
s ( )
s
2
2s 1 +
s 3.817 + ( ) s
2
0.683s 0.393 + + ( )
-----------------------------------------------------------------------------------
r
1
s 3.817 + ( )
---------------------------
r
2
s r
3
+
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- + = =
s
2
2s 1 + r
1
s
2
0.683s 0.393 + + ( ) r
2
s r
3
+ ( ) s 3.817 + ( ) + =
s
2
s
r
1
r
2
+ 1 =
0.683r
1
3.817r
2
r
3
+ + 2 =
0.393r
1
3.817r
3
+ 1 =
I
1
s ( )
r
1
s 3.817 + ( )
---------------------------
r
2
s r
3
+
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- +
0.48
s 3.817 + ( )
---------------------------
0.52s 0.31
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- + = =
0.48
s 3.82 + ( )
------------------------ 0.48e
3.82t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-31
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
1217 17 1/ 2 1/ 2
- - - - - e xp( - - - t ) 14 s i n( 7/ 50 14 t )
4900 50
13 17 1/ 2
+ - - e xp( - - - t ) c os ( 7/ 50 14 t )
25 50
Thus,
Next, we will find . We found earlier that
and following the same procedure we obtain
(6)
Multiplying every term by the denominator and equating numerators we obtain
Equating , , and constant terms, we obtain
We will use MATLAB to find these residues.
A=[1 1 0; 0.683 3.817 1; 0.393 0 3.817]; B=[-4 -1 -1]'; r=A\B; fprintf(' \n');...
fprintf('r1 = %5.2f \t',r(1)); fprintf('r2 = %5.2f \t',r(2)); fprintf('r3 = %5.2f',r(3))
r 1 = - 4. 49 r 2 = 0. 49 r 3 = 0. 20
By substitution of these values into (6) we obtain
(7)
By inspection, the Inverse Laplace of first term on the right side of (7) is
(8)
i
1
t ( ) 0.48e
3.82t
0.93e
0.34t
0.53t 0.52e
0.34t
0.53t cos + sin =
I
2
s ( )
I
2
s ( )
4s
2
s 1 + +
2s
3
9s
2
6s 3 + + +
-------------------------------------------- =
I
2
s ( )
4s
2
s 1
s 3.817 + ( ) s
2
0.683s 0.393 + + ( )
-----------------------------------------------------------------------------------
r
1
s 3.817 + ( )
---------------------------
r
2
s r
3
+
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- + = =
4s
2
s 1 r
1
s
2
0.683s 0.393 + + ( ) r
2
s r
3
+ ( ) s 3.817 + ( ) + =
s
2
s
r
1
r
2
+ 4 =
0.683r
1
3.817r
2
r
3
+ + 1 =
0.393r
1
3.817r
3
+ 1 =
I
1
s ( )
r
1
s 3.817 + ( )
---------------------------
r
2
s r
3
+
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- +
4.49
s 3.817 + ( )
---------------------------
0.49s 0.20 +
s
2
0.683s 0.393 + + ( )
---------------------------------------------------- + = =
0.48
s 3.82 + ( )
------------------------ 4.47 e
3.82t
=
Chapter 6 Circuit Analysis with Laplace Transforms
6-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The second term on the right side of (7) requires some manipulation. Therefore, we will use
the MATLAB ilaplace(s) function to find the Inverse Laplace as shown below.
syms s t % Must have Symbolic Math Toolbox installed
IL=ilaplace((0.49*s+0.20)/(s^2+0.68*s+0.39)); pretty(IL)
167 17 1/ 2 1/ 2
- - - - e xp( - - - t ) 14 s i n( 7/ 50 14 t )
9800 50
49 17 1/ 2
+ - - - e xp( - - - t ) c os ( 7/ 50 14 t )
100 50
Thus,
4.
a. Mesh 1:
or
(1)
Mesh 2:
(2)
Addition of (1) and (2) yields
or
and thus
b. With we obtain
i
2
t ( ) 4.47 e
3.82t
0.06e
0.34t
0.53t 0.49e
0.34t
0.53t cos + sin + =
+
-
1
+
1
3
1 s '
V
1
s ( )
-
V
C
s ( )
I
1
s ( )
+
-
V
2
s ( ) 2V
C
s ( ) =
2
I
2
s ( )
2 1 s ' + ( ) I
1
s ( ) I
2
s ( ) V
1
s ( ) =
6 2 1 s ' + ( ) I
1
s ( ) 6I
2
s ( ) 6V
1
s ( ) =
I
1
s ( ) 6I
2
s ( ) + V
2
s ( ) 2 s ' ( )I
1
s ( ) = =
12 6 s ' + ( ) I
1
s ( ) 2 s ' 1 ( ) I
1
s ( ) + 6V
1
s ( ) =
11 8 s ' + ( ) I
1
s ( ) 6V
1
s ( ) =
Y s ( )
I
1
s ( )
V
1
s ( )
--------------
6
11 8 s ' +
---------------------
6s
11s 8 +
------------------ = = =
V
1
s ( ) 1 s ' =
I
1
s ( ) Y s ( ) V
1
s ( )
6s
11s 8 +
------------------
1
s
---
6
11s 8 +
------------------
6 11 '
s 8 11 ' +
--------------------- = = = =
6
11
------e
8 11 ' ( )t
i
1
t ( ) = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-33
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
5.
Network (a):
and thus
Network (b):
and thus
Both of these networks are first-order low-pass filters.
6.
Network (a):
and
Network (b):
and
Both of these networks are first-order high-pass filters.
R
-
+ +
-
V
in
s ( )
V
out
s ( )
1 Cs '
+
-
V
in
s ( )
Ls
R
+
-
V
out
s ( )
b ( ) a ( )
V
out
s ( )
1 Cs '
R 1 Cs ' +
------------------------ V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
1 Cs '
R 1 Cs ' +
------------------------
1 Cs '
RCs 1 + ( ) Cs ( ) '
----------------------------------------
1
RCs 1 +
--------------------
1 RC '
s 1 RC ' +
------------------------ = = = = =
V
out
s ( )
R
Ls R +
---------------- V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
R
Ls R +
----------------
R L '
s R L ' +
-------------------- = = =
R
-
+ +
-
V
in
s ( )
V
out
s ( )
1 Cs '
+
R
V
in
s ( )
-
Ls
+
-
b ( ) a ( )
V
out
s ( )
V
out
s ( )
R
1 Cs R + '
------------------------ V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
R
1 Cs R + '
------------------------
RCs
RCs 1 + ( )
-------------------------
s
s 1 RC ' +
------------------------ = = = =
V
out
s ( )
Ls
R Ls +
---------------- V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
Ls
R Ls +
----------------
s
s R L ' +
-------------------- = = =
Chapter 6 Circuit Analysis with Laplace Transforms
6-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
7.
Network (a):
and thus
This network is a second-order band-pass filter.
Network (b):
and
This network is a second-order band-elimination (band-reject) filter.
R
-
+
+
-
V
in
s ( ) V
out
s ( )
1 Cs '
Ls
+
V
in
s ( )
-
R
Ls
1 Cs '
+
-
V
out
s ( )
b ( )
a ( )
V
out
s ( )
R
Ls 1 + Cs R + '
------------------------------------ V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
R
Ls 1 + Cs R + '
------------------------------------
RCs
LCs
2
1 RCs + +
---------------------------------------
R L ' ( )s
s
2
R L ' ( )s 1 LC ' + +
--------------------------------------------------- = = = =
V
out
s ( )
Ls 1 + Cs '
R Ls 1 + + Cs '
------------------------------------ V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
Ls 1 + Cs '
R Ls 1 + + Cs '
------------------------------------
LCs
2
1 +
LCs
2
RCs 1 + +
---------------------------------------
s
2
1 LC ' +
s
2
R L ' ( )s 1 LC ' + +
--------------------------------------------------- = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-35
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
8.
Network (a):
Let and . For inverting op amps , and
thus
This network is a first-order active low-pass filter.
Network (b):
Let and . For inverting op-amps , and thus
This network is a first-order active high-pass filter.
R
2 R
1
V
in
s ( )
V
out
s ( )
1 Cs '
V
in
s ( )
R
1
1 Cs '
R
2
V
out
s ( )
a ( ) b ( )
z
1
R
1
= z
2
R
2
1 Cs '

R
2
1 Cs '
R
2
1 Cs ' +
-------------------------- = =
V
out
s ( )
V
in
s ( )
------------------
z
2
z
1
----- =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
R
2
1 Cs ' ( ) R
2
1 Cs ' + ( ) ' [ ]
R
1
--------------------------------------------------------------------------
R
2
1 Cs ' ( )
R
1
R
2
1 Cs ' + ( )
------------------------------------------
R
1
C
s 1 R
2
C ' +
-------------------------- = = = =
z
1
R
1
1 Cs ' + = z
2
R
2
=
V
out
s ( )
V
in
s ( )
------------------
z
2
z
1
----- =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
R
2

R
1
1 Cs ' +
--------------------------
R
2
R
1
' ( )s
s 1 R
1
C ' +
--------------------------- = = =
Chapter 6 Circuit Analysis with Laplace Transforms
6-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
9.
At Node :
(1)
At Node :
and since , we express the last relation above as
(2)
At Node :
(3)
R
1
R
2
R
3
V
out
s ( )
V
in
s ( )
R
4
R
1
= 11.3 KO
R
2
= 22.6 KO
R
3
=R
4
= 68.1 KO
C
1
=C
2
= 0.01 F
V
3
V
2
V
1
1 C
1
s '
1 C
2
s '
V
1
V
1
s ( )
R
3
--------------
V
1
s ( ) V
out
s ( )
R
4
-------------------------------------- + 0 =
1
R
3
------
1
R
4
------ +


V
1
s ( )
1
R
4
------V
out
s ( ) =
V
3
V
3
s ( ) V
2
s ( )
R
2
----------------------------------
V
3
s ( )
1 C
1
s '
---------------- + 0 =
V
3
s ( ) V
1
s ( ) =
V
1
s ( ) V
2
s ( )
R
2
---------------------------------- C
1
sV
1
s ( ) + 0 =
1
R
2
------ C
1
s +


V
1
s ( )
1
R
2
------V
2
s ( ) =
V
2
V
2
s ( ) V
in
s ( )
R
1
------------------------------------
V
2
s ( ) V
1
s ( )
R
2
----------------------------------
V
2
s ( ) V
out
s ( )
1 C
2
s '
-------------------------------------- + + 0 =
1
R
1
------
1
R
2
------ C
2
s + +


V
2
s ( )
V
in
s ( )
R
1
---------------
V
1
s ( )
R
2
-------------- C
2
sV
out
s ( ) + + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 6-37
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
From (1)
(4)
From (2)
and with (4)
(5)
By substitution of (4) and (5) into (3) we obtain
and thus
By substitution of the given values and after simplification we obtain
We use the MATLAB script below to plot this function.
w=1:10:10000; s=j.*w; Gs=7.83.*10.^7./(s.^2+1.77.*10.^4.*s+5.87.*10.^7);...
semilogx(w,abs(Gs)); xlabel('Radian Frequency w'); ylabel('|Vout/Vin|');...
title('Magnitude Vout/Vin vs. Radian Frequency'); grid
V
1
s ( )
1 R
4
' ( )
R
3
R
4
+ ( ) R
3
R
4
'
-----------------------------------------V
out
s ( )
R
3
R
3
R
4
+ ( )
------------------------V
out
s ( ) = =
V
2
s ( ) R
2
1
R
2
------ C
1
s +


V
1
s ( ) 1 R
2
C
1
s + ( )V
1
s ( ) = =
V
2
s ( )
R
3
1 R
2
C
1
s + ( )
R
3
R
4
+ ( )
------------------------------------V
out
s ( ) =
1
R
1
------
1
R
2
------ C
2
s + +


R
3
1 R
2
C
1
s + ( )
R
3
R
4
+ ( )
------------------------------------V
out
s ( )
V
in
s ( )
R
1
---------------
1
R
2
------
R
3
R
3
R
4
+ ( )
------------------------V
out
s ( ) C
2
sV
out
s ( ) + + =
1
R
1
------
1
R
2
------ C
2
s + +


R
3
1 R
2
C
1
s + ( )
R
3
R
4
+ ( )
------------------------------------
1
R
2
------
R
3
R
3
R
4
+ ( )
------------------------ C
2
s V
out
s ( )
1
R
1
------V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
1
R
1
1
R
1
------
1
R
2
------ C
2
s + +


R
3
1 R
2
C
1
s + ( )
R
3
R
4
+ ( )
------------------------------------
1
R
2
------
R
3
R
3
R
4
+ ( )
------------------------ C
2
s
---------------------------------------------------------------------------------------------------------------------------------------------- = =
G s ( )
7.83 10
7

s
2
1.77 10
4
s 5.87 10
7
+ +
---------------------------------------------------------------------- =
Chapter 6 Circuit Analysis with Laplace Transforms
6-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The plot above indicates that this circuit is a second-order low-pass filter.
10
0
10
1
10
2
10
3
10
4
0.4
0.6
0.8
1
1.2
1.4
Radian Frequency w
|
V
o
u
t
/
V
i
n
|
Magnitude Vout/Vin vs. Radian Frequency
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-1
Copyright Orchard Publications
Chapter 7
State Variables and State Equations
his chapter is an introduction to state variables and state equations as they apply in circuit
analysis. The state transition matrix is defined, and the state-space to transfer function
equivalence is presented. Several examples are presented to illustrate their application.
7.1 Expressing Differential Equations in State Equation Form
As we know, when we apply Kirchoffs Current Law (KCL) or Kirchoffs Voltage Law (KVL) in
networks that contain energy-storing devices, we obtain integro-differential equations. Also,
when a network contains just one such device (capacitor or inductor), it is said to be a first-order
circuit. If it contains two such devices, it is said to be second-order circuit, and so on. Thus, a first
order linear, time-invariant circuit can be described by a differential equation of the form
(7.1)
A second order circuit can be described by a second-order differential equation of the same form
as (7.1) where the highest order is a second derivative.
An nth-order differential equation can be resolved to first-order simultaneous differential
equations with a set of auxiliary variables called state variables. The resulting first-order differen-
tial equations are called state-space equations, or simply state equations. These equations can be
obtained either from the nth-order differential equation, or directly from the network, provided
that the state variables are chosen appropriately. The state variable method offers the advantage
that it can also be used with non-linear and time-varying devices. However, our discussion will
be limited to linear, time-invariant circuits.
State equations can also be solved with numerical methods such as Taylor series and Runge-
Kutta methods, but these will not be discussed in this text
*
. The state variable method is best
illustrated with several examples presented in this chapter.
Example 7.1
A series circuit with excitation
(7.2)
* These are discussed in Numerical Analysis using MATLAB and Excel, ISBN 978-1-934404-03-4.
T
a
1
dy
dt
------ a
0
y t ( ) + x t ( ) =
n
RLC
v
S
t ( ) e
jct
=





Chapter 7 State Variables and State Equations
7-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
is described by the integro-differential equation
(7.3)
Differentiating both sides and dividing by we obtain
(7.4)
or
(7.5)
Next, we define two state variables and such that
(7.6)
and
(7.7)
Then,
(7.8)
where denotes the derivative of the state variable . From (7.5) through (7.8), we obtain the
state equations
(7.9)
It is convenient and customary to express the state equations in matrix
*
form. Thus, we write the
state equations of (7.9) as
(7.10)
We usually express (7.10) in a compact form as
(7.11)
where

is any input
* For a review of matrix theory, please refer to Appendix E.
In this text, and in all Orchard Publications texts, the unit step function is denoted as .
Ri L
di
dt
-----
1
C
---- i t d

t
}
+ + e
jct
=
L
d
2
t
dt
2
-------
R
L
----
di
dt
-----
1
LC
-------- i + +
1
L
---jce
jct
=
d
2
t
dt
2
-------
R
L
----
di
dt
-----
1
LC
-------- i
1
L
---jce
jct
+ =
x
1
x
2
x
1
i =
x
2
di
dt
-----
dx
1
dt
-------- x

1
= = =
x

2
d
2
i dt
2
' =
x

k
x
k
x

1
x
2
=
x

2
R
L
---x
2

1
LC
-------x
1

1
L
---jce
jct
+ =
x

1
x

2
0 1
1
LC
-------
R
L
---
x
1
x
2
0
1
L
--- jce
j ct
u + =
x

Ax bu + =
u
u
0
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-3
Copyright Orchard Publications
Expressing Differential Equations in State Equation Form
(7.12)
The output is expressed by the state equation
(7.13)
where is another matrix, and is a column vector.
In general, the state representation of a network can be described by the pair of the of the state-
space equations
(7.14)
The state space equations of (7.14) can be realized with the block diagram of Figure 7.1.
Figure 7.1. Block diagram for the realization of the state equations of (7.14)
We will learn how to solve the matrix equations of (7.14) in the subsequent sections.
Example 7.2
A fourth-order network is described by the differential equation
(7.15)
where is the output representing the voltage or current of the network, and is any
input. Express (7.15) as a set of state equations.
Solution:
The differential equation of (7.15) is of fourth-order; therefore, we must define four state vari-
ables which will be used with the resulting four first-order state equations.
x

1
x

2
A
0 1
1
LC
-------
R
L
---
x , = ,
x
1
x
2
b
0
1
L
--- jce
jct
and u , = , any input = = =
y t ( )
y Cx du + =
C d
x

Ax bu + =
y Cx du + =
u b
A
C
d
x
+ +
+ +
y
Z Z
dt
}
x

d
4
y
dt
4
--------- a
3
d
3
y
dt
3
--------- a
2
d
2
y
dt
2
-------- a
1
dy
dt
------ a
0
y t ( ) + + + + u t ( ) =
y t ( ) u t ( )
Chapter 7 State Variables and State Equations
7-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We denote the state variables as , and , and we relate them to the terms of the given
differential equation as
(7.16)
We observe that
(7.17)
and in matrix form
\ (7.18)
In compact form, (7.18) is written as
(7.19)
where
We can also obtain the state equations directly from given circuits. We choose the state variables
to represent inductor currents and capacitor voltages. In other words, we assign state variables to
energy storing devices. The examples below illustrate the procedure.
Example 7.3
Write state equation(s) for the circuit of Figure 7.2, given that , and is the unit
step function.
x
1
x
2
x
3
, , x
4
x
1
y t ( ) = x
2
dy
dt
------ = x
3
d
2
y
dt
2
--------- = x
4
d
3
y
dt
3
--------- =
x

1
x
2
=
x

2
x
3
=
x

3
x
4
=
d
4
y
dt
4
--------- x

4
a
0
x
1
a
1
x
2
a
2
x
3
a
3
x
4
u t ( ) + = =
x

1
x

2
x

3
x

4
0 1 0 0
0 0 1 0
0 0 0 1
a
0
a
1
a
2
a
3

x
1
x
2
x
3
x
4
0
0
0
1
u t ( ) + =
x

Ax bu + =
x

1
x

2
x

3
x

4
= A
0 1 0 0
0 0 1 0
0 0 0 1
a
0
a
1
a
2
a
3

= x
x
1
x
2
x
3
x
4
= b
0
0
0
1
and u , = , , , u t ( ) =
v
C
0
-
( ) 0 = u
0
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-5
Copyright Orchard Publications
Expressing Differential Equations in State Equation Form
Figure 7.2. Circuit for Example 7.3
Solution:
This circuit contains only one energy-storing device, the capacitor. Therefore, we need only one
state variable. We choose the state variable to denote the voltage across the capacitor as shown
in Figure 7.3. For this example, the output is defined as the voltage across the capacitor.
Figure 7.3. Circuit for Example 7.3 with state variable x assigned to it
For this circuit,
and
By KVL,
or
Therefore, the state equations are
(7.20)
Example 7.4
Write state equation(s) for the circuit of Figure 7.4 assuming , and the output is
defined as .
Figure 7.4. Circuit for Example 7.4
+
-
R
-
+
C
v
S
u
0
t ( )
v
C
t ( ) v
out
t ( ) =
+
-
R
-
+
C
+ -
i
v
S
u
0
t ( )
v
R
t ( )
v
C
t ( ) v
out
t ( ) x = =
i
R
i i
C
C
dv
C
dt
--------- Cx

= = = =
v
R
t ( ) Ri RCx

= =
v
R
t ( ) v
C
t ( ) + v
S
u
0
t ( ) =
RCx

x + v
S
u
0
t ( ) =
x

1
RC
--------
x v
S
u
0
t ( ) + =
y x =
i
L
0
-
( ) 0 = y
y i t ( ) =
+
-
R
L
v
S
u
0
t ( )
i t ( )
Chapter 7 State Variables and State Equations
7-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
This circuit contains only one energy-storing device, the inductor; therefore, we need only one
state variable. We choose the state variable to denote the current through the inductor as shown
in Figure 7.5.
Figure 7.5. Circuit for Example 7.4 with assigned state variable x
By KVL,
or
or
Therefore, the state equations are
(7.21)
7.2 Solution of Single State Equations
If a circuit contains only one energy-storing device, the state equations are written as
(7.22)
where , , , and are scalar constants, and the initial condition, if non-zero, is denoted as
(7.23)
We will now prove that the solution of the first state equation in (7.22) is
(7.24)
Proof:
First, we must show that (7.24) satisfies the initial condition of (7.23). This is done by substitu-
tion of in (7.24). Then,
+
-
R
L
v
S
u
0
t ( )
i t ( ) x =
v
R
v
L
+ v
S
u
0
t ( ) =
Ri L
di
dt
----- + v
S
u
0
t ( ) =
Rx Lx

+ v
S
u
0
t ( ) =
x

R
L
--- -
x
1
L
---
v
S
u
0
t ( ) + =
y x =
x

ox u + =
y k
1
x k
2
u + =
o k
1
k
2
x
0
x t
0
( ) =
x t ( ) e
o t t
0
( )
x
0
e
ot
e
ot
u t ( ) t d
t
0
t
}
+ =
t t
0
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-7
Copyright Orchard Publications
Solution of Single State Equations
(7.25)
The first term in the right side of (7.25) reduces to since
(7.26)
The second term of (7.25) is zero since the upper and lower limits of integration are the same.
Therefore, (7.25) reduces to and thus the initial condition is satisfied.
Next, we must prove that (7.24) satisfies also the first equation in (7.22). To prove this, we dif-
ferentiate (7.24) with respect to and we obtain
or
or
(7.27)
We observe that the bracketed terms of (7.27) are the same as the right side of the assumed solu-
tion of (7.24). Therefore,
and this is the same as the first equation of (7.22).
In summary, if and are scalar constants, the solution of
(7.28)
with initial condition
(7.29)
is obtained from the relation
(7.30)
x t
0
( ) e
o t
0
t
0
( )
x
0
e
ot
e
o t
u t ( ) t d
t
0
t
0
}
+ =
x
0
e
o t
0
t
0
( )
x
0
e
0
x
0
x
0
= =
x t
0
( ) x
0
=
t
x

t ( )
d
dt
----- e
o t t
0
( )
x
0
( )
d
dt
----- e
ot
e
ot
u t ( ) t d
t
0
t
}
)
`

+ =
x

t ( ) oe
o t t
0
( )
x
0
oe
ot
e
ot
u t ( ) t e
ot
e
ot
u t ( ) [ ]
t t =
+ d
t
0
t
}
+ =
o e
o t t
0
( )
x
0
e
ot
e
ot
u t ( ) t d
t
0
t
}
+ e
ot
e
ot
u t ( ) + =
x

t ( ) o e
o t t
0
( )
x
0
e
o t t ( )
u t ( ) t d
t
0
t
}
+ u t ( ) + =
x

ox u + =
o
x

ox u + =
x
0
x t
0
( ) =
x t ( ) e
o t t
0
( )
x
0
e
ot
e
o t
u t ( ) t d
t
0
t
}
+ =
Chapter 7 State Variables and State Equations
7-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Example 7.5
Use (7.28) through (7.30) to find the capacitor voltage of the circuit of Figure 7.6 for ,
given that the initial condition is
Figure 7.6. Circuit for Example 7.5
Solution:
From (7.20) of Example 7.3, Page 7-5,
and by comparison with (7.28),
and
Then, from (7.30),
or
(7.31)
Assuming that the output is the capacitor voltage, the output state equation is
(7.32)
7.3 The State Transition Matrix
In Section 7.1, relation (7.14), we defined the state equations pair
(7.33)
v
C
t ( ) t 0 >
v
C
0
-
( ) 1 V =
+
-
-
+
0.5 F
R
2u
0
t ( )
v
C
t ( )
2 O
C
x

1
RC
--------x v
S
u
0
t ( ) + =
o
1
RC
--------
1
2 0.5
---------------- 1 = = =
2 =
x t ( ) e
o t t
0
( )
x
0
e
ot
e
o t
u t ( ) t d
t
0
t
}
+ e
1 t 0 ( )
1 e
t
e
t
2u t ( ) t d
0
t
}
+ = =
e
t
2e
t
e
t
t d
0
t
}
+ e
t
2e
t
e
t
[ ]
0
t
+ e
t
2e
t
e
t
1 ( ) + = = =
v
C
t ( ) x t ( ) 2 e
t
( )u
0
t ( ) = =
y
y t ( ) x t ( ) 2 e
t
( )u
0
t ( ) = =
x

Ax bu + =
y Cx du + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-9
Copyright Orchard Publications
The State Transition Matrix
where for two or more simultaneous differential equations, and are or higher order
matrices, and and are column vectors with two or more rows. In this section we will intro-
duce the state transition matrix , and we will prove that the solution of the matrix differential
equation
(7.34)
with initial conditions
(7.35)
is obtained from the relation
(7.36)
Proof:
Let be any matrix whose elements are constants. Then, another matrix denoted as
, is said to be the state transition matrix of (7.34), if it is related to the matrix as the
matrix power series
(7.37)
where is the identity matrix.
From (7.37), we find that
(7.38)
Differentiation of (7.37) with respect to yields
(7.39)
and by comparison with (7.37) we obtain
(7.40)
To prove that (7.36) is the solution of (7.34), we must prove that it satisfies both the initial con-
dition and the matrix differential equation. The initial condition is satisfied from the relation
(7.41)
where we have used (7.38) for the initial condition. The integral is zero since the upper and
lower limits of integration are the same.
A C 2 2
b d
e
At
x

Ax bu + =
x t
0
( ) x
0
=
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
A n n n n
t ( ) A
t ( ) e
At
I At
1
2!
-----A
2
t
2 1
3!
-----A
3
t
3
.
1
n!
-----A
n
t
n
+ + + + + = =
I n n
0 ( ) e
A0
I A0 . + + I = = =
t
' t ( )
d
dt
-----e
At
0 A 1 A
2
t . + + + A A
2
t . + + = = =
d
dt
-----e
At
Ae
At
=
x t
0
( ) e
A t
0
t
0
( )
x
0
e
At
0
e
A t
bu t ( ) t d
t
0
t
0
}
+ e
A0
x
0
0 + Ix
0
x
0
= = = =
Chapter 7 State Variables and State Equations
7-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
To prove that (7.34) is also satisfied, we differentiate the assumed solution
with respect to and we use (7.40), that is,
Then,
or
(7.42)
We recognize the bracketed terms in (7.42) as , and the last term as . Thus, the expres-
sion (7.42) reduces to
In summary, if is an matrix whose elements are constants, , and is a column vec-
tor with n elements, the solution of
(7.43)
with initial condition
(7.44)
is
(7.45)
Therefore, the solution of second or higher order circuits using the state variable method, entails
the computation of the state transition matrix , and integration of (7.45).
7.4 Computation of the State Transition Matrix
Let be an matrix, and be the identity matrix. By definition, the eigenvalues ,
of are the roots of the nth order polynomial
(7.46)
We recall that expansion of a determinant produces a polynomial. The roots of the polynomial of
(7.46) can be real (unequal or equal), or complex numbers.
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
t
d
dt
-----e
At
Ae
At
=
x

t ( ) Ae
A t t
0
( )
x
0
Ae
At
e
A t
bu t ( ) t d
t
0
t
}
e
At
e
A t
bu t ( ) + + =
x

t ( ) A e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ e
At
e
A t
bu t ( ) + =
x t ( ) bu t ( )
x

t ( ) Ax bu + =
A n n n 2 b
x

t ( ) Ax bu + =
x
0
x t
0
( ) =
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
e
At
e
At
A n n I n n /
i
i 1 2 . n , , , = A
det A /I [ ] 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-11
Copyright Orchard Publications
Computation of the State Transition Matrix
Evaluation of the state transition matrix is based on the Cayley-Hamilton theorem. This theo-
rem states that a matrix can be expressed as an degree polynomial in terms of the
matrix as
(7.47)
where the coefficients are functions of the eigenvalues .
We accept (7.47) without proving it. The proof can be found in Linear Algebra and Matrix The-
ory textbooks.
Since the coefficients are functions of the eigenvalues , we must consider the two cases dis-
cussed in Subsections 7.4.1 and 7.4.2 below.
7.4.1 Distinct Eigenvalues (Real of Complex)
If , that is, if all eigenvalues of a given matrix are distinct, the coeffi-
cients are found from the simultaneous solution of the following system of equations:
(7.48)
Example 7.6
Compute the state transition matrix given that
Solution:
We must first find the eigenvalues of the given matrix . These are found from the expansion
of
For this example,
e
At
n 1 ( )th
A
e
At
a
0
I a
1
A a
2
A
2
. a
n 1
A
n 1
+ + + + =
a
i
/
a
i
/
/
1
/
2
/
3
. /
n
A
a
i
a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + e
/
1
t
=
a
0
a
1
/
2
a
2
/
2
2
. a
n 1
/
2
n 1
+ + + + e
/
2
t
=
.
a
0
a
1
/
n
a
2
/
n
2
. a
n 1
/
n
n 1
+ + + + e
/
n
t
=
e
At
A
2 1
0 1
=
/ A
det A /I [ ] 0 =
Chapter 7 State Variables and State Equations
7-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or
Therefore,
(7.49)
Next, we must find the coefficients of (7.47). Since is a matrix, we only need to con-
sider the first two terms of that relation, that is,
(7.50)
The coefficients and are found from (7.48). For this example,
or
(7.51)
Simultaneous solution of (7.51) yields
(7.52)
and by substitution into (7.50),
or
(7.53)
In summary, we compute the state transition matrix for a given matrix using the following
procedure:
det A /I [ ] det
2 1
0 1
/
1 0
0 1

)
`

det
2 / 1
0 1 /
0 = = =
2 / ( ) 1 / ( ) 0 = =
/ 1 + ( ) / 2 + ( ) 0 =
/
1
1 and /
2
2 = =
a
i
A 2 2
e
At
a
0
I a
1
A + =
a
0
a
1
a
0
a
1
/
1
+ e
/
1
t
=
a
0
a
1
/
2
+ e
/
2
t
=
a
0
a
1
1 ( ) + e
t
=
a
0
a
1
2 ( ) + e
2t
=
a
0
2e
t
e
2t
=
a
1
e
t
e
2t
=
e
At
2e
t
e
2t
( )
1 0
0 1
e
t
e
2t
( )
2 1
0 1
+ =
e
At
e
2t
e
t
e
2t

0 e
t
=
e
At
A
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-13
Copyright Orchard Publications
Computation of the State Transition Matrix
1. We find the eigenvalues from . We can write at once by sub-
tracting from each of the main diagonal elements of . If the dimension of is a
matrix, it will yield two eigenvalues; if it is a matrix, it will yield three eigenvalues, and
so on. If the eigenvalues are distinct, we perform steps 2 through 4; otherwise we refer to Sub-
section 7.4.2 below.
2. If the dimension of is a matrix, we use only the first 2 terms of the right side of the
state transition matrix
(7.54)
If matrix is a matrix, we use the first 3 terms of (7.54), and so on.
3. We obtain the coefficients from
We use as many equations as the number of the eigenvalues, and we solve for the coefficients
.
4. We substitute the coefficients into the state transition matrix of (7.54), and we simplify.
Example 7.7
Compute the state transition matrix given that
(7.55)
Solution:
1. We first compute the eigenvalues from . We obtain at once, by sub-
tracting from each of the main diagonal elements of . Then,
/ det A /I [ ] 0 = A /I [ ]
/ A A 2 2
3 3
A 2 2
e
At
a
0
I a
1
A a
2
A
2
. a
n 1
A
n 1
+ + + + =
A 3 3
a
i
a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + e
/
1
t
=
a
0
a
1
/
2
a
2
/
2
2
. a
n 1
/
2
n 1
+ + + + e
/
2
t
=
.
a
0
a
1
/
n
a
2
/
n
2
. a
n 1
/
n
n 1
+ + + + e
/
n
t
=
a
i
a
i
e
At
A
5 7 5
0 4 1
2 8 3
=
det A /I [ ] 0 = A /I [ ]
/ A
Chapter 7 State Variables and State Equations
7-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(7.56)
and expansion of this determinant yields the polynomial
(7.57)
We will use MATLAB roots(p) function to obtain the roots of (7.57).
p=[1 -6 11 -6]; r=roots(p); fprintf(' \n'); fprintf('lambda1 = %5.2f \t', r(1));...
fprintf('lambda2 = %5.2f \t', r(2)); fprintf('lambda3 = %5.2f', r(3))
l a mbda 1 = 3. 00 l a mbda 2 = 2. 00 l a mbda 3 = 1. 00
and thus the eigenvalues are
(7.58)
2. Since is a matrix, we use the first terms of (7.54), that is,
(7.59)
3. We obtain the coefficients from
or
(7.60)
We will use the following MATLAB script for the solution of (7.60).
B=sym('[1 1 1; 1 2 4; 1 3 9]'); b=sym('[exp(t); exp(2*t); exp(3*t)]'); a=B\b; fprintf(' \n');...
disp('a0 = '); disp(a(1)); disp('a1 = '); disp(a(2)); disp('a2 = '); disp(a(3))
a 0 =
3*e xp( t ) - 3*e xp( 2*t ) +e xp( 3*t )
a 1 =
- 5/ 2*e xp( t ) +4*e xp( 2*t ) - 3/ 2*e xp( 3*t )
a 2 =
det A /I [ ] det
5 / 7 5
0 4 / 1
2 8 3 /
0 = =
/
3
6/
2
11/ 6 + 0 =
/
1
1 = /
2
2 = /
3
3 =
A 3 3 3
e
At
a
0
I a
1
A a
2
A
2
+ + =
a
0
a
1
and a
2
, ,
a
0
a
1
/
1
a
2
/
1
2
+ + e
/
1
t
=
a
0
a
1
/
2
a
2
/
2
2
+ + e
/
2
t
=
a
0
a
1
/
3
a
2
/
3
2
+ + e
/
3
t
=
a
0
a
1
a
2
+ + e
t
=
a
0
2a
1
4a
2
+ + e
2t
=
a
0
3a
1
9a
2
+ + e
3t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-15
Copyright Orchard Publications
Computation of the State Transition Matrix
1/ 2*e xp( t ) - e xp( 2*t ) +1/ 2*e xp( 3*t )
Thus,
(7.61)
4. We also use MATLAB to perform the substitution into the state transition matrix, and to per-
form the matrix multiplications. The script is shown below.
syms t; a0 = 3*exp(t)+exp(3*t)-3*exp(2*t); a1 = -5/2*exp(t)-3/2*exp(3*t)+4*exp(2*t);...
a2 = 1/2*exp(t)+1/2*exp(3*t)-exp(2*t);...
A = [5 7 -5; 0 4 -1; 2 8 -3]; eAt=a0*eye(3)+a1*A+a2*A^2
e At =
[ - 2*e xp( t ) +2*e xp( 2*t ) +e xp( 3*t ) , - 6*e xp( t ) +5*e xp( 2*t ) +e xp( 3*t ) ,
4*e xp( t ) - 3*e xp( 2*t ) - e xp( 3*t ) ]
[ - e xp( t ) +2*e xp( 2*t ) - e xp( 3*t ) , - 3*e xp( t ) +5*e xp( 2*t ) - e xp( 3*t ) ,
2*e xp( t ) - 3*e xp( 2*t ) +e xp( 3*t ) ]
[ - 3*e xp( t ) +4*e xp( 2*t ) - e xp( 3*t ) , - 9*e xp( t ) +10*e xp( 2*t ) - e xp( 3*t ) ,
6*e xp( t ) - 6*e xp( 2*t ) +e xp( 3*t ) ]
Thus,
7.4.2 Multiple (Repeated) Eigenvalues
In this case, we will assume that the polynomial of
(7.62)
has roots, and of these roots are equal. In other words, the roots are
(7.63)
The coefficients of the state transition matrix
(7.64)
are found from the simultaneous solution of the system of equations of (7.65) below.
a
0
3e
t
3e
2t
e
3t
+ =
a
1
5
2
-- -e
t
4e
2t 3
2
---e
3t
+ =
a
2
1
2
---e
t
e
2t

1
2
-- -e
3t
+ =
e
At
2e
t
2e
2t
e
3t
+ + 6 e
t
5e
2t
e
3t
+ + 4e
t
3e
2t
e
3t

e
t
2e
2t
e
3t
+ 3e
t
5e
2t
e
3t
+ 2e
t
3e
2t
e
3t
+
3e
t
4e
2t
e
3t
+ 9e
t
10e
2t
e
3t
+ 6e
t
6e
2t
e
3t
+
=
det A /I [ ] 0 =
n m
/
1
/
2
= /
3
= . /
m
, /
m 1 +
, /
n
=
a
i
e
At
a
0
I a
1
A a
2
A
2
. a
n 1
A
n 1
+ + + + =
Chapter 7 State Variables and State Equations
7-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(7.65)
Example 7.8
Compute the state transition matrix given that
Solution:
1. We first find the eigenvalues of the matrix and these are found from the polynomial of
. For this example,
and thus,
2. Since is a matrix, we only need the first two terms of the state transition matrix, that
is,
(7.66)
3. We find and from (7.65). For this example,
a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + e
/
1
t
=
d
d/
1
--------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
d/
1
--------e
/
1
t
=
d
2
d/
1
2
-------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
2
d/
1
2
--------e
/
1
t
=
.
d
m 1
d/
1
m 1
--------------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
m 1
d/
1
m 1
---------------e
/
1
t
=
a
0
a
1
/
m 1 +
a
2
/
m 1 +
2
. a
n 1
/
m 1 +
n 1
+ + + + e
/
m 1 +
t
=
.
a
0
a
1
/
n
a
2
/
n
2
. a
n 1
/
n
n 1
+ + + + e
/
n
t
=
e
At
A
1 0
2 1
=
/ A
det A /I [ ] 0 =
det A /I [ ] det
1 / 0
2 1 /
0 = = 1 / ( ) 1 / ( ) 0 = / 1 + ( )
2
0 =
/
1
/
2
1 = =
A 2 2
e
At
a
0
I a
1
A + =
a
0
a
1
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-17
Copyright Orchard Publications
Computation of the State Transition Matrix
or
and by substitution with , we obtain
Simultaneous solution of the last two equations yields
(7.67)
4. By substitution of (7.67) into (7.66), we obtain
or
(7.68)
We can use the MATLAB eig(x) function to find the eigenvalues of an matrix. To find out
how it is used, we invoke the help eig command.
We will first use MATLAB to verify the values of the eigenvalues found in Examples 7.6 through
7.8, and we will briefly discuss eigenvectors in the next section.
Example 7.6:
A= [-2 1; 0 -1]; lambda=eig(A)
l a mbda =
- 2
- 1
a
0
a
1
/
1
+ e
/
1
t
=
d
d/
1
--------- a
0
a
1
/
1
+ ( )
d
d/
1
---------e
/
1
t
=
a
0
a
1
/
1
+ e
/
1
t
=
a
1
te
/
1
t
=
/
1
/
2
1 = =
a
0
a
1
e
t
=
a
1
te
t
=
a
0
e
t
te
t
+ =
a
1
te
t
=
e
At
e
t
te
t
+ ( )
1 0
0 1
te
t
1 0
2 1
+ =
e
At
e
t
0
2te
t
e
t
=
n n
Chapter 7 State Variables and State Equations
7-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Example 7.7:
B = [5 7 -5; 0 4 -1; 2 8 -3]; lambda=eig(B)
l a mbda =
1. 0000
3. 0000
2. 0000
Example 7.8:
C = [-1 0; 2 -1]; lambda=eig(C)
l a mbda =
- 1
- 1
7.5 Eigenvectors
Consider the relation
(7.69)
where is an matrix, is a column vector, and is a scalar number. We can express this
relation in matrix form as
(7.70)
We express (7.70) as
(7.71)
Then, (7.71) can be written as
(7.72)
The equations of (7.72) will have non-trivial solutions if and only if its determinant is zero
*
, that
is, if
* This is because we want the vector X in (7.71) to be a non-zero vector and the product to be zero.
AX /X =
A n n X /
a
11
a
12
. a
1n
a
21
a
22
. a
2n
. . . .
a
n1
a
n2
. a
nn
x
1
x
2
.
x
n
/
x
1
x
2
.
x
n
=
A /I ( )X 0 =
a
11
/ ( )x
1
a
12
x
2
. a
1n
x
n
a
21
x
1
a
22
/ ( )x
2
. a
2n
x
n
. . . .
a
n1
x
1
a
n2
x
2
. a
nn
/ ( )x
n
0 =
A /I ( )X
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-19
Copyright Orchard Publications
Eigenvectors
(7.73)
Expansion of the determinant of (7.73) results in a polynomial equation of degree in , and it
is called the characteristic equation.
We can express (7.73) in a compact form as
(7.74)
As we know, the roots of the characteristic equation are the eigenvalues of the matrix , and
corresponding to each eigenvalue , there is a non-trivial solution of the column vector , i.e.,
. This vector is called eigenvector. Obviously, there is a different eigenvector for each
eigenvalue. Eigenvectors are generally expressed as unit eigenvectors, that is, they are normalized
to unit length. This is done by dividing each component of the eigenvector by the square root of
the sum of the squares of their components, so that the sum of the squares of their components is
equal to unity.
In many engineering applications the unit eigenvectors are chosen such that where
is the transpose of the eigenvector , and is the identity matrix.
Two vectors and are said to be orthogonal if their inner (dot) product is zero. A set of eigen-
vectors constitutes an orthonormal basis if the set is normalized (expressed as unit eigenvectors)
and these vector are mutually orthogonal. An orthonormal basis can be formed with the Gram-
Schmidt Orthogonalization Procedure; it is beyond the scope of this chapter to discuss this proce-
dure, and therefore it will not be discussed in this text. It can be found in Linear Algebra and
Matrix Theory textbooks.
The example below illustrates the relationships between a matrix , its eigenvalues, and eigen-
vectors.
Example 7.9
Given the matrix
a. Find the eigenvalues of
det
a
11
/ ( ) a
12
. a
1n
a
21
a
22
/ ( ) . a
2n
. . . .
a
n1
a
n2
. a
nn
/ ( )
0 =
n /
det A /I ( ) 0 =
/ A
/ X
X 0 X
X X
T
I =
X
T
X I
X Y
A
A
5 7 5
0 4 1
2 8 3
=
A
Chapter 7 State Variables and State Equations
7-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
b. Find eigenvectors corresponding to each eigenvalue of
c. Form a set of unit eigenvectors using the eigenvectors of part (b).
Solution:
a. This is the same matrix as in Example 7.7, relation (7.55), Page 7-14, where we found the
eigenvalues to be
b. We begin with
and we let
Then,
(7.75)
or
(7.76)
Equating corresponding rows and rearranging, we obtain
(7.77)
For , (7.77) reduces to
(7.78)
By Crames rule, or MATLAB, we obtain the indeterminate values
(7.79)
A
/
1
1 = /
2
2 = /
3
3 =
AX /X =
X
x
1
x
2
x
3
=
5 7 5
0 4 1
2 8 3
x
1
x
2
x
3
/
x
1
x
2
x
3
=
5x
1
7x
2
5x
3

0 4x
2
x
3

2x
1
8x
2
3x
3

/x
1
/x
2
/x
3
=
5 / ( )x
1
7x
2
5x
3

0 4 / ( )x
2
x
3

2x
1
8x
2
3 / ( )x
3

0
0
0
=
/ 1 =
4x
1
7x
2
5x
3
+ 0 =
3x
2
x
3
0 =
2x
1
8x
2
4x
3
+ 0 =
x
1
0 0 ' = x
2
0 0 ' = x
3
0 0 ' =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-21
Copyright Orchard Publications
Eigenvectors
Since the unknowns are scalars, we can assume that one of these, say , is
known, and solve and in terms of . Then, we obtain , and . There-
fore, an eigenvector for is
(7.80)
since any eigenvector is a scalar multiple of the last vector in (7.80).
Similarly, for , we obtain , and . Then, an eigenvector for is
(7.81)
Finally, for , we obtain , and . Then, an eigenvector for is
(7.82)
c. We find the unit eigenvectors by dividing the components of each vector by the square root of
the sum of the squares of the components. These are:
The unit eigenvectors are
(7.83)
We observe that for the first unit eigenvector the sum of the squares is unity, that is,
x
1
x
2
and x
3
, , x
2
x
1
x
3
x
2
x
1
2x
2
= x
3
3x
2
=
/ 1 =
X
/ 1 =
x
1
x
2
x
3
=
2x
2
x
2
3x
2
x
2
2
1
3
2
1
3
= = =
/ 2 = x
1
x
2
= x
3
2x
2
= / 2 =
X
/ 2 =
x
1
x
2
x
3
=
x
2
x
2
2x
2
x
2
1
1
2
1
1
2
= = =
/ 3 = x
1
x
2
= x
3
x
2
= / 3 =
X
/ 3 =
x
1
x
2
x
3
=
x
2
x
2
x
2
x
2
1
1
1
1
1
1
= = =
2
2
1
2
3
2
+ + 14 =
1
2
1
2
2
2
+ + 6 =
1 ( )
2
1
2
1
2
+ + 3 =
Unit X
/ 1 =
2
14
----------
1
14
----------
3
14
----------
= Unit X
/ 2 =
1
6
-------
1
6
-------
2
6
-------
= Unit X
/ 3 =
1
3
-------
1
3
-------
1
3
-------
=
Chapter 7 State Variables and State Equations
7-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(7.84)
and the same is true for the other two unit eigenvectors in (7.83).
7.6 Circuit Analysis with State Variables
In this section we will present two examples to illustrate how the state variable method is used in
circuit analysis.
Example 7.10
For the circuit of Figure 7.7, the initial conditions are , and . Use the
state variable method to compute and .
Figure 7.7. Circuit for Example 7.10
Solution:
For this example,
and
Substitution of given values and rearranging, yields
or
(7.85)
Next, we define the state variables and . Then,
(7.86)
and
2
14
----------
\ .
| |
2
1
14
----------
\ .
| |
2
3
14
----------
\ .
| |
2
+ +
4
14
------
1
14
------
9
14
------ + + 1 = =
i
L
0
-
( ) 0 = v
C
0
-
( ) 0.5 V =
i
L
t ( ) v
C
t ( )
-
+
R
L
+
-
C
1 O
v
S
t ( ) u
0
t ( ) =
v
C
t ( )
i t ( )
1 4 ' H
4 3 ' F
i i
L
=
Ri
L
L
di
L
dt
------- v
C
+ + u
0
t ( ) =
1
4
-- -
di
L
dt
------- 1 ( )i
L
v
C
1 + =
di
L
dt
------- 4i
L
4v
C
4 + =
x
1
i
L
= x
2
v
C
=
x

1
di
L
dt
------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-23
Copyright Orchard Publications
Circuit Analysis with State Variables
Also,
and thus,
or
(7.87)
Therefore, from (7.85), (7.86), and (7.87), we obtain the state equations
and in matrix form,
(7.88)
We will compute the solution of (7.88) using
(7.89)
where
(7.90)
First, we compute the state transition matrix . We find the eigenvalues from
Then,
Therefore,
The next step is to find the coefficients . Since is a matrix, we only need the first two
terms of the state transition matrix, that is,
(7.91)
x

2
dv
C
dt
--------- =
i
L
C
dv
C
dt
--------- =
x
1
i
L
C
dv
C
dt
--------- Cx

2
4
3
---x

2
= = = =
x

2
3
4
-- -x
1
=
x

1
4x
1
4x
2
4 + =
x

2
3
4
--- x
1
=
x

1
x

2
4 4
3 4 ' 0
x
1
x
2
4
0
u
0
t ( ) + =
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
A
4 4
3 4 ' 0
= x
0
i
L
0 ( )
v
C
0 ( )
0
1 2 '
= = b
4
0
=
e
At
det A /I [ ] 0 =
det A /I [ ] det
4 / 4
3 4 ' /
0 = = / ( ) 4 / ( ) 3 + 0 = /
2
4/ 3 + + 0 =
/
1
1 and /
2
3 = =
a
i
A 2 2
e
At
a
0
I a
1
A + =
Chapter 7 State Variables and State Equations
7-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The constants and are found from
and with , we obtain
(7.92)
Simultaneous solution of (7.92) yields
(7.93)
We now substitute these values into (7.91), and we obtain
or
The initial conditions vector is the second vector in (7.90); then, the first term of (7.89) becomes
or
(7.94)
We also need to evaluate the integral on the right side of (7.89). From (7.90)
a
0
a
1
a
0
a
1
/
1
+ e
/
1
t
=
a
0
a
1
/
2
+ e
/
2
t
=
/
1
1 and /
2
3 = =
a
0
a
1
e
t
=
a
0
3a
1
e
3t
=
a
0
1.5e
t
0.5e
3t
=
a
1
0.5e
t
0.5e
3t
=
e
At
1.5e
t
0.5e
3t
( )
1 0
0 1
0.5e
t
0.5e
2t
( )
4 4
3 4 ' 0
+ =
1.5e
t
0.5e
3t
0
0 1.5e
t
0.5e
3t

2 e
t
2e
3t
+ 2 e
t
2e
3t
+
3
8
-- -e
t 3
8
---e
3t
0
+ =
e
At
0.5 e
t
1.5e
3t
+ 2 e
t
2e
3t
+
3
8
---e
t 3
8
---e
3t
1.5e
t
0.5e
3t

=
e
At
x
0
0.5 e
t
1.5e
3t
+ 2 e
t
2e
3t
+
3
8
-- -e
t 3
8
-- -e
3t
1.5e
t
0.5e
3t

0
1 2 '
=
e
At
x
0
e
t
e
3t
+
0.75e
t
0.25e
3t

=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-25
Copyright Orchard Publications
Circuit Analysis with State Variables
and denoting this integral as , we obtain
or
(7.95)
The integration in (7.95) is with respect to ; then, integrating the column vector under the
integral, we obtain
or
By substitution of these values, the solution of
is
Then,
(7.96)
and
(7.97)
Other variables of the circuit can now be computed from (7.96) and (7.97). For example, the
voltage across the inductor is
b
4
0
1
0
4 = =
Int
Int
0.5 e
t t ( )
1.5e
3 t t ( )
+ 2 e
t t ( )
2e
3 t t ( )
+
3
8
---e
t t ( ) 3
8
-- -e
3 t t ( )
1.5e
t t ( )
0.5e
3 t t ( )

1
0
4 t d
t
0
t
}
=
Int
0.5 e
t t ( )
1.5e
3 t t ( )
+
3
8
---e
t t ( ) 3
8
-- -e
3 t t ( )

4 t d
t
0
t
}
=
t
Int 4
0.5 e
t t ( )
0.5e
3 t t ( )
+
0.375e
t t ( )
0.125e
3 t t ( )

t 0 =
t
=
Int 4
0.5 0.5 +
0.375 0.125
4
0.5 e
t
0.5e
3t
+
0.375e
t
0.125e
3t

4
0.5e
t
0.5 e
3t
0.25 0.375 e
t
0.125e
3t
+
= =
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
x
1
x
2
e
t
e
3t
+
0.75e
t
0.25e
3t

4
0.5e
t
0.5 e
3t
0.25 0.375 e
t
0.125e
3t
+
+
e
t
e
3t
1 0.75 e
t
0.25e
3t
+
= =
x
1
i
L
e
t
e
3t
= =
x
2
v
C
1 0.75e
t
0.25e
3t
+ = =
Chapter 7 State Variables and State Equations
7-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We use the MATLAB script below to plot the relation of (7.97).
t=0:0.01:10; x2=1-0.75.*exp(-t)+0.25.*exp(-3.*t);...
plot(t,x2); grid
The plot is shown in Figure 7.8.
Figure 7.8. Plot for relation (7.97)
We can obtain the plot in Figure 7.8 with the Simulink State-Space block with the unit step
function as the input using the Step block, and the capacitor voltage as the output displayed on
the Scope block as shown in the model of Figure 7.9 where for the State-Space block Function
Block Parameters dialog box we have entered:
A: [-4 -4; 3/4 0]
B: [4 0]
C: [0 1]
D: [ 0 ]
Initial conditions: [0 1/2]
Figure 7.9. Simulink model for Example 7.10
v
L
L
di
L
dt
-------
1
4
-- -
d
dt
----- e
t
e
3t
( )
1
4
-- -e
t

3
4
---e
3t
+ = = =
0 1 2 3 4 5 6 7 8 9 10
0.5
0.6
0.7
0.8
0.9
1
V
o
l
t
a
g
e

(
V
)
Time (sec)
x
2
v
C
1 0.75e
t
0.25e
3t
+ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-27
Copyright Orchard Publications
Circuit Analysis with State Variables
The waveform for the capacitor voltage for the simulation time interval seconds is
shown in Figure 7.10 where we observe that the initial condition is also dis-
played.
Figure 7.10. Input and output waveforms for the model of Figure 7.9
The SimPowerSystems model for the circuit in Figure 7.7 is shown in Figure 7.11.
Figure 7.11. Model for the circuit in Figure 7.7. Scope 2 block displays the waveform in Fig.7.8.
Example 7.11
A network is described by the state equation
(7.98)
where
and (7.99)
0 t 10 s s
v
C
0
-
( ) 0.5 V =
x

Ax bu + =
A
1 0
1 1
= x
0
1
0
= b
1
1
= u o t ( ) =
Chapter 7 State Variables and State Equations
7-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Compute the state vector
Solution:
We compute the eigenvalues from
For this example,
Then,
Since is a matrix, we only need the first two terms of the state transition matrix to find
the coefficients , that is,
(7.100)
The constants and are found from
(7.101)
and with , we obtain
(7.102)
and simultaneous solution of (7.102) yields
By substitution of these values into (7.100), we obtain
(7.103)
The values of the vector are found from
x
x
1
x
2
=
det A /I [ ] 0 =
det A /I [ ] det
1 / 0
1 1 /
0 = = 1 / ( ) 1 / ( ) 0 =
/
1
1 and /
2
1 = =
A 2 2
a
i
e
At
a
0
I a
1
A + =
a
0
a
1
a
0
a
1
/
1
+ e
/
1
t
=
a
0
a
1
/
2
+ e
/
2
t
=
/
1
1 and /
2
1 = =
a
0
a
1
+ e
t
=
a
0
a
1
e
t
=
a
0
e
t
e
t
+
2
---------------- t cosh = =
a
1
e
t
e
t

2
---------------- t sinh = =
e
At
t cosh I t sinh A + t cosh
1 0
0 1
t sinh
1 0
1 1
+
t cosh t sinh + 0
t sinh t cosh t sinh
= = =
x
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-29
Copyright Orchard Publications
Relationship between State Equations and Laplace Transform
(7.104)
Using the sifting property of the delta function we find that (7.104) reduces to
Therefore,
(7.105)
7.7 Relationship between State Equations and Laplace Transform
In this section, we will show that the state transition matrix can be computed from the Inverse
Laplace transform. We will also show that the transfer function can be found from the coefficient
matrices of the state equations.
Consider the state equation
(7.106)
Taking the Laplace of both sides of (7.106), we obtain
or
(7.107)
Multiplying both sides of (7.107) by , we obtain
(7.108)
Comparing (7.108) with
(7.109)
we observe that the right side of (7.108) is the Laplace transform of (7.109). Therefore, we can
compute the state transition matrix from the Inverse Laplace of , that is, we can
use the relation
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ e
At
x
0
e
At
e
A t
bo t ( ) t d
0
t
}
+ = =
x t ( ) e
At
x
0
e
At
b + e
At
x
0
b + ( ) e
At
1
0
1
1
+
)
`

e
At
0
1
= = = =
t cosh t sinh + 0
t sinh t cosh t sinh
0
1
x
1
x
2
= =
x
x
1
x
2
0
t cosh t sinh
0
e
t
= = =
x

Ax bu + =
sX s ( ) x 0 ( ) AX s ( ) bU s ( ) + =
sI A ( )X s ( ) x 0 ( ) bU s ( ) + =
sI A ( )
1
X s ( ) sI A ( )
1
x 0 ( ) sI A ( )
1
bU s ( ) + =
x t ( ) e
At
x
0
e
At
e
A t
bu t ( ) t d
0
t
}
+ =
e
At
sI A ( )
1
Chapter 7 State Variables and State Equations
7-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(7.110)
Next, we consider the output state equation
(7.111)
Taking the Laplace of both sides of (7.111), we obtain
(7.112)
and using (7.108), we obtain
(7.113)
If the initial condition , (7.113) reduces to
(7.114)
In (7.114), is the Laplace transform of the input ; then, division of both sides by
yields the transfer function
(7.115)
Example 7.12
In the circuit of Figure 7.12, all initial conditions are zero. Compute the state transition matrix
using the Inverse Laplace transform method.
Figure 7.12. Circuit for Example 7.12
Solution:
For this circuit,
and
Substitution of given values and rearranging, yields
e
At
L
1
sI A ( )
1
{ =
y Cx du + =
Y s ( ) CX s ( ) dU s ( ) + =
Y s ( ) C sI A ( )
1
x 0 ( ) C sI A ( )
1
b d + [ ]U s ( ) + =
x 0 ( ) 0 =
Y s ( ) C sI A ( )
1
b d + [ ]U s ( ) =
U s ( ) u t ( ) U s ( )
G s ( )
Y s ( )
U s ( )
----------- C sI A ( )
1
b d + = =
e
At
-
+
R L
+
-
C
3 O
v
S
t ( ) u
0
t ( ) =
v
C
t ( )
i t ( )
1 H
1 2 ' F
i i
L
=
Ri
L
L
di
L
dt
------- v
C
+ + u
0
t ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-31
Copyright Orchard Publications
Relationship between State Equations and Laplace Transform
(7.116)
Now, we define the state variables
and
Then,
(7.117)
and
Also,
(7.118)
and thus,
or
(7.119)
Therefore, from (7.117) and (7.119) we obtain the state equations
(7.120)
and in matrix form,
(7.121)
By inspection,
(7.122)
Now, we will find the state transition matrix from
(7.123)
where
Then,
di
L
dt
------- 3 i
L
v
C
1 + =
x
1
i
L
=
x
2
v
C
=
x

1
di
L
dt
------- 3 i
L
v
C
1 + = =
x

2
dv
C
dt
--------- =
i
L
C
dv
C
dt
--------- 0.5
dv
C
dt
--------- = =
x
1
i
L
0.5
dv
C
dt
--------- 0.5x

2
= = =
x

2
2x
1
=
x

1
3x
1
x
2
1 + =
x

2
2x
1
=
x

1
x

2
3 1
2 0
x
1
x
2
1
0
1 + =
A
3 1
2 0
=
e
At
L
1
sI A ( )
1
{ =
sI A ( )
s 0
0 s
3 1
2 0

s 3 + 1
2 s
= =
Chapter 7 State Variables and State Equations
7-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We find the Inverse Laplace of each term by partial fraction expansion. Thus,
Now, we can find the state variables representing the inductor current and the capacitor voltage
from
using the procedure of Example 7.11.
MATLAB provides two very useful functions to convert state-space (state equations), to transfer
function (s-domain), and vice versa. The function ss2tf (state-space to transfer function) con-
verts the state space equations
*
(7.124)
to the rational transfer function form
(7.125)
This is used with the statement [num,den]=ss2tf(A,B,C,D,iu) where A, B, C, D are the matrices
of (7.124) and iu is if there is only one input. The MATLAB help command provides the fol-
lowing information:
help ss2tf
SS2TF St a t e - s pa c e t o t r a ns f e r f unc t i on c onve r s i on.
[ NUM, DEN] = SS2TF( A, B, C, D, i u) c a l c ul a t e s t he
t r a ns f e r f unc t i on:
NUM( s ) - 1
G( s ) = - - - - - - - - = C( s I - A) B + D
DEN( s )
of t he s ys t e m:
x = Ax + Bu
* We have used capital letters for vectors b and c to be consistent with MATLABs designations.
sI A ( )
1 adj sI A ( )
det sI A ( )
----------------------------
1
s
2
3s 2 + +
--------------------------
s 1
2 s 3 +
s
s 1 + ( ) s 2 + ( )
---------------------------------
1
s 1 + ( ) s 2 + ( )
---------------------------------
2
s 1 + ( ) s 2 + ( )
---------------------------------
s 3 +
s 1 + ( ) s 2 + ( )
---------------------------------
= = =
e
At
L
1
sI A ( )
1
{
e
t
2e
2t
+ e
t
e
2t
+
2e
t
2e
2t
2e
t
e
2t

= =
x t ( ) e
At
x
0
e
At
e
A t
bu t ( ) t d
0
t
}
+ =
x

Ax Bu + =
y Cx Du + =
G s ( )
N s ( )
D s ( )
----------- =
1
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-33
Copyright Orchard Publications
Relationship between State Equations and Laplace Transform
y = Cx + Du
f r om t he i u' t h i nput . Ve c t or DEN c ont a i ns t he c oe f f i c i e nt s of t he
de nomi na t or i n de s c e ndi ng powe r s of s . The nume r a t or c oe f f i c i e nt s a r e
r e t ur ne d i n ma t r i x NUM wi t h a s ma ny r ows a s t he r e a r e out put s y.
Se e a l s o TF2SS
The other function, tf2ss, converts the transfer function of (7.125) to the state-space equations
of (7.124). It is used with the statement [A,B,C,D]=tf2ss(num,den) where A, B, C, and D are
the matrices of (7.124), and num, den are and of (7.125) respectively. The MATLAB
help command provides the following information:
help tf2ss
TF2SS Tr a ns f e r f unc t i on t o s t a t e - s pa c e c onve r s i on.
[ A, B, C, D] = TF2SS( NUM, DEN) c a l c ul a t e s t he s t a t e - s pa c e
r e pr e s e nt a t i on:
x = Ax + Bu
y = Cx + Du
of t he s ys t e m:
NUM( s )
G( s ) = - - - - - - - -
DEN( s )
f r om a s i ngl e i nput . Ve c t or DEN mus t c ont a i n t he c oe f f i c i e nt s of t he
de nomi na t or i n de s c e ndi ng powe r s of s . Ma t r i x NUM mus t c ont a i n t he
nume r a t or c oe f f i c i e nt s wi t h a s ma ny r ows a s t he r e a r e out put s y. The
A, B, C, D ma t r i c e s a r e r e t ur ne d i n c ont r ol l e r c a noni c a l f or m. Thi s c a l -
c ul a t i on a l s o wor ks f or di s c r e t e s ys t e ms . To a voi d c onf us i on whe n us i ng
t hi s f unc t i on wi t h di s c r e t e s ys t e ms , a l wa ys us e a nume r a t or pol ynomi a l
t ha t ha s be e n pa dde d wi t h z e r os t o ma ke i t t he s a me l e ngt h a s t he
de nomi na t or . Se e t he Us e r ' s gui de f or mor e de t a i l s .
Se e a l s o SS2TF.
Example 7.13
For the circuit of Figure 7.13, all initial conditions are zero.
Figure 7.13. Circuit for Example 7.13
N s ( ) D s ( )
-
+
R
L
+
-
C
1 O
v
S
t ( ) u
0
t ( ) =
v
C
t ( ) v
out
t ( ) =
i t ( )
1 H
1 F
Chapter 7 State Variables and State Equations
7-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
a. Derive the state equations and express them in matrix form as
b. Derive the transfer function
c. Verify your answers with MATLAB.
Solution:
a. The differential equation describing the circuit is
and with the given values,
or
We let
and
Then,
and
Thus, the state equations are
and in matrix form,
(7.126)
b. The circuit is shown in Figure 7.14.
x

Ax Bu + =
y Cx Du + =
G s ( )
N s ( )
D s ( )
----------- =
Ri L
di
dt
----- v
C
+ + u
0
t ( ) =
i
di
dt
----- v
C
+ + u
0
t ( ) =
di
dt
----- i v
C
u
0
t ( ) + =
x
1
i
L
i = =
x
2
v
C
v
out
= =
x

1
di
dt
----- =
x

2
dv
c
dt
-------- x
1
= =
x

1
x
1
x
2
u
0
t ( ) + =
x

2
x
1
=
y x
2
=
x

Ax Bu + =
x

1
x

2
1 1
1 0
x
1
x
2
1
0
u
0
t ( ) + =
y Cx Du + = y
0 1
x
1
x
2
0
u
0
t ( ) + =
s domain
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-35
Copyright Orchard Publications
Relationship between State Equations and Laplace Transform
Figure 7.14. Transformed circuit for Example 7.13
By the voltage division expression,
or
Therefore,
(7.127)
c.
A = [-1 -1; 1 0]; B = [1 0]'; C = [0 1]; D = [0]; % The matrices of (7.126)
[num, den] = ss2tf(A, B, C, D, 1) % Verify coefficients of G(s) in (7.127)
num =
0 0 1
de n =
1. 0000 1. 0000 1. 0000
num = [0 0 1]; den = [1 1 1]; % The coefficients of G(s) in (7.127)
[A B C D] = tf2ss(num, den) % Verify the matrices of (7.126)
A =
- 1 - 1
1 0
B =
1
0
C =
0 1
D =
0
The equivalence between the state-space equations of (7.126) and the transfer function of
(7.127) is also evident from the Simulink models shown in Figure 7.15 where for the State-
Space block Function Block Parameters dialog box we have entered:
-
+
R
L
+
-
C
1 O
V
in
s ( )
V
C
s ( ) V
out
s ( ) =
s
1 s '
V
out
s ( )
1 s '
1 s 1 s ' + +
---------------------------V
in
s ( ) =
V
out
s ( )
V
in
s ( )
------------------
1
s
2
s 1 + +
---------------------- =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
1
s
2
s 1 + +
---------------------- = =
Chapter 7 State Variables and State Equations
7-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
A: [-1 -1; 3/4 0]
B: [1 0]
C: [0 1]
D: [ 0 ]
Initial conditions: [0 0]
For the Transfer Fcn block Function Block Parameters dialog box we have entered:
Numerator coefficient: [ 1 ]
Denominator coefficient: [1 1 1]
Figure 7.15. Models to show the equivalence between relations (7.126) and (7.127)
After the simulation command is executed, both Scope 1 and Scope 2 blocks display the input
and output waveforms shown in Figure 7.15.
Figure 7.16. Waveforms displayed by Scope 1 and Scope 2 blocks for the models in Figure 7.15
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-37
Copyright Orchard Publications
Summary
7.8 Summary
- An nth-order differential equation can be resolved to first-order simultaneous differential
equations with a set of auxiliary variables called state variables. The resulting first-order dif-
ferential equations are called state-space equations, or simply state equations.
- The state-space equations can be obtained either from the nth-order differential equation, or
directly from the network, provided that the state variables are chosen appropriately.
- When we obtain the state equations directly from given circuits, we choose the state variables
to represent inductor currents and capacitor voltages.
- The state variable method offers the advantage that it can also be used with non-linear and
time-varying devices.
- If a circuit contains only one energy-storing device, the state equations are written as
where , , , and are scalar constants, and the initial condition, if non-zero, is denoted
as
- If and are scalar constants, the solution of with initial condition
is obtained from the relation
- The solution of the state equations pair
where and are or higher order matrices, and and are column vectors with two
or more rows, entails the computation of the state transition matrix , and integration of
- The eigenvalues , where , of an matrix are the roots of the nth order
polynomial
where is the identity matrix.
n
x

ox u + =
y k
1
x k
2
u + =
o k
1
k
2
x
0
x t
0
( ) =
o x

ox u + = x
0
x t
0
( ) =
x t ( ) e
o t t
0
( )
x
0
e
ot
e
o t
u t ( ) t d
t
0
t
}
+ =
x

Ax bu + =
y Cx du + =
A C 2 2 b d
e
At
x t ( ) e
A t t
0
( )
x
0
e
At
e
A t
bu t ( ) t d
t
0
t
}
+ =
/
i
i 1 2 . n , , , = n n A
det A /I [ ] 0 =
I n n
Chapter 7 State Variables and State Equations
7-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- The Cayley-Hamilton theorem states that a matrix can be expressed as an degree
polynomial in terms of the matrix as
where the coefficients are functions of the eigenvalues .
- If all eigenvalues of a given matrix are distinct, that is, if
the coefficients are found from the simultaneous solution of the system of equations
- If some or all eigenvalues of matrix are repeated, that is, if
the coefficients of the state transition matrix are found from the simultaneous solution of the
system of equations
n 1 ( )th
A
e
At
a
0
I a
1
A a
2
A
2
. a
n 1
A
n 1
+ + + + =
a
i
/
A
/
1
/
2
/
3
. /
n

a
i
a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + e
/
1
t
=
a
0
a
1
/
2
a
2
/
2
2
. a
n 1
/
2
n 1
+ + + + e
/
2
t
=
.
a
0
a
1
/
n
a
2
/
n
2
. a
n 1
/
n
n 1
+ + + + e
/
n
t
=
A
/
1
/
2
= /
3
= . /
m
, /
m 1 +
, /
n
=
a
i
a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + e
/
1
t
=
d
d/
1
--------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
d/
1
--------e
/
1
t
=
d
2
d/
1
2
-------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
2
d/
1
2
--------e
/
1
t
=
.
d
m 1
d/
1
m 1
--------------- a
0
a
1
/
1
a
2
/
1
2
. a
n 1
/
1
n 1
+ + + + ( )
d
m 1
d/
1
m 1
---------------e
/
1
t
=
a
0
a
1
/
m 1 +
a
2
/
m 1 +
2
. a
n 1
/
m 1 +
n 1
+ + + + e
/
m 1 +
t
=
.
a
0
a
1
/
n
a
2
/
n
2
. a
n 1
/
n
n 1
+ + + + e
/
n
t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-39
Copyright Orchard Publications
Summary
- We can use the MATLAB eig(x) function to find the eigenvalues of an matrix.
- A column vector that satisfies the relation
where is an matrix and is a scalar number, is called an eigenvector.
- There is a different eigenvector for each eigenvalue.
- Eigenvectors are generally expressed as unit eigenvectors, that is, they are normalized to unit
length. This is done by dividing each component of the eigenvector by the square root of the
sum of the squares of their components, so that the sum of the squares of their components is
equal to unity.
- Two vectors and are said to be orthogonal if their inner (dot) product is zero.
- A set of eigenvectors constitutes an orthonormal basis if the set is normalized (expressed as
unit eigenvectors) and these vector are mutually orthogonal.
- The state transition matrix can be computed from the Inverse Laplace transform using the
relation
- If is the Laplace transform of the input and is the Laplace transform of the
output , the transfer function can be computed using the relation

- MATLAB provides two very useful functions to convert state-space (state equations), to
transfer function (s-domain), and vice versa. The function ss2tf (state-space to transfer func-
tion) converts the state space equations to the transfer function equivalent, and the function
tf2ss, converts the transfer function to state-space equations.
n n
X
AX /X =
A n n /
X Y
e
At
L
1
sI A ( )
1
{ =
U s ( ) u t ( ) Y s ( )
y t ( )
G s ( )
Y s ( )
U s ( )
----------- C sI A ( )
1
b d + = =
Chapter 7 State Variables and State Equations
7-40 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
7.9 Exercises
1. Express the integrodifferential equation below as a matrix of state equations where
are constants.
2. Express the matrix of the state equations below as a single differential equation, and let
.
3. For the circuit below, all initial conditions are zero, and is any input. Write state equa-
tions in matrix form.
4. In the circuit below, all initial conditions are zero. Write state equations in matrix form.
5. In the below, . Use the state variable method to find for .
k
1
k
2
and k
3
, ,
dv
2
dt
2
-------- k
3
dv
dt
------ k
2
v k
1
v t d
0
t
}
+ + + 3t sin 3t cos + =
x y ( ) y t ( ) =
x

1
x

2
x

3
x

4
0 1 0 0
0 0 1 0
0 0 0 1
1 2 3 4
x
1
x
2
x
3
x
4

0
0
0
1
u t ( ) + =
u t ( )
R
L
+
-
C
u t ( )
R
C
1
1 O
1 H
2 F
2 F
C
2
V
p
ctu
0
t ( ) cos
L
i
L
0
-
( ) 2 A = i
L
t ( ) t 0 >
R
L
+
-
10u
0
t ( )
2 O
2 H
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-41
Copyright Orchard Publications
Exercises
6. Compute the eigenvalues of the matrices , , and below.
Hint: One of the eigenvalues of matrix C is .
7. Compute given that
Observe that this is the same matrix as of Exercise 6.
8. Find the solution of the matrix state equation given that
9. In the circuit below, , and .
a. Write state equations in matrix form.
b. Compute using the Inverse Laplace transform method.
c. Find and for .
A B C
A
1 2
3 1
= B
a 0
a b
= C
0 1 0
0 0 1
6 11 6
=
1
e
At
A
0 1 0
0 0 1
6 11 6
=
C
x

Ax bu + =
A
1 0
2 2
= b
1
2
= x
0
1
0
= u o t ( ) = t
0
0 = , , , ,
i
L
0
-
( ) 0 = v
C
0
-
( ) 1 V =
e
At
i
L
t ( ) v
C
t ( ) t 0 >
R L
C
3 4 ' O
4 3 ' F
4 H
Chapter 7 State Variables and State Equations
7-42 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
7.10 Solutions to End-of-Chapter Exercises
1. Differentiating the given integrodifferential equation with respect to we obtain
or
(1)
We let
Then,
and by substitution into (1)
and thus the state equations are
and in matrix form
2. Expansion of the given matrix yields

Letting we obtain
t
dv
3
dt
3
-------- k
3
dv
2
dt
2
-------- k
2
dv
dt
------ k
1
v + + + 3 3t 3 3t sin cos 3 3t 3t sin cos ( ) = =
dv
3
dt
3
-------- k
3
dv
2
dt
2
-------- = k
2

dv
dt
------ k
1
v 3 3t 3t sin cos ( ) +
v x
1
=
dv
dt
------ x
2
x
1

= =
dv
2
dt
2
-------- x
3
x
2

= =
dv
3
dt
3
-------- x
3

=
x
3

k
1
x
1
k
2
x
2
k
3
x
3
3 3t 3t sin cos ( ) + =
x
1

x
2
=
x
2

x
3
=
x
3

k
1
x
1
k
2
x
2
k
3
x
3
3 3t 3t sin cos ( ) + =
x
1

x
2

x
3

0 1 0
0 0 1
k
1
k
2
k
3
x
1
x
2
x
3

0
0
1
3 3t 3t sin cos ( ) + =
x
1

x
2
= x
2

x
3
= x
3

x
2
= x
4

x
1
2x
2
3x
3
4x
4
u t ( ) + =
x y =
dy
4
dt
4
-------- 4
dy
3
dt
3
-------- 3
dy
2
dt
2
-------- 2
dy
dt
------ y + + + + u t ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-43
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
3.
We let and . By KCL, or
or
Also,
Then,
and
and in matrix form
4.
We let , , and . By KCL,
or
or
(1)
By KVL,
R
L
+
-
C
u t ( )
i
C
i
T
i
L
v
C
-
+
i
L
x
1
= v
C
x
2
= i
T
i
L
i
C
+ =
u t ( ) v
C

R
---------------------- i
L
C
dv
C
dt
--------- + =
u t ( ) x
2

R
--------------------- x
1
Cx
2

+ =
x
2
Lx
1

=
x
1
1
L
---x
2
= x
2
1
C
----x
1

1
RC
--------x
2

1
RC
--------u t ( ) + =
x
1

x
2

0 1 L '
1 C ' 1 RC '
x
1
x
2

0
1 RC '
u t ( ) + =
R
C
1
1 O
1 H
2 F
2 F
C
2
V
p
ctu
0
t ( ) cos
L
+
-
v
C1
i
L
+
-
v
C2
v
C1
i
L
x
1
= v
C1
x
2
= v
C2
x
3
=
v
C1
V
p
ctu
0
t ( ) cos
1
------------------------------------------------- 2
dv
C1
dt
------------ i
L
+ + 0 =
x
2
V
p
ctu
0
t ( ) cos 2x
2

x
1
+ + 0 =
x
2
1
2
---x
1

1
2
---x
2

1
2
---V
p
ctu
0
t ( ) cos + =
Chapter 7 State Variables and State Equations
7-44 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or
or
(2)
Also,
or
or
(3)
Combining (1), (2), and (3) into matrix form we obtain
We will create a Simulink model with and output . The model is shown below
where for the State-Space block Function Block Parameters dialog box we have entered:
A: [0 1 -1; -1/2 -1/2 0; 1/2 0 0]
B: [0 1/2 0]
C: [0 0 1]
D: [ 0 ]
Initial conditions: [0 0 0]
and for the Sine Wave block Function Block Parameters dialog box we have entered:
Amplitude: 1
Phase: pi/2
The input and output waveforms are shown below.
v
C1
L
di
L
dt
------- v
C2
+ =
x
2
1x
1

x
3
+ =
x
1

x
2
x
3
=
i
L
C
dv
C2
dt
------------ =
x
1
2x
3

=
x
3
1
2
---x
1
=
x
1

x
2

x
3

0 1 1
1 2 ' 1 2 ' 0
1 2 ' 0 0
x
1
x
2
x
3

0
1 2 '
0
V
p
ctu
0
t ( ) cos + =
V
p
1 = y x
3
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-45
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
5.
From (7.21) of Example 7.4, Page 7-6,
For this exercise, and . Then,
and denoting the current as the output we obtain
6.
a.
R
L
+
-
10u
0
t ( )
2 O
2 H
x

R
L
--- -
x
1
L
---
v
S
u
0
t ( ) + =
o R L ' 1 = = b 10 1 L ' ( ) 5 = =
x t ( ) e
o t t
0
( )
x
0
e
ot
e
o t
u t ( ) t d
t
0
t
}
+ =
e
1 t 0 ( )
2 e
t
e
t
5u
0
t ( ) t d
0
t
}
+ 2e
t
5e
t
e
t
t d
0
t
}
+ = =
2e
t
5e
t
e
t
1 ( ) + 2e
t
5 5 e
t
+ 5 3e
t
( )u
0
t ( ) = = =
i
L
y
y t ( ) x t ( ) 5 3e
t
( )u
0
t ( ) = =
A
1 2
3 1
= det A /I ( ) det
1 2
3 1
/
1 0
0 1

\ .
|
| |
det
1 / 2
3 1 /
0 = = =
1 / ( ) 1 / ( ) 6 0 =
Chapter 7 State Variables and State Equations
7-46 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and thus
b.
and thus
c.
and it is given that . Then,
and thus
7.
a. Matrix is the same as Matrix C in Exercise 6. Then,
and since is a matrix the state transition matrix is
(1)
Then,
1 / / /
2
6 + + 0 =
/
2
7 =
/
1
7 = /
2
7 =
B
a 0
a b
= det B /I ( ) det
a 0
a b
/
1 0
0 1

\ .
|
| |
det
a / 0
a b /
0 = = =
a / ( ) b / ( ) 0 =
/
1
a = /
2
b =
C
0 1 0
0 0 1
6 11 6
= det C /I ( ) det
0 1 0
0 0 1
6 11 6
/
1 0 0
0 1 0
0 0 1

\ .
|
|
|
| |
=
det
/ 1 0
0 / 1
6 11 6 /
0 = =
/
2
6 / ( ) 6 11 ( ) / ( ) /
3
6/
2
11/ 6 + + + 0 = =
/
1
1 =
/
3
6/
2
11/ 6 + + +
/ 1 + ( )
---------------------------------------------- /
2
5/ 6 + + / 1 + ( ) / 2 + ( ) / 3 + ( ) 0 = =
/
1
1 = /
2
2 = /
1
3 =
A
/
1
1 = /
2
2 = /
1
3 =
A 3 3
e
At
a
0
I a
1
A a
2
A
2
+ + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-47
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
syms t; A=[1 -1 1; 1 -2 4; 1 -3 9];...
a=sym('[exp(-t); exp(-2*t); exp(-3*t)]'); x=A\a; fprintf(' \n');...
disp('a0 = '); disp(x(1)); disp('a1 = '); disp(x(2)); disp('a2 = '); disp(x(3))
a 0 =
3*e xp( - t ) - 3*e xp( - 2*t ) +e xp( - 3*t )
a 1 =
5/ 2*e xp( - t ) - 4*e xp( - 2*t ) +3/ 2*e xp( - 3*t )
a 2 =
1/ 2*e xp( - t ) - e xp( - 2*t ) +1/ 2*e xp( - 3*t )
Thus,
Now, we compute of (1) with the following MATLAB script:
syms t; a0=3*exp(-t)-3*exp(-2*t)+exp(-3*t); a1=5/2*exp(-t)-4*exp(-2*t)+3/2*exp(-3*t);...
a2=1/2*exp(-t)-exp(-2*t)+1/2*exp(-3*t); A=[0 1 0; 0 0 1; -6 -11 -6]; fprintf(' \n');...
eAt=a0*eye(3)+a1*A+a2*A^2
e At =
[ 3*e xp( - t ) - 3*e xp( - 2*t ) +e xp( - 3*t ) , 5/ 2*e xp( - t ) - 4*e xp( - 2*t ) +3/
2*e xp( - 3*t ) , 1/ 2*e xp( - t ) - e xp( - 2*t ) +1/ 2*e xp( - 3*t ) ]
[ - 3*e xp( - t ) +6*e xp( - 2*t ) - 3*e xp( - 3*t ) , - 5/ 2*e xp( - t ) +8*e xp( -
2*t ) - 9/ 2*e xp( - 3*t ) , - 1/ 2*e xp( - t ) +2*e xp( - 2*t ) - 3/ 2*e xp( - 3*t ) ]
[ 3*e xp( - t ) - 12*e xp( - 2*t ) +9*e xp( - 3*t ) , 5/ 2*e xp( - t ) - 16*e xp( -
2*t ) +27/ 2*e xp( - 3*t ) , 1/ 2*e xp( - t ) - 4*e xp( - 2*t ) +9/ 2*e xp( - 3*t ) ]
Thus,
a
0
a
1
/
1
a
2
/
1
2
+ + e
/
1
t
= a
0
a
1
a
2
+ e
t
=
a
0
a
1
/
2
a
2
/
2
2
+ + e
/
2
t
= a
0
2a
1
4a
2
+ e
2t
=
a
0
a
1
/
3
a
2
/
3
2
+ + e
/
3
t
= a
0
3a
1
9a
2
+ e
3t
=
a
0
3e
t
3e
2t
3e
3t
+ =
a
1
2.5e
t
4e
2t
1.5e
3t
+ =
a
2
0.5e
t
e
2t
0.5e
3t
+ =
e
At
e
At
3e
t
3e
2t
e
3t
+ 2.5e
t
4e
2t
1.5e
3t
+ 0.5e
t
e
2t
0.5e
3t
+
3 e
t
6e
2t
3e
3t
+ 2.5 e
t
8e
2t
4.5e
3t
+ 0.5 e
t
2e
2t
1.5e
3t
+
3e
t
12e
2t
9e
3t
+ 2.5e
t
16e
2t
13.5e
3t
+ 0.5e
t
4e
2t
4.5e
3t
+
=
Chapter 7 State Variables and State Equations
7-48 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
8.
(1)
We use the following MATLAB script to find the eigenvalues and .
A=[1 0; -2 2]; lambda=eig(A); fprintf(' \n');...
fprintf('lambda1 = %4.2f \t',lambda(1)); fprintf('lambda2 = %4.2f \t',lambda(2))
l a mbda 1 = 2. 00 l a mbda 2 = 1. 00
Next,
Then,
and
By substitution into (1) we obtain
and thus
A
1 0
2 2
= b
1
2
= x
0
1
0
= u o t ( ) = t
0
0 = , , , ,
x t ( ) e
A t 0 ( )
x
0
e
At
e
A t
bu t ( ) t d
0
t
}
+ e
At
x
0
e
At
e
A t
bo t ( ) t d
0
t
}
+ = =
e
At
x
0
e
At
b + e
At
x
0
b + ( ) e
At
1
0
1
2
+
\ .
|
| |
e
At
0
2
= = = =
/
1
/
2
a
0
a
1
/
1
+ e
/
1
t
= a
0
a
1
+ e
t
=
a
0
a
1
/
2
+ e
/
2
t
= a
0
2a
1
+ e
2t
=
a
0
2e
t
e
2t
= a
1
e
2t
e
t
=
e
At
a
0
I a
1
A + 2e
t
e
2t
( )
1 0
0 1
e
2t
e
t
( )
1 0
2 2
+ = =
2e
t
e
2t
0
0 2e
t
e
2t

e
2t
e
t
0
2e
2t
2e
t
+ 2e
2t
2e
t

+
e
t
0
2e
t
2e
2t
e
2t
= =
x t ( ) e
At
0
2
e
t
0
2e
t
2e
2t
e
2t
0
2

0
2e
2t
= = =
x
1
0 = x
2
2e
2t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 7-49
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
9.
We let
Then,
a.
or
(1)
Also,
or
(2)
From (1) and (2)
and thus
b.
R L
C
3 4 ' O 4 3 ' F
4 H
i
L
i
R
i
C
+
-
v
C
0
-
( ) 1 V =
i
L
0
-
( ) 0 =
v
C
x
1
i
L
= x
2
v
C
=
i
R
i
L
i
C
+ + 0 =
v
C
R
------ i
L
C
v
C
dt
------ + + 0 =
x
2
3 4 '
--------- x
1
4
3
---x
2

+ + 0 =
x
2
3
4
-- - x
1
x
2
=
v
L
v
C
L
di
L
dt
------- 4x
1

x
2
= = = =
x
1
1
4
---x
2
=
x
1

x
2

0 1 4 '
3 4 ' 1
x
1
x
2
=
A
0 1 4 '
3 4 ' 1
=
e
At
L
1
sI A [ ]
1
{ =
sI A [ ]
s 0
0 s
0 1 4 '
3 4 ' 1

s 1 4 '
3 4 ' s 1 +
= =
A det sI A [ ] det
s 1 4 '
3 4 ' s 1 +
s
2
s 3 16 ' + + = s 1 4 ' + ( ) s 3 4 ' + ( ) = = =
Chapter 7 State Variables and State Equations
7-50 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We use MATLAB to find with the script below.
syms s t % Must have Symbolic Math Toolbox installed
Fs1=(s+1)/(s^2+s+3/16); Fs2=(1/4)/(s^2+s+3/16); Fs3=(-3/4)/(s^2+s+3/16);...
Fs4=s/(s^2+s+3/16);...
fprintf(' \n'); disp('a11 = '); disp(simple(ilaplace(Fs1))); disp('a12 = ');...
disp(simple(ilaplace(Fs2)));...
disp('a21 = '); disp(simple(ilaplace(Fs3))); disp('a22 = '); disp(simple(ilaplace(Fs4)))
a 11 =
- 1/ 2*e xp( - 3/ 4*t ) +3/ 2*e xp( - 1/ 4*t )
a 12 =
1/ 2*e xp( - 1/ 4*t ) - 1/ 2*e xp( - 3/ 4*t )
a 21 =
- 3/ 2*e xp( - 1/ 4*t ) +3/ 2*e xp( - 3/ 4*t )
a 22 =
3/ 2*e xp( - 3/ 4*t ) - 1/ 2*e xp( - 1/ 4*t )
Thus,
c.
and thus for ,
adj sI A [ ] adj
s 1 4 '
3 4 ' s 1 +
s 1 + 1 4 '
3 4 ' s
= =
sI A [ ]
1 1
A
---adj sI A [ ]
1
s 1 4 ' + ( ) s 3 4 ' + ( )
-----------------------------------------------
s 1 + 1 4 '
3 4 ' s
= =
s 1 +
s 1 4 ' + ( ) s 3 4 ' + ( )
-----------------------------------------------
1 4 '
s 1 4 ' + ( ) s 3 4 ' + ( )
-----------------------------------------------
3 4 '
s 1 4 ' + ( ) s 3 4 ' + ( )
-----------------------------------------------
s
s 1 4 ' + ( ) s 3 4 ' + ( )
-----------------------------------------------
=
e
At
L
1
sI A [ ]
1
{ =
e
At
1.5e
0.25t
0.5e
0.75t
0.5e
0.25t
0.5e
0.75t

1.5 e
0.25t
1.5e
0.75t
+ 0.5 e
0.25t
1.5e
0.75t
+
=
x t ( ) e
A t 0 ( )
x
0
e
At
e
A t
bu t ( ) t d
0
t
}
+ e
At
x
0
0 + e
At
0
1
0
0
+
\ .
|
| |
= = =
1.5e
0.25t
0.5e
0.75t
0.5e
0.25t
0.5e
0.75t

1.5 e
0.25t
1.5e
0.75t
+ 0.5 e
0.25t
1.5e
0.75t
+
0
1
0.5e
0.25t
0.5e
0.75t

0.5 e
0.25t
1.5e
0.75t
+
= =
t 0 >
x
1
i
L
0.5e
0.25t
0.5e
0.75t
= = x
2
v
C
0.5 e
0.25t
1.5e
0.75t
+ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-1
Copyright Orchard Publications
Chapter 8
Frequency Response and Bode Plots
his chapter discusses frequency response in terms of both amplitude and phase. This topic
will enable us to determine which frequencies are dominant and which frequencies are vir-
tually suppressed. The design of electric filters is based on the study of the frequency
response. We will also discuss the Bode method of linear system analysis using two separate plots;
one for the magnitude of the transfer function, and the other for the phase, both versus fre-
quency. These plots reveal valuable information about the frequency response behavior.
Note: Throughout this text, the common (base 10) logarithm of a number will be denoted as
while its natural (base e) logarithm will be denoted as . However, we should remem-
ber that in MATLAB the function displays the natural logarithm, and the common (base
10) logarithm is defined as .
8.1 Decibel Defined
The ratio of any two values of the same quantity (power, voltage or current) can be expressed in
decibels ( ). For instance, we say that an amplifier has power gain or a transmission line
has a power loss of (or gain ). If the gain (or loss) is , the output is equal to the
input. We should remember that a negative voltage or current gain or indicates that there
is a phase difference between the input and the output waveforms. For instance, if an ampli-
fier has a gain of (dimensionless number), it means that the output is out-of-phase
with the input. For this reason we use absolute values of power, voltage and current when these
are expressed in terms to avoid misinterpretation of gain or loss.
By definition,
(8.1)
Therefore,
represents a power ratio of
represents a power ratio of
represents a power ratio of
represents a power ratio of
represents a power ratio of
Also,
T
x
x ( ) log x ( ) ln
x ( ) log
10 x ( ) log
dB 10 dB
7 dB 7 dB 0 dB
A
V
A
I
180
100 180
dB
dB 10
P
out
P
in
---------
log =
10 dB 10
10n dB 10
n
20 dB 100
30 dB 1 000 ,
60 dB 1 000 000 , ,




Chapter 8 Frequency Response and Bode Plots
8-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
represents a power ratio of approximately
represents a power ratio of approximately
represents a power ratio of approximately
From these, we can estimate other values. For instance, which is equivalent
to a power ratio of approximately . Likewise, and this is
equivalent to a power ratio of approximately .
Since and , if we let the values for the voltage
and current ratios become:
(8.2)
and
(8.3)
Example 8.1
Compute the gain in for the amplifier shown in Figure 8.1.
Figure 8.1. Amplifier for Example 8.1
Solution:
Example 8.2
Compute the gain in for the amplifier shown in Figure 8.2 given that .
Figure 8.2. Amplifier for Example 8.2.
Solution:
1 dB 1.25
3 dB 2
7 dB 5
4 dB 3 dB 1 dB + =
2 1.25 2.5 = 27 dB 20 dB 7 dB + =
100 5 500 =
y x
2
log 2 x log = = P V
2
R ' I
2
R = = R 1 = dB
dB
v
10
V
out
V
in
----------
2
log 20
V
out
V
in
----------
log = =
dB
i
10
I
out
I
in
--------
2
log 20
I
out
I
in
--------
log = =
dB
W
P
in
P
out
1 w
10 w
dB
W
10
P
out
P
in
--------- log 10
10
1
------ log 10 10 log 10 1 10 dB
W
= = = = =
dB
V
2 log 0.3 =
V
in
V
out
1 v
2v
dB
V
20
V
out
V
in
---------- log 20
2
1
-- - log 20 0.3 log 20 0.3 6 dB
V
= = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-3
Copyright Orchard Publications
Bandwidth and Frequency Response
8.2 Bandwidth and Frequency Response
Electric and electronic circuits, such as filters and amplifiers, exhibit a band of frequencies over
which the output remains nearly constant. Consider, for example, the magnitude of the output
voltage of an electric or electronic circuit as a function of radian frequency as shown in
Figure 8.3.
Figure 8.3. Definition of the bandwidth.
As shown in Figure 8.3, the bandwidth is where and are the lower and
upper cutoff frequencies respectively. At these frequencies, and these two
points are known as the or half-power points. They derive their name from the fact
that since power , for and for or the
power is , that is, it is halved. Alternately, we can define the bandwidth as the frequency
band between half-power points.
Most amplifiers are used with a feedback path which returns (feeds) some or all its output to the
input as shown in Figure 8.4.
Figure 8.4. Amplifier with partial output feedback
Figure 8.5 shows an amplifier where the entire output is fed back to the input.
Figure 8.5. Amplifier with entire output feedback
V
out
c
V
out
1
0.707
Bandwith
c
c
1
c
2
BW c
2
c
1
= c
1
c
2
V
out
2 2 ' 0.707 = =
3 dB down
p v
2
R ' i
2
R = = R 1 = v 0.707 V
out
= i 0.707 I
out
=
1 2 '
GAIN AMPLIFIER
FEEDBACK CIRCUIT
Z
INPUT
OUTPUT
+
-
GAIN AMPLIFIER
Z
INPUT
OUTPUT
FEEDBACK PATH
+
-
Chapter 8 Frequency Response and Bode Plots
8-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The symbol Z (Greek capital letter sigma) inside the circle indicates the summing point where the
output signal, or portion of it, is combined with the input signal. This summing point may be also
indicated with a large plus (+) symbol inside the circle. The positive (+) sign below the summing
point implies positive feedback which means that the output, or portion of it, is added to the input.
On the other hand, the negative (-) sign implies negative feedback which means that the output, or
portion of it, is subtracted from the input. Practically, all amplifiers use used with negative feed-
back since positive feedback causes circuit instability.
8.3 Octave and Decade
Let us consider two frequencies and defining the frequency interval , and let
(8.4)
If these frequencies are such that , we say that these frequencies are separated by one
octave and if , they are separated by one decade.
Let us now consider a transfer function whose magnitude is evaluated at , that is,
(8.5)
Taking the log of both sides of (8.5) and multiplying by 20, we obtain
or
(8.6)
Relation (8.6) is an equation of a straight line in a semilog plot with abscissa where
and shown in Figure 8.6.
With these concepts in mind, we can now proceed to discuss Bode Plots and Asymptotic Approxi-
mations.
u
1
u
2
u
2
u
1

u
2
u
1
log
10
c
2
log
10
c
1
log
10
c
2
c
1
------ = =
c
2
2c
1
=
c
2
10c
1
=
G s ( ) s jc =
G s ( )
C
s
k
----- =
s jc =
G c ( )
C
c
k
------ = =
20log
10
G c ( ) 20log
10
C 20log
10
c
k
20klog
10
c 20log
10
C + = =
G c ( )
dB
20klog
10
c 20log
10
C + =
log
10
c
slope 20k
dB
decade
------------------ =
intercept C dB =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-5
Copyright Orchard Publications
Bode Plot Scales and Asymptotic Approximations
Figure 8.6. Straight line with slope
8.4 Bode Plot Scales and Asymptotic Approximations
Bode plots are magnitude and phase plots where the abscissa (frequency axis) is a logarithmic
(base 10) scale, and the radian frequency is equally spaced between powers of such as ,
, , and so on.
The ordinate ( axis) of the magnitude plot has a scale in units, and the ordinate of the
phase plot has a scale in degrees as shown in Figure 8.7.
Figure 8.7. Magnitude and phase plots
It is convenient to express the magnitude in so that a transfer function , composed of
products of terms can be computed by the sum of the magnitudes of the individual terms. For
example,
20 dB decade ' 6 dB octave ' =
G c ( )

10
c log
dB
C
40
0
10
20
30
1000 100 10
1
G c ( ) axis intercept
20 dB decade ' 6 dB octave ' =
c 10 10
1
10
0
10
1
10
2
dB dB
1
1 10
100 10 100
Frequency c r/s
0 0
M
a
g
n
i
t
u
d
e

(
d
B
)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
.
)
10
20
-10
-20
45
-90
90
-45
Frequency c r/s
Bode Magnitude Plot
Bode Phase Angle Plot
dB G s ( )
dB
20 1
jc
100
--------- +
\ .
| |

1 jc +
---------------------------------- 20 dB 1
jc
100
--------- +
\ .
| |
dB
1
1 jc +
--------------- dB + + =
Chapter 8 Frequency Response and Bode Plots
8-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and the Bode plots then can be approximated by straight lines called asymptotes.
8.5 Construction of Bode Plots when the Zeros and Poles are Real
Let us consider the transfer function
(8.7)
where is a real constant, and the zeros and poles are real numbers. We will consider com-
plex zeros and poles in the next section. Letting in (8.7) we obtain
(8.8)
Next, we multiply and divide each numerator factor by and each denominator factor
by and we obtain:
(8.9)
Letting
(8.10)
we can express (8.9) in magnitude and phase form,
(8.11)
(8.12)
G s ( )
A s z
1
+ ( ) s z
2
+ ( ) . s z
m
+ ( )
s s p
1
+ ( ) s p
2
+ ( ) s p
3
+ ( ) s p
n
+ ( )
------------------------------------------------------------------------------------------------- =
A z
i
p
i
s jc =
G jc ( )
A jc z
1
+ ( ) jc z
2
+ ( ) . jc z
m
+ ( )
jc jc p
1
+ ( ) jc p
2
+ ( ) jc p
3
+ ( ) jc p
n
+ ( )
-------------------------------------------------------------------------------------------------------------------- =
jc z
i
+ z
i
jc p
i
+ p
i
G jc ( )
A z
1
jc
z
1
------ 1 +
\ .
| |
z
2
jc
z
2
------ 1 +
\ .
| |
. z
m
jc
z
m
------ 1 +
\ .
| |

jc p
1
jc
p
1
------ 1 +
\ .
| |
p
2
jc
p
2
------ 1 +
\ .
| |
. p
n
jc
p
n
------ 1 +
\ .
| |

---------------------------------------------------------------------------------------------------------------------- =
K
A z
1
z
2
. z
m

p
1
p
2
. p
n

--------------------------------------------- A
z
i
i 1 =
j
p
i
i 1 =
n
j
--------------- = =
dB
G c ( ) 20 K log 20
jc
z
1
------ 1 +
\ .
| |
20
jc
z
2
------ 1 +
\ .
| |
log . 20
jc
z
m
------ 1 +
\ .
| |
20 jc 20
jc
p
1
------ 1 +
\ .
| |
20
jc
p
2
------ 1 +
\ .
| |
. 20
jc
p
n
------ 1 +
\ .
| |
log log log log
log + + + log + =
G c ( ) Z K
jc
z
1
------ 1 +
\ .
| |
Z + Z
jc
z
2
------ 1 +
\ .
| |
Z .
jc
z
m
------ 1 +
\ .
| |
Z
jc Z
jc
p
1
------ 1 +
\ .
| |
Z
jc
p
2
------ 1 +
\ .
| |
Z .
jc
p
n
------ 1 +
\ .
| |
Z
+ + + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-7
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Real
The constant can be positive or negative. Its magnitude is and its phase angle is if
, and if . The magnitude and phase plots for the constant are shown in Fig-
ure 8.8.
Figure 8.8. Magnitude and phase plots for the constant K
For a zero of order , that is, at the origin, the Bode plots for the magnitude and phase are
as shown in Figures 8.9 and 8.10 respectively.
For a pole of order , that is, at the origin, the Bode plots are as shown in Fig-
ures 8.11 and 8.12 respectively.
Next, we consider the term .
The magnitude of this term is
(8.13)
and taking the log of both sides and multiplying by we obtain
(8.14)
It is convenient to normalize (8.14) by letting
(8.15)
K K 0
K 0 > 180 K 0 < K
Frequency c r/s
0
M
a
g
n
i
t
u
d
e

(
d
B
)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
.
)
0
-180
Frequency c r/s
20log|K| K > 0
K < 0
n jc ( )
n
n 1 jc ( )
n
' jc ( )
n
=
G jc ( ) a jc + ( )
n
=
G jc ( ) a
2
c
2
+ ( )
n
a
2
c
2
+ ( )
n 2 '
= =
20
20 G jc ( ) log 10n a
2
c
2
+ ( ) log =
u c a ' =
Chapter 8 Frequency Response and Bode Plots
8-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 8.9. Magnitude for zeros of Order n at the origin
Figure 8.10. Phase for zeros of Order n at the origin
Then, (8.14) becomes
(8.16)
-120
-100
-80
-60
-40
-20
0
20
40
60
80
100
120
0.01 0.10 1.00 10.00 100.00
c (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
n=1
n=2
n=3
0
90
180
270
360
0.01 0.10 1.00 10.00 100.00
c (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
n=3
n=2
n=1
20 G ju ( ) log 10n a
2 a
2
c
2
+
a
2
------------------
\ .
|
| |
log 10n a
2
10 + log n 1 u
2
+ ( ) log = =
10n 1 u
2
+ ( ) log 20n a log + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-9
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Real
Figure 8.11. Magnitude for poles of Order n at the origin
Figure 8.12. Phase for poles of Order n at the origin
For the first term of (8.16) becomes . For , this term becomes approx-
imately and this has the same form as which is shown in
Figure 8.9 for , , and .
The frequency at which two asymptotes intersect each other forming a corner is referred to as the
corner frequency. Thus, the two lines defined by the first term of (8.16), one for and the
other for intersect at the corner frequency .
The second term of (8.16) represents the ordinate axis intercept defined by this straight line.
The phase response for the term is found as follows:
We let
-120
-100
-80
-60
-40
-20
0
20
40
60
80
100
120
0.01 0.10 1.00 10.00 100.00
c (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
n=1
n=2
n=3
-360
-270
-180
-90
0
0.01 0.10 1.00 10.00 100.00
c (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
n=3
n=2
n=1
u 1 10n 1 log 0 dB = u 1
10n u
2
log 20n u log = G jc ( ) jc ( )
n
=
n 1 = n 2 = n 3 =
u 1
u 1 u 1 =
G jc ( ) a jc + ( )
n
=
Chapter 8 Frequency Response and Bode Plots
8-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(8.17)
and
(8.18)
Then,
(8.19)
Figure 8.13 shows plots of the magnitude of (8.16) for , , , and .
Figure 8.13. Magnitude for zeros of Order n for
As shown in Figure 8.13, a quick sketch can be obtained by drawing the straight line asymptotes
given by and for and respectively.
The phase angle of (8.19) is . Then, with (8.18) and letting
(8.20)
we obtain
(8.21)
and
(8.22)
At the corner frequency we obtain and with (8.20)
u c a ' =
o u ( ) u
1
tan =
a jc + ( )
n
a
n
1 ju + ( )
n
a
n
1 u
2
+ u
1
tan Z
\ .
| |
n
a
n
1 u
2
+ ( )
n 2 '
e
jno u ( )
= = =
a 10 = n 1 = n 2 = n 3 =
Order n for (a+jc)
n
u= c/a,

a=10
0
20
40
60
80
100
120
0.01 0.10 1.00 10.00 100.00
Frequency u (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
n=1
n=2
n=3
Asymptotes
Corner Frequencies
a jc + ( )
n
10 1 log 0 = 10n u
2
log u 1 u 1
no u ( )
no u ( ) 0 u ( ) n u
1
tan = =
0 u ( )
u 0
lim n u
1
tan
u 0
lim 0 = =
0 u ( )
u
lim n u
1
tan
u
lim
nr
2
------ = =
u a = u 1 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-11
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Real
(8.23)
Figure 8.14 shows the phase angle plot for (8.19).
Figure 8.14. Phase for zeros of Order n for
The magni t ude and phas e pl ot s f or ar e s i mi l ar t o t hos e of
except for a minus sign. In this case (8.16) becomes
(8.24)
and (8.20) becomes
(8.25)
The plots for (8.24) and (8.25) are shown in Figures 8.15 and 8.16 respectively.
0 1 ( ) n 1
1
tan
nr
4
------ = =
Order n for (a+jc)
n
u= c/a, a=10
0(u) = n*arctan(u)*180/r
0
90
180
270
360
0.01 0.10 1.00 10.00 100.00
u (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
n=1
n=2
n=3
a jc + ( )
n
G jc ( ) 1 a jc + ( )
n
' =
G jc ( ) a jc + ( )
n
=
20 G ju ( ) log 10 n 1 u
2
+ ( ) log 20 n a log =
0 u ( ) n u
1
tan =
Chapter 8 Frequency Response and Bode Plots
8-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 8.15. Magnitude for poles of Order n for
Figure 8.16. Phase for poles of Order n for
8.6 Construction of Bode Plots when the Zeros and Poles are Complex
The final type of terms appearing in the transfer function are quadratic term of the form
whose roots are complex conjugates. In this case, we express the complex conjugate
roots as
Order n for 1/(a+jc)
n
u= c/a, a=10
-120
-100
-80
-60
-40
-20
0
0.01 0.10 1.00 10.00 100.00
Frequency u (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
n=1
n=2
n=3
Asymptotes
Corner Frequencies
1 a jc + ( )
n
'
Order n for 1/(a+jc)
n
u= c/a, a=10
0(u) = -n*arctan(u)*180/r
-360
-270
-180
-90
0
0.01 0.10 1.00 10.00 100.00
u (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
n=3
n=2
n=1
1 a jc + ( )
n
'
G s ( )
as
2
bs c + +
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-13
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
(8.26)
and letting
(8.27)
and
(8.28)
by substitution into (8.26) we obtain
(8.29)
Next, we let
(8.30)
Then,
(8.31)
The magnitude of (8.31) is
(8.32)
and taking the log of both sides and multiplying by we obtain
(8.33)
As in the previous section, it is convenient to normalize (8.33) by dividing by to yield a func-
tion of the normalized frequency variable such that
(8.34)
Then, (8.33) is expressed as
or
(8.35)
The first term in (8.35) is a constant which represents the ordinate axis intercept defined by this
straight line. For the second term, if , this term reduces to approximately
s o j + ( ) s o j + + ( ) s o + ( )
2

2
+ =
s
2
2os o
2

2
+ + + =
o c
n
=
o
2

2
+ c
n
2
=
s
2
2os o
2

2
+ + + s
2
2c
n
s c
n
2
+ + =
G s ( ) s
2
2c
n
s c
n
2
+ + =
G jc ( ) jc ( )
2
j2c
n
c c
n
2
+ + =
c
n
2
c
2
( ) j2c
n
c + =
G jc ( ) c
n
2
c
2
( )
2
4
2
c
n
2
+ c
2
=
20
20 G jc ( ) log 10 c
n
2
c
2
( )
2
4
2
c
n
2
c
2
+ [ ] log =
c
n
4
u
u c c
n
' =
20 G ju ( ) log 10 c
n
2
c
2
( )
2
4
2
c
n
2
c
2
+ [ ] log =
20 G ju ( ) log 10 c
n
4
c
n
c
c
n
2
-------------------
\ .
|
|
| |
4
2
c
n
4c
2
c
n
2
------ + log 10 c
n
4
c
n
c
c
n
2
-------------------
\ .
|
|
| |
4
2
c
n
4c
2
c
n
2
------ + log = =
10 c
n
4
1 u
2
( )
2
4
2
u
2
+
)
`

log 10 c
n
4
log 10 1 u
2
( )
2
4
2
u
2
+ [ ] log + = =
u
2
1 10 1 log 0 dB =
Chapter 8 Frequency Response and Bode Plots
8-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and if , this term reduces to approximately and this can be plotted as a straight line
increasing at . Using these two straight lines as asymptotes for the magnitude curve
we see that the asymptotes intersect at the corner frequency . The exact shape of the curve
depends on the value of which is called the damping coefficient.
A plot of (8.35) for , , and is shown in Figure 8.17.
Figure 8.17. Magnitude for zeros of
The phase shift associated with is also simplified by the substitution
and thus
(8.36)
The two asymptotic relations of (8.36) are
(8.37)
and
u
2
1 10 u
4
log
40 dB decade '
u 1 =

0.2 = 0.4 = 0.707 =


Zeros of (c
n
2
-c
2
)+j2c
n
c
u = c/c
n
, c
n
= 1
10logc
n
4
+10log{(1-u
2
)
2
+4
2
u
2
}
-20
-10
0
10
20
30
40
0.01 0.10 1.00 10.00 100.00
Frequency u (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
=0.707
=0.2
=0.4
10 c
n
4
log 10 1 u
2
( )
2
4
2
u
2
+ [ ] log +
c
n
2
c
2
( ) j2c
n
c + u c c
n
' =
0 u ( )
2u
1 u
2

--------------
\ .
| |
1
tan =
0 u ( )
u 0
lim
2u
1 u
2

--------------
\ .
| |
1
tan
u 0
lim 0 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-15
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
(8.38)
At the corner frequency , and
(8.39)
A plot of the phase for , , and is shown in Figure 8.18.
Figure 8.18. Phase for zeros of
The magnitude and phase plots for
are similar to those of
except for a minus sign. In this case, (8.35) becomes
(8.40)
and (8.36) becomes
(8.41)
0 u ( )
u
lim
2u
1 u
2

--------------
\ .
| |
1
tan
u
lim r = =
c c
n
= u 1 =
0 1 ( )
2u
1 u
2

--------------
\ .
| |
1
tan
u 1
lim
r
2
--- = =
0.2 = 0.4 = 0.707 =
Zeros of (c
n
2
-c
2
)+j2c
n
c
u = c/c
n
, c
n
= 1
0(u) = (arctan(2u/(1-u
2
))*180/r
0
90
180
0.01 0.10 1.00 10.00 100.00
u (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
=0.2
=0.4
=0.707
10 c
n
4
log 10 1 u
2
( )
2
4
2
u
2
+ [ ] log +
G jc ( )
1
c
n
2
c
2
( ) j2c
n
c +
----------------------------------------------- =
G jc ( ) c
n
2
c
2
( ) j2c
n
c + =
10 c
n
4
log ( ) 10 1 u
2
( )
2
4
2
u
2
+ [ ] log
0 u ( )
2u
1 u
2

--------------
\ .
| |
1
tan =
Chapter 8 Frequency Response and Bode Plots
8-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
A plot of (8.40) for , , and is shown in Figure 8.19.
Figure 8.19. Magnitude for poles of
A plot of the phase for , , and is shown in Figure 8.20.
Figure 8.20. Phase for poles of
0.2 = 0.4 = 0.707 =
Magnitude for Poles of 1/((c
n
2
-c
2
)+j2c
n
c)
u = c/c
n
, c
n
= 1
-10logc
n
4
-10log{(1-u
2
)
2
+4
2
u
2
}
-40
-30
-20
-10
0
10
20
0.01 0.10 1.00 10.00 100.00
Frequency u (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
=0.707
=0.2
=0.4
1 10 c
n
4
log 10 1 u
2
( )
2
4
2
u
2
+ [ ] log + '
0.2 = 0.4 = 0.707 =
Phase for Poles of (c
n
2
-c
2
)+j2c
n
c
u = c/c
n
, c
n
= 1
0(u) = -(arctan(2u/(1-u
2
))*180/r
-180
-90
0
0.01 0.10 1.00 10.00 100.00
u (rad/s)
P
h
a
s
e

A
n
g
l
e

(
d
e
g
)
=0.2
=0.4
=0.707
1 10 c
n
4
log 10 1 u
2
( )
2
4
2
u
2
+ [ ] log + '
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-17
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
Example 8.3
For the circuit shown in Figure 8.21
a. Compute the transfer function .
b. Construct a straight line approximation for the magnitude of the Bode plot.
c. From the Bode plot obtain the values of at and .
Compare these values with the actual values.
d. If , use the Bode plot to compute the output .
Figure 8.21. Circuit for Example 8.3.
Solution:
a. We transform the given circuit to its equivalent in the shown in Figure 8.22.
Figure 8.22. Circuit for Example 8.3 in
By the voltage division expression,
Therefore, the transfer function is
(8.42)
b. Letting we obtain
or in standard form
G s ( )
20 G jc ( ) log c 30 r s ' = c 4000 r s ' =
v
s
t ( ) 10 5000t 60 + ( ) cos = v
out
t ( )
+
-
v
S
u
0
t ( )
R
C L
110 O
100 F 100 mH
-
+
v
out
t ( )
s domain
+
-
V
in
s ( )
R
C L
110
10
4
s '
0.1s
+
-
V
out
s ( )
s domain
V
out
s ( )
110
10
4
s ' 0.1s 110 + +
----------------------------------------------- V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
110s
0.1s
2
110s 10
4
+ +
----------------------------------------------
1100s
s
2
1100s 10
5
+ +
-----------------------------------------
1100s
s 100 + ( ) s 1000 + ( )
------------------------------------------------ = = = =
s jc =
G jc ( )
1100jc
jc 100 + ( ) jc 1000 + ( )
-------------------------------------------------------- =
Chapter 8 Frequency Response and Bode Plots
8-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(8.43)
Letting the magnitude of (8.43) be denoted as , and expressing it in decibels we obtain
(8.44)
We observe that the first term on the right side of (8.44) is a constant whose value is
. The second term is a straight line with slope equal to .
For the third term is approximately zero and for it decreases with slope
equal to . Likewise, for the fourth term is approximately zero and
for it also decreases with slope equal to .
For Bode plots we use semilog paper. Instructions to construct semilog paper with Microsoft
Excel are provided in Appendix F.
In the Bode plot of Figure 8.23 the individual terms are shown with dotted lines and the sum of
these with a solid line.
Figure 8.23. Magnitude plot of (8.44)
c. The plot of Figure 8.23 shows that the magnitude of (8.43) at is approximately
and at is approximately . The actual values are found as follows:
G jc ( )
0.011jc
1 jc 100 ' + ( ) 1 jc 1000 ' + ( )
---------------------------------------------------------------------- =
A
A
dB
20 G jc ( ) log 20 0.011 20 jc 20 1
jc
10
------ +
\ .
| |
20 1
jc
100
--------- +
\ .
| |
log log log + log = =
20 0.011 log 39.17 = 20 dB decade '
c 100 r s ' < c 100 >
20 dB decade ' c 1000 r s ' <
c 1000 > 20 dB decade '
-80
-60
-40
-20
0
20
40
60
80
1.E+00 1.E+01 1.E+02 1.E+03 1.E+04 1.E+05
20 jc
10
log
20 1 jc +
10
log
20 1 jc 100 ' +
10
log
20 1 jc 1000 ' +
10
log
20 0.011 ( )
10
log
c 30 r s ' =
9 dB c 4000 r s ' = 10 dB
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-19
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
At , (8.43) becomes
and using the MATLAB script
g30=0.011*30j/((1+0.3j)*(1+0.03j));...
fprintf(' \n'); fprintf('mag = %6.2f \t',abs(g30));...
fprintf('magdB = %6.2f dB',20*log10(abs(g30))); fprintf(' \n'); fprintf(' \n')
we obtain
ma g = 0. 32 ma gdB = - 10. 01 dB
Therefore,
and
Likewise, at , (8.43) becomes
and using MATLAB script
g4000=0.011*4000j/((1+40j)*(1+4j));...
fprintf(' \n'); fprintf('mag = %6.2f \t',abs(g4000));...
fprintf('magdB = %6.2f dB',20*log10(abs(g4000))); fprintf(' \n'); fprintf(' \n')
we obtain
ma g = 0. 27 ma gdB = - 11. 48 dB
Therefore,
and
d. From the Bode plot of Figure 8.23, we see that the value of at is approxi-
mately . Then, since in general , and that implies , we
have
and therefore
If we wish to obtain a more accurate value, we substitute into (8.43) and with the
following MATLAB script:
c 30 r s ' =
G j30 ( )
0.011 j30
1 j0.3 + ( ) 1 j0.03 + ( )
-------------------------------------------------- =
G j30 ( ) 0.32 =
20 G j30 ( ) log 20 0.32 log 10 dB = =
c 4000 r s ' =
G j1000 ( )
0.11 j4000 ( )
1 j40 + ( ) 1 j4 + ( )
----------------------------------------- =
G j4000 ( ) 0.27 =
20 G j4000 ( ) log 20 0.27 log 11.48 dB = =
A
dB
c 5000 r s ' =
12 dB a
dB
20 b log = y x log = x 10
y
=
A 10
12
20
------
\ .
| |
0.25 = =
V
out max
A V
S
0.25 10 2.5 V = = =
c 5000 =
Chapter 8 Frequency Response and Bode Plots
8-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
g5000=0.011*5000j/((1+50j)*(1+5j));...
fprintf(' \n'); fprintf('mag = %6.2f \t',abs(g5000));...
fprintf('phase = %6.2f deg.',angle(g5000)*180/pi); fprintf(' \n'); fprintf(' \n')
and we we obtain
ma g = 0. 22 pha s e = - 77. 54 de g.
Then,
and in the
We can use the MATLAB function bode(sys) to draw the Bode plot of a Linear Time Invari-
ant (LTI) System where sys = tf(num,den) creates a continuous-time transfer function sys
with numerator num and denominator den, and tf creates a transfer function. With this func-
tion, the frequency range and number of points are chosen automatically. The function
bode(sys,{wmin,wmax}) draws the Bode plot for frequencies between wmin and wmax (in
radians/second) and the function bode(sys,w) uses the user-supplied vector w of frequencies,
in radians/second, at which the Bode response is to be evaluated. To generate logarithmically
spaced frequency vectors, we use the command l ogspace(fi rst_exponent,l ast_exponent,
number_of_val ues). For example, to generate plots for 100 logarithmically evenly spaced
points for the frequency interval , we use the statement logspace(-1,2,100).
The bode(sys,w) function displays both magnitude and phase. If we want to display the mag-
nitude only, we can use the bodemag(sys,w) function.
MATLAB requires that we express the numerator and denominator of as polynomials of
in descending powers.
Let us plot the transfer function of Example 8.3 using MATLAB.
From (8.42),
and the MATLAB script to generate the magnitude and phase plots is as follows:
num=[0 1100 0]; den=[1 1100 10^5]; w=logspace(0,5,100); bode(num,den,w)
However, since for this example we are interested in the magnitude only, we will use the script
num=[0 1100 0]; den=[1 1100 10^5]; sys=tf(num,den);...
w=logspace(0,5,100); bodemag(sys,w); grid
and upon execution, MATLAB displays the plot shown in Figure 8.24.
G j5000 ( )
0.011 j5000 ( )
1 j50 + ( ) 1 j5 + ( )
----------------------------------------- 0.22 77.54 Z = =
V
out max
A 10 0.22 10 2.2 V = = =
t domain
v
out
t ( ) 2.2 5000t 77.54 ( ) cos =
10
1
c 10
2
r s ' s s
G s ( )
s
G s ( )
1100s
s
2
1100s 10
5
+ +
----------------------------------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-21
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
Figure 8.24. Bode plot for Example 8.3.
Example 8.4
For the circuit in Example 8.3
a. Draw a Bode phase plot.
b. Using the Bode phase plot estimate the frequency where the phase is zero degrees.
c. Compute the actual frequency where the phase is zero degrees.
d. Find if and is the value found in part (c).
Solution:
a. From (8.43) of Example 8.3
(8.45)
and in magnitude-phase form
where
For
v
out
t ( ) v
in
t ( ) 10 ct 60 + ( ) cos = c
G jc ( )
0.011jc
1 jc 100 ' + ( ) 1 jc 1000 ' + ( )
---------------------------------------------------------------------- =
G jc ( )
0.011 jc
1 jc 100 ' + ( ) 1 jc 1000 ' + ( )
---------------------------------------------------------------------------- o ( ) Z =
o Z 90 = Z c 100 ' ( )
1
tan = Z c 1000 ' ( )
1
tan =
c 100 =
Z 1
1
tan 45 = =
Chapter 8 Frequency Response and Bode Plots
8-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
For
The straight-line phase angle approximations are shown in Figure 8.25.
Figure 8.25. Bode plot for Example 8.4.
Figure 8.26 shows the magnitude and phase plots generated with the following MATLAB
script:
num=[0 1100 0]; den=[1 1100 10^5]; w=logspace(0,5,100); bode(num,den,w)
b. From the Bode plot of Figure 8.25 we find that the phase is zero degrees at approximately
c. From (8.45)
and in magnitude-phase form
c 1000 =
Z 1
1
tan 45 = =
-180
-135
-90
-45
0
45
90
135
180
o 90 =
10
1
10
0
10
2
10
5
10
4
10
3
0 c ( ) o =
c 1000 ' ( )
1
tan =
c 100 ' ( )
1
tan =
c 310 r s ' =
G jc ( )
0.011jc
1 jc 100 ' + ( ) 1 jc 1000 ' + ( )
---------------------------------------------------------------------- =
G jc ( )
0.011c 90 Z
1 jc 100 ' + ( ) c 100 ' ( )
1
tan 1 jc 1000 ' + ( ) c 1000 ' ( )
1
tan Z Z
--------------------------------------------------------------------------------------------------------------------------------------------------------------- =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-23
Copyright Orchard Publications
Construction of Bode Plots when the Zeros and Poles are Complex
Figure 8.26. Bode plots for Example 8.4 generated with the MATLAB bode function
The phase will be zero when
This is a trigonometric equation and we will solve it for with the solve(equ) MATLAB
function as follows:
syms w; x=solve(atan(w/100)+atan(w/1000)-pi/2)
a ns =
316. 2278
Therefore,
d. Evaluating (8.45) at we obtain:
(8.46)
and with the MATLAB script
Gj316=0.011*316.23j/((1+316.23j/100)*(1+316.23j/1000)); fprintf(' \n');...
fprintf('magGj316 = %5.2f \t', abs(Gj316));...
fprintf('phaseGj316 = %5.2f deg.', angle(Gj316)*180/pi)
we obtain
c 100 ' ( )
1
tan c 1000 ' ( )
1
tan + 90 =
c
c 316.23 r s ' =
c 316.23 r s ' =
G j316.23 ( )
0.011 j316.23 ( )
1 j316.23 100 ' + ( ) 1 j316.23 100 ' 0 + ( )
----------------------------------------------------------------------------------------------- =
Chapter 8 Frequency Response and Bode Plots
8-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
ma gGj 316 = 1. 00 pha s e Gj 316 = - 0. 00 de g.
We are given that and with , we obtain
The phase angle of the input voltage is given as and with we find
that the phase angle of the output voltage is
and thus
or
8.7 Corrected Amplitude Plots
The amplitude plots we have considered thus far are approximate. We can make the straight line
more accurate by drawing smooth curves connecting the points at one-half the corner frequency
, the corner frequency and twice the corner frequency as shown in Figure 8.27.
At the corner frequency , the value of the amplitude in is
(8.47)
where the plus (+) sign applies to a first order zero, and the minus (-) to a first order pole.
Similarly,
(8.48)
and
(8.49)
As we can seen from Figure 8.27, the straight line approximations, shown by dotted lines, yield
at half the corner frequency and at the corner frequency. At twice the corner frequency, the
straight line approximations yield because and are separated by one octave which
is equivalent to per decade. Therefore, the corrections to be made are at half the
corner frequency , at the corner frequency , and at twice the corner fre-
quency .
V
in
10 V = G j316.23 ( ) 1 =
V
out
G j316.23 ( ) V
in
1 10 = 10 V = =
0
in
60 = 0 j316.23 ( ) 0 =
0
out
0
in
0 j316.23 ( ) + 60 0 + 60 = = =
V
out
10 60 Z =
v
out
t ( ) 10 316.23t 60 + ( ) cos =
c
n
2 ' c
n
2c
n
c
n
A dB
A
dB
c c
n
=
20 1 j + log 20 2 log 3 dB = = =
A
dB
c c
n
2 ' =
20 1 j 2 ' + log 20
5
4
-- - log 0.97 dB 1 dB = = = =
A
dB
c 2c
n
=
20 1 j2 + log 20 5 log 6.99 dB 7 dB = = = =
0 dB
6 dB c
n
2c
n
3 dB 1 dB
c
n
2 ' 3 dB c
n
1 dB
2c
n
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-25
Copyright Orchard Publications
Corrected Amplitude Plots
The corrected amplitude plots for a first order zero and first order pole are shown by solid lines in
Figure 8.27.
Figure 8.27. Corrections for magnitude Bode plots
The corrections for straight-line amplitude plots when we have complex poles and zeros require
different type of correction because they depend on the damping coefficient . Let us refer to the
plot in Figure 8.28.
We observe that as the damping coefficient becomes smaller and smaller, larger and larger
peaks in the amplitude occur in the vicinity of the corner frequency . We also observe that
when , the amplitude at the corner frequency lies below the straight line approxi-
mation.
-20
-15
-10
-5
0
5
10
15
20
c in r/s




















































































M
a
g
n
i
t
u
d
e

i
n

d
B
c
n
2 '
c
n
c
n
2 '
3 dB
3 dB
1 dB
1 dB
7 dB
7 dB
6 dB
6 dB

c
n
0.707 c
n
Chapter 8 Frequency Response and Bode Plots
8-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 8.28. Magnitude Bode plots with complex poles
We can obtain a fairly accurate amplitude plot by computing the amplitude at four points near the
corner frequency as shown in Figure 8.28.
The amplitude plot of Figure 8.28 is for complex poles. In analogy with (8.30), i.e., the plot in Fig-
ure 8.28 above, we obtain
which was derived earlier for complex zeros, the transfer function for complex poles is
(8.50)
where C is a constant.
Dividing each term of the denominator of (8.50) by we obtain
and letting and , we obtain
Magnitude for Poles of 1/((c
n
2
-c
2
)+j2c
n
c)
u = c/c
n
, c
n
= 1
-10logc
n
4
-10log{(1-u
2
)
2
+4
2
u
2
}
-40
-30
-20
-10
0
10
20
0.01 0.10 1.00 10.00 100.00
Frequency u (r/s)
M
a
g
n
i
t
u
d
e

i
n

d
B
=0.707
=0.2
=0.4
c
n
G s ( ) s
2
2c
n
s c
n
2
+ + =
G s ( )
C
s
2
2c
n
s c
n
2
+ +
---------------------------------------- =
c
n
G s ( )
C
c
n
2
------
1
s c
n
' ( )
2
2 s c
n
' ( ) 1 + +
---------------------------------------------------------------- =
C c
n
2
' K = s jc =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-27
Copyright Orchard Publications
Corrected Amplitude Plots
(8.51)
As before, we let . Then (8.51) becomes
(8.52)
and in polar form,
(8.53)
The magnitude of (8.53) in is
(8.54)
and the phase is
(8.55)
In (8.54) the term is constant and thus the amplitude , as a function of frequency, is
dependent only the second term on the right side. Also, from this expression, we observe that as
,
(8.56)
and as ,
(8.57)
We are now ready to compute the values of at points , , , and of the plot of Figure
8.29.
At point 1, the corner frequency corresponds to . Then, from (8.54)
(8.58)
G jc ( )
K
1 c c
n
' ( )
2
j2c c
n
' +
---------------------------------------------------------------- =
c c
n
' u =
G ju ( )
K
1 u
2
j2u +
-------------------------------- =
G ju ( )
K
1 u
2
j2u + 0 Z
------------------------------------------- =
dB
A
dB
20 G ju ( ) log 20 K log 20 1 u
2
j2u + ( ) log = =
20 K log 20 1 u
2
( )
2
4
2
u
2
+ log 20 K 10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log log = =
0 u ( )
2u
1 u
2

--------------
1
tan =
20 K log A
dB
u 0
10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log 0
u
10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log 40 u log
A
dB
1 2 3 4
c
n
u 1 =
A
dB
c
n
2 ' ( ) A
dB
u
2
-- -
\ .
| |
10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log
u 1 2 ' =
= =
10
1
16
------ 2
1
4
-- - 2
2
1 ( ) 1 + + log 10
1
16
------
2
1
2
-- - 1 + + log = =
10
2
0.5625 + ( ) log =
Chapter 8 Frequency Response and Bode Plots
8-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and for ,
Figure 8.29. Corrections for magnitude Bode plots with complex poles when
To find the amplitude at point 2, in (8.54) we let and we form the magnitude in .
Then,
(8.59)
We now recall that the logarithmic function is a monotonically increasing function and therefore
(8.59 has a maximum when the absolute magnitude of this expression is maximum. Also, the
square of the absolute magnitude is maximum when the absolute magnitude is maximum.
The square of the absolute magnitude is
0.4 =
A
dB
c
n
2 ' ( )
point 1
10 0.4
2
0.5625 + ( ) log 1.41 dB = =
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
c
n
2 '
c
n
c
0 dB
c
max
Point 1 at c c
n
2 ' =
Point 2 at c c
max
=
Point 3 at c c
n
=
Point 4 at c c
0 dB
=
0.4 =
K 1 = dB
A
dB
point 2
20
1
1 c c
n
' ( )
2
j2c c
n
' +
---------------------------------------------------------------- log =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-29
Copyright Orchard Publications
Corrected Amplitude Plots
(8.60)
or
(8.61)
To find the maximum, we take the derivative with respect to and we set it equal to zero, that
is,
(8.62)
The expression of (8.62) will be zero when the numerator is set to zero, that is,
(8.63)
Of course, we require that the value of must be a nonzero value. Then,
or
from which
(8.64)
provided that or or .
The value of the amplitude at point is found by substitution of (8.64) into (8.54), that is,
(8.65)
and for
1
1 c c
n
' ( )
2
[ ]
2
4 c c
n
' ( )
2
+
--------------------------------------------------------------------------
1
1 2c
2
c
n
2
' c
4
c
n
4
' + 4
2
c
2
c
n
2
' +
---------------------------------------------------------------------------------------
c
4c c
n
2
' 4c
3
c
n
4
' 8
2
c c
n
2
'
1 c c
n
' ( )
2
[ ]
2
4 c ( ) c
n
' ( )
2
+
)
`

2
---------------------------------------------------------------------------------------- 0 =
c c
n
2
' ( ) 4 4c
2
c
n
2
' 8
2
( ) 0 =
c
4 4c
2
c
n
2
' 8
2
0 =
4c
2
( ) c
n
2
' 4 8
2
=
c
max
c c
n
1 2
2
= =
1 2
2
0 > 1 2 ' < 0.707 <
dB 2
A
dB
c
max
( ) 10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log
u 1 2 =
=
10 1 2
2
( )
2
2 1 2
2
( ) 2
2
1 ( ) 1 + + [ ] log =
10 4
2
1
2
( ) [ ] log =
0.4 =
A
dB
c
max
( ) 10 4 0.4
2
1 0.4
2
( ) ( ) log 2.69 dB = =
Chapter 8 Frequency Response and Bode Plots
8-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The value of the amplitude at point is found by substitution of into
(8.54). Then,
(8.66)
and for
Finally, at point , the value of the amplitude crosses the axis. Therefore, at this point
we are interested not in but in the location of in relation to the corner fre-
quency . at this point we must have from (8.57)
and since , it follows that
or
Solving for and making use of we obtain
From (8.67),
therefore, if we already know the frequency at which the amplitude is maximum, we can com-
pute the frequency at point from
(8.67)
Example 8.5
For the circuit in Figure 8.30,
dB 3 c c
n
u 1 = = =
A
dB
c
n
( ) 10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log
u 1 =
=
10 1 2 2
2
1 ( ) 1 + + [ ] log =
10 4
2
[ ] log 20 2 ( ) log = =
0.4 =
A
dB
c
n
( ) 20 2 0.4 ( ) log 1.94 dB = =
4 dB 0 dB
A
dB
c
0 dB
( ) c
0 dB
c
n
0 dB 10 u
4
2u
2
2
2
1 ( ) 1 + + [ ] log =
1 log 0 =
u
4
2u
2
2
2
1 ( ) 1 + + 1 =
u
4
2u
2
2
2
1 ( ) + 0 =
u
2
u
2
2 2
2
1 ( ) + ( ) 0 =
u
2
2 2
2
1 ( ) + 0 =
u u c c
n
' =
c
0 dB
c
n
2 1 2
2
( ) =
c
max
c
n
1 2
2
=
dB
4
c
0 dB
2c
max
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-31
Copyright Orchard Publications
Corrected Amplitude Plots
Figure 8.30. Circuit for Example 8.5.
a. Compute the transfer function
b. Find the corner frequency from .
c. Compute the damping coefficient .
d. Construct a straight line approximation for the magnitude of the Bode plot.
e. Compute the amplitude in at one-half the corner frequency , at the frequency
at which the amplitude reaches its maximum value, at the corner frequency , and at the
frequency where the amplitude is zero. Then, draw a smooth curve to connect these
four points.
Solution:
a. We transform the given circuit to its equivalent in the shown in Figure 8.31 where
, , and .
Figure 8.31. Circuit for Example 8.5 in
and by the voltage division expression,
Therefore, the transfer function is
(8.68)
+
-
v
in
u
0
t ( )
R
C
L
0.2 O
40 mF
10 mH
+
-
v
out
t ( )
G s ( )
c
n
G s ( )

dB c
n
2 ' c
max
c
n
c
0 dB
dB
s domain
R 1 = Ls 0.05s = 1 Cs ' 25 s ' =
+
-
V
in
s ( )
R
C
L
0.2
25 s '
0.01s
+
-
V
out
s ( )
s domain
V
out
s ( )
25 s '
0.2 0.01s 25 s ' + +
--------------------------------------------- V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
25
0.01s
2
0.2s 25 + +
--------------------------------------------
2500
s
2
20s 2500 + +
-------------------------------------- = = =
Chapter 8 Frequency Response and Bode Plots
8-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
b. From (8.50),
(8.69)
and from (8.68) and (8.69) or
c. From (8.68) and (8.69) . Then, the damping coefficient is
(8.70)
d. For , the straight line approximation lies along the axis, whereas for , the
straight line approximation has a slope of . The corner frequency was found in part
(b) to be The amplitude plot is shown in Figure 8.32.
Figure 8.32. Amplitude plot for Example 8.5
G s ( )
K
s
2
2c
n
s c
n
2
+ +
---------------------------------------- =
c
n
2
2500 = c
n
50 rad s ' =
2c
n
20 =

20
2c
n
----------
20
2 50
--------------- 0.2 = = =
c c
n
< 0 dB c c
n
>
40 dB c
n
50 rad s ' dB
-40
-35
-30
-25
-20
-15
-10
-5
0
5
10
15
20
10 100 1000
c in r/s



M
a
g
n
i
t
u
d
e

i
n

d
B
c
n
50 =
c
n
2 ' 25 =
c
max
48 =
c
0 dB
68 =
Point 1
7.96 dB
0 dB
Point 2
8.14 dB
2.2 dB
Point 3
Point 4
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-33
Copyright Orchard Publications
Corrected Amplitude Plots
e. From (8.61),
where from (8.74) and thus . Then,
and this value is indicated as Point 1 on the plot of Figure 8.32.
Next, from (8.64)
Then,
Therefore, from (8.65)
and this value is indicated as Point 2 on the plot of Figure 8.32.
The amplitude at the corner frequency is found from (8.66), that is,
Then,
and this value is indicated as Point 3 on the plot of Figure 8.32.
Finally, the frequency at which the amplitude plot crosses the axis is found from (8.67),
that is,
or
This frequency is indicated as Point 4 on the plot of Figure 8.32.
The amplitude plot of Figure 8.32 reveals that the given circuit behaves as a low pass filter.
Using the transfer function of (8.68) with the MATLAB script below, we obtain the Bode
magnitude plot shown in Figure 8.33.
num=[0 0 2500]; den=[1 20 2500]; sys=tf(num,den); w=logspace(0,5,100); bodemag(sys,w)
A
dB
c
n
2 ' ( ) 10
2
0.5625 + ( ) log =
0.2 =
2
0.04 =
A
dB
c
n
2 ' ( ) 10 0.04 0.5625 + ( ) log = 10 0.6025 ( ) log 2.2 dB = =
c
max
c
n
1 2
2
=
c
max
50 1 2 0.04 50 0.92 47.96 rad s ' = = =
A
dB
c
max
( ) 10 4
2
1
2
( ) [ ] log 10 0.16 ( ) 0.96 ( ) [ ] log 8.14 dB = = =
dB
A
dB
c
n
( ) 20 2 ( ) log =
A
dB
c
n
( ) 20 2 0.2 ( ) log 7.96 dB = =
0 dB
c
0 dB
2c
max
=
c
0 dB
2 47.96 67.83 rad s ' = =
Chapter 8 Frequency Response and Bode Plots
8-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 8.33. Bode plot for Example 8.5 using the MATLAB bodemag function
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-35
Copyright Orchard Publications
Summary
8.8 Summary
- The decibel, denoted as dB, is a unit used to express the ratio between two amounts of power,
gener al l y . By def i ni t i on, t he number of i s obt ai ned f r om
. It can also be used to express voltage and current ratios provided
that the voltages and currents have identical impedances. Then, for voltages we use the
expr es s i on , and f or cur r ent s we us e t he expr es s i on
- The bandwidth, denoted as , is a term generally used with electronic amplifiers and filters.
For low-pass filters the bandwidth is the band of frequencies from zero frequency to the cutoff
frequency where the amplitude fall to of its maximum value. For high-pass filters the
bandwidth is the band of frequencies from of maximum amplitude to infinite frequency.
For amplifiers, band-pass, and band-elimination filters the bandwidth is the range of frequen-
cies where the maximum amplitude falls to of its maximum value on either side of the
frequency response curve.
- If two frequencies and are such that , we say that these frequencies are sepa-
rated by one octave and if , they are separated by one decade.
- Frequency response is a term used to express the response of an amplifier or filter to input sinu-
soids of different frequencies. The response of an amplifier or filter to a sinusoid of frequency
is completely described by the magnitude and phase of the transfer func-
tion.
- Bode plots are frequency response diagrams of magnitude and phase versus frequency .
- In Bode plots the - frequencies, denoted as , are referred to as the corner frequencies.
- In Bode plots, the transfer function is expressed in linear factors of the form for the zero
(numerator) linear factors and for the pole linear factors. When quadratic factors with
complex roots occur in addition to the linear factors, these quadratic factors are expressed in
the form .
- In magnitude Bode plots with quadratic factors the difference between the asymptotic plot and
the actual curves depends on the value of the damping factor . But regardless of the value of
, the actual curve approaches the asymptotes at both low and high frequencies.
P
out
P
in
' dB
dB
w
10 P
out
P
in
' ( )
10
log =
dB
v
20 V
out
V
in
' ( )
10
log =
dB
i
20 I
out
I
in
' ( )
10
log =
BW
0.707
0.707
0.707
c
1
c
2
c
2
2c
1
=
c
2
10c
1
=
c G jc ( ) G jc ( ) Z
c
3 dB c
n
jc z
i
+
jc p
i
+
jc ( )
2
j2c
n
c c
n
2
+ +

Chapter 8 Frequency Response and Bode Plots


8-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- In Bode plots the corner frequencies are easily identified by expressing the linear terms as
and for the zeros and poles respectively. For quadratic factor the
cor ner f r equency appear s i n t he expr es s i on or
- In both the magnitude and phase Bode plots the frequency (abscissa) scale is logarithmic. The
ordinate in the magnitude plot is expressed in and in the phase plot is expressed in degrees.
- In magnitude Bode plots, the asymptotes corresponding to the linear terms of the form
and have a slope where the positive slope applies to
zero (numerator) linear factors, and the negative slope applies to pole (denominator) linear
factors.
- In magnitude Bode plots, the asymptotes corresponding to the quadratic terms of the form
have a slope where the positive slope applies to zero
(numerator) quadratic factors, and the negative slope applies to pole (denominator) quadratic
factors.
- In phase Bode plots with linear factors, for frequencies less than one tenth the corner fre-
quency we assume that the phase angle is zero. At the corner frequency the phase angle is
. For frequencies ten times or greater than the corner frequency, the phase angle is
approximately where the positive angle applies to zero (numerator) linear factors, and
the negative angle applies to pole (denominator) linear factors.
- In phase Bode plots with quadratic factors, the phase angle is zero for frequencies less than one
tenth the corner frequency. At the corner frequency the phase angle is . For frequencies
ten times or greater than the corner frequency, the phase angle is approximately where
the positive angle applies to zero (numerator) quadratic factors, and the negative angle applies
to pole (denominator) quadratic factors.
- Bode plots can be easily constructed and verified with the MATLAB function bode(sys)
function. With this function, the frequency range and number of points are chosen automati-
cally. The function bode(sys),{wmi n,wmax}) draws the Bode plot for frequencies between
wmin and wmax (in radian/second) and the function bode(sys,w) uses the user-supplied vec-
tor w of frequencies, in radian/second, at which the Bode response is to be evaluated. To gen-
er at e l ogar i t hmi cal l y s paced f r equency vect or s , we us e t he command l o g -
space(first_exponent,last_exponent, number_of_values).
c
n
z
i
jc z
i
' 1 + ( ) p
i
jc p
i
' 1 + ( )
c
n
jc ( )
2
j2c
n
c c
n
2
+ +
jc c
n
' ( )
2
j2c c
n
' 1 + +
dB
jc z
i
' 1 + ( ) jc p
i
' 1 + ( ) 20 dB decade '
jc c
n
' ( )
2
j2c c
n
' 1 + + 40 dB decade '
45
90
90
180
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-37
Copyright Orchard Publications
Exercises
8.9 Exercises
1. For the transfer function
a. Draw the magnitude Bode plot and find the approximate maximum value of in .
b. Find the value of where for
c. Check your plot with the plot generated with MATLAB.
2. For the transfer function of Exercise 1:
a. Draw a Bode plot for the phase angle and find the approximate phase angle at ,
, , and
b. Compute the actual values of the phase angle at the frequencies specified in (a).
c. Check your magnitude plot of Exercise 1 and the phase plot of this exercise with the plots
generated with MATLAB.
3. For the circuit below:
a. Compute the transfer function.
b. Draw the Bode amplitude plot for
c. From the plot of part (b) determine the type of filter represented by this circuit and esti-
mate the cutoff frequency.
d. Compute the actual cutoff frequency of this filter.
e. Draw a straight line phase angle plot of .
f. Determine the value of at the cutoff frequency from the plot of part (c).
g. Compute the actual value of at the cutoff frequency.
G s ( )
10
5
s 5 + ( )
s 100 + ( ) s 5000 + ( )
------------------------------------------------ =
G jc ( ) dB
c G jc ( ) 1 = c 5 r s ' >
c 30 r s ' =
c 50 r s ' = c 100 r s ' = c 5000 r s ' =
+
-
v
in
u
0
t ( )
R
C
L
1 O
4 10
3
F
0.25 H
+
-
v
out
t ( )
20 G jc ( ) log
G jc ( )
0 c ( )
0 c ( )
Chapter 8 Frequency Response and Bode Plots
8-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
8.10 Solutions to End-of-Chapter Exercises
1. a.
The corner frequencies are at , , and . The asymptotes
are shown as solid lines.
G jc ( )
10
5
jc 5 + ( )
jc 100 + ( ) jc 5000 + ( )
--------------------------------------------------------
10
5
5 1 jc 5 ' + ( )
100 1 jc 100 ' + ( ) 5000 1 jc 5000 ' + ( )
------------------------------------------------------------------------------------------------------------- = =
1 jc 5 ' + ( )
1 jc 100 ' + ( ) 1 jc 5000 ' + ( )
-------------------------------------------------------------------------- =
20 G jc ( ) log 20 1 jc 5 ' + log 20 1 jc 100 ' + log 20 1 jc 5000 ' + log =
c 5 r s ' = c 100 r s ' = c 5000 r s ' =
-40
-35
-30
-25
-20
-15
-10
-5
0
5
10
15
20
25
30
35
40
10
0
10
1
10
2
10
3
10
4
10
5
M
a
g
n
i
t
u
d
e

o
f

G
j
c
(
)

i
n

d
B
c r s ' ( )
20 1 jc 5 ' + ( ) log
20 G jc ( ) log
20 1 jc 100 ' + ( ) log
20 1 jc 100 ' + ( ) log
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-39
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
From this plot we observe that for the interval
b. By inspection, at
2. From the solution of Exercise 1,
and in magnitude-phase form
that is, where , , and
The corner frequencies are at , , and where at those
frequencies , , and respectively. The asymptotes are shown as
solid lines.
From the phase plot we observe that , , , and
20 G jc ( ) log
max
26 dB = 10
2
c 5 10
3
s s
20 G jc ( ) log 0 dB = c 9.85 10
4
r s ' =
G jc ( )
1 jc 5 ' + ( )
1 jc 100 ' + ( ) 1 jc 5000 ' + ( )
-------------------------------------------------------------------------- =
G jc ( )
1 jc 5 ' + ( )
1 jc 100 ' + ( ) 1 jc 5000 ' + ( )
-------------------------------------------------------------------------------- o ( ) Z =
0 c ( ) o = o c 5 '
1
tan = c 100 '
1
tan = c 5000 '
1
tan =
c 5 r s ' = c 100 r s ' = c 5000 r s ' =
o 45 = 45 = 45 =
0 30 r s ' ( ) 60 = 0 50 r s ' ( ) 53 = 0 100 r s ' ( ) 38 =
0 5000 r s ' ( ) 39 =
-90
-75
-60
-45
-30
-15
0
15
30
45
60
75
90
P
h
a
s
e

a
n
g
l
e

i
n

d
e
g
r
e
e
s
c r s ' ( )
10
0
10
1
10
2
10
3
10
4
10
5
o c 5 '
1
tan =
c 100 '
1
tan =
c 5000 '
1
tan =
0 c ( )
Chapter 8 Frequency Response and Bode Plots
8-40 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
b. We use the MATLAB script below for the computations.
theta_g30=(1+30j/5)/((1+30j/100)*(1+30j/5000));...
theta_g50=(1+50j/5)/((1+50j/100)*(1+50j/5000));...
theta_g100=(1+100j/5)/((1+100j/100)*(1+100j/5000));...
theta_g5000=(1+5000j/5)/((1+5000j/100)*(1+5000j/5000));...
printf(' \n');...
fprintf('theta30r = %5.2f deg. \t', angle(theta_g30)*180/pi);...
fprintf('theta50r = %5.2f deg. ', angle(theta_g50)*180/pi);...
fprintf(' \n');...
fprintf('theta100r = %5.2f deg. \t', angle(theta_g100)*180/pi);...
fprintf('theta5000r = %5.2f deg. ', angle(theta_g5000)*180/pi);...
fprintf(' \n')
and we obtain
t he t a 30r = 63. 49 de g. t he t a 50r = 57. 15 de g.
t he t a 100r = 40. 99 de g. t he t a 5000r = - 43. 91 de g.
Thus, the actual values are
c. The Bode plot generated with MATLAB is shown below.
syms s; expand((s+100)*(s+5000))
a ns =
s ^2+5100*s +500000
num=[0 10^5 5*10^5]; den=[1 5.1*10^3 5*10^5];...
w=logspace(0,5,10^4); bode(num,den,w)
G Z j30 ( )
1 j30 5 ' + ( )
1 j30 100 ' + ( ) 1 j30 5000 ' + ( )
------------------------------------------------------------------------------ Z 63.49 = =
G Z j50 ( )
1 j50 5 ' + ( )
1 j50 100 ' + ( ) 1 j50 5000 ' + ( )
------------------------------------------------------------------------------ Z 57.15 = =
G Z j100 ( )
1 j100 5 ' + ( )
1 j100 100 ' + ( ) 1 j100 5000 ' + ( )
------------------------------------------------------------------------------------ Z 40.99 = =
G Z j5000 ( )
1 j5000 5 ' + ( )
1 j5000 100 ' + ( ) 1 j5000 5000 ' + ( )
------------------------------------------------------------------------------------------ Z 43.91 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-41
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
3. a.
The equivalent circuit is shown below.
By the voltage division expression,
and
(1)
b. From (1) with ,
(2)
From (8.53),
s domain
+
-
V
in
s ( )
1
25 s '
0.25s
+
-
V
out
s ( )
V
out
s ( )
1 25 s ' +
0.25s 1 25 s ' + +
----------------------------------------- V
in
s ( ) =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
s 25 +
0.25s
2
s 25 + +
-------------------------------------
4 s 25 + ( )
s
2
4s 100 + +
-------------------------------- = = =
s jc =
G jc ( )
4 jc 25 + ( )
c
2
4jc 100 + +
----------------------------------------- =
Chapter 8 Frequency Response and Bode Plots
8-42 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(3)
and from (1) and (3) , , and , .
Following the procedure of page 8-26 we let . The numerator of (2) is a
linear factor and thus we express it as . Then (2) is written as
or
(4)
The amplitude of in is
(5)
The asymptote of the first term on the right side of (5) has a corner frequency of and
rises with slope of . The second term has a corner frequency of and
rises with slope of . The amplitude plot is shown below.
c. The plot above indicates that the circuit is a low-pass filter and the cutoff frequency
occurs at approximately .
G s ( )
C
s
2
2c
n
s c
n
2
+ +
---------------------------------------- =
c
n
2
100 = c
n
10 = 2c
n
4 = 0.2 =
u c c
n
' c 10 ' = =
100 1 jc 25 ' + ( )
G jc ( )
100 1 jc 25 ' + ( )
100 c
2
100 ' 4jc 100 ' 100 100 ' + + ( )
----------------------------------------------------------------------------------------------
1 jc 25 ' + ( )
1 c 10 ' ( )
2
j0.4 10 ' +
-------------------------------------------------------- = =
G jc ( )
1 jc 25 ' + 0 Z
1 c 10 ' ( )
2
j0.4c 10 ' + o Z
------------------------------------------------------------------------ =
G jc ( ) dB
20 G jc ( ) log 20 1 jc 25 ' + log 20 1 c 10 ' ( )
2
j0.4c 10 ' + [ ] log =
25 r s '
20 dB decade ' 10 r s '
40 dB decade '
-80
-60
-40
-20
0
20
40
60
80
10
1
10
0
10
1
10
2
10
3
10
4
3 dB at c
c
13 r s ' =
20 1 jc 25 ' + log
20 G jc ( ) log
20 1 c 10 ' ( )
2
j0.4c 10 ' + [ ] log
3 dB
c
c
13 r s '
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-43
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
d. The actual cutoff frequency occurs where
At this frequency (2) is written as
and considering its magnitude we obtain
We will use MATLAB to find the four roots of this equation.
syms w; solve(w^4-216*w^2-10000)
a ns =
[ 2*( 27+1354^( 1/ 2) ) ^( 1/ 2) ] [ - 2*( 27+1354^( 1/ 2) ) ^( 1/ 2) ]
[ 2*( 27- 1354^( 1/ 2) ) ^( 1/ 2) ] [ - 2*( 27- 1354^( 1/ 2) ) ^( 1/ 2) ]
w1=2*(27+1354^(1/2))^(1/2)
w1 =
15. 9746
w2=-2*(27+1354^(1/2))^(1/2)
w2 =
- 15. 9746
w3=2*(27-1354^(1/2))^(1/2)
w3 =
0. 0000 + 6. 2599i
w4=-2*(27-1354^(1/2))^(1/2)
w4 =
G jc
c
( ) G jc ( )
max
2 ' 1 2 ( ) ' 0.70 = = =
G jc
c
( )
100 4jc
C
+
100 c
C

2
( ) 4jc +
------------------------------------------ =
100
2
4c
C
( )
2
+
100 c
C

2
( )
2
4c
C
( )
2
+
-----------------------------------------------------------
1
2
------- =
2 100
2
4c
C
( )
2
+ [ ] 100 c
C

2
( )
2
4c
C
( )
2
+ =
20000 32c
C
2
+ 10000 200c
C
2
c
C
4
16c
C
2
+ + =
c
C
4
216c
C
2
10000 0 =
Chapter 8 Frequency Response and Bode Plots
8-44 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- 0. 0000 - 6. 2599i
From these four roots we accept only the first, that is,
e. From (4)
and
For a first order zero or pole not at the origin, the straight line phase angle plot approxima-
tions are as follows:
I. For frequencies less than one tenth the corner frequency we assume that the phase angle
is zero. For this exercise the corner frequency of is and thus for
the phase angle is zero as shown on the Bode plot below.
II For frequencies ten times or greater than the corner frequency, the phase angle is
approximately . The numerator phase angle is zero at one tenth the corner
frequency, it is at the corner frequency, and for frequencies ten times or greater
c
C
16 r s ' =
0 c 25 ' ( )
1
tan =
o
0.4c 10 '
1 c 10 ' ( )
2

------------------------------ =
0 c ( ) c
n
25 r s ' =
1 c 2.5 r s ' s s
-180
-135
-90
-45
0
45
90
135
180
P
h
a
s
e

a
n
g
l
e

d
e
g
r
e
e
s
(
)
c r s ' ( )
10
1
10
0
10
1
10
2
10
3
10
4
0 c ( )
o c ( )
G jc ( ) Z
0 c
n
( ) 25 r s ' =
c
n
( ) 10 r s ' =
90 0 c ( )
45 90
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 8-45
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
the corner frequency. For this exercise, in the interval the phase angle
is zero at and rises to at .
III As shown in Figure 8.20, for complex poles the phase angle is zero at zero frequency,
at the corner frequency and approaches as the frequency becomes large.
The phase angle asymptotes are shown on the plot of the previous page.
f. From the plot of the previous page we observe that the phase angle at the cutoff frequency
is approximately
g. The exact phase angle at the cutoff frequency is found from (1) with .
We need not simplify this expression; we will use the MATLAB script below.
g16=(64j+100)/((16j)^2+64j+100); angle(g16)*180/pi
a ns =
- 125. 0746
This value is about twice as that we observed from the asymptotic plot of the previous
page. Errors such as this occur because of the high non-linearity between frequency inter-
vals. Therefore, we should use the straight line asymptotes only to observe the shape of the
phase angle. It is best to use MATLAB as shown below.
num=[0 4 100]; den=[1 4 100]; w=logspace(0,2,1000);bode(num,den,w)
2.5 c 250 r s ' s s
2.5 r s ' 90 250 r s '
90 180
63
c
c
16 r s ' = s j16 =
G j16 ( )
4 j16 25 + ( )
j16 ( )
2
4 j16 ( ) 100 + +
----------------------------------------------------- =
Chapter 8 Frequency Response and Bode Plots
8-46 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-1
Copyright Orchard Publications
Chapter 9
Self and Mutual Inductances - Transformers
his chapter begins with the interactions between electric circuits and changing magnetic
fields. It defines self and mutual inductances, flux linkages, induced voltages, the dot con-
vention, Lenzs law, and magnetic coupling. It concludes with a detailed discussion on trans-
formers.
9.1 Self-Inductance
About 1830, Joseph Henry, while working at the university which is now known as Princeton,
found that electric current flowing in a circuit has a property analogous to mechanical momentum
which is a measure of the motion of a body and it is equal to the product of its mass and velocity,
i.e., . In electric circuits this property is sometimes referred to as the electrokinetic momentum
and it is equal to the product of where is the current analogous to velocity and the self-induc-
tance is analogous to the mass . About the same time, Michael Faraday visualized this prop-
erty in a magnetic field in space around a current carrying conductor. This electrokinetic momen-
tum is denoted by the symbol , that is,
(9.1)
Newtons second law states that the force necessary to change the velocity of a body with mass
is equal to the rate of change of the momentum, i.e.,
(9.2)
where is the acceleration. The analogous electrical relation says that the voltage necessary to
produce a change of current in an inductive circuit is equal to the rate of change of electrokinetic
momentum, i.e,
(9.3)
9.2 The Nature of Inductance
Inductance is associated with the magnetic field which is always present when there is an electric
current. Thus when current flows in an electric circuit, the conductors (wires) connecting the
devices in the circuit are surrounded by a magnetic field. Figure 9.1 shows a simple loop of wire
T
Mv
Li i
L M
/
/ Li =
M
F
d
dt
----- Mv ( ) M
dv
dt
------ Ma = = =
a v
v
d
dt
----- Li ( ) L
di
dt
----- = =




Chapter 9 Self and Mutual Inductances - Transformers
9-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and its magnetic field which is represented by the small loops. The direction of the magnetic field
(not shown) can be determined by the left-hand rule if conventional current flow is assumed, or
by the right-hand rule if electron current flow is assumed. The magnetic field loops are circular in
form and are called lines of magnetic flux. The unit of magnetic flux is the weber (Wb).
Figure 9.1. Magnetic field around a current carrying wire
In a loosely wound coil of wire such as the one shown in Figure 9.2, the current through the
wound coil produces a denser magnetic field and many of the magnetic lines link the coil several
times.
Figure 9.2. Magnetic field around a current carrying wound coil
The magnetic flux is denoted as and, if there are turns and we assume that the flux passes
through each turn, the total flux denoted as is called flux linkage. Then,
(9.4)
By definition, a linear inductor one in which the flux linkage is proportional to the current
through it, that is,
(9.5)
where the constant of proportionality is called inductance in webers per ampere.
We now recall Faradays law of electromagnetic induction which states that
(9.6)
and from (9.3) and (9.5),
(9.7)
N
/
/ N =
/ Li =
L
v
d/
dt
------ =
v L
di
dt
---- - =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-3
Copyright Orchard Publications
Lenzs Law
9.3 Lenzs Law
Heinrich F. E. Lenz was a German scientist who, without knowledge of the work of Faraday and
Henry, duplicated many of their discoveries nearly simultaneously. The law which goes by his
name, is a useful rule for predicting the direction of an induced current. Lenzs law states that:
Whenever there is a change in the amount of magnetic flux linking an electric circuit, an induced
voltage of value directly proportional to the time rate of change of flux linkages is set up tending
to produce a current in such a direction as to oppose the change in flux.
To understand Lenzs law, let us consider the transformer shown in Figure 9.3.
Figure 9.3. Basic transformer construction
Here, we assume that the current in the primary winding has the direction shown and it produces
the flux in the direction shown in Figure 9.3 by the arrow below the dotted line. Suppose that
this flux is decreasing. Then in the secondary winding there will be a voltage induced whose cur-
rent will be in a direction to increase the flux. In other words, the current produced by the
induced voltage will tend to prevent any decrease in flux. Conversely, if the flux produced by the
primary winding in increasing, the induced voltage in the secondary will produce a current in a
direction which will oppose an increase in flux.
9.4 Mutually Coupled Coils
Consider the inductor (coil) shown in Figure 9.4.
Figure 9.4. Magnetic lines linking a coil
v
i

N
1
i
1
L
1
v
1
+
-
Chapter 9 Self and Mutual Inductances - Transformers
9-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
There are many magnetic lines of flux linking the coil with turns but for simplicity, only
two are shown in Figure 9.4. The current produces a magnetic flux . Then by (9.4) and
(9.5), we obtain
(9.8)
and by Faradays law of (9.6), in terms of the self-inductance ,
(9.9)
Next, suppose another coil with turns is brought near the vicinity of coil and some lines
of flux are also linking coil as shown in Figure 9.5.
Figure 9.5. Lines of flux linking two coils
It is convenient to express the flux as the sum of two fluxes and , that is,
(9.10)
where the linkage flux is the flux which links coil only and not coil , and the mutual flux
is the flux which links both coils and . We have assumed that the linkage and mutual
fluxes and link all turns of coil and the mutual flux links all turns of coil .
The arrangement above forms an elementary transformer where coil is called the primary wind-
ing and coil the secondary winding.
In a linear transformer the mutual flux is proportional to the primary winding current and
since there is no current in the secondary winding, the flux linkage in the secondary winding is by
(9.8),
L
1
N
1
i
1

11
/
1
N
1

11
L
1
i
1
= =
L
1
v
1
d/
1
dt
-------- N
1
d
11
dt
----------- L
1
di
1
dt
------- = = =
L
2
N
2
L
1
L
2
N
1
i
1
L
1
L
2
v
1
+
-
N
2
i
2
= 0

L1

21

11

L1

21

11

L1

21
+ =

L1
L
1
L
2

21
L
1
L
2

L1

21
L
1

21
L
2
L
1
L
2

21
i
1
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-5
Copyright Orchard Publications
Mutually Coupled Coils
(9.11)
where is the mutual inductance (in Henries) and thus the open-circuit secondary winding
voltage is
(9.12)
In summary, when there is no current in the secondary winding the voltages are
(9.13)
Next, we will consider the case where there is a voltage in the secondary winding producing cur-
rent which in turn produces flux as shown in Figure 9.6.
Figure 9.6. Flux in secondary winding
Then in analogy with (9.8) and (9.9)
(9.14)
and by Faradays law in terms of the self-inductance
(9.15)
If another coil with turns is brought near the vicinity of coil , some lines of flux are also
linking coil as shown in Figure 9.7.
/
2
N
2

21
M
21
i
1
= =
M
21
v
2
v
2
d/
2
dt
-------- N
2
d
21
dt
----------- M
21
di
1
dt
------- = = =
v
1
L
1
di
1
dt
------- = and v
2
M
21
di
1
dt
------- =
if i
1
0 and i
2
0 =
i
2

22
N
2
i
2
L
2
v
2
+
-
/
2
N
2

22
L
2
i
2
= =
L
2
v
2
d/
2
dt
-------- N
2
d
22
dt
----------- L
2
di
2
dt
------- = = =
L
1
N
1
L
2
L
1
Chapter 9 Self and Mutual Inductances - Transformers
9-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.7. Lines of flux linking open primary coil
Following the same procedure as above, we express the flux as the sum of two fluxes and
, that is,
(9.16)
where the linkage flux is the flux which links coil only and not coil , and the mutual flux
is the flux which links both coils and . As before, we have assumed that the linkage and
mutual fluxes link all turns of coil and the mutual flux links all turns of coil .
Since there is no current in the primary winding, the flux linkage in the primary winding is
(9.17)
where is the mutual inductance (in Henries) and thus the open-circuit primary winding volt-
age is
(9.18)
In summary, when there is no current in the primary winding, the voltages are
(9.19)
We will see later that
(9.20)
The last possible arrangement is shown in Figure 9.8 where and also .
N
2
i
2
L
2
L
1
v
2
+
-
N
1
i
1
= 0

L2

12

22

L2

12

22

L2

12
+ =

L2
L
2
L
1

12
L
2
L
1
L
2
L
1
/
1
N
1

12
M
12
i
2
= =
M
12
v
1
v
1
d/
1
dt
-------- N
1
d
12
dt
----------- M
12
di
2
dt
------- = = =
v
2
L
2
di
2
dt
------- = and v
1
M
12
di
2
dt
------- =
if i
1
0 = and i
2
0
M
12
M
21
M = =
i
1
0 i
2
0
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-7
Copyright Orchard Publications
Mutually Coupled Coils
Figure 9.8. Flux linkages when both primary and secondary currents are present
The total flux linking coil is
(9.21)
and the total flux linking coil is
(9.22)
and since , we express (9.21) and (9.22) as
(9.23)
and
(9.24)
Differentiating (9.23) and (9.24) and using (9.13), (9.14), (9.19) and (9.20) we obtain:
(9.25)
In (9.25) the voltage terms
are referred to as self-induced voltages and the terms
are referred to as mutual voltages.
N
1
i
1
L
1
L
2
v
2
+
-
N
2

L1

21
+
-

L2

12
v
1
i
2

1
L
1

1

L1

21

12
+ +
11

12
+ = =

2
L
2

2

L2

12

21
+ +
21

22
+ = =
/ N =
/
1
N
1

11
N
1

12
+ =
/
2
N
2

21
N
2

22
+ =
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + =
L
1
di
1
dt
------- and L
2
di
2
dt
-------
M
di
1
dt
------- and M
di
2
dt
-------
Chapter 9 Self and Mutual Inductances - Transformers
9-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
In our previous studies we used the passive sign convention as a basis to denote the polarity (+)
and (-) of voltages and powers. While this convention can be used with the self-induced voltages,
it cannot be used with mutual voltages because there are four terminals involved. Instead, the
polarity of the mutual voltages is denoted by the dot convention. To understand this convention,
we first consider the transformer circuit designations shown in Figures 9.9(a) and 9.9(b) where
the dots are placed on the upper terminals and the lower terminals respectively.
Figure 9.9. Arrangements where the mutual voltage has a positive sign
These designations indicate the condition that a current entering the dotted (undotted) termi-
nal of one coil induce a voltage across the other coil with positive polarity at the dotted (undot-
ted) terminal of the other coil. Thus, the mutual voltage term has a positive sign. Following the
same rule we see that in the circuits of Figure 9.10 (a) and 9.10(b) the mutual voltage has a nega-
tive sign.
Figure 9.10. Arrangements where the mutual voltage has a negative sign
Example 9.1
For the circuit of Figure 9.11 find and if
a. and
b. and
c. and
-
-
v
2 L
1
L
2
M
-
-
v
1
i
2
i
1
(a)
i
2
v
2
M
di
1
dt
------- =
for both
networks
-
-
v
2 L
1
L
2
M
-
-
v
1
i
1
(b)
i
-
-
v
2 L
1
L
2
M
-
-
v
1
i
2
i
1
(a)
i
2
v
2
M
di
1
dt
------- =
for both
networks
-
-
v
2 L
1
L
2
M
-
-
v
1
i
1
(b)
v
1
v
2
i
1
50 mA = i
2
25 mA =
i
1
0 = i
2
20 377t sin mA =
i
1
15 377t cos mA = i
2
40 377t 60 + ( ) sin mA =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-9
Copyright Orchard Publications
Mutually Coupled Coils
Figure 9.11. Circuit for Example 9.1
Solution:
a. Since both currents and are constants, their derivatives are zero, i.e.,
and thus
b. The dot convention in the circuit of Figure 9.11 shows that the mutual voltage terms are posi-
tive and thus
c.
Example 9.2
For the circuit of Figure 9.12 find the open-circuit voltage for given that .
-
-
v
2 L
1
L
2
M = 20 mH
-
-
v
1
i
2
i
1
50 mH 50 mH
i
1
i
2
di
1
dt
-------
di
2
dt
------- 0 = =
v
1
v
2
0 = =
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + 0.05 0 20 10
3
+ 20 377 377t cos = =
150.8 377t mV cos =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + 20 10
3
0 0.05 + 20 377 377t cos = =
377 377t mV cos =
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + 0.05 15 377 377t sin ( ) 0.02 40 377 377t 60 + ( ) cos + = =
282.75 377t sin 301.6 377t 60 + ( ) mV cos + =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + 0.02 15 377 377t sin ( ) 0.05 40 377 377t 60 + ( ) cos + = =
113.1 377t sin 754 377t 60 + ( ) mV cos + =
v
2
t 0 > i
1
0
-
( ) 0 =
Chapter 9 Self and Mutual Inductances - Transformers
9-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.12. Circuit for Example 9.2
Solution:
For
Also,
where is the forced response component of and it is obtained from
and is the natural response component of and it is obtained from
Then,
and with the initial condition
we obtain
Therefore,
and in accordance with the dot convention,
-
-
-
-
+
-
t 0 =
5 O
50 mH
L
2
R
L
1
v
1
v
2
i
1
i
2
M 20 mH =
50 mH
24 V
t 0 >
L
di
1
dt
------- Ri
1
+ 24 =
0.05
di
1
dt
------- 5i
1
+ 24 =
di
1
dt
------- 100i
1
+ 480 =
i
1
i
f
i
n
+ =
i
f
i
1
i
f
24
5
------ 4.8 A = =
i
n
i
1
i
n
Ae
Rt L '
Ae
100t
= =
i
1
i
f
i
n
+ 4.8 Ae
100t
+ = =
i
1
0
+
( ) i
1
0
-
( ) 0 4.8 Ae
0
+ = = =
A 4.8 =
i
1
i
f
i
n
+ 4.8 4.8 e
100t
= =
v
2
M
di
1
dt
------- 0.02 480e
100t
( ) 9.6e
100t
= = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-11
Copyright Orchard Publications
Establishing Polarity Markings
9.5 Establishing Polarity Markings
In our previous discussion and in Examples 9.1 and 9.2, the polarity markings (dots) were given.
There are cases, however, when these are not known. The following method is generally used to
establish the polarity marking in accordance with the dot convention.
Consider the transformer and its circuit symbol shown in Figure 9.13.
Figure 9.13. Establishing polarity markings
We recall that the direction of the flux can be found by the right-hand rule which states that if
the fingers of the right hand encircle a winding in the direction of the current, the thumb indi-
cates the direction of the flux. Let us place a dot at the upper end of and assume that the cur-
rent enters the top end thereby producing a flux in the clockwise direction shown. Next, we
want the current in to enter the end which will produce a flux in the same direction, in this
case, clockwise. This will be accomplished if the current in enters the lower end as shown
and thus we place a dot at that end.
Example 9.3
For the transformer shown in Figure 9.14, find and .
Solution:
Let us first establish the dot positions as discussed above. Since the current has a negative sign,
it leaves the upper terminal, or equivalently, enters the lower terminal and thus we enter a dot at
the lower terminal. The dotted circuit now is as shown in Figure 9.15.
i

L
1
L
2
M
L
1
L
2
i
2

L
1
i
1
L
2
i
2
L
2
v
1
v
2
i
2
Chapter 9 Self and Mutual Inductances - Transformers
9-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.14. Network for Example 9.3
Figure 9.15. Figure for Example 9.3 with dotted markings
The current enters the upper terminal on the left side and leaves the upper terminal on the
right side, the fluxes oppose each other. Therefore,
Example 9.4
For the network in Figure 9.16 find the voltage ratio .
*
Solution:
The dots are given to us as shown. Now, we arbitrarily assign currents and as shown in Fig-
ure 9.17 and we write mesh equations for each mesh.
* Henceforth we will be using bolded capital letters to denote phasor quantities.
+
-
+
-
i
1
2 377t A sin =
i
2
5 377 cos t A =
v
1 v
2
M 2 H =
L
2
L
1
3 H 4 H

+
-
+
-
i
1
2 377t A sin =
i
2
5 377 cos t A =
v
1 v
2
M 2 H =
L
2
L
1
3 H 4 H

i
1
i
2
v
1
L
1
di
1
dt
------- M
di
2
dt
------- 2262 377t cos 3770 377t V sin = =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + 1508 377t cos 7540 377t V sin + = =
V
2
V
1
'
I
1
I
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-13
Copyright Orchard Publications
Establishing Polarity Markings
Figure 9.16. Circuit for Example 9.4
Figure 9.17. Mesh currents for the circuit of Example 9.4
With this current assignments leaves the dotted terminal of the right mesh and therefore the
mutual voltage has a negative sign. Then,
Mesh 1:
or
(9.26)
Mesh 2:
or
(9.27)
We will find the ratio using the MATLAB script below where
Z=[0.5+18.85j -18.85j; -18.85j 500+37.7j]; V=[120 0]'; I=Z\V;...
fprintf(' \n'); fprintf('V1 = %7.3f V \t', abs(18.85j*I(1))); fprintf('V2 = %7.3f V \t', abs(500*I(2)));...
fprintf('Ratio V2/V1 = %7.3f \t',abs((500*I(2))/(18.85j*I(1))))
V1 = 120. 093 V V2 = 119. 753 V Ra t i o V2/ V1 = 0. 997
That is,
(9.28)
-
-
+
-
V
in
120 0 Z =
R
0.5 O
500 O
R
LD
V
2
M 50 mH =
50 mH 100 mH
c 377 r s ' =
L
1
L
2
-
-
V
1
-
-
+
-
V
in
120 0 Z =
R
1
0.5 O
500 O
R
LD
V
2
M 50 mH =
50 mH
100 mH
c 377 r s ' =
L
1
L
2
I
1 I
2
V
1
-
-
I
2
R
1
I
1
jcL
1
I
1
jcMI
2
+ V
in
=
0.5 j18.85 + ( )I
1
j18.85I
2
120 0 Z =
jcMI
1
jcL
2
I
2
R
LOAD
I
2
+ + 0 =
j18.85I
1
1000 j37.7 + ( )I
2
+ 0 =
V
2
V
1
'
V
1
jcL
1
I
1
j18.85I
1
= =
V
2
V
1
------
119.75
120.09
---------------- 0.997 = =
Chapter 9 Self and Mutual Inductances - Transformers
9-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and thus the magnitude of is practically the same as the magnitude of . However,
we suspect that will be out of phase with . We can find the phase of by adding the
following statement to the MATLAB script above.
fprintf('Phase V2= %6.2f deg', angle(500*I(2))*180/pi)
Pha s e V2= - 0. 64 de g
This is a very small phase difference from the phase of and thus we see that both the magni-
tude and phase of are essentially the same as that of .
If we increase the load resistance to we will find that again the magnitude and phase of
are essentially the same as that of . Therefore, the transformer of this example is an iso-
lation transformer, that is, it isolates the load from the source and the value of appears across
the load even though the load changes. An isolation transformer is also referred to as a 1:1 trans-
former.
If in a transformer the secondary winding voltage is considerably higher than the input voltage,
the transformer is referred to as a step-up transformer. Conversely, if the secondary winding volt-
age is considerably lower than the input voltage, the transformer is referred to as a step-down
transformer.
9.6 Energy Stored in a Pair of Mutually Coupled Inductors
We know that the energy stored in an inductor is
(9.29)
In the transformer circuits shown in Figure 9.18, the stored energy is the sum of the energies sup-
plied to the primary and secondary terminals. From (9.25),
(9.30)
V
LD
V
2
= V
in
V
LD
V
in
V
LD
V
in
V
LOAD
V
in
R
LD
1 KO
V
LOAD
V
in
V
in
W t ( )
1
2
---Li
2
t ( ) =
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-15
Copyright Orchard Publications
Energy Stored in a Pair of Mutually Coupled Inductors
Figure 9.18. Transformer circuits for computation of the energy
and after replacing with and in the appropriate terms, the instantaneous power deliv-
ered to these terminals are:
(9.31)
Next, let us suppose that at some reference time , both currents and are zero, that is,
(9.32)
In this case, there is no energy stored, and thus
(9.33)
Now, let us assume that at time , the current is increased to some finite value, while is still
zero. In other words, we let
(9.34)
and
(9.35)
Then, the energy accumulated at this time is
(9.36)
and since , then and also . Therefore, from (9.31) and (9.36) we
obtain
(9.37)
Finally, let us at some later time , maintain at its previous value, and increase to a finite
value, that is, we let
-
-
v
2 L
1
L
2
-
-
v
1
i
2
i
1
(a)
-
-
v
2 L
1
L
2
-
-
v
1
i
2
i
1
(b)
M
M
v
2
M
di
1
dt
------- =
for both
circuits
M M
12
M
21
p
1
v
1
i
1
= L
1
di
1
dt
------- M
12
di
2
dt
------- +


i
1
=
p
2
v
2
i
2
= M
21
di
1
dt
------- L
2
di
2
dt
------- +


i
2
=
t
0
i
1
i
2
i
1
t
0
( ) i
2
t
0
( ) 0 = =
W t
0
( ) 0 =
t
1
i
1
i
2
i
1
t
1
( ) I
1
=
i
2
t
1
( ) 0 =
W
1
p
1
p
2
+ ( ) t d
t
0
t
1

=
i
2
t
1
( ) 0 = p
2
t
1
( ) 0 = di
2
dt ' 0 =
W
1
L
1
i
1
i
1
d
dt
------- t d
t
0
t
1

L
1
i
1
i
1
d
t
0
t
1

1
2
---L
1
I
1
2
= = =
t
2
i
1
i
2
Chapter 9 Self and Mutual Inductances - Transformers
9-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(9.38)
and
(9.39)
During this time interval, and using (9.31) the energy accumulated is
(9.40)
Therefore, the energy stored in the transformer from to is from (9.37) and (9.40),
(9.41)
Now, let us reverse the order in which we increase and . That is, in the time interval
, we increase so that while keeping . Then, at , we keep
while we increase so that . Using the same steps in equations (9.33) through
(9.40), we obtain
(9.42)
Since relations (9.41) and (9.42) represent the same energy, we must have
(9.43)
and thus we can express (9.41) and (9.42) as
(9.44)
Relation (9.44) was derived with the dot markings of Figure 9.18 which is repeated below as Fig-
ure 9.19 for convenience.
Figure 9.19. Transformer circuits of Figure 9.18
i
1
t
2
( ) I
1
=
i
2
t
2
( ) I
2
=
di
1
dt ' 0 =
W
2
p
1
p
2
+ ( ) t d
t
1
t
2

= M
12
I
1
di
2
dt
------- L
2
i
2
di
2
dt
------- +


t d
t
1
t
2

=
M
12
I
1
L
2
i
2
+ ( )di
2
t
1
t
2

M
12
I
1
I
2
1
2
---L
2
I
2
2
+ = =
t
0
t
2
W
t
0
t
2 1
2
---L
1
I
1
2
M
12
I
1
I
2
1
2
---L
2
I
2
2
+ + =
i
1
i
2
t
0
t t
1
s s i
2
i
2
t
1
( ) I
2
= i
1
0 = t t
2
=
i
2
I
2
= i
1
i
1
t
2
( ) I
1
=
W
t
0
t
2 1
2
---L
1
I
1
2
M
21
I
1
I
2
1
2
---L
2
I
2
2
+ + =
M
12
M
21
M = =
W
t
0
t
2 1
2
---L
1
I
1
2
MI
1
I
2
1
2
-- -L
2
I
2
2
+ + =
-
-
v
2
L
1
L
2
-
-
v
1
i
2
i
1
(a)
-
-
v
2
L
1
L
2
-
-
v
1
i
2
i
1
(b)
M
v
2
M
di
1
dt
------- =
for both
circuits
M
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-17
Copyright Orchard Publications
Energy Stored in a Pair of Mutually Coupled Inductors
However, if we repeat the above procedure for the dot markings of the circuit of network 9.20 we
will find that
Figure 9.20. Transformer circuits with different dot arrangement from Figure 9.19
(9.45)
and relations (9.44) and (9.45) can be combined to a single relation as
(9.46)
where the sign of is positive if both currents enter the dotted (or undotted) terminals, and it is
negative if one current enters the dotted (or undotted) terminal while the other enters the undot-
ted (or dotted) terminal.
The currents and are assumed constants and represent the final values of the instantaneous
values of the currents and respectively. We may express (9.46) in terms of the instantaneous
currents as
(9.47)
Obviously, the energy on the left side of (9.47) cannot be negative for any values of , , , ,
or . Let us assume first that and are either both positive or both negative in which case
their product is positive. Then, from (9.47) we see that the energy would be negative if
(9.48)
and the magnitude of the is greater than the sum of the other two terms on the right side of
that expression. To derive an expression relating the mutual inductance M to the self-induc-
tances and , we add and subtract the term on the right side of (9.47), and we
complete the square. This expression then becomes
-
-
v
2
L
1
L
2
-
-
v
1
i
2
i
1
(a)
-
-
v
2
L
1
L
2
-
-
v
1
i
2
i
1
(b)
M
v
2
M
di
1
dt
------- =
for both
circuits
M
W
t
0
t
2 1
2
---L
1
I
1
2
M I
1
I
2
1
2
-- -L
2
I
2
2
+ =
W
t
0
t
2 1
2
---L
1
I
1
2
M I
1
I
2
1
2
-- -L
2
I
2
2
+ =
M
I
1
I
2
i
1
i
2
W
t
0
t
2 1
2
---L
1
i
1
2
M i
1
i
2
1
2
---L
2
i
2
2
+ =
i
1
i
2
L
1
L
2
M i
1
i
2
W
t
0
t
2 1
2
---L
1
i
1
2 1
2
---L
2
i
2
2
Mi
1
i
2
+ =
Mi
1
i
2
L
1
L
2
L
1
L
2
i
1
i
2
Chapter 9 Self and Mutual Inductances - Transformers
9-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(9.49)
We now observe that the first term on the right side of (9.49) could be very small and could
approach zero, but it can never be negative. Therefore, for the energy to be positive, the second
and third terms on the right side of (9.48) must be such that or
(9.50)
Expression (9.50) indicates that the mutual inductance can never be larger than the geometric
mean of the inductances of the two coils between which the mutual inductance exists.
Note: The inequality in (9.49) was derived with the assumption that and have the same
algebraic sign. If their signs are opposite, we select the positive sign of (9.47) and we find that
(9.50) holds also for this case.
The ratio is known as the coefficient of coupling and it is denoted with the letter , that
is,
(9.51)
Obviously must have a value between zero and unity, that is, . Physically, provides a
measure of the proximity of the primary and secondary coils. If the coils are far apart, we say that
they are loose-coupled and has a small value, typically between and . For close-coupled
circuits, has a value of about . Power transformers have a between and . The
value of is exactly unity only when the two coils are coalesced into a single coil.
Example 9.5
For the transformer of Figure 9.21 compute the energy stored at if:
a. and
b. and
c. and
W
t
0
t
2 1
2
--- L
1
i
1
L
2
i
2
( )
2
L
1
L
2
i
1
i
2
Mi
1
i
2
+ =
L
1
L
2
M
M L
1
L
2
s
i
1
i
2
M L
1
L
2
' k
k
M
L
1
L
2
---------------- =
k 0 k 1 s s k
k 0.01 0.1
k 0.5 k 0.90 0.95
k
t 0 =
i
1
50 mA = i
2
25 mA =
i
1
0 = i
2
20 377t sin mA =
i
1
15 377t cos mA = i
2
40 377t 60 + ( ) sin mA =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-19
Copyright Orchard Publications
Circuits with Linear Transformers
Figure 9.21. Transformer for Example 9.5
Solution:
Since the currents enter the dotted terminals, we use (9.47) with the plus (+) sign for the mutual
inductance term, that is,
(9.52)
Then,
a.
b.
Since and , it follows that
c.
9.7 Circuits with Linear Transformers
A linear transformer is a four-terminal device in which the voltages and currents in the primary
coils are linearly related.
The transformer shown in figure 9.22 a linear transformer. This transformer contains a voltage
source in the primary, a load resistor in the secondary, and the resistors and represent the
resistances of the primary and secondary coils respectively. Moreover, the primary is referenced to
directly to ground, but the secondary is referenced to a DC voltage source and thus it is said
that the secondary of the transformer has a DC isolation.
-
-
v
2
L
1
L
2
M = 20 mH
-
-
v
1
i
2
i
1
50 mH 50 mH
W t ( )
1
2
---L
1
i
1
2
Mi
1
i
2
1
2
---L
2
i
2
2
+ + =
W
t 0 =
0.5 50 10
3
50 10
3
( )
2
20 10
3
50 10
3
25 10
3
+ =
+ 0.5 50 10
3
25 10
3
( )
2
103 10
6
J 103 J = =
i
1
0 = i
2
20 377t sin
t 0 =
0 = =
W
t 0 =
0 =
W
t 0 =
0.5 50 10
3
15 10
3
( )
2
20 10
3
15 10
3
40 10
3
60

( ) sin + =
+ 0.5 50 10
3
40 10
3
60

( ) sin ( )
2
46 10
6
J 46 J = =
R
1
R
2
V
0
Chapter 9 Self and Mutual Inductances - Transformers
9-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.22. Transformer with DC isolation
Application of KVL around the primary and secondary circuits yields the loop equations
*
(9.53)
and we see that the instantaneous values of the voltages and the currents are not affected by the
presence of the DC voltage source since we would have obtained the same equations had we
let .
Example 9.6
For the transformer shown in Figure 9.23, find the total response of for given that
. Use MATLAB to sketch for .
Figure 9.23. Transformer for Example 9.6
Solution:
The total response consists of the summation of the forced and natural responses, that is,
* The mutual inductance terms and have a negative sign since the current is leaving the dotted ter-
minal of the transformer secondary.
-
-
v
2
L
1
L
2
M
v
1
i
2
i
1
-
-
R
1
v
in
R
2
R
LD
v
out
V
0
(DC)
-
-
v
in
R
1
i
1
L
1
di
1
dt
------- M
di
2
dt
------- + =
0 M
di
1
dt
------- L
2
di
2
dt
------- R
2
R
LD
+ ( ) + + =
M
di
2
dt
------- M
di
1
dt
------- i
2
V
0
V
0
0 =
i
2
t 0 >
i
1
0
-
( ) i
2
0
-
( ) 0 = = i
2
0 t 5 s s s
-
-
L
1
L
2
-
-
R
1
v
in
R
2
R
LD
v
out
t=0
24 V DC
100 O 200 O
1 KO
3 H 5 H
I
1
I
2
M 2 H =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-21
Copyright Orchard Publications
Circuits with Linear Transformers
(9.54)
and since the applied voltage is constant (DC), no steady-state (forced) voltage is produced in
the secondary and thus .
For the -domain circuit is shown in Figure 9.24.
Figure 9.24. The -domain circuit for the transformer of Example 9.6 for
The loop equations for this transformer are
(9.55)
Since we are interested only in , we will use Cramers rule.
or
and by partial fraction expansion,
(9.56)
from which
(9.57)
(9.58)
i
2T
i
2f
i
2n
+ =
i
2f
0 =
t 0 > s
-
-
-
-
2s
100 200
24 s '
v
out
s ( )
3s 5s
I
1
s ( )
I
2
s ( )
1000
v
in
s ( )
s t 0 >
3s 100 + ( )I
1
s ( ) 2sI
2
s ( ) 24 s ' =
2sI
1
s ( ) 5s 1200 + ( )I
2
s ( ) + 0 =
I
2
s ( )
I
2
s ( )
3s 100 + 24 s '
2s 0
3s 100 + 2s
2s 5s 1200 +
----------------------------------------------------
48
11s
2
4100s 120000 + +
--------------------------------------------------------
4.36
s
2
372.73s 10909.01 + +
----------------------------------------------------------- = = =
I
2
s ( )
4.36
s 340.71 + ( ) s 32.02 + ( )
--------------------------------------------------------- =
I
2
s ( )
4.36
s 340.71 + ( ) s 32.02 + ( )
--------------------------------------------------------- =
r
1
s 340.71 +
-------------------------
r
2
s 32.02 +
---------------------- + =
r
1
4.36
s 32.02 +
----------------------
s 340.71 =
0.01 = =
r
2
4.36
s 340.71 +
-------------------------
s 32.02 =
0.01 = =
Chapter 9 Self and Mutual Inductances - Transformers
9-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
By substitution into (9.56), we obtain
(9.59)
and taking the Inverse Laplace of (9.59) we obtain
(9.60)
Using the following MATLAB script we obtain the plot shown on Figure 9.25.
t=0: 0.001: 0.2; i2n=0.01.*(exp(-32.02*t)-exp(-340.71.*t)); plot(t,i2n); grid
Figure 9.25. Plot for the secondary current of the transformer of Example 9.6
Example 9.7
For the transformer of Figure 9.26, find the steady-state (forced) response of .
Figure 9.26. Circuit for Example 9.7
I
2
s ( )
0.01
s 32.02 +
----------------------
0.01
s 340.71 +
------------------------- + =
i
2n
0.01 e
32.02t
e
340.71t
( ) =
i
2n
0.01 e
32.02t
e
340.71t
( ) =
v
out
-
-
-
-
10 O
170 377t V cos
v
out
v
in
100 O
2 H
3 H 5 H
0.1 F
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-23
Copyright Orchard Publications
Circuits with Linear Transformers
Solution:
The -domain equivalent circuit is shown in Figure 9.27.
We could use the same procedure as in the previous example, but it is easier to work with the
transfer function .
Figure 9.27. The s-domain equivalent circuit for Example 9.7
The loop equations for the transformer of Figure 9.27 are:
(9.61)
and by Cramers rule,
or
From Figure 9.27 we observe that
(9.62)
and
(9.63)
s
G s ( )
-
-
-
-
10
100
2s
3s
5s
1 0.1s '
V
out
s ( )
V
in
s ( )
I
1
s ( )
I
2
s ( )
170 0 Z V
3s 10 1 0.1s ' + + ( )I
1
s ( ) 2s 1 0.1s ' + ( )I
2
s ( ) V
in
s ( ) =
2s 1 0.1s ' + ( )I
1
s ( ) 5s 100 1 0.1s ' + + ( )I
2
s ( ) + 0 =
I
2
s ( )
3s 10 1 0.1s ' + + ( ) V
in
s ( )
2s 1 0.1s ' + ( ) 0
3s 10 1 0.1s ' + + ( ) 2s 1 0.1s ' + ( )
2s 1 0.1s ' + ( ) 5s 100 1 0.1s ' + + ( )
--------------------------------------------------------------------------------------------------------- =
I
2
s ( )
2s 10 s ' + ( )V
in
s ( )
11s
2
350s 1040 1100 s ' + + +
------------------------------------------------------------------------
2s
2
10 + ( )V
in
s ( )
11s
3
350s
2
1040s 1100 + + +
----------------------------------------------------------------------- = =
0.18s
2
0.91 + ( )V
in
s ( )
s
3
31.82s
2
94.55s 100 + + +
------------------------------------------------------------------- =
V
out
s ( ) 100 I
2
s ( ) 100
0.18s
2
0.91 + ( )V
in
s ( )
s
3
31.82s
2
94.55s 100 + + +
-------------------------------------------------------------------
18s
2
91 + ( )V
in
s ( )
s
3
31.82s
2
94.55s 100 + + +
------------------------------------------------------------------- = = =
G s ( )
V
out
s ( )
V
in
s ( )
------------------
18s
2
91 +
s
3
31.82s
2
94.55s 100 + + +
------------------------------------------------------------------- = =
Chapter 9 Self and Mutual Inductances - Transformers
9-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The input is a sinusoid, that is,
and since we are interested in the steady-state response, we let
and thus
From (9.63) we obtain:
or
(9.64)
and in the -domain,
(9.65)
The expression of (9.65) indicates that the transformer of this example is a step-down trans-
former.
9.8 Reflected Impedance in Transformers
In this section, we will see how the load impedance of the secondary can be reflected into the pri-
mary.
Let us consider the transformer phasor circuit of Figure 9.28. We assume that the resistance of the
primary and secondary coils is negligible.
Figure 9.28. Circuit for the derivation of reflected impedance
By KVL the loops equations in phasor notation are:
(9.66)
or
(9.67)
v
in
170 377t V cos =
s jc j377 = =
V
in
s ( ) V
in
jc ( ) = 170 0 Z =
V
out
jc ( )
2.56 10
6
91 +
j 5.36 10
7
4.52 10
6
j3.56 10
4
+ 100 +
------------------------------------------------------------------------------------------------------------- 170 0 Z
4.35 10
8
0 Z
4.52 10
6
j5.36 10
7

------------------------------------------------------------- = =
V
out
jc ( )
4.35 10
8
180 Z
5.38 10
7
94.82 Z
-------------------------------------------------
43.5 180 Z
5.38 94.82 Z
---------------------------------- 8.09 274.82 Z 8.09 85.18 Z = = = =
t
v
out
t ( ) 8.09 377t 85.18 ( ) cos =
-
-
-
-
M
V
S
V
2
V
1
I
2
I
1
L
1
L
2
V
LD
Z
LD
jcL
1
I
1
jcMI
2
V
S
=
I
2
jcL
1
I
1
V
S

jcM
------------------------------ =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-25
Copyright Orchard Publications
Reflected Impedance in Transformers
and
(9.68)
or
(9.69)
Equating the right sides of (9.67) and (9.69) we obtain:
(9.70)
Solving for we obtain:
(9.71)
and dividing by we obtain the input impedance as
(9.72)
The first term on the right side of (9.72) represents the reactance of the primary. The second term
is a result of the mutual coupling and it is referred to as the reflected impedance. It is denoted as ,
i.e.,
(9.73)
From (9.73), we make two important observations:
1. The reflected impedance does not depend on the dot locations on the transformer. For
instance, if either dot in the transformer of the previous page is placed on the opposite termi-
nal, the sign of the mutual term changes from to . But since varies as , its sign
remains unchanged.
2. Let . Then, we can express (9.73) as
(9.74)
To express (9.74) as the sum of a real and an imaginary component, we multiply both numerator
and denominator by the complex conjugate of the denominator. Then,
(9.75)
jcMI
1
jcL
2
Z
LD
+ ( ) I
2
+ 0 =
I
2
jcMI
1
jcL
2
Z
LOAD
+ ( )
--------------------------------------- =
jcL
1
I
1
V
S

jcM
------------------------------
jcMI
1
jcL
2
Z
LD
+ ( )
--------------------------------- =
V
S
V
S
jcL
1
jcM ( )
2
jcL
2
Z
LD
+ ( )
--------------------------------- I
1
=
V
S
I
1
Z
in
Z
in
V
S
I
1
------ jcL
1
c
2
M
2
jcL
2
Z
LD
+
---------------------------- + = =
Z
R
Z
R
c
2
M
2
jcL
2
Z
LD
+
---------------------------- =
Z
R
M M Z
R
M
2
Z
LD
R
LD
jX
LD
+ =
Z
R
c
2
M
2
jcL
2
R
LD
jX
LD
+ +
----------------------------------------------
c
2
M
2
R
LD
j X
LD
cL
2
+ ( ) +
------------------------------------------------- = =
Z
R
c
2
M
2
R
LD
R
LD
2
X
LD
cL
2
+ ( )
2
+
-------------------------------------------------- j
c
2
M
2
X
LD
cL
2
+ ( )
R
LD
2
X
LD
cL
2
+ ( )
2
+
-------------------------------------------------- =
Chapter 9 Self and Mutual Inductances - Transformers
9-26 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The imaginary part of (9.75) represents the reflected reactance and we see that it is negative.
That is, the reflected reactance is opposite to that of the net reactance of the second-
ary. Therefore, if is a capacitive reactance whose magnitude is less than , or if it is an
inductive reactance, then the reflected reactance is capacitive. However, if is a capacitive
reactance whose magnitude is greater than , the reflected reactance is inductive. In the case
where the magnitude of is capacitive and equal to , the reflected reactance is zero and
the transformer operates at resonant frequency. In this case, the reflected impedance is purely real
since (9.75) reduces to
(9.76)
Example 9.8
In the transformer circuit of Figure 9.29, represents the internal impedance of the voltage
source .
Find:
a.
b.
c.
d.
e.
Figure 9.29. Transformer for Example 9.8
Solution:
a. From (9.72)
X
LD
cL
2
+
X
LD
cL
2
X
LD
cL
2
X
LD
cL
2
Z
R
c
2
M
2
R
LD
--------------- =
Z
S
V
S
Z
in
I
1
I
2
V
1
V
2
200 mH
-
-
-
-
100 mH
V
S
V
2
V
1
I
2
I
1
L
1
L
2
V
LD
Z
LD
Z
S
2 O
300 mH
c 377 r s ' =
V
S
120 0 Z =
Z
LD
10 j
7540
c
------------ O =
Z
in
V
S
I
1
------ jcL
1
c
2
M
2
jcL
2
Z
LD
+
---------------------------- + = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-27
Copyright Orchard Publications
The Ideal Transformer
and we must add to it. Therefore, for the transformer of this example,
b.
c. By KVL
or
d.
e.
9.9 The Ideal Transformer
An ideal transformer is one in which the coefficient of coupling is almost unity, and both the pri-
mary and secondary inductive reactances are very large in comparison with the load impedances.
The primary and secondary coils have many turns wound around a laminated iron-core and are
arranged so that the entire flux links all the turns of both coils.
An important parameter of an ideal transformer is the turns ratio which is defined as the ratio of
the number of turns on the secondary, , to the number of turns of the primary , that is,
(9.77)
The flux produced in a winding of a transformer due to a current in that winding is proportional to
the product of the current and the number of turns on the winding. Therefore, letting be a con-
stant of proportionality which depends on the physical properties of the transformer, for the pri-
mary and secondary windings we have:
Z
s
2 O =
Z
in
jcL
1
c
2
M
2
jcL
2
Z
LD
+
---------------------------- 2 + + j75.4
142129 0.01
j113.1 10 j20 +
----------------------------------------- 2 + + = =
3.62 j60.31 + 60.42 86.56 O Z = =
I
1
V
S
Z
in
-------
120 0 Z
60.42 86.56 O Z
----------------------------------------- 1.98 86.56 A Z = = =
jcMI
1
jcL
2
Z
LD
+ ( ) I
2
+ 0 =
I
2
jcM
jcL
2
Z
LD
+
----------------------------I
1
j37.7
j113.1 10 j20 +
-----------------------------------------1.98 86.56 Z
74.88 3.04 Z
93.64 83.87 Z
---------------------------------- 0.8 80.83 Z A = = = =
V
1
jcL
1
I
1
jcMI
2
75.4 90 1.98 86.56 Z Z 37.7 90 0.8 80.83 Z Z = =
149.29 3.04 Z 30.15 9.17 Z 149.08 j7.92 30.15 j4.8 + 118.9 1.5 Z V = = =
V
2
Z
LD
I
2
10 j20 ( )0.8 80.83 Z 22.36 63.43 Z 0.8 80.83 Z 17.89 144.26V Z = = = =
a
N
2
N
1
a
N
2
N
1
------ =
o
Chapter 9 Self and Mutual Inductances - Transformers
9-28 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(9.78)
The constant is the same for the primary and secondary windings because we have assumed
that the same flux links both coils and thus both flux paths are identical. We recall from (9.8) and
(9.14) that
(9.79)
Then, from (9.78) and (9.79) we obtain:
(9.80)
or
(9.81)
Therefore,
(9.82)
From (9.69),
(9.83)
or
(9.84)
and since , (9.84) reduces to
(9.85)
For the case of unity coupling,
(9.86)
or
(9.87)
and by substitution of (9.87) into (9.85) we obtain:
(9.88)
o
11
oN
1
i
1
=
o
22
oN
2
i
2
=
o
/
1
N
1

11
L
1
i
1
= =
/
2
N
2

22
L
2
i
2
= =
N
1

11
L
1
i
1
oN
1
2
i
1
= =
N
2

22
L
2
i
2
oN
2
2
i
2
= =
L
1
oN
1
2
=
L
2
oN
2
2
=
L
2
L
1
------
N
2
N
1
------


2
a
2
= =
I
2
jcMI
1
jcL
2
Z
LD
+ ( )
--------------------------------- =
I
2
I
1
----
jcM
jcL
2
Z
LD
+ ( )
--------------------------------- =
jcL
2
Z
LD

I
2
I
1
----
jcM
jcL
2
------------
M
L
2
------ = =
k
M
L
1
L
2
---------------- 1 = =
M L
1
L
2
=
I
2
I
1
----
L
1
L
2
L
2
-----------------
L
1
L
2
------ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-29
Copyright Orchard Publications
The Ideal Transformer
From (9.82) and (9.88), we obtain the important relation
(9.89)
Also, from (9.77) and (9.89),
(9.90)
and this relation indicates that if , the current is larger than .
The primary and secondary voltages are also related to the turns ratio . To find this relation, we
define the secondary or load voltage as
(9.91)
and the primary voltage across as
(9.92)
From (9.72),
(9.93)
and for
Then, (9.93) becomes
(9.94)
Next, from (9.82)
(9.95)
Substitution of (9.95) into (9.94) yields
(9.96)
and if we let , both terms on the right side of (9.96) become infinite and we obtain an
indeterminate result. To work around this problem, we combine these terms and we obtain:
and as ,
I
2
I
1
----
1
a
--- =
N
1
I
1
N
2
I
2
=
N
2
N
1
< I
2
I
1
a
V
2
V
2
Z
LD
I
2
=
V
1
L
1
V
1
Z
in
I
1
=
Z
in
V
s
I
1
------ jcL
1
c
2
M
2
jcL
2
Z
LD
+
---------------------------- + = =
k 1 =
M
2
L
1
L
2
=
Z
in
jcL
1
c
2
L
1
L
2
jcL
2
Z
LD
+
---------------------------- + =
L
2
a
2
L
1
=
Z
in
jcL
1
c
2
a
2
L
1
2
jca
2
L
1
Z
LD
+
--------------------------------- + =
jcL
1

Z
in
c
2
a
2
L
1
2
jcL
1
Z
LD
c
2
a
2
L
1
2
+ +
jca
2
L
1
Z
LD
+
---------------------------------------------------------------------------
jcL
1
Z
LD
jca
2
L
1
Z
LD
+
--------------------------------- = =
jcL
1

Chapter 9 Self and Mutual Inductances - Transformers
9-30 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(9.97)
Finally, substitution of (9.97) into (9.92) yields
(9.98)
and by division of (9.91) by (9.98) we obtain:
(9.99)
or
(9.100)
also, from the current and voltage relations of (9.88) and (9.99),
(9.101)
that is, the volt-amperes of the secondary and the primary are equal.
An ideal transformer is represented by the network of Figure 9.30.
Figure 9.30. Ideal transformer representation
9.10 Impedance Matching
An ideal (iron-core) transformer can be used as an impedance level changing device. We recall
from basic circuit theory that to achieve maximum power transfer, we must adjust the resistance
of the load to make it equal to the resistance of the voltage source. But this is not always possible.
A power amplifier for example, has an internal resistance of several thousand ohms. On the other
hand, a speaker which is to be connected to the output of a power amplifier has a fixed resistance
of just a few ohms. In this case, we can achieve maximum power transfer by inserting an iron-core
transformer between the output of the power amplifier and the input of the speaker as shown in
Figure 9.31 where .
Z
in
Z
LD
a
2
--------- =
V
1
Z
LD
a
2
---------I
1
=
V
2
V
1
------
Z
LD
I
2
Z
LD
a
2
' ( )I
1
--------------------------- a
2 1
a
--- a = = =
V
2
V
1
------ a =
V
2
I
2
V
1
I
1
=
-
-
v
2
L
1
L
2
-
-
v
1
i
2
i
1
1:a
N
2
N
1
<
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-31
Copyright Orchard Publications
Simplified Transformer Equivalent Circuit
Figure 9.31. Transformer used as impedance matching device
Let us suppose that in Figure 9.31 the amplifier internal impedance is and the imped-
ance of the speaker is only . We can find the appropriate turns ratio using (9.97),
that is,
(9.102)
or
or
(9.103)
that is, the number of turns in the primary must be 100 times the number of the turns in the sec-
ondary.
9.11 Simplified Transformer Equivalent Circuit
In analyzing networks containing ideal transformers, it is very convenient to replace the trans-
former by an equivalent circuit before the analysis. Consider the transformer circuit of Figure
9.32.
Figure 9.32. Circuit to be simplified
From (9.97)
The input impedance seen by the voltage source in the circuit of Figure 9.32 is
-
-
-
-
i
1
i
2
1:a
v
1
v
2
N
1
N
2
Amplifier
Speaker
Power
80000 O
8 O N
2
N
1
' a =
Z
in
Z
LD
a
2
--------- =
a
N
2
N
1
------
Z
LD
Z
in
---------
8
80000
---------------
1
10000
---------------
1
100
--------- = = = = =
N
1
N
2
------ 100 =
-
-
-
-
Z
LD
V
S
Z
S
V
1
V
2
L
1
L
2
I
2
I
1
V
LD
1:a
Z
in
Z
LD
a
2
--------- =
V
S
Chapter 9 Self and Mutual Inductances - Transformers
9-32 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(9.104)
and thus the circuit of Figure 9.32 can be replaced with the simplified circuit shown in Figure
9.33.
Figure 9.33. Simplified circuit for the transformer of Figure 9.32
The voltages and currents can now be found from the simple series circuit of Figure 9.33.
9.12 Thevenin Equivalent Circuit
Let us consider again the circuit of Figure 9.32. This time we want to find the Thevenin equiva-
lent to the left of the secondary terminals and replace the primary by its Thevenin equivalent at
points and as shown in Figure 9.34.
Figure 9.34. Circuit for the derivation of Thevenins equivalent
If we open the circuit at points and as shown in Figure 9.34, we find the Thevenin voltage as
. Since the secondary is now an open circuit, we have , and also
because . Since no voltage appears across , and . Then,
(9.105)
We will find the Thevenin impedance from the relation
(9.106)
The short circuit current is found from
Z
in
Z
S
Z
LD
a
2
--------- + =
-
-
-
-
V
S
Z
S
V
1
V
2
a ' =
I
1
aI
2
=
Z
LD
a
2
'
x y
-
-
-
-
Z
LD
V
S
Z
S
V
1
V
2
L
1
L
2
I
2 I
1
V
LOAD
1:a
x
y

x y
V
TH
V
OC
V
xy
= = I
2
0 = I
1
0 =
I
1
aI
2
= Z
S
V
1
V
S
= V
2 oc
aV
1
aV
S
= =
V
TH
V
OC
V
xy
aV
S
= = =
Z
TH
Z
TH
V
OC
I
SC
---------- =
I
SC
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-33
Copyright Orchard Publications
Thevenin Equivalent Circuit
*
(9.107)
and by substitution into (9.106),
The Thevenin equivalent circuit with the load connected to it is shown in Figure 9.35.
Figure 9.35. The Thevenin equivalent of the transformer circuit in Figure 9.34
The circuit of Figure 9.35 was derived with the assumption that the dots are placed as shown in
Figure 9.34. If either dot is reversed, we simply replace by .
Example 9.9
For the circuit of Figure 9.36, find .
Figure 9.36. Circuit for Example 9.9
Solution:
We will replace the given circuit with its Thevenin equivalent. First, we observe that the dot in
the secondary has been reversed, and therefore we will replace by . The Thevenin equivalent
is obtained by multiplying by , dividing the dependent source by , and multiplying the
resistor by . With these modifications we obtain the circuit of Figure 9.37.
* Since and or it follows that also.
I
SC
I
2
I
1
a
----
V
S
Z
S
'
a
-----------------
V
S
aZ
S
--------- = = = =
V
2
0 = V
2
V
1
' a = aV
1
V
2
= V
1
0 =
Z
TH
aV
S
V
S
aZ
S
'
-------------------- a
2
Z
S
= =
-
-
-
-
Z
LD
x
y

aV
S
a
2
Z
S
V
2
aV
1
=
I
2
I
1
a ' =
a a
V
2
-
-
-
-
V
S
V
2 L
1
L
2
0.01V
2
8 0 V Z
10 O
I
1
I
2
1:10
60 j80 O +
a a
V
S
10 10
10 O a ( )
2
100 =
Chapter 9 Self and Mutual Inductances - Transformers
9-34 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.37. The Thevenin equivalent of the circuit of Example 9.9
Now, by application of KCL
or
Other equivalent circuits can be developed from the equations of the primary and secondary volt-
ages and currents.
Consider for example, the linear transformer circuit of Figure 9.38.
Figure 9.38. Linear transformer
From (9.30), the primary and secondary voltages and currents are:
-
-
V
2
0.001 V
2
80 0 V Z
1 KO
-
-
60 j80 O +
V
2
80 0 Z ( )
10
3
------------------------------------- 10
3
V
2
( )
V
2
60 j80 +
-------------------- + 0 =
V
2
10
3
--------
V
2
10
3
--------
60 j 80 ( )V
2
10000
----------------------------- + +
80
10
3
-------- =
2V
2
6 j8 ( )V
2
+ 80 =
8 1 j1 ( )V
2
80 180 Z =
2 45 Z ( )V
2
10 180 Z =
V
2
10
2
------- 225 Z 5 2 135 Z = =
-
-
v
2 L
1
L
2
-
-
v
1
i
1
i
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-35
Copyright Orchard Publications
Thevenin Equivalent Circuit
(9.108)
and these equations are satisfied by the equivalent circuit shown in Figure 9.39.
Figure 9.39. Network satisfying the expressions of (9.108)
If we rearrange the equations of (9.108) as
(9.109)
we find that these equations are satisfied by the circuit of Figure 9.40.
Figure 9.40. Network satisfying the expressions of (9.109)
Additional equivalent circuits are shown in Figure 9.41 and they are useful in the computations of
transformer parameters computations from the open- and short-circuit tests, efficiency, and volt-
age regulation which will be discussed in subsequent sections in this chapter.
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + =
-
-
-
-
-
-
v
1
v
2
i
2
i
1
M
di
2
dt
-------
L
1
L
2
M
di
1
dt
-------
-
-
v
1
L
1
M ( )
di
1
dt
------- M
di
1
dt
-------
di
2
dt
------- +


+ =
v
2
M
di
1
dt
-------
di
2
dt
------- +


L
2
M ( )
di
2
dt
------- + =
-
- -
v
1
v
2
i
2
i
1
M
L
1
M
L
2
M
-
Chapter 9 Self and Mutual Inductances - Transformers
9-36 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.41. Other transformer equivalent circuits
9.13 Autotransformer
An autotransformer is a special transformer that shares a common winding, and can be configured
either as a step-down or step-up transformer as shown in Figure 9.42.
Figure 9.42. Step-down and step-up center-tapped autotransformers
Autotransformers are not used in residential, commercial, or industrial applications because a
break in the common winding may result in equipment damage and / or personnel injury.
A variac is an adjustable autotransformer, that is, its secondary voltage can be adjusted from zero
to a maximum value y a wiper arm that slides over the common winding as shown in Figure 9.43.
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
I
1
V
1
Z
eq1
V
2
Y
eq1
I
2 I
1
V
1
Z
eq1
V
2
Y
eq1
I
2
(a) (b)
(c) (d)
(a) Step-down autotransformer
(b) Step-up autotransformer
V
S
V
P
V
P
V
S
Load
Load
N
P
N
P
N
S
N
S
I
P
I
P
I
S
I
S N
P
N
S
------
V
P
V
S
------
I
S
I
P
---- = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-37
Copyright Orchard Publications
Transformers with Multiple Secondary Windings
Figure 9.43. Variac
9.14 Transformers with Multiple Secondary Windings
Some transformers are constructed with a common primary winding and two or more secondary
windings. These transformers are used in applications hen there is a need for two or more different
secondary voltages with a common primary voltage. Figure 9.44 shows a transformer with one pri-
mary and two secondary windings.
Figure 9.44. Transformer with common primary winding and two secondary windings
9.15 Transformer Tests
The analysis of the ideal transformer model provides approximate values. A practical transformer
is shown in Figure 9.44 and makes provisions for core (hysteresis and eddy current l)
*
losses, wind-
ing losses, and magnetic flux leakages. The resistances and are the resistances of the pri-
mary and secondary windings respectively, the reactances and represent the leakage flux
of the primary and secondary windings respectively, the resistance is for the core loses, and
the reactance , referred to as the magnetizing reactance, represents the transformers main
flux.
* Exercise 11 at the end of this chapter provides a brief discussion and a method for the computation of hysteresis
and eddy current losses,
I
S
V
S
Load
V
P
I
P
N
P
N
S
N
P
N
S
------
V
P
V
S
------
I
S
I
P
---- = =
N
P
V
P
------
N
S1
V
S1
---------
N
S2
V
S2
--------- = =
V
P
N
P
V
S1
N
S1
V
S2
N
S2
R
P
R
S
X
P
X
S
R
C
X
M
Chapter 9 Self and Mutual Inductances - Transformers
9-38 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.45. Equivalent circuit for practical transformer
Figure 9.46 shows the equivalent circuit in Figure 9.45 with the secondary quantities referred to
the primary.
Figure 9.46. Equivalent circuit for practical transformer with secondary quantities referred to the primary
The resistance in the primary winding and the resistance in the secondary winding are
read with an Ohmmeter. The other quantities are determined by the open-circuit and short-cir-
cuit tests described below.
I. Open-Circuit Test
The open-circuit test, also referred to as the no-load test, is used to determine the reactance
n the primary winding, the core resistance , and the magnetizing reactance . For
this test, the secondary is left open, and an ammeter, a voltmeter, and a wattmeter are con-
nected as shown in Figure 9.47.
Figure 9.47. Configuration for transformer open-circuit test
V
P
V
S
I
P
I
S
R
P
X
P
X
S
R
C
X
M
N
P
N
S
R
S
I
P R
P
X
P
R
C
X
M
aV
S
a
2
R
S
a
2
X
S
I
S
a '
V
P
R
P
R
S
X
P
R
C
X
M
A
W
V
V
S
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-39
Copyright Orchard Publications
Transformer Tests
In Figure 9.47, the value of the applied voltage is set at its rated value
*
, and the voltmeter,
ammeter, and wattmeter readings, denoted as , , and respectively, are measured
and recorded. Then,
(9.110)
from which
(9.111)
The magnitude of the admittance in the excitation branch consisting of the parallel con-
nection of and is found from
(9.112)
where and , and the phase angle is found using the relation
(9.113)
from which
(9.114)
Then,
(9.115)
II. Short-Circuit Test
The short-circuit test is used to determine the magnitude of the series impedances referred to
the primary side of the transformer denoted as For this test, the secondary is shorted, and
an ammeter, a voltmeter, and a wattmeter are connected as shown in Figure 9.48.
Figure 9.48. Configuration for transformer short-circuit test
* It is important to use rated values so that the impedances and admittances will not have different values at dif-
ferent voltages.
V
S
V
OC
I
OC
P
OC
Z
P
V
OC
I
OC
----------- R
P
2
X
P
2
+ = =
X
P
Z
P
2
R
P
2
=
Y
P
R
C
X
M
Y
P
V
OC
I
OC
-----------
I
OC
V
OC
----------- G
C
2
B
M
2
+ = = =
G
C
1 R
C
' = B
M
1 X
M
' = 0
OC
0
OC
cos
P
OC
V
OC
I
OC

------------------------ =
0
OC
arc
P
OC
V
OC
I
OC

------------------------ cos =
G
C
Y
P
0
OC
cos =
B
M
Y
P
0
OC
sin =
Z
SC
A
W
V
A
V
S
I
Rated
Chapter 9 Self and Mutual Inductances - Transformers
9-40 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
In Figure 9.48, the value of the applied voltage is considerably less than the rated value of the
transformer. It is set at a value such that the primary current denoted as is the rated pri-
mary current value, and the voltmeter, ammeter, and wattmeter readings, denoted as , ,
and respectively, are measured and recorded. Then,
(9.116)
and the phase angle is found using the relation
(9.117)
from which
(9.118)
Then,
(9.119)
Example 9.10
The open-circuit and short-circuit tests on a , , transformer pro-
duced the data shown in Table 9.1.
The high-voltage side of this transformer is connected to a generator via a long transmission line,
and the transmission line impedance is estimated to be . A load at
lagging power factor is connected to the low-voltage side of the transformer, and it is desired
that the voltage across the load be . Compute the terminal voltage of the
generator connected to the left end of the transmission line.
Solution:
The equivalent circuit of this system is shown in Figure 9.49, and all quantities are referred to the
primary side.
TABLE 9.1 Open- and Short-Circuit data for transformer in Example 9.10
Test Voltage (V) Current (A) Power (W)
Open-circuit 2400 37 1100
Short-circuit 450 8.2 1600
V
S
I
Rated
V
SC
I
SC
P
SC
Z
SC
V
SC
I
SC
---------- =
0
SC
0
SC
cos
P
SC
V
SC
I
SC

----------------------- =
0
SC
arc
P
SC
V
SC
I
SC

----------------------- cos =
R
SC
Z
SC
0
SC
cos =
X
SC
Z
SC
0
SC
cos =
100 KVA 13.2 2.4 KV ' 60 Hz
Z
line
10 j35 O + = 75 KW
0.8
75 KW 2 300 V , V
GEN
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-41
Copyright Orchard Publications
Transformer Tests
Figure 9.49. Circuit for Example 9.10
For this transformer, the ratio is
(9.120)
From the short-circuit test,
(9.121)
and
(9.122)
Then,
(9.123)
The load current referred to the primary is
(9.124)
The excitation current referred to the primary is
(9.125)
and its phase angle is
(9.126)
and since in a real transformer the angle of the current lags the angle of the voltage, we accept
, and thus
(9.127)
Therefore, the generator voltage must be
I
P
R
C
X
M
V
L
2 300 V , =
V
GEN
j35 O
10 O
X
eq
R
eq
Z
line
Z
eq
I
o
0.8 pf
a
a
N
P
N
S
------
V
P
V
S
------
13.2 KV
2.4 KV
--------------------- 5.5 = = = =
R
eq
P
SC
I
SC
2
---------
1600
8.2
2
------------ 23.8 O = = =
Z
eq
V
SC
I
SC
----------
450
8.2
--------- 54.9 O = = =
X
eq
Z
eq
2
R
eq
2
54.9
2
23.8
2
49.5 O = = =
I
L
I
L
Load KW
Load KV a pf
---------------------------------------------
75
2.3 5.5 0.8
------------------------------- 7.4 A = = =
I
o
I
o
I
OC
a
--------
37
5.5
------- 6.73 A = = =
o
o arc
P
OC
V
OC
I
OC

------------------------ cos arc cos


1100
2400 37
---------------------- 90 deg = = =
o Z 90 deg =
I
o
6.73 90 Z j6.73 = =
V
GEN
Chapter 9 Self and Mutual Inductances - Transformers
9-42 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
or
(9.128)
9.16 Efficiency
Efficiency, denoted as , is a dimensionless quantity defined as
(9.129)
or in terms of the output and losses
(9.130)
The losses in a transformer are the summation of the core losses (hysteresis and eddy currents),
and copper losses caused by the resistance of the conducting material of the coils, generally made
of copper. The core losses can be obtained from the transformer equivalent circuit in Figure 9.50.

Figure 9.50. Transformer equivalent circuit for computation of the core losses
Thus, the core losses are found from the relation
(9.131)
The copper losses can be obtained from the transformer equivalent circuit in Figure 9.51.
Figure 9.51. Transformer equivalent circuit for computation of the copper losses
V
GEN I
o
Z
line
I
L
Z
line
Z
eq
+ ( ) pf aV
L

+
j6.73 10 j35 + ( ) 7.4 33.8 j84.5 + ( ) 0.8 j0.6 ( ) 5.5 2300 + + 13457 j280.5 +
=
= =
V
GEN 13.46 KV =
q
q
P
OUT
P
IN
-------------
P
IN
P
LOSS

P
IN
----------------------------- 1
P
LOSS
P
IN
--------------- = = =
q
P
OUT
P
OUT
P
LOSS
+
---------------------------------- 1
P
LOSS
P
OUT
P
LOSS
+
---------------------------------- = =
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
P
C
P
C
G
C2
V
2
2
=
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-43
Copyright Orchard Publications
Efficiency
Thus, the copper losses are found from the relation
(9.132)
Therefore, using equation (9.130), we obtain
(9.133)
The efficiency varies with the load current , and to find the maximum efficiency we differenti-
ate (9.133) with respect to the load current
*
and we obtain
(9.134)
(9.135)
or
(9.136)
and after simplification,
(9.137)
That is, the efficiency attains its maximum value at that load at which the constant (core) losses
are equal to the losses that vary with the load, i.e., the copper losses.
Example 9.11
A , transformer has an equivalent series impedance
referred to the low-voltage side, and a core loss at rated terminal voltage. Find:
a. The value of the load current which will produce the maximum efficiency
b. The output at maximum efficiency.
Solution:
a. From relation (9.137),
* The quantities and are constant.
P
R
P
R
R
eq2
I
2
2
=
q
P
OUT
P
OUT
P
LOSS
+
----------------------------------
V
2
I
2
0
2
cos
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ +
------------------------------------------------------------------------ = =
I
2
I
2
V
2
0
2
cos
dq
dI
2
-------
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ + ( ) V
2
0
2
cos V
2
0
2
2R
eq2
I
2
+ cos ( ) V
2
I
2
0
2
cos
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ + ( )
2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0 = =
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ + ( ) V
2
0
2
cos V
2
0
2
2R
eq2
I
2
+ cos ( ) V
2
I
2
0
2
cos
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ + ( )
2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0 =
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ + ( ) V
2
0
2
2R
eq2
I
2
+ cos ( ) I
2
0 =
G
C2
V
2
2
R
eq2
I
2
2
=
1000 KVA 13.2 / 4.16 KV Z
eq
1 j4.2 O + =
2500 w
I
2
KVA
R
eq
I
2
2
G
C
V
2
2
2500 = =
Chapter 9 Self and Mutual Inductances - Transformers
9-44 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
and with , we find that the maximum efficiency occurs when , and with
(9.133) we find that the efficiency is
Figure 9.52 is a plot of the efficiency versus the load current, and we observe that the maxi-
mum efficiency occurs when the load current is .
The plot in Figure 9.51 was produced with the MATLAB script below.
i2=0:1:150; eff=4.16.*0.8.*i2./(4.16.*0.8.*i2+2.5+i2.^2./1000); plot(i2,eff); grid;...
xlabel('Load Current I2 (A)'); ylabel('Efficiency'); ...
title('Efficiency vs Load Current, Example 9.11')
Figure 9.52. Efficiency vs. load current for the transformer in Example 9.11
b. At maximum efficiency the output is
R
eq
1 O = I
2
50 A =
q
V
2
I
2
0
2
cos
V
2
I
2
0
2
cos G
C2
V
2
2
R
eq2
I
2
2
+ +
------------------------------------------------------------------------
4160 50 0.8
4160 50 0.8 2500 2500 + +
-------------------------------------------------------------------------- 0.97 or 97% = = =
I
2
50 A
KVA
4.16 KV 50 A 208 KVA =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-45
Copyright Orchard Publications
Efficiency
It is reasonable to assume that whenever a transformer is intended to operate continuously, it
should be designed to operate at its maximum efficiency at rated load. However, the loads sup-
plied by the transformer vary from time to time, but in most cases follow the same pattern day
after day. Thus, a more meaningful measure is a energy efficiency, denoted as , for the entire
day, and it is defined as
(9.138)
where and .
All-day efficiency is defined as the ratio of energy output to energy input for a 24-hour period.
Example 9.12
A , , transformer is in operation 24 hours a day. The loads during the
day are:
a. at for 3 hours
b. at for 5 hours
c. No load for 16 hours
Using the transformer equivalent circuit in Figure 9.53 where
and
compute the all-day efficiency.
Figure 9.53. Transformer equivalent circuit for Example 9.12
Solution:
q
W
q
W
P
OUT
t d
t
1
t
2

P
OUT
t d
t
1
t
2

P
C
t d
t
1
t
2

P
R
t d
t
1
t
2

+ +
---------------------------------------------------------------------------- =
P
C
core losses = P
R
copper losses =
10KVA 2400 / 240 60 Hz
10 KVA pf 1.0 =
6 KVA pf 0.8 =
Y
eq1
G
C1
jB
m1
+ 12.5 j28.6 O
1
= =
Z
eq1
R
eq1
jX
eq1
+ 8.4 j13.7 O + = =
I
1
V
1
Z
eq1
V
2
Y
eq1
I
2
Chapter 9 Self and Mutual Inductances - Transformers
9-46 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The all-day efficiency is readily found by evaluating the integrals in equation (9.138). Thus,
denoting the energy as , we obtain
(9.139)
The core losses are the same for the entire 24-hour period and using (9.131) we obtain
and the energy dissipated during the 24-hour period is
(9.140)
For the 3-hour period the energy dissipated due to copper losses is
(9.141)
For the 5-hour period the energy dissipated due to copper losses is
(9.142)
For the 16-hour period the energy dissipated due to copper losses is zero, that is,
(9.143)
and from (9.141) through (9.143),
(9.144)
Therefore, from (9.138) we find that all-day efficiency is
9.17 Voltage Regulation
The voltage regulation in a transformer is based on rated voltage and rated current at the second-
ary terminal. Accordingly, a transformer operates at rated conditions when the following condi-
tions are satisfied.
(9.145)
W
W
OUT
10000 1.0 ( ) 3 6000 0.8 ( ) 5 0 16 + + 54 000 watt-hours , = =
P
C
P
C
G
C2
V
2
2
G
C1
V
1
2
12.5 10
6
( ) 2400 ( )
2
72 w = = = =
W
C
W
C
72 24 1728 watt-hours = =
W
R 3 hr
10 KVA
2.4 KV
---------------------


2
R
eq1
3
10
2.4
-------


2
8.4 3 437.5 w h = = =
W
R 5 hr
6 KVA
2.4 KV
------------------


2
R
eq1
5
6
2.4
-------


2
8.4 5 262.5 w h = = =
W
R 16 hr
0 w h =
W
R 24 hr
437.5 262.5 0 + + w 700 w-h = =
q
W
54000
54000 1728 700 + +
------------------------------------------------ 0.957 = =
V
2
V
2
rated ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-47
Copyright Orchard Publications
Voltage Regulation
(9.146)
(9.147)
While the relation in (9.147) defines the turns ratio, the primary terminal voltage under rated
conditions is not exactly under normal operating conditions and thus it cannot be
computed as . Its actual value can be computed from a transformer equivalent circuit
such as the one shown in Figure 9.52, Page 9-45, from which
(9.148)
and we must remember that and are the transformer rated values. Relation (9.148) can also
be expressed as
(9.149)
if we use the equivalent circuit in Figure 9.50, Page 9-42.
The relations in (9.148) and (9.149) are phasor quantities. However, the transformer regulation,
denoted as , is defined in terms of the magnitudes of as computed from relation (9.148) or
(9.149), and the magnitude of rated secondary voltage as
(9.150)
The transformer voltage regulation can also be expressed in terms of the no-load and full-load
voltages as
(9.151)
where represents the condition where the transformer operates under rated conditions, that
is, and are the rated values defined in (9.145) and (9.146), and represents the condi-
tion where the load is disconnected in which case , and the output voltage attains the
value .
Obviously, the transformer regulation depends on the power factor of the load. In Figure 9.53, a
resistive load is represented by the phasor diagram (a), an inductive load is represented by the
phasor diagram (b), and a capacitive load is represented by the phasor diagram (c).
I
2
I
2
rated ( )
KVA rated ( )
V
2
rated ( )
-------------------------------- = =
Turns ratio a
V
1
rated ( )
V
2
rated ( )
------------------------- = =
V
1
rated ( )
V
1
aV
2
=
V
1
aV
2
Z
eq1
I
2
a
---- + =
V
2
I
2
V
1
a V
2
Z
eq2
I
2
+ ( ) =
r V
1
V
2
r
V
1
aV
2

aV
2
----------------------
V
1
a ' V
2

V
2
-------------------------- = =
r
V
2
No Load ( ) V
2
Full Load ( )
V
2
Full Load ( )
-----------------------------------------------------------------------------
V
2 NL
V
2 FL

V
2 FL
------------------------------- = =
V
2 FL
V
2
I
2
V
2 NL
I
2
0 = V
2
V
1
a '
Chapter 9 Self and Mutual Inductances - Transformers
9-48 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
When pu values are used the transformer ratio is unity. that is, . This is because the pu val-
ues are the same regardless of which side there are referred to, e.g., . Accordingly,
whenever pu values are use, the voltage regulation expression in (9.150) above, reduces to
(9.152) below.
(9.152)
Figure 9.54. Transformer voltage regulation dependence on load power factor
Example 9.13
An equivalent circuit of a , , transformer is shown in Figure 9.55 where
and
Compute the voltage regulation if the transformer operates at rated load and lagging.
Figure 9.55. Transformer equivalent circuit for Example 9.13
Solution:
The voltage regulation is defined as in relation (9.150). Therefore we need to find the value of
using relation (9.148). We choose the secondary rated voltage as our reference.
The magnitude of the rated current is found from (9.146), that is,
a 1 =
Z
eq1
Z
eq2
=
r
pu
V
1
V
2

V
2
-------------------
V
1
V
2
------ 1 = =
(a)
(b) (c)
I
2
I
2
I
2
V
2
V
2
V
2
1
a
---V
1
1
a
---V
1
1
a
---V
1
Z
eq2
I
2
Z
eq2
I
2
Z
eq2
I
2
10KVA 2400 / 240 60 Hz
Y
eq1
G
C1
jB
m1
+ 12.5 j28.6 O
1
= =
Z
eq1
R
eq1
jX
eq1
+ 8.4 j13.7 O + = =
pf 08 =
I
1
V
1
Z
eq1
V
2
Y
eq1
I
2
V
1
V
2
240 0 V Z =
I
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-49
Copyright Orchard Publications
Transformer Modeling with Simulink / SimPowerSystems
and since , the power factor angle is , and thus
and since ,
Also,
and it is given that
Then, from (9.148)
The voltage regulation is computed using only the magnitudes of the voltages and . Thus
from (9.150)
9.18 Transformer Modeling with Simulink

/ SimPowerSystems

The MathWorks Simulink / SimPowerSystems libraries include single-phase and three-phase


transformer blocks. In this section we will model a single-phase transformer circuit, and in Chap-
ter 11 we will model a three-phase transformer circuit. Introductions to Simulink and SimPower-
Systems are presented in Appendices B and C respectively.
Example 9.14
We begin the creation of our model by performing the following steps:
1. At the MATLAB command prompt we enter powerlib and the SimPowerSystems library
blocks window appears as shown in Figure 9.56.
2. At the upper left corner we click File>New>Model and the window shown in Figure 9.57
appears.
I
2
KVA rated ( )
V
2
rated ( )
--------------------------------
10 KVA
0.24 KV
--------------------- 41.7 A = = =
pf 0 cos 0.8 = = 0 0.8 ( )
1
cos 36.9 = =
I
2
41.7 36.9 Z 33.4 j25.0 = =
a 10 1 ' 10 = =
I
2
a
----
33.4 j25.0
10
----------------------------- 3.34 j2.50 = =
aV
2
2400 0 V Z =
Z
eq1
8.4 j13.7 O + =
V
1
aV
2
Z
eq1
I
2
a
---- + 2400 8.4 j13.7 + ( ) 3.34 j2.50 ( ) 2462 j25 + = + 2462 0.58 Z = = =
V
1
V
2
r
V
1
aV
2

aV
2
----------------------
2462 2400
2400
------------------------------ 0.0258 or 2.58% = = =
Chapter 9 Self and Mutual Inductances - Transformers
9-50 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
3. From the powerlib library in Figure 9.56, we drag the following blocks into the blank window
in Figure 9.57
Figure 9.56. The powerlib library
Figure 9.57. Window for new model
a. powergui
b. Electrical Sources: Choose AC Voltage Source
c. Elements: Choose Parallel RLC Load, Ground (copy 4 times), Linear Transformer
d. Measurements: Current Measurement, Voltage Measurement
e. From the Simulink Commonly Used Blocks: Scope (copy once)
When all the blocks are dragged, the new model window will appears as shown in Figure 9.58.
Next, we perform the following steps:
a. We double-click the Linear Transformer block and on the Block Parameters window we
uncheck the Three windings transformer option. The transformer now appears as a two
winding transformer.
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-51
Copyright Orchard Publications
Transformer Modeling with Simulink / SimPowerSystems
b. We double-click the Parallel RLC Load and on the Block Parameters window we set the
Capacitive reactive power Qc to zero. The block now is reduced to a parallel RL block.
We rotate this block with Format>Rotate Block>Counterclockwise.
c. We interconnect the blocks and we rename them as shown in the model in Figure 9.59.
d. The parallel load is assumed to be a lagging load.
Figure 9.58. The blocks for the model for Example 9.14
40 KW / 30 KVAR pf 0.8 =
Chapter 9 Self and Mutual Inductances - Transformers
9-52 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.59. The model for Example 9.14
By default, the calculations are performed using the pu method but the parameters will automati-
cally be converted if we change from pu to SI or vice versa. The Block Parameters for the trans-
former block are in pu values are shown in Figure 9.60. These values were obtained in the solution
of Exercise 9.8 at the end of this chapter.
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-53
Copyright Orchard Publications
Transformer Modeling with Simulink / SimPowerSystems
Figure 9.60. The Block Parameters dialog box for the transformer of the model in Figure 9.59
Before we issue the Simulation Start command for the model in Figure 9.59, we click Simula-
tion>Configuration Parameters>Solver, and we select the ode23b(stiff/TR-BDF2) parameter.
After the simulation command is executed the Scope 1 and Scope 2 blocks display the waveforms
in Figures 9.61 and 9.62 respectively, noting that amplitudes are in peak values, i.e.,
. Peak RMS 2 =
Chapter 9 Self and Mutual Inductances - Transformers
9-54 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.61. Waveform for the primary winding current
Figure 9.62. Waveform for the voltage across the load
The SimPowerSystems/Measurements library includes the Multimeter block which is now added
to the model and the new model is shown in Figure 9.63. We double-click the Multimeter block
and we observe that the left pane in the dialog box in Figure 9.64 displays 6 Available Measure-
ments and as Ub (Parallel RLC Load), Uw1 and Uw2 (Primary and Secondary Winding Volt-
ages), Iw1 and Iw2 (Primary and Secondary Winding Currents), and Imag (Magnetization Cur-
rent). The last 5 measurement are displayed because in the Block Parameters dialog box for the
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-55
Copyright Orchard Publications
Transformer Modeling with Simulink / SimPowerSystems
Linear Transformer block in Figure 9.60, in the Measurements parameter we selected the All
voltages and currents option.
Figure 9.63. The model for Example 9.13 with the added Multimeter block
In the Multimeter dialog box in Figure 9.64, the Available Measurements in the left pane were
highlighted to be selected, and were copied to the Selected Measurements pane on the right side
by clicking the icon. The dialog box was then updated by clicking the Update button, and
with the Plot selected measurements parameter selected, the Simulation Start command was
issued producing the plots of the selected measurements shown in Figure 9.65, and we observed
that the number inside the Multimeter block was changed to .
As we have seen, with the use of the Multimeter block it was not necessary to use the Scope 1
and Scope 2 blocks since the primary current and the load voltage waveforms are also shown in
Figure 9.65.
The output port of a Multimeter block can also be connected to a Scope block with multiple axes
through a Demux block as shown in the SimPowerSystems documentation demo. It can be
accessed by typing power_compensated at the MATLAB command prompt.
An example with a centered tapped transformer (3-winding) demo is also provided in the Sim-
PowerSystems documentation. It can be accessed by typing power_transformer at the MATLAB
command prompt
> >
0 6
Chapter 9 Self and Mutual Inductances - Transformers
9-56 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 9.64. The Multimeter block dialog box
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-57
Copyright Orchard Publications
Transformer Modeling with Simulink / SimPowerSystems
Figure 9.65. Waveforms for the six measurements provided by the Measurements block in Figure 9.63
Chapter 9 Self and Mutual Inductances - Transformers
9-58 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
9.19 Summary
- Inductance is associated with the magnetic field which is always present when there is an elec-
tric current.
- The magnetic field loops are circular in form and are called lines of magnetic flux.
- The magnetic flux is denoted as and the unit of magnetic flux is the weber (Wb).
- If there are turns and we assume that the flux passes through each turn, the total flux
denoted as is called flux linkage. Then,
- A linear inductor one in which the flux linkage is proportional to the current through it, that
is,
where the constant of proportionality is called inductance in webers per ampere.
- Faradays law of electromagnetic induction states that
- Lenzs law states that whenever there is a change in the amount of magnetic flux linking an
electric circuit, an induced voltage of value directly proportional to the time rate of change of
flux linkages is set up tending to produce a current in such a direction as to oppose the change
in flux.
- A linear transformer is a four-terminal device in which the voltages and currents in the pri-
mary coils are linearly related.
- In a linear transformer, when there is no current in the secondary winding the voltages are
- In a linear transformer, when there is no current in the primary winding, the voltages are

N
/
/ N =
/ Li =
L
v
d/
dt
------ =
v
1
L
1
di
1
dt
------- = and v
2
M
21
di
1
dt
------- =
if i
1
0 and i
2
0 =
v
2
L
2
di
2
dt
------- = and v
1
M
12
di
2
dt
------- =
if i
1
0 = and i
2
0
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-59
Copyright Orchard Publications
Summary
- In a linear transformer, when there is a current in both the primary and secondary windings,
the voltages are
- The voltage terms
are referred to as self-induced voltages.
- The voltage terms
are referred to as mutual voltages.
- The polarity of the mutual voltages is denoted by the dot convention. If a current entering
the dotted (undotted) terminal of one coil induces a voltage across the other coil with positive
polarity at the dotted (undotted) terminal of the other coil, the mutual voltage term has a pos-
itive sign. If a current entering the undotted (dotted) terminal of one coil induces a voltage
across the other coil with positive polarity at the dotted (undotted) terminal of the other coil,
the mutual voltage term has a negative sign.
- If the polarity (dot) markings are not given, they can be established by using the right-hand
rule which states that if the fingers of the right hand encircle a winding in the direction of the
current, the thumb indicates the direction of the flux. Thus, in an ideal transformer with pri-
mary and secondary windings and and currents and respectively, we place a dot at
the upper end of and assume that the current enters the top end thereby producing a flux
in the clockwise direction. Next, we want the current in to enter the end which will pro-
duce a flux in the same direction, in this case, clockwise.
- The energy stored in a pair of mutually coupled inductors is given by
where the sign of is positive if both currents enter the dotted (or undotted) terminals, and it
is negative if one current enters the dotted (or undotted) terminal while the other enters the
undotted (or dotted) terminal.
v
1
L
1
di
1
dt
------- M
di
2
dt
------- + =
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + =
L
1
di
1
dt
------- and L
2
di
2
dt
-------
M
di
1
dt
------- and M
di
2
dt
-------
i
i
L
1
L
2
i
1
i
2
L
1
i
1
L
2
W
t
0
t
2 1
2
---L
1
i
1
2
M i
1
i
2
1
2
---L
2
i
2
2
+ =
M
Chapter 9 Self and Mutual Inductances - Transformers
9-60 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- The ratio
is known as the coefficient of coupling and provides a measure of the proximity of the pri-
mary and secondary coils. If the coils are far apart, we say that they are loose-coupled, and has
a small value, typically between and . For close-coupled circuits, has a value of about
. Power transformers have a between and . The value of is exactly unity only
when the two coils are coalesced into a single coil.
- If the secondary of a linear transformer is referenced to a DC voltage source , it is said that
the secondary has DC isolation.
- In a linear transformer, the load impedance of the secondary can be reflected into the primary
can be reflected into the primary using the relation
where is referred to as the reflected impedance.
- An ideal transformer is one in which the coefficient of coupling is almost unity, and both the
primary and secondary inductive reactances are very large in comparison with the load imped-
ances. The primary and secondary coils have many turns wound around a laminated iron-core
and are arranged so that the entire flux links all the turns of both coils.
- In an ideal transformer number of turns on the primary and the number of turns on the sec-
ondary are related to the primary and secondary currents and respectively as
- An important parameter of an ideal transformer is the turns ratio which is defined as the
ratio of the number of turns on the secondary, , to the number of turns of the primary ,
that is,
- In an ideal transformer the turns ratio relates the primary and secondary currents as
k
M
L
1
L
2
---------------- =
k
k
0.01 0.1 k
0.5 k 0.90 0.95 k
V
0
Z
R
c
2
M
2
jcL
2
Z
LD
+
---------------------------- =
Z
R
N
1
N
2
I
1
I
2
N
1
I
1
N
2
I
2
=
a
N
2
N
1
a
N
2
N
1
------ =
a
I
2
I
1
----
1
a
-- - =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-61
Copyright Orchard Publications
Summary
- In an ideal transformer the turns ratio relates the primary and secondary voltages as
- In an ideal transformer the volt-amperes of the primary and the secondary are equal, that is,
- An ideal transformer can be used as an impedance matching device by specifying the appropri-
ate turns ratio . Then,
- In analyzing networks containing ideal transformers, it is very convenient to replace the trans-
former by an equivalent circuit before the analysis. One method is presented in Section 9.11.
- An ideal transformer can be replaced by a Thevenin equivalent as discussed in Section 9.12.
- Four transformer equivalent circuits are shown in Figure 9.41 and they are useful in the com-
putations of transformer parameters computations from the open- and short-circuit tests, effi-
ciency, and voltage regulation.
- An autotransformer is a special transformer that shares a common winding, and can be config-
ured either as a step-down or step-up transformer as shown in Figure 9.42.
- Autotransformers are not used in residential, commercial, or industrial applications because a
break in the common winding may result in equipment damage and / or personnel injury.
- A variac is an adjustable autotransformer, that is, its secondary voltage can be adjusted from
zero to a maximum value y a wiper arm that slides over the common winding as shown in Fig-
ure 9.43.
- Some transformers are constructed with a common primary winding and two or more second-
ary windings. These transformers are used in applications hen there is a need for two or more
different secondary voltages with a common primary voltage.
- The transformer open-circuit test, also referred to as the no-load test, is used to determine the
reactance n the primary winding, the core resistance , and the magnetizing reactance
. For this test, the secondary is left open, and an ammeter, a voltmeter, and a wattmeter are
connected as shown in Figure 9.47.
- The transformer short-circuit test is used to determine the magnitude of the series impedances
referred to the primary side of the transformer denoted as For this test, the secondary is
shorted, and an ammeter, a voltmeter, and a wattmeter are connected as shown in Figure 9.48.
a
V
2
V
1
------ a =
V
2
I
2
V
1
I
1
=
N
2
N
1
' a =
Z
in
Z
LD
a
2
--------- =
X
P
R
C
X
M
Z
SC
Chapter 9 Self and Mutual Inductances - Transformers
9-62 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
- Efficiency, denoted as , is a dimensionless quantity defined as
or in terms of the output and losses
- The losses in a transformer are the summation of the core losses (hysteresis and eddy cur-
rents), and copper losses caused by the resistance of the conducting material of the coils, gen-
erally made of copper.
- Energy efficiency, denoted as , for the entire day, and it is defined as
where and .
- All-day efficiency is defined as the ratio of energy output to energy input for a 24-hour period.
- The transformer voltage regulation, denoted as , is defined in terms of the magnitudes of
as computed from relation (9.148) or (9.149), and the magnitude of rated secondary voltage
as
The transformer voltage regulation can also be expressed in terms of the no-load and full-
load voltages as
where represents the condition where the transformer operates under rated conditions,
that is, and are the rated values defined in (9.145) and (9.146), and represents
the condition where the load is disconnected in which case , and the output voltage
attains the value .
q
q
P
OUT
P
IN
-------------
P
IN
P
LOSS

P
IN
----------------------------- 1
P
LOSS
P
IN
--------------- = = =
q
P
OUT
P
OUT
P
LOSS
+
---------------------------------- 1
P
LOSS
P
OUT
P
LOSS
+
---------------------------------- = =
q
W
q
W
P
OUT
t d
t
1
t
2

P
OUT
t d
t
1
t
2

P
C
t d
t
1
t
2

P
R
t d
t
1
t
2

+ +
---------------------------------------------------------------------------- =
P
C
core losses = P
R
copper losses =
r V
1
V
2
r
V
1
aV
2

aV
2
----------------------
V
1
a ' V
2

V
2
-------------------------- = =
r
V
2
No Load ( ) V
2
Full Load ( )
V
2
Full Load ( )
-----------------------------------------------------------------------------
V
2 NL
V
2 FL

V
2 FL
------------------------------- = =
V
2 FL
V
2
I
2
V
2 NL
I
2
0 =
V
2
V
1
a '
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-63
Copyright Orchard Publications
Summary
- The MathWorks Simulink / SimPowerSystems libraries include single-phase and three-phase
transformer blocks. A model with a single-phase transformer is presented in this chapter.
Chapter 9 Self and Mutual Inductances - Transformers
9-64 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
9.20 Exercises
1. For the transformer below find for .
2. For the transformer below find the phasor currents and .
3. For the network below find the transfer function .
4. For the transformer below find the average power delivered to the resistor.
v
2
t 0 >
-
-
M 1 H =
1 H
2 H
2 O
i 4u
0
t ( ) A =
v
2
L
1
L
2
I
1
I
2
-
-
10 0 V Z
I
1 I
2
2 O
1 O
j1 O
j8 O
M j1 O =
j10 O
G s ( ) V
OUT
s ( ) V
IN
s ( ) ' =
+
-
V
OUT
s ( )
V
IN
s ( )
1 O
1 O
1 O
0.5 H
1 H
1 H
1 H
0.5 H
0.5 H
+
-
4 O
-
-
2 O
8 O
4 O
1:2
v
S
4 3t V cos =
v
S
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-65
Copyright Orchard Publications
Exercises
5. Replace the transformer below by a Thevenin equivalent and then compute and
6. For the circuit below compute the turns ratio so that maximum power will be delivered to
the resistor.
7. The recorded open- and short-circuit test data for a , , transformer
are as follows:
Open-circuit test with input to the low side: , ,
Short-circuit test with input to the high side: , ,
Compute the parameters for the approximate equivalent circuit shown below.
8. Repeat Exercise 7 above using per-unit values.
9. Using the data in Exercise 7 above, compute the voltage regulation for power factor 0.8 lead-
ing using per-unit values.
10. Using the data in Exercise 7 above, compute the efficiency for power factor 0.8 lagging at half
load using per-unit values.
V
1
V
2
I
1
, , I
2
-
-
-
-
- -
2 j3 O +
12 0 Z
V
1
1:5
I
1
I
2
V
2
100 j75 O
a
10 KO
-
-
12 0 V Z
1:a 4 O
10 KO
10KVA 2400 / 240 60 Hz
240 V 0.75 A 72 W
80.5 V 5 A 210 W
I
1
V
1
Z
eq1
V
2
Y
eq1
I
2
Chapter 9 Self and Mutual Inductances - Transformers
9-66 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
11. As mentioned earlier, the core losses in a transformer consist of hysteresis losses and eddy cur-
rent losses. The hysteresis loss is computed a
where the factor and the exponent vary with the core material used, is the volume of
the core, is the frequency in Hz, and is the magnetic flux density.
The eddy current loss is approximated by the relation
where is the thickness of the laminated cores, and the other variables are as in the hysteresis
loss expression above.
Since for a given core the volume and the thickness of the laminated cores are constant,
it is convenient to lump together the hysteresis losses and eddy current losses as core losses
, that is,
Now, suppose that the total core losses (hysteresis and eddy current) for a transformer core are
at . If the maximum flux density remains unchanged while the fre-
quency increases to , the total core losses increase to . Compute the hys-
teresis and eddy current losses for both frequencies.
P
h
k
h
0f B
max
n
=
k
h
n 0
f B
P
e
k
e
0t
2
f
2
B
max
2
=
t
0 t
P
C
P
C
P
h
P
e
+ k
h
f B
max
n
k
e
f
2
B
max
2
+ = =
500 W f
1
25 Hz = B
max
f
2
50 Hz = 1400 W
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-67
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
9.21 Solutions to End-of-Chapter Exercises
1.
Application of KVL in the primary yields
(1)
The total solution of is the sum of the forced component and the natural response ,
i.e.,
From (1) we find that , and is found from the characteristic equation
from which and thus . Then,
(2)
Since we are not told otherwise, we will assume that and from (2) or
and by substitution into (2)
The voltage is found from
and since ,
-
-
M 1 H =
1 H
2 H
2 O
i 4u
0
t ( ) A =
v
2
L
1 L
2
-
-
-
-
M 1 H =
1 H
2 H
v
2
L
1 L
2
v
IN
8u
0
t ( ) V =
2 O
i
1
i
v
IN
2i
1
L
1
di
1
dt
------- + 8u
0
t ( ) =
1
di
1
dt
------- 2i
1
+ 8 = t 0 >
i
1
i
1f
i
1n
i
1
i
1f
i
1n
+ =
i
1f
8 2 ' 4 = = i
1n
s 2 + 0 = s 2 = i
1n
Ae
2t
=
i
1
4 Ae
2t
+ =
i
1
0
-
( ) 0 = 0 4 Ae
0
+ =
A 4 =
i
1
4 1 4e
2t
( ) =
v
2
v
2
M
di
1
dt
------- L
2
di
2
dt
------- + =
i
2
0 =
v
2
1
di
1
dt
-------
d
dt
----- 4 1 4e
2t
( ) [ ] 8e
2t
V = = =
Chapter 9 Self and Mutual Inductances - Transformers
9-68 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
2.
The mesh equations for primary and secondary are:
By Cramers rule,
where
Thus,
Check with MATLAB:
Z=[1+j -j; -j 2-2j]; V=[10 0]'; I=Z\V;
fprintf('magI1 = %5.2f A \t', abs(I(1))); fprintf('phaseI1 = %5.2f deg ',angle(I(1))*180/pi);...
fprintf(' \n');...
fprintf('magI2 = %5.2f A \t', abs(I(2))); fprintf('phaseI2 = %5.2f deg ',angle(I(2))*180/pi);...
fprintf(' \n')
ma gI 1 = 5. 66 A pha s e I 1 = - 45. 00 de g
ma gI 2 = 2. 00 A pha s e I 2 = 90. 00 de g
-
-
10 0 V Z
I
1 I
2
2 O
1 O
j1 O
j8 O
M j1 O =
j10 O
1 j1 + ( ) I
1
j1I
2
10 0 Z =
j1I
1
2 j2 ( ) I
2
+ 0 =
I
1
D
1
A ' = I
2
D
2
A ' =
A
1 j1 + ( ) j1
j1 2 j2 ( )
5 = =
D
1
10 0 Z j1
0 2 j2 ( )
20 1 j ( ) = =
D
2
1 j1 + ( ) 10 0 Z
j1 0
j10 = =
I
1
20 1 j ( )
5
--------------------- 4 1 j ( ) 4 2 45 A Z = = =
I
2
j10
5
-------- j2 2 90 A Z = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-69
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
3.
We will find from . The three mesh equations in matrix form are:
We will use MATLAB to find the determinant of the matrix.
syms s
delta=[s+1 -0.5*s -0.5*s; -0.5*s s+1 -0.5*s; -0.5*s -0.5*s s+1]; det_delta=det(delta)
de t _de l t a =
9/ 4*s ^2+3*s +1
d3=[s+1 -0.5*s -0.5*s; -0.5*s s+1 -0.5*s; 1 0 0]; det_d3=det(d3)
de t _d3 =
3/ 4*s ^2+1/ 2*s
I3=det_d3/det_delta
I 3 =
( 3/ 4*s ^2+1/ 2*s ) / ( 9/ 4*s ^2+3*s +1)
simplify(I3)
a ns =
s / ( 3*s +2)
Therefore,
and
+
-
V
OUT
s ( )
V
IN
s ( )
+
-
1
s
I
1
0.5s
s 1
I
2
0.5s
0.5s
s 1
I
3
V
OUT
s ( ) V
OUT
s ( ) 1 O ( )I
3
=
s 1 + ( ) 0.5s 0.5s
0.5s s 1 + ( ) 0.5s
0.5s 0.5s s 1 + ( )
1
0
0
V
IN
s ( ) =
A 3 3
V
OUT
s ( ) 1 I
3
V
IN
s ( ) s 3s 2 + ( ) ' V
IN
s ( ) = =
G s ( ) V
OUT
s ( ) V
IN
s ( ) ' s 3s 2 + ( ) ' = =
Chapter 9 Self and Mutual Inductances - Transformers
9-70 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
4.
For this exercise, and thus we need to find .
At Node ,
(1)
From the primary circuit,
(2)
Since , , and , it follows that and . By sub-
stitution into (2) we obtain
(3)
Addition of (1) and (3) yields
from which . Then,
and
-
-
2 O
8 O
4 O
1:2
v
S
I
4 O
a 2 =
A
V
1
V
2
I
2 I
1
4 0 Z
P
ave 4 O
1
2
-- - I
4O
( )
2
4 = I
4 O
A
V
2
4
------
V
2
4 0 Z
8
-------------------------- I
2
+ 0 =
3V
2
8
---------- I
2

1
2
--- =
2I
1
V
1
+ 4 =
I
2
I
1
' 1 a ' = V
2
V
1
' a = a 2 = I
1
2I
2
= V
1
V
2
2 ' =
4I
2
V
2
2
------ + 4 =
I
2
V
2
8
------ + 1 =
3V
2
8
----------
V
2
8
------ +
1
2
--- 1 + =
V
2
3 =
I
4 O
V
2
4
------
3
4
--- = =
P
ave 4 O
1
2
-- -
3
4
---


2
4
9
8
-- - w = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-71
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
5.
Because the dot on the secondary is at the lower end, . Then,
and
6.
From (9.102)
Then,
or
7. We are told that open- and short-circuit test data for a , , trans-
former are as follows:
Open-circuit test with input to the low side: , ,
Short-circuit test with input to the high side: , ,
-
-
-
-
- -
2 j3 O +
12 0 Z
V
1
1:5
I
1
I
2
V
2
100 j75 O
-
-
-
-
Z
LD
x
y

aV
S
a
2
Z
S
V
2
aV
1
=
I
2
I
1
a ' =

x
y
V
S
a 5 =
aV
S
5 12 0 Z 60 0 Z 60 180 Z = = =
a
2
Z
S
25 2 j3 + ( ) 50 j75 + 90.14 56.31 O Z = = =
Z
LD
100 j75 125 36.87 O Z = =
I
2
aV
S
a
2
Z
S
Z
LD
+
---------------------------
60 180 Z
50 j75 100 j75 + +
-----------------------------------------------
60 180 Z
150
----------------------
2
5
-- - 180 Z = = = =
V
2
Z
LD
I
2
125 36.87 Z
2
5
-- - 180 Z 50 143.13 V Z = = =
-
-
12 0 V Z
1:a 4 O
10 KO
Z
in
Z
LD
a
2
--------- =
a
2
Z
LD
Z
in
---------
10000
4
--------------- 2500 = = =
a 50 =
10KVA 2400 / 240 60 Hz
240 V 0.75 A 72 W
80.5 V 5 A 210 W
Chapter 9 Self and Mutual Inductances - Transformers
9-72 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
The given equivalent circuit is the circuit (a) in Figure 9.41 which is repeated below for conve-
nience and we are asked to compute and . The equivalent circuits (b) and (d) will
also be useful for the solution of this exercise.
Since the input for the open-circuit test is measured at the low side, we will compute the
admittance in circuit (d) above, and we then refer it to the high side in Figure (a) using
the relation .
From the open-circuit test data, the admittance is
and the phase angle is found from
Then, with
Y
eq1
Z
eq1
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
I
1
V
1
Z
eq2
V
2
Y
eq2
I
2
I
1
V
1
Z
eq1
V
2
Y
eq1
I
2 I
1
V
1
Z
eq1
V
2
Y
eq1
I
2
(a) (b)
(c) (d)
Y
eq2
Y
eq1
Y
eq2
a
2
' =
Y
eq2
Y
eq2
I
2 OC
V
2 OC
--------------
0.75
240
---------- 3.1 10
3
O
1
= = =
0
OC
0
OC
cos
P
OC
V
2 OC
I
2 OC

------------------------------
72
240 0.75
------------------------- 0.4 = = =
0
OC
0.4 ( )
1
cos 66.4 (lagging) = =
a 2400 240 ' 10 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-73
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
from which
and
The measurements for the short-circuit test were made at the high side, and thus we will use
the equivalent circuit (b) above. The impedance is found from
and the phase angle is found from
Then,
from which
and
8. We begin with establishing the bases below.
Next, we convert all test data into per-unit values.
Following the same procedure as in Exercise 7, we obtain:
Y
eq1
Y
eq2
a
2
------------
3.1 10
3
O
1
66.4 Z
100
--------------------------------------------------------- 12.4 j28.4 ( ) 10
6
O
1
= = =
G
C1
12.4 10
6
O
1
=
B
M1
28.4 10
6
O
1
=
Z
eq1
Z
eq1
V
1 SC
I
1 SC
-------------
80.5
5
---------- 16.1 O = = =
0
SC
0
SC
cos
P
SC
V
1 SC
I
1 SC

-----------------------------
210
80.5 5
------------------- 0.52 = = =
0
SC
0.52 ( )
1
cos 58.7 (lagging) = =
Z
eq1
16.1 58.7 Z 8.36 j13.76 O + = =
R
eq1
8.36 O =
X
eq1
13.76 O =
P
base
P
a base
10000 VA = = V
1 base
2400 V = V
2 base
240 V =
I
1 base
10000 VA
2400 V
-------------------------- 4.17 A = = I
2 base
10000 VA
240 V
-------------------------- 41.7 A = =
V
OC
pu
V
OC
V
2 base
------------------
240 V
240 V
--------------- 1 pu = = = I
OC pu
I
OC
I
2 base
---------------
0.75 A
41.7 A
----------------- 0.018 pu = = =
P
OC
pu
P
OC
P
a base
-----------------
72 W
10000 VA
-------------------------- 0.0072 pu = = = V
SC
pu
V
SC
V
1 base
------------------
80.5 V
2400 V
------------------ 0.0335 pu = = =
I
SC
pu
I
SC
I
1 base
---------------
5 A
4.17 A
----------------- 1.2 pu = = = P
SC
pu
P
SC
P
a base
-----------------
210 W
10000 VA
-------------------------- 0.021 pu = = =
Chapter 9 Self and Mutual Inductances - Transformers
9-74 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
From the open-circuit test data, the magnitude of the admittance is
*
From he short-circuit test data, the magnitude of the impedance is
Check:
* Conversion to pu values applies only to magnitudes, angles remain the same as working with actual values.
Y
eq2 pu
Y
eq2
pu
I
OC pu
V
OC
pu
------------------
0.018
1
------------- 0.018 pu = = =
0
OC pu
cos
P
OC
pu
V
OC
pu
I
OC pu

----------------------------------------
0.0072
1 0.018
---------------------- 0.4 = = =
0
OC pu
0.4 ( )
1
cos 66.4 (lagging) = =
0
OC pu
sin 66.4 ( ) sin 0.916 = =
G
C1 pu
Y
eq2
pu
0
OC pu
cos 0.018 0.4 0.0072 pu = = =
B
M1 pu
Y
eq2
pu
0
OC pu
sin 0.018 0.916 ( ) 0.0165 pu = = =
Y
eq2
pu
0.0072 j0.0165 =
Z
eq1 pu
Z
eq1 pu
V
SC
pu
I
SC
pu
-----------------
0.0335
1.2
---------------- 0.028 pu = = =
0
SC pu
cos
P
SC
pu
V
SC
pu
I
SC pu

--------------------------------------
0.021
0.0335 1.2
------------------------------ 0.522 = = =
0
SC pu
0.522 ( )
1
cos 58.5 = =
0
SC pu
sin 58.5 ( ) sin 0.853 = =
R
eq1 pu
Z
eq1 pu
0
SC pu
cos 0.028 0.522 0.01456 pu = = =
X
eq1 pu
Z
eq1 pu
0
SC pu
sin 0.028 0.853 0.0238 pu = = =
Z
eq1 pu
0.0146 j0.0238 pu + =
Z
eq1 base
V
1 base
I
1 base
------------------
2400 V
4.17 A
------------------ 575.54 O = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling 9-75
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and the other quantities can be verified similarly.
9. The voltage regulation is computed using only the magnitudes of the voltages and , and
since we are using pu values, we will use (9.152), i.e.,
We choose as the reference phasor, and we let , and in pu,
and since the current leads the voltage by a leading power factor. we have ,
and in pu,
With , relation (9.148) reduces to:
where from the solution of Exercise 8,
Thus,
and
As expected, the voltage regulation is negative because of the leading load.
10. Choosing as our reference vector, that is, , at half-load,
and
Z
eq1 SC
actual ( )
V
SC
I
SC
----------
80.5
5
---------- 16.1 O = = =
Z
eq1 pu
Z
eq1 SC
actual ( )
Z
eq1 base
---------------------------------------
16.1
575.54
---------------- 0.028 = = =
V
1
V
2
r
pu
V
1
V
2
------ 1 =
V
2
V
2
V
OC
240 V = =
V
2 pu
V
OC
V
2
---------- 1 0 pu Z = =
I
2
I
SC
5 A = =
I
2 pu
I
SC
I
2
------- 1 36.9 pu Z 0.8 j0.6 + = = =
a 1 =
V
1
V
2
Z
eq
I
2
+ =
Z
eq1 pu
0.01456 j0.0238 pu + =
V
1
1 0.01456 j0.0238 + ( ) 0.8 j0.6 + ( ) + 0.9974 0.0278 + 0.9978 = = =
r
pu
V
1
V
2
------ 1 0.9978 1 0.0022 = = =
I
2
I
2
I
2
0 pu Z =
I
2 HL
0.5 pu =
Chapter 9 Self and Mutual Inductances - Transformers
9-76 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
From the solution of Exercise 8, , and thus the core losses are
Also from the solution of Exercise 8, , and thus the copper losses are
Thus, the efficiency is
11.
Since is constant, we let and . Then,
and
or
and
Simultaneous solution of the last two equations yields
and thus the individual losses are:
P
HL
V
Load
I
2 HL
pf 1 0.5 0.8 0.4 pu = = =
G
C
0.018 pu =
P
C
G
C
V
OUT
2
0.018 1
2
0.018 pu = = =
R
eq
0.01456 pu =
P
R
R
eq
I
2
0.01456 0.5
2
0.0036 pu = = =
q
P
HL
P
HL
P
C
P
R
+ +
-----------------------------------
0.4
0.4 0.018 0.0036 + +
-------------------------------------------------- 0.949 = = =
P
C
P
h
P
e
+ k
h
f B
max
n
k
e
f
2
B
max
2
+ = =
B
max
x
1
k
h
B
max
n
= x
2
k
e
B
max
2
=
P
C 25 Hz
25x
1
25 ( )
2
x
2
+ 25x
1
625x
2
+ 500 W = = =
P
C 50 Hz
50x
1
50 ( )
2
x
2
+ 50x
1
2500x
2
+ 1400 W = = =
x
1
25x
2
+ 20 =
x
1
50x
2
+ 28 W =
x
1
12 = x
2
0.32 =
P
h 25 Hz
25 12 300 W = = P
e 25 Hz
25 ( )
2
0.32 200 W = =
P
h 50 Hz
50 12 600 W = = P
e 50 Hz
50 ( )
2
0.32 800 W = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-1
Copyright Orchard Publications
Chapter 10
One- and Two-Port Networks
his chapter begins with the general principles of one and two-port networks. The , , ,
and parameters are defined. Several examples are presented to illustrate their use. It con-
cludes with a discussion on reciprocal and symmetrical networks.
10.1 Introduction and Definitions
Generally, a network has two pairs of terminals; one pair is denoted as the input terminals, and the
other as the output terminals. Such networks are very useful in the design of electronic systems,
transmission and distribution systems, automatic control systems, communications systems, and
others where electric energy or a signal enters the input terminals, it is modified by the network,
and it exits through the output terminals.
A port is a pair of terminals in a network at which electric energy or a signal may enter or leave
the network. A network that has only one pair a terminals is called a one-port network. In an one-
port network, the current that enters one terminal must exit the network through the other ter-
minal. Thus, in Figure 10.1, .
Figure 10.1. One-port network
Figures 10.2 and 10.3 show two examples of practical one-port networks.
Figure 10.2. An example of an one-port network
T
z y h
g
i
in
i
out
=
i
in
i
out
+
-
+
-
V
LD
12 V
+
-
3 O 3 O
5 O
6 O 10 O
7 O
8 O
R
LD
I
LD
+
-
I
x
20I
x
4 O
i
in
i
out




Chapter 10 One- and Two-Port Networks
10-2 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 10.3. Another example of an one-port network
A two-port network has two pairs of terminals, that is, four terminals as shown in Figure 10.4
where and
Figure 10.4. Two-port network
10.2 One-Port Driving-Point and Transfer Admittances
Let us consider an network and write the mesh equations for this network in terms of the
impedances . We assume that the subscript of each current corresponds to the loop number and
KVL is applied so that the sign of each is positive. The sign of any for can be positive
or negative depending on the reference directions of and .
(10.1)
In (10.1) each current can be found by Cramers rule. For instance, the current is found by
(10.2)
where
(10.3)
120 V
8 O
+
-
2 O
20 O
4 O
6 O
10 O 16 O
i
in
i
out
i
1
i
3
= i
2
i
4
=
i
1
i
2 +
-
+
-
i
4
i
3
n port
Z
Z
ii
Z
ij
i j
i
i
i
j
Z
11
i
1
Z
12
i
2
Z
13
i
3
. Z
1n
i
n
+ + + + v
1
=
Z
21
i
1
Z
22
i
2
Z
23
i
3
. Z
2n
i
n
+ + + + v
2
=
...............
Z
n1
i
1
Z
n2
i
2
Z
n3
i
3
. Z
nn
i
n
+ + + + v
n
=
i
1
i
1
D
1
A
------ =
A
Z
11
Z
12
Z
13
. Z
1n
Z
21
Z
22
Z
23
. Z
2n
Z
31
Z
32
Z
33
. Z
3n
. . . . .
Z
n1
Z
n2
Z
n3
. Z
nn
=
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-3
Copyright Orchard Publications
One-Port Driving-Point and Transfer Admittances
(10.4)
Next, we recall that the value of the determinant of a matrix is the sum of the products
obtained by multiplying each element of any row or column by its cofactor
*
. The cofactor, with the
proper sign, is the matrix that remains when both the row and the column containing the element
are eliminated. The sign is plus (+) when the sum of the subscripts is even, and it is minus (-)
when it is odd. Mathematically, if the cofactor of the element is denoted as , then
(10.5)
where is the minor of the element . We recall also that the minor is the cofactor without a
sign.
Example 10.1
Compute the determinant of from the elements of the first row and their cofactors given that
Solution:
Using the cofactor concept, and denoting the cofactor of the element as , we find that the
cofactors of , , and of (10.1) are respectively,
(10.6)
* A detailed discussion on cofactors is included in Appendix E.
D
1
V
1
Z
12
Z
13
. Z
1n
V
2
Z
22
Z
23
. Z
2n
V
3
Z
32
Z
33
. Z
3n
. . . . .
V
n
Z
n2
Z
n3
. Z
nn
=
A
a
qr
A
qr
A
qr
1 ( )
q r +
M
qr
=
M
qr
a
qr
A
A
1 2 3
2 4 2
1 2 6
=
detA 1
4 2
2 6
= 2
2 2
1 6
3
2 4
1 2
1 20 2 10 ( ) 3 0 40 = =
a
ij
C
ij
Z
11
Z
12
Z
21
C
11
Z
22
Z
23
. Z
2n
Z
32
Z
33
. Z
3n
. . . .
Z
n2
Z
n3
. Z
nn
=
Chapter 10 One- and Two-Port Networks
10-4 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(10.7)
(10.8)
Therefore, we can express (10.2) as
(10.9)
Also,
(10.10)
and the other currents , , and so on can be written in similar forms.
In network theory the parameters are defined as
(10.11)
Likewise,
(10.12)
and so on. By substitution of the parameters into (10.9) and (10.10) we obtain:
(10.13)
(10.14)
If the subscripts of the -parameters are alike, such as , and so on, they are referred to as
driving-point admittances. If they are unlike, such as , and so on, they are referred to as
transfer admittances.
If a network consists of only two loops such as in Figure 10.5 below,
C
12
Z
21
Z
23
. Z
2n
Z
31
Z
33
. Z
3n
. . . .
Z
n1
Z
n3
. Z
nn
=
C
21
Z
12
Z
13
. Z
1n
Z
32
Z
33
. Z
3n
. . . .
Z
n2
Z
n3
. Z
nn
=
i
1
D
1
A
------
C
11
v
1
A
--------------
C
21
v
2
A
--------------
C
31
v
3
A
-------------- .
C
n1
v
n
A
-------------- + + + + = =
i
2
D
2
A
------
C
12
v
1
A
--------------
C
22
v
2
A
--------------
C
32
v
3
A
-------------- .
C
n2
v
n
A
-------------- + + + + = =
i
3
i
4
y
ij
y
11
C
11
A
-------- = y
12
C
21
A
-------- = y
13
C
31
A
-------- = .
y
21
C
12
A
-------- = y
22
C
22
A
-------- = y
23
C
32
A
-------- = .
y
i
1
y
11
v
1
y
12
v
2
y
13
v
3
. y
1n
v
n
+ + + + =
i
2
y
21
v
1
y
22
v
2
y
23
v
3
. y
2n
v
n
+ + + + =
y y
11
y
22
y
12
y
21
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-5
Copyright Orchard Publications
One-Port Driving-Point and Transfer Admittances
Figure 10.5. Two loop network
the equations of (10.13) and (10.14) will have only two terms each, that is,
(10.15)
(10.16)
From Figure 10.5 we observe that there is only one voltage source, ; there is no voltage source
in Loop 2 and thus . Then, (10.15) and (10.16) reduce to
(10.17)
(10.18)
Relation (10.17) reveals that the driving-point admittance is the ratio . That is, the
driving-point admittance, as defined by (10.17), is the admittance seen by a voltage source that is
present in the respective loop, in this case, Loop 1. Stated in other words, the driving-point admit-
tance is the ratio of the current in a given loop to the voltage source in that loop when there are no voltage
sources in any other loops of the network.
Transfer admittance is the ratio of the current in some other loop to the driving voltage source, in
this case . As indicated in (10.18), the transfer admittance is the ratio of the current in
Loop 2 to the voltage source in Loop 1.
Example 10.2
For the circuit of Figure 10.6, find the driving-point and transfer admittances and the current
through each resistor.
Figure 10.6. Circuit for Example 10.2
Solution:
We assign currents as shown in Figure 10.7.
+
-
R
1
R
2
R
3
i
1
i
2
i
1
y
11
v
1
y
12
v
2
+ =
i
2
y
21
v
1
y
22
v
2
+ =
v
1
v
2
0 =
i
1
y
11
v
1
=
i
2
y
21
v
1
=
y
11
i
1
v
1
'
v
1
y
21
4 O v
1
+
-
R
1
R
2
R
3
24 V
12 O
6 O
Chapter 10 One- and Two-Port Networks
10-6 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 10.7. Loop equations for the circuit of Example 10.2
The loop equations are
(10.19)
The driving-point admittance is found from (10.11), that is,
(10.20)
and the transfer admittance from (10.12), that is,
(10.21)
For this example,
(10.22)
The cofactor is obtained by inspection from the matrix of (10.22), that is, eliminating the
first row and first column we are left with 18 and thus . Similarly, the cofactor is
found by eliminating the first row and second column and changing the sign of . Then,
. By substitution into (10.20) and (10.21), we obtain
(10.23)
and
(10.24)
Then, by substitution into (10.17) and (10.18) we obtain
(10.25)
(10.26)
4 O v
1
+
-
R
1
R
2
R
3
24 V
12 O
6 O
i
1
i
2
10i
1
6i
2
24 =
6i
1
18i
2
+ 0 =
y
11
C
11
A
-------- =
y
21
C
12
A
-------- =
A
10 6
6 18
180 36 144 = = =
C
11
C
11
18 = C
12
6
C
12
6 =
y
11
C
11
A
--------
18
144
---------
1
8
--- = = =
y
21
C
12
A
--------
6
144
---------
1
24
------ = = =
i
1
y
11
v
1
1
8
-- - 24 3 A = = =
i
2
y
21
v
1
1
24
------ 24 1 A = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-7
Copyright Orchard Publications
One-Port Driving-Point and Transfer Impedances
Finally, the we observe that the current through the resistor is , through the is
and through the is .
Of course, there are other simpler methods of computing these currents. However, the intent here
was to illustrate how the driving-point and transfer admittances are applied. These allow easy
computation for complicated network problems.
10.3 One-Port Driving-Point and Transfer Impedances
Now, let us consider an network and write the nodal equations for this network in terms
of the admittances . We assume that the subscript of each current corresponds to the loop num-
ber and KVL is applied so that the sign of each is positive. The sign of any for can be
positive or negative depending on the reference polarities of and .
(10.27)
In (10.27), each voltage can be found by Cramers rule. For instance, the voltage is found by
(10.28)
where
(10.29)
(10.30)
As in the previous section, we find that the nodal equations of (10.27) can be expressed as
4 O 3 A 12 O 1 A
6 O i
1
i
2
3 1 2A = =
n port
Y
Y
ii
Y
ij
i j
v
i
v
j
Y
11
v
1
Y
12
v
2
Y
13
v
3
. Y
1n
v
n
+ + + + i
1
=
Y
21
v
1
Y
22
v
2
Y
23
v
3
. Y
2n
v
n
+ + + + i
2
=
...............
Y
n1
v
1
Y
n2
v
2
Y
n3
v
3
. Y
nn
v
n
+ + + + i
n
=
v
1
v
1
D
1
A
------ =
A
Y
11
Y
12
Y
13
. Y
1n
Y
21
Y
22
Y
23
. Y
2n
Y
31
Y
32
Y
33
. Y
3n
. . . . .
Y
n1
Y
n2
Y
n3
. Y
nn
=
D
1
V
1
Y
12
Y
13
. Y
1n
V
2
Y
22
Y
23
. Y
2n
V
3
Y
32
Y
33
. Y
3n
. . . . .
V
n
Y
n2
Y
n3
. Y
nn
=
Chapter 10 One- and Two-Port Networks
10-8 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(10.31)
(10.32)
(10.33)
and so on, where
(10.34)
(10.35)
(10.36)
and so on. The matrices represent the cofactors as in the previous section.
The coefficients of (10.31), (10.32), and (10.33) with like subscripts are referred to as driving-
point impedances. Thus, , and so on, are driving-point impedances. The remaining coeffi-
cients with unlike subscripts, such as , and so on, are called transfer impedances.
To understand the meaning of the driving-point and transfer impedances, we examine the net-
work of Figure 10.8 where is the reference node and nodes and are independent nodes.
The driving point impedance is the ratio of the voltage across the nodes and to the current
that flows through the branch between these nodes. In other words,
(10.37)
Figure 10.8. Circuit to illustrate the definitions of driving-point and transfer impedances.
The transfer impedance between nodes and is the ratio of the voltage to the current at
node when there are no other current (or voltage) sources in the network. That is,
(10.38)
v
1
z
11
i
1
z
12
i
2
z
13
i
3
. z
1n
i
n
+ + + + =
v
2
z
21
i
1
z
22
i
2
z
23
i
3
. z
2n
i
n
+ + + + =
v
3
z
31
i
1
z
32
i
2
z
33
i
3
. z
3n
i
n
+ + + + =
z
11
C
11
A
-------- = z
12
C
21
A
-------- = z
13
C
31
A
-------- = .
z
21
C
12
A
-------- = z
22
C
22
A
-------- = z
23
C
32
A
-------- = .
z
31
C
13
A
-------- = z
32
C
23
A
-------- = z
33
C
33
A
-------- = .
C
ij
z
11
z
22
z
12
z
21
0 1 2
1 0
z
11
v
1
i
1
----- =
G
1
G
2
G
3
i
1
v
1
v
2
v
0
2
0
1
v
S
2 1 v
2
1
z
21
v
2
i
1
----- =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-9
Copyright Orchard Publications
One-Port Driving-Point and Transfer Impedances
Example 10.3
For the network of Figure 10.9, compute the driving-point and transfer impedances and the volt-
ages across each conductance in terms of the current source.
Figure 10.9. Network for Example 10.3.
Solution:
We assign nodes , , , and as shown in Figure 10.10.
Figure 10.10. Node assignment for network of Example 10.3
The nodal equations are
(10.39)
Simplifying and rearranging we obtain:
(10.40)
The driving-point impedance is found from (10.34), that is,
(10.41)
and the transfer impedances and from (10.35) and (10.36), that is,
10 O
1
2 O
1 1 O
1
i
1
1 O
1
1 O
1
1 O
1
0 1 2 3
10
2
i
1
v
0
v
1
v
2
1
2 3
0
1
1
1
1
v
3
10v
1
2 v
1
v
2
( ) 1 v
1
v
3
( ) + + i
1
=
2 v
2
v
1
( ) 1 v
2
v
3
( ) 1v
2
+ + 0 =
1 v
3
v
1
( ) 1 v
3
v
2
( ) 1v
3
+ + 0 =
13v
1
2v
2
v
3
i
1
=
2v
1
4v
2
v
3
+ 0 =
v
1
v
2
3v
3
+ 0 =
z
11
z
11
C
11
A
-------- =
z
21
z
31
Chapter 10 One- and Two-Port Networks
10-10 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(10.42)
(10.43)
For this example,
(10.44)
The cofactor is
(10.45)
Similarly, the cofactors and are
(10.46)
and
(10.47)
By substitution into (10.41), (10.42), and (10.43), we obtain
(10.48)
(10.49)
(10.50)
Then, by substitution into (10.31), (10.32), and (10.33) we obtain:
(10.51)
(10.52)
(10.53)
z
21
C
12
A
-------- =
z
31
C
13
A
-------- =
A
13 2 1
2 4 1
1 1 3
156 2 2 4 13 12 123 = = =
C
11
C
11
4 1
1 3
12 1 11 = = =
C
12
C
13
C
12
2 1
1 3
6 1 ( ) 7 = = =
C
13
2 4
1 1
2 4 + 6 = = =
z
11
C
11
A
--------
11
123
--------- = =
z
21
C
12
A
--------
7
123
--------- = =
z
31
C
13
A
--------
6
123
--------- = =
v
1
z
11
i
1
z
12
i
2
z
13
i
3
+ +
11
123
---------i
1
= =
v
2
z
21
i
1
z
22
i
2
z
23
i
3
+ +
7
123
---------i
1
= =
v
3
z
31
i
1
z
32
i
2
z
33
i
3
+ +
6
123
---------i
1
= =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-11
Copyright Orchard Publications
Two-Port Networks
As stated earlier, there are other simpler methods of computing these voltages. However, the
intent here was to illustrate how the driving-point and transfer impedances are applied. These
allow easy computation for complicated network problems.
10.4 Two-Port Networks
Figure 10.11 shows a two-port network with external voltages and currents specified.
Figure 10.11. Two-port network
Here, we assume that and . We also assume that and are obtained by the
superposition of the currents produced by both and .
Next, we will define the , , , and parameters.
10.4.1 The y Parameters
The two-port network of Figure 10.11 can be described by the following set of equations.
(10.54)
(10.55)
In two-port network theory, the coefficients are referred to as the parameters.
Let us assume that is shorted, that is, . Then, (10.54) reduces to
(10.56)
or
(10.57)
and is referred to as the short circuit input admittance at the left port when the right port of Fig-
ure 10.11 is short-circuited.
Let us again consider (10.54), that is,
(10.58)
This time we assume that is shorted, i.e., . Then, (10.58) reduces to
(10.59)
i
1
i
2
+
+
-
i
4
i
3
-
v
1
v
2
Linear network
(Consists of linear
passive devices and
possibly dependent
sources but no
independent sources)
i
1
i
3
= i
2
i
4
= i
1
i
2
v
1
v
2
y z h g
i
1
y
11
v
1
y
12
v
2
+ =
i
2
y
21
v
1
y
22
v
2
+ =
y y
v
2
v
2
0 =
i
1
y
11
v
1
=
y
11
i
1
v
1
----- =
y
11
i
1
y
11
v
1
y
12
v
2
+ =
v
1
v
1
0 =
i
1
y
12
v
2
=
Chapter 10 One- and Two-Port Networks
10-12 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
or
(10.60)
and is referred to as the short circuit transfer admittance when the left port of Figure 10.11 is
short-circuited. It represents the transmission from the right to the left port. For instance, in
amplifiers where the left port is considered to be the input port and the right to be the output, the
parameter represents the internal feedback inside the network.
Similar expressions are obtained when we consider the equation for , that is,
(10.61)
In an amplifier, the parameter is also referred to as the short circuit transfer admittance and
represents transmission from the left (input) port to the right (output) port. It is a measure of the
so-called forward gain.
The parameter is called the short circuit output admittance.
The parameters and the conditions under which they are computed are shown in Figures 10.12
through 10.16.
Figure 10.12. The y parameters for and
Figure 10.13. Network for the definition of the parameter
Figure 10.14. Network for the definition of the parameter
y
12
i
1
v
2
----- =
y
12
y
12
i
2
i
2
y
21
v
1
y
22
v
2
+ =
y
21
y
22
y
i
1
i
2
+
i
4
i
3
- v
1
v
2
i
1
y
11
v
1
y
12
v
2
+ =
i
2
y
21
v
1
y
22
v
2
+ =
+
-
+
-
v
1
0 v
2
0
i
1 i
2
i
4
i
3
v
1
v
2
=0
y
11
i
1
v
1
-----
v
2
0 =
=
+
-
y
11
i
1 i
2
i
4
i
3
v
2
v
1
=0
y
12
i
1
v
2
-----
v
1
0 =
=
+
-
y
12
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-13
Copyright Orchard Publications
Two-Port Networks
Figure 10.15. Network for the definition of the parameter
Figure 10.16. Network for the definition of the parameter
Example 10.4
For the network of Figure 10.17, find the parameters.
Figure 10.17. Network for Example 10.4
Solution:
a. The short circuit input admittance is found from the network of Figure 10.18 where we
have assumed that and the resistances, for convenience, have been replaced with
conductances in mhos.
Figure 10.18. Network for computing
We observe that the conductance is shorted out and thus the current is the sum of
the currents through the and conductances. Then,
i
1 i
2
i
4
i
3
v
1
v
2
=0
y
21
i
2
v
1
-----
v
2
0 =
=
+
-
y
21
i
1
i
2
i
4
i
3
v
2
v
1
=0
y
22
i
2
v
2
-----
v
1
0 =
=
+
-
y
22
y
5 O 20 O
10 O
y
11
v
1
1 V =
+
-
v
1
= 1 V
v
2
= 0
i
1

0.1 O
1
0.2 O
1
0.05 O
1
y
11
0.05 O
1
i
1
0.2 O
1
0.1 O
1
Chapter 10 One- and Two-Port Networks
10-14 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
and thus the short circuit input admittance is
(10.62)
b. The short circuit transfer admittance when the left port is short-circuited, is found from
the network of Figure 10.19.
Figure 10.19. Network for computing
We observe that the conductance is shorted out and thus the conductance is
in parallel with the conductance. The current , with a minus (-) sign, now flows
through the conductance. Then,
and
\ (10.63)
c. The short circuit transfer admittance when the right port is short-circuited, is found from
the network of Figure 10.20.
Figure 10.20. Network for computing
We observe that the conductance is shorted out and thus the conductance
is in parallel with the conductance. The current , with a minus (-) sign, now flows
through the conductance. Then,
i
1
0.2v
1
0.1v
1
+ 0.2 1 0.1 1 + 0.3 A = = =
y
11
i
1
v
1
' 0.3 1 ' 0.3 O
1
= = =
y
12
+
-
v
2
= 1 V
v
1
= 0
i
1

0.1 O
1
0.2 O
1
0.05 O
1
y
12
0.2 O
1
0.1 O
1
0.05 O
1
i
1
0.1 O
1
i
1
0.1v
2
0.1 1 = 0.1 A = =
y
12
i
1
v
2
' 0.1 1 ' 0.1 O
1
= = =
y
21
+
-
v
1
= 1 V
v
2
= 0
i
1

0.1 O
1
0.2 O
1
0.05 O
1
i
2

y
21
0.05 O
1
0.1 O
1
0.2 O
1
i
2
0.1 O
1
i
2
0.1v
1
0.1 1 = 0.1 A = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-15
Copyright Orchard Publications
Two-Port Networks
and
(10.64)
d. The short circuit output admittance at the right port when the left port is short-circuited,
is found from the network of 10.21.
Figure 10.21. Network for computing
We observe that the conductance is shorted out and thus the current is the is the
sum of the currents through the and conductances. Then,
and
(10.65)
Therefore, the two-port network of Figure 10.10 can be described by the following set of equa-
tions.
(10.66)
Note:
In Example 10.4, we found that the short circuit transfer admittances are equal, that is,
(10.67)
This is not just a coincidence; this is true whenever a two-port network is reciprocal (or bilateral).
A network is reciprocal if the reciprocity theorem is satisfied. This theorem states that:
If a voltage applied in one branch of a linear, two-port passive network produces a certain current in any
other branch of this network, the same voltage applied in the second branch will produce the same current
in the first branch.
The reverse is also true, that is, if current applied at one node produces a certain voltage at
another, the same current at the second node will produce the same voltage at the first. An exam-
ple is given at the end of this chapter. Obviously, if we know that the two-port network is recipro-
cal, only three computations are required to find the parameters.
y
21
i
2
v
1
' 0.1 1 ' 0.1 O
1
= = =
y
22
+
-
v
2
= 1 V
v
1
= 0
0.1 O
1
0.2 O
1
0.05 O
1
i
2

y
22
0.2 O
1
i
2
0.05 O
1
0.1 O
1
i
2
0.05v
2
0.1v
2
+ 0.05 1 0.1 1 + 0.15 A = = =
y
22
i
2
v
2
' 0.15 1 ' 0.15 O
1
= = =
i
1
y
11
v
1
y
12
v
2
+ 0.3v
1
0.1v
2
= =
i
2
y
21
v
1
y
22
v
2
+ 0.1 v
1
0.3v
2
+ = =
y
21
y
12
0.1 = =
y
Chapter 10 One- and Two-Port Networks
10-16 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
If in a reciprocal two-port network its ports can be interchanged without affecting the terminal
voltages and currents, the network is said to be also symmetric. In a symmetric two-port network,
(10.68)
The network of Figure 10.17 is not symmetric since .
We will present examples of reciprocal and symmetric two-port networks at the last section of
this chapter.
The following example illustrates the applicability of two-port network analysis in more compli-
cated networks.
Example 10.5
For the network of Figure 10.22, compute , , , and .
Figure 10.22. Network for Example 10.5
Solution:
We recognize the portion of the network enclosed in the dotted square, shown in Figure 10.23, as
that of the previous example.
Figure 10.23. Portion of the network for which the parameters are known.
For the network of Figure 10.23, at Node 1,
(10.69)
and at Node 2,
(10.70)
y
22
y
11
=
y
21
y
12
=
y
22
y
11

v
1
v
2
i
1
i
2
v
1

v
2

i
2

15 A
10 O
5 O
10 O
20 O
4 O
+
+
i
1

- -
+
v
1

v
2

i
2

15 A
10 O
5 O
10 O
20 O
4 O
+
+
i
1

- -
+ 1 2
y
i
1
15 v
1
10 ' =
i
2
v
2
4 ' =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-17
Copyright Orchard Publications
Two-Port Networks
By substitution of (10.69) and (10.70) into (10.66), we obtain:
(10.71)
or
(10.72)
We will use MATLAB to solve the equations of (10.72) to become more familiar with it.
syms v1 v2; [v1 v2]=solve(0.4*v1-0.1*v2-15, -0.1*v1+0.4*v2)
% Must have Symbolic Math Toolbox installed
v1 = 40
v2 = 10
and thus
(10.73)
The currents and are found from (10.69) and (10.70).
(10.74)
10.4.2 The z parameters
A two-port network such as that of Figure 10.24 can also be described by the following set of
equations.
Figure 10.24. The z parameters for and
(10.75)
(10.76)
In two-port network theory, the coefficients are referred to as the parameters or as open cir-
cuit impedance parameters.
i
1
y
11
v
1
y
12
v
2
+ 0.3v
1
0.1v
2
15 v
1
10 ' = = =
i
2
y
21
v
1
y
22
v
2
+ 0.1 v
1
0.3v
2
+ v
2
4 ' = = =
0.4v
1
0.1v
2
15 =
0.1 v
1
0.4v
2
+ 0 =
v
1
40 V =
v
2
10 V =
i
1
i
2
i
1
15 40 10 ' 11 A = =
i
2
10 4 ' 2.5 A = =
i
1 i
2
v
1
z
11
i
1
z
12
i
2
+ =
v
2
z
21
i
1
z
22
i
2
+ =
v
1
+
-
+
-
v
2
i
1
0 i
2
0
v
1
z
11
i
1
z
12
i
2
+ =
v
2
z
21
i
1
z
22
i
2
+ =
z
ij
z
Chapter 10 One- and Two-Port Networks
10-18 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Let us assume that is open, that is, as shown in Figure 10.25.
Figure 10.25. Network for the definition of the parameter
Then, (10.75) reduces to
(10.77)
or
(10.78)
and this is the open circuit input impedance when the right port of Figure 10.25 is open.
Let us again consider (10.75), that is,
(10.79)
This time we assume that the terminal at is open, i.e., as shown in Figure 10.26.
Figure 10.26. Network for the definition of the parameter
Then, (10.75) reduces to
(10.80)
or
(10.81)
and this is the open circuit transfer impedance when the left port is open as shown in Figure 10.26.
Similar expressions are obtained when we consider the equation for , that is,
(10.82)
Let us assume that is open, that is, as shown in Figure 10.27.
Then, (10.82) reduces to
(10.83)
v
2
i
2
0 =
i
1
i
2
=0
z
11
v
1
i
1
-----
i
2
0 =
=
v
1
+
-
+
-
v
2
z
11
v
1
z
11
i
1
=
z
11
v
1
i
1
----- =
v
1
z
11
i
1
z
12
i
2
+ =
v
1
i
1
0 =
i
2
i
1
=0
z
12
v
1
i
2
-----
i
1
0 =
=
v
1
+
-
+
-
v
2
z
12
v
1
z
12
i
2
=
z
12
v
1
i
2
----- =
v
2
v
2
z
21
i
1
z
22
i
2
+ =
v
2
i
2
0 =
v
2
z
21
i
1
=
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-19
Copyright Orchard Publications
Two-Port Networks
Figure 10.27. Network for the definition of the parameter
or
(10.84)
The parameter is referred to as open circuit transfer impedance when the right port is open as
shown in Figure 10.27.
Finally, let us assume that the terminal at is open, i.e., as shown in Figure 10.28.
Figure 10.28. Network for the definition of the parameter
Then, (10.82) reduces to
(10.85)
or
(10.86)
The parameter is called the open circuit output impedance.
We observe that the parameters definitions are similar to those of the parameters if we substi-
tute voltages for currents and currents for voltages.
Example 10.6
For the network of Figure 10.29, find the parameters.
Figure 10.29. Network for Example 10.6
i
1
i
2
=0
z
21
v
2
i
1
-----
i
2
0 =
=
v
1
+
-
+
-
v
2
z
21
z
21
v
2
i
1
----- =
z
21
v
1
i
1
0 =
i
2
i
1
=0
z
22
v
2
i
2
-----
i
1
0 =
=
v
1
+
-
+
-
v
2
z
22
v
2
z
22
i
2
=
z
22
v
2
i
2
----- =
z
22
z y
z
20 O
5 O
15 O
Chapter 10 One- and Two-Port Networks
10-20 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
a. The open circuit input impedance is found from the network of Figure 10.30 where we
have assumed that .
Figure 10.30. Network for computing for the network of Figure 10.29
We observe that the resistor is in parallel with the series combination of the and
resistors. Then, by the current division expression, the current through the resistor
is and the voltage across that resistor is
Therefore, the open circuit input impedance is
(10.87)
b. The open circuit transfer impedance is found from the network of Figure 10.31.
Figure 10.31. Network for computing for the network of Figure 10.29
We observe that the resistance is in parallel with the series combination of the and
resistances. Then, the current through the resistance is
and the voltage across this resistor is
Therefore, the open circuit transfer impedance is
z
11
i
1
1 A =
+
-
i
1
= 1 A
i
2
= 0
v
1
20 O
15 O
5 O
+
-
v
2

z
11
20 O 5 O
15 O 20 O
0.5 A
v
1
20 0.5 10 V = =
z
11
z
11
v
1
i
1
' 10 1 ' 10 O = = =
z
12
+
i
2
= 1 A
i
1
= 0
-
-
+
v
1
v
2

20 O
5 O
15 O
z
12
15 O 5 O
20 O 20 O
i
20O
15
15 5 20 + +
---------------------------i
2
15
40
------ 1 3 8 ' = A = =
3
8
-- - 20
60
8
------ 15 2 ' = = V
z
12
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-21
Copyright Orchard Publications
Two-Port Networks
(10.88)
c. The open circuit transfer impedance is found from the network of Figure 10.32.
Figure 10.32. Network for computing for the network of Figure 10.29
In Figure 10.32 the current that flows through the resistor is
and the voltage across this resistor is
Therefore, the open circuit transfer impedance is
(10.89)
We observe that
(10.90)
d. The open circuit output impedance is found from the network of Figure 10.33.
Figure 10.33. Network for computing for the network of Figure 10.29
We observe that the resistance is in parallel with the series combination of the and
resistances. Then, the current through the resistance is
z
12
v
1
i
2
-----
15 2 '
1
------------- 7.5 O = = =
z
21
+
-
i
1
= 1 A
i
2
= 0
v
1
20 O
15 O
5 O
+
-
v
2

z
21
15 O
i
15O
20
20 5 15 + +
---------------------------i
1
20
40
------ 1 1 2 ' = A = =
v
2
1
2
-- - 15 15 2 ' = = V
z
21
z
21
v
2
i
1
-----
15 2 '
1
------------- 7.5 O = = =
z
21
z
12
=
z
22
+
i
2
= 1 A
i
1
= 0
-
-
+
v
1
v
2

20 O
5 O
15 O
z
22
15 O 5 O
20 O 15 O
i
15O
20 5 +
20 5 15 + +
---------------------------i
2
25
40
------ 1 5 8 ' = A = =
Chapter 10 One- and Two-Port Networks
10-22 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
and the voltage across that resistor is
Therefore, the open circuit output impedance is
(10.91)
10.4.3 The h Parameters
A two-port network can also be described by the set of equations
(10.92)
(10.93)
as shown in Figure 10.34.
Figure 10.34. The h parameters for and
The parameters represent an impedance, a voltage gain, a current gain, and an admittance. For
this reason they are called hybrid (different) parameters.
Let us assume that as shown in Figure 10.35.
Figure 10.35. Network for the definition of the parameter
Then, (10.92) reduces to
(10.94)
or
(10.95)
5
8
-- - 15 75 8 ' = V
z
22
z
22
v
1
i
2
-----
75 8 '
1
------------- 75 8 ' O = = =
v
1
h
11
i
1
h
12
v
2
+ =
i
2
h
21
i
1
h
22
v
2
+ =
i
1
i
2
v
1
h
11
i
1
h
12
v
2
+ =
i
2
h
21
i
1
h
22
v
2
+ =
v
1
+
-
+
-
v
2
i
1
0 v
2
0
h
v
2
0 =
i
1
v
2
=0
h
11
v
1
i
1
-----
v
2
0 =
=
v
1
+
-
i
2
h
11
v
1
h
11
i
1
=
h
11
v
1
i
1
----- =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-23
Copyright Orchard Publications
Two-Port Networks
Therefore, the parameter represents the input impedance of a two-port network.
Let us assume that as shown in Figure 10.36.
Figure 10.36. Network for computing for the network of Figure 10.34
Then, (10.92) reduces to
(10.96)
or
(10.97)
Therefore, in a two-port network the parameter represents a voltage gain (or loss).
Let us assume that as shown in Figure 10.37.
Figure 10.37. Network for computing for the network of Figure 10.34
Then, (10.93) reduces to
or
Therefore, in a two-port network the parameter represents a current gain (or loss).
Finally, let us assume that the terminal at is open, i.e., as shown in Figure 10.38.
Figure 10.38. Network for computing for the network of Figure 10.34
h
11
i
1
0 =
v
2
i
1
=0
h
12
v
1
v
2
-----
i
1
0 =
=
v
1
+
-
+
-
i
2
h
12
v
1
h
12
v
2
=
h
12
v
1
v
2
----- =
h
12
v
2
0 =
i
1
v
2
=0
h
21
i
2
i
1
----
v
2
0 =
=
v
1
+
-
i
2
h
21
i
2
h
21
i
1
=
h
21
i
2
i
1
---- =
h
21
v
1
i
1
0 =
i
2
i
1
=0
h
22
i
2
v
2
-----
i
1
0 =
=
v
1
+
-
+
- v
2
h
22
Chapter 10 One- and Two-Port Networks
10-24 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Then, (10.93) reduces to
or
Therefore, in a two-port network the parameter represents an output admittance.
Example 10.7
For the network of Figure 10.39, find the parameters.
Figure 10.39. Network for Example 10.7
Solution:
a. The short circuit input impedance is found from the network of Figure 10.40 where we
have assumed that .
Figure 10.40. Network for computing for the network of Figure 10.39
From the network of Figure 10.40 we observe that the and resistors are in parallel
yielding an equivalent resistance of in series with the resistor. Then, the voltage
across the current source is
Therefore, the short circuit input impedance is
(10.98)
i
2
h
22
v
2
=
h
22
i
2
v
2
----- =
h
22
h
1 O
6 O
4 O
h
11
i
1
1 A =
1 O 6 O
4 O
+
-
v
1

i
1
= 1 A
v
2
= 0
i
2

h
11
4 O 6 O
2.4 O 1 O
v
1
1 1 2.4 + ( ) 3.4 V = =
h
11
h
11
v
1
i
1
-----
3.4
1
------- 3.4 O = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-25
Copyright Orchard Publications
Two-Port Networks
b. The voltage gain is found from the network of Figure 10.41.
Figure 10.41. Network for computing for the network of Figure 10.39.
Since no current flows through the resistor, the voltage is the voltage across the
resistor. Then, by the voltage division expression,
Therefore, the voltage gain is the dimensionless number
(10.99)
c. The current gain is found from the network of Figure 10.42.
Figure 10.42. Network for computing for the network of Figure 10.39.
We observe that the and resistors are in parallel yielding an equivalent resistance of
. Then, the voltage across the parallel combination is
The current is the current through the resistor. Thus,
Therefore, the current gain is the dimensionless number
h
12
1 O 6 O
4 O
+
-
v
1

v
2
= 1 V
i
1
= 0
+
-
h
12
1 O v
1
4 O
v
1
4
6 4 +
------------v
2
4
10
------ 1 0.4 V = = =
h
12
h
12
v
1
v
2
-----
0.4
1
------- 0.4 = = =
h
21
1 O 6 O
4 O
+
-
v
1

i
1
= 1 A
v
2
= 0
i
2

h
21
4 O 6 O
2.4 O 2.4 O
v
2.4O
2.4 1 2.4 V = =
i
2
6 O
i
2
2.4
6
------- 0.4 A = =
h
21
Chapter 10 One- and Two-Port Networks
10-26 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
We observe that
(10.100)
and this is a consequence of the fact that the given network is reciprocal.
d. The open circuit admittance is found from the network of Figure 10.43.
Figure 10.43. Network for computing for the network of Figure 10.39.
Since no current flows through the resistor, the current is found by Ohms law as
Therefore, the open circuit admittance is
(10.101)
Note:
The parameters and the parameters (to be discussed next), are used extensively in networks
consisting of transistors
*
, and feedback networks. The parameters are best suited with series-
parallel feedback networks, whereas the parameters are preferred in parallel-series amplifiers.
10.4.4 The g Parameters
A two-port network can also be described by the set of equations
(10.102)
(10.103)
* Transistors are three-terminal devices. However, they can be represented as large-signal equivalent two-port
networks circuits and also as small-signal equivalent two-port networks where linearity can be applied. For a
detailed discussion on transistors, please refer to Electronic Devices and Amplifier Circuits with MATLAB
Applications, ISBN 978-1-934404-13-3.
h
21
i
2
i
1
----
0.4
1
---------- 0.4 = = =
h
21
h
12
=
h
22
1 O 6 O
4 O
+
-
v
1

v
2
= 1 V
i
1
= 0
+
-
h
22
1 O i
2
i
2
v
2
6 4 +
------------
1
10
------ 0.1 A = = =
h
22
h
22
i
2
v
2
-----
0.1
1
------- 0.1 O
1
= = =
h g
h
g
i
1
g
11
v
1
g
12
i
2
+ =
v
2
g
21
v
1
g
22
i
2
+ =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-27
Copyright Orchard Publications
Two-Port Networks
as shown in Figure 10.44.
Figure 10.44. The g parameters for and
The parameters, also known as inverse hybrid parameters, represent an admittance, a current gain,
a voltage gain and an impedance.
Let us assume that as shown in Figure 10.45.
Figure 10.45. Network for computing for the network of Figure 10.44
Then, (10.102) reduces to
(10.104)
or
(10.105)
Therefore, the parameter represents the input admittance of a two-port network.
Let us assume that as shown in Figure 10.46.
Figure 10.46. Network for computing for the network of Figure 10.44
Then, (10.102) reduces to
(10.106)
or
(10.107)
Therefore, in a two-port network the parameter represents a current gain (or loss).
i
1
i
2
i
1
g
11
v
1
g
12
i
2
+ =
v
2
g
21
v
1
g
22
i
2
+ =
v
2
+
-
+
-
v
1
v
1
0 i
2
0
g
i
2
0 =
i
1
i
2
= 0 v
2
+
-
+
-
v
1
g
11
i
1
v
1
-----
i
2
0 =
=
g
11
i
1
g
11
v
1
=
g
11
i
1
v
1
----- =
g
11
v
1
0 =
i
1
i
2 v
2
+
-
v
1
= 0
g
12
i
1
i
2
----
v
1
0 =
=
g
12
i
1
g
12
i
2
=
g
12
i
1
i
2
---- =
g
12
Chapter 10 One- and Two-Port Networks
10-28 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Let us assume that as shown in Figure 10.47.
Figure 10.47. Network for computing for the network of Figure 10.44
Then, (10.103) reduces to
(10.108)
or
(10.109)
Therefore, in a two-port network the parameter represents a voltage gain (or loss).
Finally, let us assume that is shorted, i.e., as shown in Figure 10.48.
Figure 10.48. Network for computing for the network of Figure 10.44
Then, (10.103) reduces to
(10.110)
or
(10.111)
Thus, in a two-port network the parameter represents the output impedance of that network.
Example 10.8
For the network of Figure 10.49, find the parameters.
Figure 10.49. Network for Example 10.8
i
2
0 =
i
1
i
2
= 0 v
2
+
-
+
-
v
1
g
21
v
2
v
1
-----
i
2
0 =
=
g
21
v
2
g
21
v
1
=
g
21
v
2
i
1
----- =
g
21
v
1
v
1
0 =
i
1
i
2 v
2
+
-
v
1
= 0
g
22
v
2
i
2
-----
v
1
0 =
=
g
22
v
2
g
22
i
2
=
g
22
v
2
i
2
----- =
g
22
g
1 O 4 O
12 O
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-29
Copyright Orchard Publications
Two-Port Networks
Solution:
a. The open circuit input admittance is found from the network of Figure 10.50 where we
have assumed that .
Figure 10.50. Network for computing for the network of Figure 10.49.
There is no current through the resistor and thus by Ohms law,
Therefore, the open circuit input admittance is
(10.112)
b. The current gain is found from the network of Figure 10.51.
Figure 10.51. Network for computing for the network of Figure 10.49.
By the current division expression, the current through the resistor is
Therefore, the current gain is the dimensionless number
(10.113)
c. The voltage gain is found from the network of Figure 10.52.
g
11
v
1
1 V =
1 O 4 O
12 O
+
-
v
2

v
1
= 1 V
i
2
= 0
i
1

-
+
g
11
4 O
i
1
v
1
1 12 +
---------------
1
13
------ A = =
g
11
g
11
i
1
v
1
-----
1 13 '
1
-------------
1
13
------ O
1
= = =
g
12
1 O 4 O
12 O
i
1

i
2
= 1 A
v
1
= 0
g
12
1 O
i
1
12
12 1 +
---------------i
2
12
13
------ 1 12 13 ' A = = =
g
12
g
12
i
1
i
2
----
12 13 '
1
------------------- 12 13 ' = = =
g
21
Chapter 10 One- and Two-Port Networks
10-30 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 10.52. Network for computing for the network of Figure 10.49.
Since there is no current through the resistor, the voltage is the voltage across the
resistor. Then, by the voltage division expression,
Therefore, the voltage gain is the dimensionless number
We observe that
(10.114)
and this is a consequence of the fact that the given network is reciprocal.
d. The short circuit output impedance is found from the network of Figure 10.53.
Figure 10.53. Network for computing for the network of Figure 10.49.
The voltage is the sum of the voltages across the resistor and the voltage across the
resistor. By the current division expression, the current through the resistor is
(10.115)
Then,
and
1 O
4 O
12 O
+
-
v
2

v
1
= 1 V
i
2
= 0
i
1

-
+
g
21
4 O v
2
12 O
v
2
12
1 12 +
--------------- 1 12 13 ' V = =
g
21
g
21
v
2
v
1
-----
12 13 '
1
----------------
12
13
------ = = =
g
21
g
12
=
g
22
1 O 4 O
12 O
i
1

i
2
= 1 A
v
1
= 0 v
2

-
+
g
22
v
2
4 O
12 O 12 O
i
12O
1
1 12 +
---------------i
2
1
13
------ 1 1 13 ' A = = =
v
12O
1
13
------ 12 12 13 ' V = =
v
2
12
13
------ 4 + 64 13 ' V = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-31
Copyright Orchard Publications
Reciprocal Two-Port Networks
Therefore, the short circuit output impedance is
(10.116)
10.5 Reciprocal Two-Port Networks
If any of the following relationships exist in a a two-port network,
(10.117)
the network is said to be reciprocal.
If, in addition to (10.117), any of the following relationship exists
(10.118)
the network is said to be symmetric.
Examples of reciprocal two-port networks are the , , ( ), and .
These are shown in Figure 10.54. Examples of symmetric two-port networks are shown in Figure
10.55.
Let us review the reciprocity theorem and its consequences before we present an example. This
theorem states that:
If a voltage applied in one branch of a linear, two-port passive network produces a certain current in any
other branch of this network, the same voltage applied in the second branch will produce the same current
in the first branch.
The reverse is also true, that is, if current applied at one node produces a certain voltage at
another, the same current at the second node will produce the same voltage at the first.
It was also stated earlier that if we know that the two-port network is reciprocal, only three com-
putations are required to find the , , , and parameters as shown in (10.117). Furthermore, if
we know that the two-port network is symmetric, we only need to make only two computations as
shown in (10.118).
g
22
g
22
v
2
i
2
-----
64 13 '
1
---------------- 64 13 ' O = = =
z
21
z
12
=
y
21
y
12
=
h
21
h
12
=
g
21
g
12
=
z
22
z
11
=
y
22
y
11
=
h
11
h
22
h
12
h
21
1 =
g
11
g
22
g
12
g
21
1 =
tee r bridged lattice bridged tee
y z h g
Chapter 10 One- and Two-Port Networks
10-32 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications

Figure 10.54. Examples of reciprocal two-port networks
.
Figure 10.55. Examples of symmetric two-port networks.
Example 10.9
In the two-port network of Figure 10.56, the voltage source connected at the left end of the
network is set for , and all impedances are resistive with the values indicated. On the right
side of the network is connected a DC ammeter denoted as . Assume that the ammeter is ideal,
that is, has no internal resistance.
Z
1
Z
3
Z
4
Z
3
Z
2
Z
3
Z
2
Z
1
Z
1
Z
3
Z
2
Z
4
Z
1
Z
2
Tee
r
Bridged Tee
Bridged
Z
1
Z
2
Z
2
Z
1
Z
2
Z
1
Z
2
Z
1
Z
1
Z
1
Z
2
Z
3
Z
1
Z
1
Tee r
Bridged Tee
Bridged
v
S
15 V
A
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-33
Copyright Orchard Publications
Reciprocal Two-Port Networks
a. Compute the ammeter reading.
b. Interchange the positions of the voltage source and recompute the ammeter reading.
Figure 10.56. Network for Example 10.9.
Solution:
a. Perhaps the easiest method of solution is by nodal analysis since we only need to solve one
equation.
The given network is redrawn as shown in Figure 10.57.
Figure 10.57. Network for solution of Example 10.9 by nodal analysis
By KCL at node ,
or
or
The current through the ammeter is the sum of the currents and . Thus, denoting the
current through the ammeter as we obtain:
(10.119)
Z
1
Z
3
Z
2
Z
4
A
v
S
15 V =
Z
1
30 O =
Z
2
60 O =
Z
3
20 O =
Z
4
10 O =
v
S
Z
1
Z
3
Z
2
Z
4
A
v
S
15 V =
Z
1
30 O =
Z
2
60 O =
Z
3
20 O =
Z
4
10 O =
a
b
I
Z3
I
Z4
v
S
a
V
ab
15
30
---------------------
V
ab
60
---------
V
ab
20
--------- + + 0 =
6
60
------V
ab
15
30
------ =
V
ab
5 V =
I
Z3
I
Z4
I
A
I
A
I
Z3
I
Z4
+
V
ab
Z
3
---------
V
Z
4
------ +
5
20
------
15
10
------ + 0.25 1.50 + 1.75 A = = = = =
Chapter 10 One- and Two-Port Networks
10-34 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
b. With the voltage source and ammeter positions interchanged, the network is as shown in Fig-
ure 10.58.
Figure 10.58. Network of Figure 10.57 with the voltage source and ammeter interchanged.
Applying KCL for the network of Figure 10.58, we obtain:
or
or
The current through the ammeter this time is the sum of the currents and . Thus, denot-
ing the current through the ammeter as we obtain:
(10.120)
We observe that (10.119) and (10.120 yield the same value and thus we can say that the given
network is reciprocal.
Z
1
Z
3
Z
2
Z
4
A
v
S
15 V =
Z
1
30 O =
Z
2
60 O =
Z
3
20 O =
Z
4
10 O =
a
b
I
Z1
I
Z4
v
S
V
ab
30
---------
V
ab
60
---------
V
ab
15
20
--------------------- + + 0 =
6
60
------V
ab
15
20
------ =
V
ab
7.5 V =
I
Z1
I
Z4
I
A
I
A
I
Z1
I
Z4
+
V
ab
Z
1
---------
V
Z
4
------ +
7.5
30
-------
15
10
------ + 0.25 1.50 + 1.75 A = = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-35
Copyright Orchard Publications
Summary
10.6 Summary
- A port is a pair of terminals in a network at which electric energy or a signal may enter or leave
the network.
- A network that has only one pair a terminals is called a one-port network. In an one-port net-
work, the current that enters one terminal must exit the network through the other terminal.
- A two-port network has two pairs of terminals, that is, four terminals.
- For an network the parameters are defined as
and so on.
- If the subscripts of the -parameters are alike, such as , and so on, they are referred to
as driving-point admittances. If they are unlike, such as , and so on, they are referred to
as transfer admittances.
- For a network the parameters are defined as
- In a network where the right port is short-circuited, that is, when , the
parameter is referred to as the short circuit input admittance. In other words,
- In a network where the left port is short-circuited, that is, when , the
parameter is referred to as the short circuit transfer admittance. In other words,
- In a network where the right port is short-circuited, that is, when , the
parameter is referred to as the short circuit transfer admittance. In other words,
n port y
i
1
y
11
v
1
y
12
v
2
y
13
v
3
. y
1n
v
n
+ + + + =
i
2
y
21
v
1
y
22
v
2
y
23
v
3
. y
2n
v
n
+ + + + =
i
3
y
31
v
1
y
32
v
2
y
33
v
3
. y
2n
v
n
+ + + + =
y y
11
y
22
y
12
y
21
2 port y
i
1
y
11
v
1
y
12
v
2
+ =
i
2
y
21
v
1
y
22
v
2
+ =
2 port v
2
0 = y
11
y
11
i
1
v
1
-----
v
2
0 =
=
2 port v
1
0 = y
12
y
12
i
1
v
2
-----
v
1
0 =
=
2 port v
2
0 = y
21
Chapter 10 One- and Two-Port Networks
10-36 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
- In a network where the left port is short-circuited, that is, when , the
parameter is referred to as the short circuit output admittance. In other words,
- For a network the parameters are defined as
and so on.
- If the subscripts of the -parameters are alike, such as , and so on, they are referred to
as driving-point impedances. If they are unlike, such as , and so on, they are referred to
as transfer impedances.
- For a network the parameters are defined as
- In a network where the right port is open, that is, when , the parameter is
referred to as the open circuit input impedance. In other words,
- In a network where the left port is open, that is, when , the parameter is
referred to as the open circuit transfer impedance. In other words,
y
21
i
2
v
1
-----
v
2
0 =
=
2 port v
1
0 = y
22
y
22
i
2
v
1
-----
v
1
0 =
=
n port z
v
1
z
11
i
1
z
12
i
2
z
13
i
3
. z
1n
i
n
+ + + + =
v
2
z
21
i
1
z
22
i
2
z
23
i
3
. z
2n
i
n
+ + + + =
v
3
z
31
i
1
z
32
i
2
z
33
i
3
. z
3n
i
n
+ + + + =
z z
11
z
22
z
12
z
21
2 port z
v
1
z
11
i
1
z
12
i
2
+ =
v
2
z
21
i
1
z
22
i
2
+ =
2 port i
2
0 = z
11
z
11
v
1
i
1
-----
i
2
0 =
=
2 port i
1
0 = z
12
z
12
v
1
i
2
-----
i
1
0 =
=
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-37
Copyright Orchard Publications
Summary
- In a network where the right port is open, that is, when , the parameter is
referred to as the open circuit transfer impedance. In other words,
- In a network where the left port is open, that is, when , the parameter is
referred to as the open circuit output impedance. In other words,
- A two-port network can also be described in terms of the parameters with the equations
- The parameters represent an impedance, a voltage gain, a current gain, and an admittance.
For this reason they are called hybrid (different) parameters.
- In a network where the right port is shorted, that is, when , the parameter
represents the input impedance of the two-port network. In other words,
- In a network where the left port is open, that is, when , the parameter rep-
resents a voltage gain (or loss) in the two-port network. In other words,
- In a network where the right port is shorted, that is, when , the parameter
represents a current gain (or loss). In other words,
- In a network where the left port is open, that is, when , the parameter rep-
resents an output admittance. In other words,
2 port i
2
0 = z
21
z
21
v
2
i
1
-----
i
2
0 =
=
2 port i
1
0 = z
22
z
22
v
2
i
2
-----
i
1
0 =
=
h
v
1
h
11
i
1
h
12
v
2
+ =
i
2
h
21
i
1
h
22
v
2
+ =
h
2 port v
2
0 = h
11
h
11
v
1
i
1
-----
v
2
0 =
=
2 port i
1
0 = h
12
h
12
v
1
v
2
-----
i
1
0 =
=
2 port v
2
0 = h
21
h
21
i
2
i
1
----
v
2
0 =
=
2 port i
1
0 = h
22
Chapter 10 One- and Two-Port Networks
10-38 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
- A two-port network can also be described in terms of the parameters with the equations
- The parameters, also known as inverse hybrid parameters, represent an admittance, a cur-
rent gain, a voltage gain and an impedance.
- In a network where the right port is open, that is, when , the parameter
represents the input admittance of the two-port network. In other words,
- In a network where the left port is shorted, that is, when , the parameter
represents a current gain (or loss) in the two-port network. In other words,
- In a network where the right port is open, that is, when , the parameter
represents a voltage gain (or loss). In other words,
- In a network where the left port is shorted, that is, when , the parameter
represents an output impedance. In other words,
- The reciprocity theorem states that if a voltage applied in one branch of a linear, two-port pas-
sive network produces a certain current in any other branch of this network, the same voltage
applied in the second branch will produce the same current in the first branch. The reverse is
also true, that is, if current applied at one node produces a certain voltage at another, the same
current at the second node will produce the same voltage at the first.
h
22
i
2
v
2
-----
i
1
0 =
=
g
i
1
g
11
v
1
g
12
i
2
+ =
v
2
g
21
v
1
g
22
i
2
+ =
g
2 port i
2
0 = g
11
g
11
i
1
v
1
-----
i
2
0 =
=
2 port v
1
0 = g
12
g
12
i
1
i
2
----
v
1
0 =
=
2 port i
2
0 = g
21
g
21
v
2
v
1
-----
i
2
0 =
=
2 port v
1
0 = g
22
g
22
v
2
i
2
-----
v
1
0 =
=
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-39
Copyright Orchard Publications
Summary
- A two-port network is said to be reciprocal if any of the following relationships exists.
- A two-port network is said to be symmetrical if any of the following relationships exists.
z
21
z
12
=
y
21
y
12
=
h
21
h
12
=
g
21
g
12
=
z
21
z
12
= and z
22
z
11
=
y
21
y
12
= and y
22
y
11
=
h
21
h
12
= and h
11
h
22
h
12
h
21
1 =
g
21
g
12
= and g
11
g
22
g
12
g
21
1 =
Chapter 10 One- and Two-Port Networks
10-40 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
10.7 Exercises
1. For the network below find the parameters.
2. For the network below find the parameters.
3. For the network below find the parameters.
4. For the network below find the parameters.
z
5 O 20 O
10 O
y
20 O 15 O
5 O
h

1 O
6 O
4 O
g

1 O
6 O
4 O
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-41
Copyright Orchard Publications
Exercises
5. The equations describing the parameters can be used to represent the network below. This
network is a transistor equivalent circuit for the common-emitter configuration and the
parameters given are typical values for such a circuit. Compute the voltage gain and current
gain for this network if a voltage source of in series with is connected at
the input (left side), and a load is connected at the output (right side).
h
h
v
1
ct cos mV = 800 O
5 KO

v
2
(O)
i
2

+
-
i
1

h
11
h
12
v
2
v
1
h
21
i
1
-
-
+
+
h
11
1.2 KO =
h
12
2 10
4
=
h
21
50 =
h
22
50 10
6
O
1
=
h
22
O
1
( )
Chapter 10 One- and Two-Port Networks
10-42 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
10.8 Solutions to End-0f-Chapter Exercises
1.

+
-
i
1
= 1 A
i
2
= 0 v
1

5 O
20 O
10 O
+
-
v
2

z
11
v
1
i
1
-----
i
2
0 =
=

i
5O
i
5O
10 20 + ( )
5 10 20 + + ( )
--------------------------------i
1
30
35
------ 1 6 7 ' A = = =
v
1
5i
5O
5 6 7 ' 30 7 ' V = = =
z
11
v
1
i
1
-----
30 7 '
1
------------- 30 7 ' O = = =
+
i
2
= 1 A
i
1
= 0
-
-
+
v
1
v
2

5 O
10 O
20 O
z
12
v
1
i
2
-----
i
1
0 =
=
i
5O
i
5O
20
20 5 10 + + ( )
--------------------------------i
2
20
35
------ 1 4 7 ' = A = =
v
1
5
4
7
-- - 20 7 ' = = V
z
12
v
1
i
2
-----
20 7 '
1
------------- 20 7 ' O = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-43
Copyright Orchard Publications
Solutions to End-0f-Chapter Exercises
We observe that

+
-
i
1
= 1 A
i
2
= 0 v
1

5 O
20 O
10 O
+
-
v
2

z
21
v
2
i
1
-----
i
2
0 =
=
i
20O
5
5 10 20 + + ( )
--------------------------------i
1
5
35
------ 1 1 7 ' = A = =
v
2
20
1
7
--- 20 7 ' = = V
z
21
v
2
i
1
-----
20 7 '
1
------------- 20 7 ' O = = =
z
21
z
12
=
+
i
2
= 1 A
i
1
= 0
-
-
+
v
1
v
2

5 O
10 O
20 O
z
22
v
2
i
2
-----
i
1
0 =
=
i
20O
10 5 + ( )
20 10 5 + + ( )
--------------------------------i
2
15
35
------ 1 3 7 ' = A = =
v
2
20
3
7
--- 60 7 ' = = V
z
22
v
1
i
2
-----
60 7 '
1
------------- 60 7 ' O = = =
Chapter 10 One- and Two-Port Networks
10-44 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
2.
+
-
v
1
= 1 V
v
2
= 0
i
1

5 O
20 O 15 O
y
11
i
1
v
1
-----
v
2
0 =
=
short
R
eq
5 20

4 O = =
i
1
v
1
R
eq
' 1 4 ' A = =
y
11
i
1
v
1
'
1 4 '
1
---------- 1 4 ' O
1
= = =
+
-
v
2
= 1 V
v
1
= 0
i
1

5 O
20 O
15 O
short
y
12
i
1
v
2
-----
v
1
0 =
=
v
5O
v
2
1 V = =
i
1
v
5O
5 ' 1 5 ' A = =
y
12
i
1
v
2
' 1 5 ' 1 ' 1 5 ' O
1
= = =
+
-
v
1
= 1 V
v
2
= 0
i
2

5 O
20 O
15 O
y
21
i
2
v
1
-----
v
2
0 =
=
short
v
5O
v
1
1 V = =
i
2
v
5O
5 ' 1 5 ' A = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-45
Copyright Orchard Publications
Solutions to End-0f-Chapter Exercises
We observe that
3.
y
21
i
2
v
1
' 1 5 ' 1 ' 1 5 ' O
1
= = =
y
21
y
12
=
+
-
v
2
= 1 V
v
1
= 0
i
1

5 O
20 O
15 O
short
y
22
i
2
v
2
-----
v
1
0 =
=
i
2

i
2
v
2
R
eq
' 1 5 15

( ) ' 1 75 20 ' ( ) ' 4 15 ' A = = = =


y
22
i
2
v
2
' 4 15 ' 1 ' 4 15 ' O
1
= = =
6 O
4 O
1 O
+
-
v
1

i
1
= 1 A
v
2
= 0
i
1

h
11
v
1
i
1
-----
v
2
0 =
=

i
1O
short
i
1O
4
1 4 + ( )
-----------------i
1
4
5
-- - 1 4 5 ' A = = =
v
1
1 i
1O
4 5 ' V = =
h
11
v
1
i
1
-----
4 5 '
1
---------- 4 5 ' O = = =
6 O
4 O
1 O
+
-
v
1

h
12
v
1
v
2
-----
i
1
0 =
=

i
1
0 =
-
+
v
2
= 1 V
+
-
v
2
i
2
i
1O
Chapter 10 One- and Two-Port Networks
10-46 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
We observe that
i
2
v
2
R
eq
--------
1
6 4 1 + ( )

-------------------------
1
30 11 '
---------------- 11 30 ' A = = = =
v
1
1 i
1O
1
6
6 4 1 + + ( )
-------------------------- i
2
1
6
11
------
11
30
------ 1 5 ' V = = = =
h
12
v
1
v
2
-----
1 5 '
1
---------- 1 5 ' dimensionless ( ) = = =
6 O
4 O
1 O
i
1
= 1 A
v
2
= 0
i
1

h
21
i
2
i
1
----
v
2
0 =
=

i
2
short
i
2
1
1 4 + ( )
----------------- i
1
( )
1
5
-- - 1 ( ) 1 5 ' A = = =
h
21
i
2
i
1
----
1 5 '
1
------------- 1 5 ' = = =
h
21
h
12
=
6 O
4 O
1 O
+
-
v
1

h
22
i
2
v
2
-----
i
1
0 =
=

i
1
0 =
-
+
v
2
= 1 V
+
-
v
2
i
2
i
2
v
2
R
eq
--------
1
6 4 1 + ( )

-------------------------
1
30 11 '
---------------- 11 30 ' A = = = =
h
22
i
2
v
2
-----
11 30 '
1
---------------- 11 30 ' O
1
= = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-47
Copyright Orchard Publications
Solutions to End-0f-Chapter Exercises
4.
6 O
4 O
1 O
+
-
v
1

i
2
= 0
i
1

g
11
i
1
v
1
-----
i
2
0 =
=

-
+
v
1
= 1 V
i
1
v
1
R
eq
--------
1
1 4 6) + ( )

----------------------------
1
10 11 '
---------------- 11 10 ' = = A = =
g
11
i
1
v
1
-----
11 10 '
1
---------------- 11 10 ' O
1
= = =
6 O
4 O
1 O
g
12
i
1
i
2
----
v
1
0 =
=

v
1
0 =
i
2
= 1 A
+
-
v
2
i
2 i
1
short
i
1
6
6 4 +
------------


i
2
( )
6
10
------ 3 5 ' A = = =
g
12
i
1
i
2
----
3 5 '
1
------------- 3 5 dimensionless ( ) ' = = =
6 O
4 O
1 O
+
-
v
1

i
2
= 0
i
1

g
21
v
2
v
1
-----
i
2
0 =
=

-
+
v
1
= 1 V
+
-
v
2
i
6O
i
1
v
1
R
eq
--------
1
1 4 6 + ( )

-------------------------
1
10 11 '
---------------- 11 10 ' A = = = =
v
2
6 i
6O
6
1
1 4 6 + +
---------------------
11
10
------


3 5 ' V = = =
Chapter 10 One- and Two-Port Networks
10-48 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
We observe that
5.
We recall that
(1)
(2)
With the voltage source in series with connected at the input and a
load connected at the output the network is as shown below.
The network above is described by the equations
or
g
21
v
2
v
1
-----
3 5 '
1
---------- 3 5 ' = = =
g
21
g
12
=
6 O
4 O
1 O
g
22
v
2
i
2
-----
v
1
0 =
=

v
1
0 =
i
2
= 1 A
+
-
v
2
i
2 i
1
short
i
6O
v
2
6 i
6O
6
4
6 4 +
------------ i
2

24
10
------ 1 12 5 ' V = = = =
g
22
v
2
i
2
-----
12 5 '
1
------------- 12 5 ' O = = =
v
1
h
11
i
1
h
12
v
2
+ =
i
2
h
21
i
1
h
22
v
2
+ =
v
1
ct cos mV = 800 O
5 KO

v
2
i
2

+
-
i
1

-
+
-
+
1 0 mV Z
800 O 1200 O
2 10
4
v
2

50i
1
50 10
6
O
1
5000 O
800 1200 + ( )i
1
2 10
4
v
2
+ 10
3
=
50i
1
50 10
6
v
2
+ i
2
v
2

5000
------------ = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 10-49
Copyright Orchard Publications
Solutions to End-0f-Chapter Exercises
We write the two equations above in matrix form and use MATLAB for the solution.
A=[2*10^3 2*10^(-4); 50 2*10^(-4)]; B=[10^(-3) 0]'; X=A\B;...
fprintf(' \n'); fprintf('i1 = %5.2e A \t',X(1)); fprintf('v2 = %5.2e V',X(2))
i 1 = 5. 13e - 007 A v2 = - 1. 28e - 001 V
Therefore,
(3)
(4)
Next, we use (1) and (2) to find the new values of and
The voltage gain is
and the minus (-) sign indicates that the output voltage in out-of-phase with the input.
The current gain is
and the output current is in phase with the input.
The Simulink / SimPowerSystems model for this exercise is shown below.
2 10
3
i
1
2 10
4
v
2
+ 10
3
=
50i
1
2 10
4
v
2
+ 0 =
i
1
0.513 A =
v
2
128 mV =
v
1
i
2
v
1
1.2 10
3
0.513 10
6
2 10
4
128 10
3
( ) + 0.59 mV = =
i
2
50 0.513 10
6
50 10
6
+ 128 10
3
( ) 19.25 A = =
G
V
v
2
v
1
-----
128 mV
0.59 mV
----------------------- 217 = = =
180
G
I
i
2
i
1
----
19.25 A
0.513 A
----------------------- 37.5 = = =
Chapter 10 One- and Two-Port Networks
10-50 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-1
Copyright Orchard Publications
Chapter 11
Balanced Three-Phase Systems
his chapter is an introduction to three-phase power systems. The advantages of three-
phase system operation are listed and computations of three phase systems are illustrated by
several examples.
11.1 Advantages of Three-Phase Systems
The circuits and networks we have discussed thus far are known as single-phase systems and can
be either DC or AC. We recall that AC is preferable to DC because voltage levels can be changed
by transformers. This allows more economical transmission and distribution. The flow of power in
a three-phase system is constant rather than pulsating. Three-phase motors and generators start
and run more smoothly since they have constant torque. They are also more economical.
11.2 Three-Phase Connections
Figure 11.1 shows three single AC series circuits where, for simplicity, we have assumed that the
internal impedance of the voltage sources and the wiring have been combined with the load
impedance. We also have assumed that the voltage sources are out-of-phase, the load
impedances are the same, and thus the currents and have the same magnitude but are
out-of-phase with each other as shown in Figure 11.2.
Figure 11.1. Three circuits with out-of-phase voltage sources
Figure 11.2. Waveforms for three out-phase currents
T
120
I
a
I
b
, , I
c
120
+
-
V
a
V
b
V
c
I
a
I
b
I
c
Z
a
Z
b
Z
c
- -
+ +
+ +
+
-
-
-
120
I
a
I
b
I
c
120




Chapter 11 Balanced Three-Phase Systems
11-2 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Let us use a single wire for the return current of all three circuits as shown below. This arrange-
ment is known as four-wire, three-phase system.
Figure 11.3. Four-wire, three-phase system
This arrangement shown in Figure 11.3 uses only wires instead of the wires shown in Figure
11.1. But now we must find the relative size of the common return wire that it would be sufficient
to carry all three currents
We have assumed that the voltage sources are equal in magnitude and apart, and the loads
are equal. Therefore, the currents will be balanced (equal in magnitude and out-of phase).
These currents are shown in the phasor diagram of Figure 11.4.
Figure 11.4. Phasor diagram for three-phase balanced system
From figure 11.4 we observe that the sum of these currents, added vectorially, is zero.
*
Therefore,
under ideal (perfect balance) conditions, the common return wire carries no current at all. In a
practical situation, however, is not balanced exactly and the sum is not zero. But still it is quite
small and in a four-wire three-phase system the return wire is much smaller than the other three.
* This can also be proved using trigonometric identities, and also the MATLAB statement x=sin(t); y=sin(t-2.*pi./
3); z=sin(t-4.*pi./3); s=x+y+z
+
-
V
a
V
b
V
c
I
a
I
b
I
c
Z
a
Z
b
Z
c
I
a
I
b
I
c
+ +
+
+
+
+
+
-
-
-
-
-
4 6
I
a
I
b
I
c
+ +
120
120
I
a
I
c
I
b
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-3
Copyright Orchard Publications
Three-Phase Connections
Figure 11.5 shows a four-wire, three-phase where , the three
loads are identical, and is the current in the neutral (fourth) wire.
Figure 11.5. Four-wire, three-phase
A three-wire three-phase is shown in Figure11.6 where , and the
three loads are identical.
Figure 11.6. Three-wire, three-phase
This arrangement shown in Figure 11.6 could be used only if all the three voltage sources are per-
fectly balanced, and if the three loads are perfectly balanced also. This, of course, is a physical
impossibility and therefore it is not used.
A three-wire three-phase system is shown in Figure 11.7 where , and
the three loads are identical. We observe that while the voltage sources are connected as a
, the loads are connected as a and hence the name
The arrangement in Figure 11.7 offers the advantage that the A-connected loads need not be
accurately balanced. However, a A-connection with only three voltages is not used for safety rea-
sons, that is, it is a safety requirement to have a connection from the common point to the
ground.
Y system V
a
V
b
V
c
= =
I
n
-
-
Z
LD
I
a
I
b
I
c
I
n
V
a
ct V cos
V
b
ct 120 ( ) V cos
V
c
ct 240 ( ) V cos
-
-
-
-
Z
LD
Z
LD
Y system
Y system V
a
V
b
V
c
= =
-
-
V
a
ct V cos
I
a
-
-
V
b
ct 120 ( ) V cos
I
b
-
-
V
c
ct 240 ( ) V cos
I
c
Z
LD
Z
LD
Z
LD
Y system
A load V
a
V
b
V
c
= =
Y system A system A load
Chapter 11 Balanced Three-Phase Systems
11-4 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.7. Three-wire, three-phase system
11.3 Transformer Connections in Three-Phase Systems
Three-phase power systems use transformers to raise or to lower voltage levels. A typical genera-
tor voltage, typically , is stepped up to hundreds of kilovolts for transmission over long
distances. This voltage is then stepped down; for major distribution may be stepped down at a
voltage level anywhere between to , and for local distribution anywhere between
to Finally, the electric utility companies furnish power to industrial and commer-
cial facilities at volts and and at residential areas. All voltage levels are in
values.
Figure 11.8 shows a bank of three single phase transformers where the primary is A-connected,
while the secondary is -connected. This connection is typical of transformer installations
at generating stations.
Figure 11.8. Three single-phase transformers use in three-phase systems
-
-
V
a
ct V cos
I
a
V
b
ct 120 ( ) V cos
-
-
I
b
I
c
-
-
V
c
ct 240 ( ) V cos
Z
LD
Z
LD
Z
LD
A load
13.2 KV
15 KV 50 KV
2.4 KV 12 KV
480 V 120 V 240 V
RMS
Y A Y

A
Y

Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-5
Copyright Orchard Publications
Line-to-Line and Line-to-Neutral Voltages and Currents
Figure 11.9 shows a single-phase three-wire system where the middle of the three wires is center-
tapped at the transformer secondary winding. As indicated, voltage between the outer wires is
while voltage from either of the two wires to the centered (neutral) wire is . This
arrangement is used in residential areas.
Figure 11.9. 240/120 volt single phase three-wire system
Industrial facilities need three-phase power for three-phase motors. Three-phase motors run
smoother and have higher efficiency than single-phase motors. A connection is shown in
Figure 11.10 where the secondary provides three-phase power to the motor, and one of
the transformers of the secondary is center-tapped to provide to the lighting load.
Figure 11.10. Typical 3-phase distribution system
11.4 Line-to-Line and Line-to-Neutral Voltages and Currents
We assume that the perfectly balanced -connected load of Figure 11.11 is perfectly balanced,
that is, the three loads are identical. We also assume that the applied voltages are out-of-
phase but they have the same magnitude; therefore there is no current flowing from point to
the ground. The currents , and are referred to as the line currents and the currents ,
, and as the phase currents. Obviously, in a -connected load, the line and phase currents
are the same.
240 V 120 V
240 V
120 V
120 V
Neutral wire

Y A
240 V
120 V

L L L
L L L
M
Y
120
n
I
a
I
b
I
c
I
an
I
bn
I
cn
Y
Chapter 11 Balanced Three-Phase Systems
11-6 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.11. Perfectly balanced Y-connected load
Now, we consider the phasor diagram of Figure 11.12.
Figure 11.12. Phasor diagram for Y-connected perfectly balanced load
If we choose as our reference, we have
(11.1)
(11.2)
(11.3)
These equations define the balance set of currents of positive phase sequence .
Next, we consider the voltages. Voltages , , and are referred to as line-to-line voltages
and voltages , , and as phase voltages. We observe that in a -connected load, the
line and phase voltages are not the same.
We will now derive the relationships between line and phase voltages in a -connected load.
Arbitrarily, we choose as our reference phase voltage. Then,
(11.4)
V
ab
V
ac
V
bc
I
a
I
b
I
c
b
c
n
a
Z
LD
Z
LD
Z
LD
I
a
I
c
I
b
I
a
I
a
I
a
0 Z =
I
b
I
a
120 Z =
I
c
I
a
+120 Z =
a b c
V
ab
V
ac
V
bc
V
an
V
bn
V
cn
Y
Y
V
an
V
an
V
an
0 Z =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-7
Copyright Orchard Publications
Line-to-Line and Line-to-Neutral Voltages and Currents
(11.5)
(11.6)
These equations define a positive phase sequence . These relationships are shown in Figure
11.13.
Figure 11.13. Phase voltages in a -connected perfectly balanced load
The -connected load in Figure 1.11 is repeated in Figure 11.14 below for convenience.
Figure 11.14. Y-connected load
From Figure 11.14
(11.7)
(11.8)
(11.9)
These can also be derived from the phasor diagram of Figure 11.15.
V
bn
V
an
120 Z =
V
cn
V
an
+120 Z =
a b c
V
cn
V
bn
V
an
Y
Y
V
ab
V
ac
V
bc
I
a
I
b
I
c
b
c
n
a
Z
LD
Z
LD
Z
LD
V
ab
V
an
V
nb
+ V
an
V
bn
= =
V
ca
V
cn
V
na
+ V
cn
V
an
= =
V
bc
V
bn
V
nc
+ V
bn
V
cn
= =
Chapter 11 Balanced Three-Phase Systems
11-8 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.15. Phasor diagram for line-to-line and line-to-neutral voltages in load
From geometry and the law of sines we find that in a balanced three-phase, positive phase
sequence -connected load, the line and phase voltages are related as
(11.10)
The other two line-to-line voltages can be easily obtained from the phasor diagram in Figure
11.15.
Now, let us consider a -connected load shown in Figure 11.16.
Figure 11.16. Line and phase currents in -connected load
We observe that the line and phase voltages are the same, but the line and phase currents are not
the same. To find the relationship between the line and phase currents, we apply KCL at point
and we obtain:
V
ca
V
cn
V
an

V
bc
V
bn
V
cn

V
ab
V
an
V
bn

30
Y
Y
V
ab
3V
an
30 Z =
Y connected load
A
Z
LD
I
c
I
b
I
a
V
ab
V
ca
V
bc
c
b
a
I
ab
I
ca
I
bc
Z
LD
Z
LD
A
a
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-9
Copyright Orchard Publications
Equivalent Y and A Loads
or
(11.11)
The line currents and are derived similarly, and the phase-to-line current relationship in a
-connected load is shown in the phasor diagram of Figure 11.17.
Figure 11.17. Phasor diagram for line and phase currents in A-connected load
From geometry and the law of sines we find that a balanced three-phase, positive phase sequence
-connected load, the line and phase currents are related as
(11.12)
The other two line currents can be easily obtained from the phasor diagram of Figure 11.17.
11.5 Equivalent Y and A Loads
In this section, we will establish the equivalence between the and A combinations shown in
Figure 11.18.
I
ab
I
a
I
ca
+ =
I
a
I
ab
I
ca
=
I
b
I
c
A
I
c
I
a
I
b
I
ab
I
ca
I
bc
-30
o
-I
ab
-I
ca
-I
bc
A
I
a
3I
ab
30 Z =
A connected load
Y
Chapter 11 Balanced Three-Phase Systems
11-10 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.18. Equivalence for A and Y-connected loads
In the -connection, the impedance between terminals and is
(11.13)
and in the A-connection, the impedance between terminals and is in parallel with the
sum , that is,
(11.14)
Equating (11.13) and (11.14) we obtain
(11.15)
Similar equations for terminals and are derived by rotating the subscripts of (11.15) in a
cyclical manner. Then,
(11.16)
and
(11.17)
Equations (11.15) and (11.17) can be solved for by adding (11.16) with (11.17), subtracting
(11.15) from this sum, and dividing by two. That is,
(11.18)
(11.19)
Z
a
Z
c
Z
b
A
C B
Z
1
Z
3
Z
2
A
B
C
Y B C
Z
BC Y
Z
b
Z
c
+ =
B C Z
2
Z
1
Z
3
+
Z
BC A
Z
2
Z
1
Z
3
+ ( )
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
b
Z
c
+
Z
2
Z
1
Z
3
+ ( )
Z
1
Z
2
Z
3
+ +
------------------------------- =
AB CA
Z
a
Z
b
+
Z
3
Z
1
Z
2
+ ( )
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
c
Z
a
+
Z
1
Z
2
Z
3
+ ( )
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
a
2Z
a
Z
b
Z
c
+ +
Z
1
Z
3
Z
2
Z
3
Z
1
Z
2
Z
1
Z
3
+ + +
Z
1
Z
2
Z
3
+ +
---------------------------------------------------------------------
2Z
1
Z
3
Z
2
Z
3
Z
1
Z
2
+ +
Z
1
Z
2
Z
3
+ +
----------------------------------------------------- = =
2Z
a
Z
b
Z
c
Z
b
Z
c
+ +
2Z
1
Z
3
Z
2
Z
3
Z
1
Z
2
Z
1
Z
2
Z
2
Z
3
+ +
Z
1
Z
2
Z
3
+ +
------------------------------------------------------------------------------------------ =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-11
Copyright Orchard Publications
Equivalent Y and A Loads
(11.20)
(11.21)
Similar equations for and are derived by rotating the subscripts of (11.21) in a cyclical
manner. Thus, the three equations that allow us to change any A-connection of impedances into
a -connection are given by (11.22).
(11.22)
Often, we wish to make the conversion in the opposite direction, that is, from to A.This con-
version is performed as follows:
Consider the and A combinations of Figure 11.8 repeated for convenience as Figure 11.19.
Figure 11.19. Y and A loads
From Figure (a),
(11.23)
(11.24)
(11.25)
2Z
a
2Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
a
Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
b
Z
c
Y
Z
a
Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
b
Z
2
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
c
Z
1
Z
2
Z
1
Z
2
Z
3
+ +
------------------------------- =
A Y Conversion
Y
Y
Z
a
Z
c
Z
b
A
C B
Z
1
Z
3
Z
2
A
B
C
I
C
I
B
(a)
(b)
I
A
I
A
I
C
I
B
V
AB
Z
a
I
A
Z
b
I
B
=
V
BC
Z
b
I
B
Z
c
I
C
=
V
CA
Z
c
I
C
Z
a
I
A
=
Chapter 11 Balanced Three-Phase Systems
11-12 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
If we attempt to solve equations (11.23), (11.24) and (11.25) simultaneously, we will find that the
determinant A of these sets of equations is singular, that is, . This can be verified with Cra-
mers rule as follows:
(11.26)
(11.27)
This result suggests that the equations of (11.26) are not independent and therefore, no solution
exists. However, a solution can be found if, in addition to (11.23) through (11.25), we use the
equation
(11.28)
Solving (11.28) for we obtain:
(11.29)
and by substitution into (11.25),
(11.30)
From (11.23) and (11.30),
(11.31)
and by Cramers rule,
(11.32)
where
(11.33)
and
(11.34)
Then,
(11.35)
A 0 =
Z
a
I
A
Z
b
I
B
0 + V
AB
=
0 Z
b
I
B
Z
c
I
C
+ V
BC
=
Z
a
I
A
0 Z
c
I
C
+ + V
CA
=
A
Z
a
Z
b
0
0 Z
b
Z
c

Z
a
0 Z
c
Z
a
Z
b
Z
c
Z
a
Z
b
Z
c
0 0 0 0 + + + + 0 = = =
I
A
I
B
I
C
+ + 0 =
I
C
I
C
I
A
I
B
=
V
CA
Z
c
I
A
Z
c
I
B
Z
a
I
A
Z
a
Z
c
+ ( )I
A
Z
c
I
B
= =
Z
a
I
A
Z
b
I
B
V
AB
=
Z
a
Z
c
+ ( )I
A
Z
c
I
B
V
CA
=
I
A
D
1
A
------ = I
B
D
2
A
------ =
A
Z
a
Z
b

Z
a
Z
c
+ ( ) Z
c
Z
c
Z
a
Z
a
Z
b
Z
b
Z
c
= =
D
1
V
AB
Z
b

V
CA
Z
c
Z
c
V
AB
Z
b
V
CA
+ = =
I
A
D
1
A
------
Z
c
V
AB
Z
b
V
CA
+
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
--------------------------------------------------
Z
c
V
AB
Z
b
V
CA
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-13
Copyright Orchard Publications
Equivalent Y and A Loads
Similarly,
(11.36)
and by substitution of and into (11.28),
(11.37)
Therefore, for the -connection which is repeated in Figure 11.20 for convenience, we have:
Figure 11.20. Currents in Y-connection
(11.38)
For the A-connection, which is also repeated in Figure 11.21 for convenience, the line currents
are:
Figure 11.21. Currents in -connection
I
B
D
2
A
------
Z
a
V
BC
Z
c
V
AB
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- = =
I
A
I
B
I
C
Z
b
V
CA
Z
a
V
BC
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- =
Y
Z
a
Z
c
Z
b
A
C B
I
A
I
C
I
B
I
A
Z
c
V
AB
Z
b
V
CA
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- =
I
B
Z
a
V
BC
Z
c
V
AB
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- =
I
C
Z
b
V
CA
Z
a
V
BC
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------- =
Z
1
Z
3
Z
2
A
B
C
I
A
I
B
I
C
A
Chapter 11 Balanced Three-Phase Systems
11-14 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(11.39)
Now, the sets of equations of (11.38) and (11.39) are equal if
(11.40)
(11.41)
(11.42)
From (11.40)
(11.43)
and from (11.41)
(11.44)
Rearranging, we obtain:
(11.45)
Example 11.1
For the circuit of Figure 11.22, use the conversion to find the currents in the various
branches as indicated.
*
I
A
V
AB
Z
3
----------
V
CA
Z
1
---------- =
I
B
V
BC
Z
2
----------
V
AB
Z
3
---------- =
I
C
V
CA
Z
1
----------
V
BC
Z
2
---------- =
Z
c
V
AB
Z
b
V
CA
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
----------------------------------------------------
V
AB
Z
3
----------
V
CA
Z
1
---------- =
Z
a
V
BC
Z
c
V
AB
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
----------------------------------------------------
V
BC
Z
2
----------
V
AB
Z
3
---------- =
Z
b
V
CA
Z
a
V
BC
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
---------------------------------------------------
V
CA
Z
1
----------
V
BC
Z
2
---------- =
Z
c
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
----------------------------------------------------
1
Z
3
------ and
Z
b
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
----------------------------------------------------
1
Z
1
------ = =
Z
a
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
----------------------------------------------------
1
Z
2
------ =
Z
1
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
b
---------------------------------------------------- =
Z
2
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
a
---------------------------------------------------- =
Z
3
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
c
---------------------------------------------------- =
Y A Conversion
Y A
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-15
Copyright Orchard Publications
Equivalent Y and A Loads
Figure 11.22. Circuit (a) for Example 11.1
Solution:
Let us indicate the nodes as , , , and , and denote the , , and resistances as
, , and respectively as shown in Figure 11.23.
Figure 11.23. Circuit (b) for Example 11.1
Next, we replace the connection formed by , , , and with the equivalent A connection
shown in Figure 11.24.
Figure 11.24. Circuit (c) for Example 11.1
Now, with reference to the circuits of Figures 11.23 and 11.24, and the relations of (11.45), we
obtain:
* The subscripts are assigned to be consistent with those in the solution steps.
120 V
I
6
50 O
I
5
+
I
1
I
7
I
4
60 O
I
8
70 O
90 O
80 O
-
a b c d 90 O 80 O 50 O
R
a
R
b
R
c
120 V
I
6
50 O
I
5
+
I
1
I
4
60 O
I
8 70 O
90 O
80 O
-
R
c R
a
R
b
b
c d
a
I
7
Y a b c d
120 V
174 O
I
5
+
I
1
I
4
60 O
70 O
-
a
b
d R
2
R
1
R
3
196 O
314 O
Chapter 11 Balanced Three-Phase Systems
11-16 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Combination of parallel resistances in the circuit of Figure 11.24 yields
and
The circuit of Figure 11.24 reduces to the circuit in Figure 11.25.
Figure 11.25. Circuit (d) for Example 11.1
The circuit of Figure 11.25 can be further simplified as shown in Figure 11.26.
Figure 11.26. Circuit (e) for Example 11.1
From the circuit of Figure 11.26,
R
1
R
a
R
b
R
b
R
c
R
c
R
a
+ +
R
b
------------------------------------------------------
90 80 80 50 50 90 + +
80
-------------------------------------------------------------------
15700
80
--------------- 196 O = = = =
R
2
R
a
R
b
R
b
R
c
R
c
R
a
+ +
R
a
------------------------------------------------------
15700
90
--------------- 174 O = = =
R
3
R
a
R
b
R
b
R
c
R
c
R
a
+ +
R
c
------------------------------------------------------
15700
50
--------------- 314 O = = =
R
bd
196 60
196 60 +
--------------------- 46 O = =
R
ad
314 70
314 70 +
--------------------- 57 O = =
120 V
174 O
+
I
1
46 O
57 O
-
b
I
2
I
3
d
a
120 V
174 O
+
I
1
103 O
-
b
I
2 I
3
a
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-17
Copyright Orchard Publications
Equivalent Y and A Loads
(11.46)
(11.47)
By addition of (11.46) and (11.47)
(11.48)
To compute the other currents, we return to the circuit of Figure 11.25 which, for convenience, is
repeated as Figure 11.27 and it is denoted as Circuit (f).
Figure 11.27. Circuit (f) for Example 11.1
For the circuit of Figure 11.27, by the voltage division expression
(11.49)
(11.50)
Next, we return to the circuit of Figure 11.24 which, for convenience, is repeated as Figure 11.28
and denoted as Circuit (g).
Figure 11.28. Circuit (g) for Example 11.1
From the circuit of figure 11.28,
I
2
120
174
--------- 0.69 A = =
I
3
120
103
--------- 1.17 A = =
I
1
I
2
I
3
+ 0.69 1.17 + 1.86 = = =
120 V
174 O
+
I
1
46 O
57 O
-
b
I
2
I
3
d
a
V
ad
46
46 57 +
------------------ 120 53.6 V = =
V
db
57
46 57 +
------------------ 120 66.4 V = =
120 V
174 O
I
5
+
I
1
I
4
60 O
70 O
-
a
b
d R
2
R
1
R
3
196 O
314 O
Chapter 11 Balanced Three-Phase Systems
11-18 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(11.51)
and
(11.52)
Finally, we return to the circuit of Figure 11.23 which, for convenience, is repeated as Figure
11.29 and denoted as Circuit (h).
Figure 11.29. Circuit (h) for Example 11.1
For the circuit of Figure 11.29, by KCL,
(11.53)
(11.54)
and
(11.55)
Of course, we could have found the branch currents with nodal or mesh analysis.
Quite often, the and A arrangements appear as shown in Figure 11.30 and they are referred to
as the tee (T) and pi (r) circuits. Consequently, the formulas we developed for the and A
arrangements can be used with the tee and r arrangements.
Figure 11.30. T and r circuits
I
4
V
ad
70
----------
53.6
60
---------- 0.95 A = = =
I
5
V
db
60
----------
66.4
70
---------- 0.89 A = = =
120 V
I
6
50 O
I
5
+
I
1
I
4
60 O
I
8 70 O
90 O
80 O
-
R
c R
a
R
b
b
c d
a
I
7
I
7
I
1
I
4
1.86 0.95 0.91 A = = =
I
8
I
1
I
5
1.86 0.89 0.97 A = = =
I
6
I
5
I
4
0.89 0.95 0.06 A = = =
Y
Y
Z
3
Z
b
Z
c
Z
a
Z
1
Z
2
A B
C
A B
C
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-19
Copyright Orchard Publications
Computation by Reduction to Single Phase
In communications theory, the T and r circuits are symmetrical, i.e., and .
11.6 Computation by Reduction to Single Phase
When we want to compute the voltages, currents, and power in a balanced three-phase system, it
is very convenient to use the -connection and work with one phase only. The other phases will
have corresponding quantities (voltage, current, and power) exactly the same except for a time
difference of cycle. Thus, if current is found for phase , the current in phase will be
out-of-phase but it will have the same magnitude as phase . Likewise, phase will be
out-of-phase with phase .
If the load happens to be A-connected, we use the conversion shown in Figure 11.31 and
the equations (11.56) below.
Figure 11.31. conversion
(11.56)
Since the system is assumed to be balanced, the loads are equal, that is, and
. Therefore, the first equation in (11.56) reduces to:
(11.57)
and the same is true for the other phases.
Z
a
Z
b
= Z
1
Z
2
=
Y
1 3 ' a b 120
a c 240
a
A Y
Z
a
Z
c
Z
b
A
C
B
Z
1
Z
3
Z
2
A
B
C
I
A
I
C
I
B
I
A
I
B
I
C
(b)
(a)
N
A Y
Z
a
Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
b
Z
2
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
c
Z
1
Z
2
Z
1
Z
2
Z
3
+ +
------------------------------- =
A Y Conversion
Z
1
Z
2
Z
3
= =
Z
a
Z
b
Z
c
= =
Z
a
Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- =
Z
1
2
3Z
1
---------
Z
1
3
------ = =
Chapter 11 Balanced Three-Phase Systems
11-20 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
11.7 Three-Phase Power
We can compute the power in a single phase and then multiply by three to find the total power in
a three-phase system. Therefore, if a load is -connected, as in Figure 11.31 (b), the total three-
phase power is given by
(11.58)
where is the line-to-neutral voltage, is the line current, is the power factor of the load,
and is the angle between and .
If the load is A-connected as in Figure 11.31 (a), the total three-phase power is given by
(11.59)
We observe that relation (11.59) is given in terms of the line-to-neutral voltage and line current,
and relation (11.58) in terms of the line-to-line voltage and phase current.
Quite often, the line-to-line voltage and line current of a three-phase systems are given. In this
case, we substitute (11.12), i.e., into (11.59) and we obtain
(11.60)
It is important to remember that the power factor in (11.60) refers to the load, that is, the
angle is not the angle between and .
Example 11.2
The three-phase generator of Figure 11.32 supplies at lagging power factor to the
three-phase load. The line-to-line voltage at the load is . The resistance of the line is
per conductor and the inductance and capacitance are negligible. What line-to-line voltage must
the generator supply to the line?
Solution:
The load per phase at is
Y
P
total
3 V
AN
I
A
0 cos =
Y connected load
V
AN
I
A
0 cos
0 V
AN
I
A
P
total
3 V
AB
I
AB
0 cos =
A connected load
I
A
3 I
AB
=
P
total
3 V
AB
I
A
0
LD
cos =
Y or A connected load
0
LD
cos
0 V
AB
I
A
100 kW 0.9
2400 V 4 O
0.9 pf
1
3
-- - 100 33.33 kW =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-21
Copyright Orchard Publications
Three-Phase Power
Figure 11.32. Circuit for Example 11.2
From (11.10),
(11.61)
Then, the magnitude of the line-to-neutral at the load end is
(11.62)
and the per phase at the load is
(11.63)
The line current in each of the three conductors is
(11.64)
and the angle by which the line (or phase) current lags the phase voltage is
(11.65)
Next, let us assume that the line current in phase lies on the real axis. Then, the phasor of the
line-to-neutral voltage at the load end is
(11.66)
The voltage drop across a conductor is in phase with the line current since it resistive in nature.
Therefore,
(11.67)
Now, the phasor line-to-neutral voltage at the generator end is
(11.68)
and its magnitude is
(11.69)
G
Generator
L
Load
(Y-connected)
(Y-connected)
V
ab
3V
an
30 Z =
Y connected load
V
an load
V
ab load
3
-------------------------
2400
3
------------ 1386 V = = =
KVA
kW phase '
pf
----------------------------
33.33
0.9
------------- 37.0 KVA = =
I
line
VA
V
an load
-------------------------
37000
1386
--------------- 26.7 A = = =
0 0.9
1
cos 25.84 = =
a
V
an load
V
an
25.84 Z 1386 25.84 j 25.84 sin + cos ( ) 1247 j604 V + = = =
V
cond
I
line
R 26.7 4 106.8 V = = =
V
an gen
V
an load
V
cond
+ 1247 j604 106.8 + + 1354 j604 + = = =
V
an gen
1354
2
604
2
+ 1483 V = =
Chapter 11 Balanced Three-Phase Systems
11-22 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Finally, the line-to-line voltage at the generator end is
(11.70)
11.8 Instantaneous Power in Three-Phase Systems
A significant advantage of a three-power system is that the total power in a balanced three-phase
system is constant. This is proved as follows:
We assume that the load is purely resistive. Therefore, the voltage and current are always in-
phase with each other. Now, let and be the peak (maximum) voltage and current respec-
tively, and and the magnitude of their values. Then, the instantaneous voltage and
current in phase are given by
(11.71)
(11.72)
Multiplication of (11.71) and (11.72) yields the instantaneous power, and using the trigonometric
identity
(11.73)
we obtain
(11.74)
The voltage and current in phase are equal in magnitude to those in phase but they are
out-of-phase. Then,
(11.75)
(11.76)
(11.77)
Similarly, the power in phase is
(11.78)
and the total instantaneous power is
V
line line gen
3 V
an gen
3 1483 2569 V = = =
V
p
I
p
V I RMS
a
v
a
V
p
ct cos 2 V ct cos = =
i
a
I
p
ct cos 2 I ct cos = =
c
2
t cos 2ct 1 + cos ( ) 2 ' =
p
a
v
a
i
a
2 V I c
2
t cos V I 2ct 1 + cos ( ) = = =
b a 120
v
b
2 V ct 120 ( ) cos =
i
b
2 I ct 120 ( ) cos =
p
b
v
b
i
b
2 V I ct 120 ( )
2
cos V I 2ct 240 ( ) 1 + cos [ ] = = =
c
p
c
v
c
i
c
2 V I ct 240 ( )
2
cos V I 2ct 480 ( ) 1 + cos [ ] = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-23
Copyright Orchard Publications
Instantaneous Power in Three-Phase Systems
(11.79)
Recalling that
(11.80)
we find that the sum of the three cosine terms in (11.79) is zero. Then,
(11.81)
Therefore, the instantaneous total power is constant and it is equal three times the average power.
The proof can be extended to include any power factor; thus, (11.81) can be also expressed as
(11.82)
Example 11.3
Figure 11.33 shows a three-phase feeder with two loads; one consists of a bank of lamps con-
nected line-to neutral and the rating is given in the diagram; the other load is A-connected and
has the impedance shown. Find the current in the feeder lines and the total power absorbed by
the two loads.
Figure 11.33. Diagram for Example 11.3
Solution:
To facilitate the computations, we will reduce the given circuit to one phase (phase ) taken as
reference, i.e., at zero degrees, as shown in Figure 11.34.
p
total
p
a
p
b
p
c
+ + =
V I 2ct cos 2ct 240 ( ) cos 2ct 480 ( ) cos 3 + + + [ ] =
x y ( ) cos x y cos cos x y sin sin + =
p
total
3 V I =
Three phase Balanced System
p
total
3 V I 0 cos =
I
A
I
B
I
C
L
L L
220 Volts
(Line-to-Line)
Z 18 j80 + =
Lamps - Resistive Load
Rated 500 Watts,
120 Volts each
Z
A
Z
A
Z
A
a
Chapter 11 Balanced Three-Phase Systems
11-24 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.34. Single-phase representation of Figure 11.33
We first compute the impedance . Using (11.56),
Next, we compute the lamp impedance
The line-to-line voltage is given as ; therefore, by (11.10), the line-to-neutral
voltage is
For convenience, we indicate these values in Figure 11.34 which now is as shown in Figure 11.35.
Figure 11.35. Diagram with computed values, Example 11.3
From Figure 11.35,
and
Then,
I
A
L
I
Z
I
L
Z
Y
Z
L
+
-
V
L-N
(Line-to-neutral)
V
L L
220 0 V Z =
Z
Y
Z
Y
Z
A
3
------
18 j80 +
3
--------------------
82 77.32 Z
3
------------------------ 27.33 77.32 O Z = = = =
Z
L

Z
L

R
lamp
V
2
rated
P
rated
------------------
120
2
500
----------- 28.8 O = = = =
V
L L
220 V =
V
L N
V
L N
V
L L
3
--------------
220 0 Z
3
------------------- 127 0 Z V = = =
I
A
L
I
Z I
L
Z
Y
Z
L
+
-
V
L N
127 0 Z V =
Z
L
28.8 0 Z =
Z
Y
27.33 77.32 Z =
I
Z
V
L N
Z
Y
--------------
127 0 Z
27.33 77.32 Z
------------------------------- 4.65 77.32 Z 1.02 j4.54 = = = =
I
L
V
L N
Z
L
--------------
127 0 Z
28.8 0 Z
--------------------- 4.41 0 Z 4.41 = = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-25
Copyright Orchard Publications
Measuring Three-Phase Power
and the power delivered by phase is
Finally, the total power delivered to the entire load is three times of , that is,
Check:
Each lamp is rated and but operates at . Thus, each lamp absorbs
and the power absorbed by the three lamps is
The voltage across each impedance in the A-connected load is (see Figure 11.33) .
Then, the current in each impedance is
and the power absorbed by each impedance is
The total power absorbed by the A load is
and the total power delivered to the two loads is
This value is in close agreement with the value on the previous page.
11.9 Measuring Three-Phase Power
A wattmeter is an instrument which measures power in watts or kilowatts. It is constructed with
two sets of coils, a current coil and a voltage coil where the interacting magnetic fields of these
coils produce a torque which is proportional to the product. It would appear then that one
would need three wattmeters to measure the total power in a three-phase system. This is true in a
I
Z
I
L
+ 1.02 j4.54 4.41 + 5.43 j4.54 7.08 39.9 Z = = =
a
P
A
V
L N
I
A
127 7.08 39.9 ( ) cos 690 watts = = =
P
A
P
total
3 690 2070 watts 2.07 Kw = = =
120 V 500 w 127 V
V
oper
V
rated
--------------


2
P
oper
P
rated
------------- = P
oper
127
120
---------


2
500 560 w = =
P
lamps
3 = 560 1680 w =
Z 220 V
Z
I
Z
V
L L
18 j80 +
--------------------
220
82 77.32 Z
------------------------ 2.68 77.32 Z A = = =
Z
P V
L L
I
Z
0 cos 220 2.68 77.32 ( ) cos 129.4 watts = = =
P
A
3 129.4 388 watts = =
P
TOTAL
P
lamps
P
A
+ 2068 watts 2.068 kw = = =
V I
Chapter 11 Balanced Three-Phase Systems
11-26 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
four-wire system where the current in the neutral (fourth wire) is not zero. However, if the neu-
tral carries no current, it can be eliminated thereby reducing the system to a three-wire three-
phase system. In this section, we will show that the total power in a balanced three-wire, three
phase system can be measured with just two wattmeters.
Figure 11.36 shows three wattmeters connected to a load
*
where each wattmeter has its cur-
rent coil connected in one line, and its potential coil from that line to neutral. With this arrange-
ment, Wattmeters , , and measure power in phase , , and respectively.
Figure 11.36. Wattmeter connections in four-wire, three-phase system
Figure 11.37 shows a three-wire, three-phase system without a neutral. This arrangement occurs
in systems where the load, such as an induction motor, has only three terminals. The lower end of
the voltage coils can be connected to any reference point, say . We will now show that with this
arrangement, the sum of the three wattmeters gives the correct total power even though the refer-
ence point was chosen as any reference point.
* If the load were A-connected, each wattmeter would have its current coil in one side of the A and its potential
coil from line to line.
Y
1 2 3 a b c
Load
1
2
3
Wattmeter connections
n
a
b
n
c
p
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-27
Copyright Orchard Publications
Measuring Three-Phase Power
Figure 11.37. Wattmeter connections in three-wire, three-phase system
We recall that the average power is found from
(11.83)
Then, the total power absorbed by the load of Figure 11.36 is
(11.84)
This is the true power absorbed by the load, not power indicated by the wattmeters.
Now, we will compute the total power indicated by the wattmeters. Each wattmeter measures the
average of the line current times the voltage to point . Then,
(11.85)
But
(11.86)
and by substitution of these into (11.85), we obtain:
(11.87)
and since
(11.88)
Load
1
2
3
Wattmeter connections
n
p
a
c
b
P
ave
P
ave
1
T
--- p t d
0
T

1
T
--- vi t d
0
T

= =
P
total
1
T
--- v
an
i
a
v
bn
i
b
v
cn
i
c
+ + ( ) t d
0
T

=
p
P
wattmeters
1
T
--- v
ap
i
a
v
bp
i
b
v
cp
i
c
+ + ( ) t d
0
T

=
v
ap
v
an
v
np
+ =
v
bp
v
bn
v
np
+ =
v
cp
v
cn
v
np
+ =
P
wattmeters
1
T
--- v
an
i
a
v
bn
i
b
v
cn
i
c
+ + ( ) v
np
i
a
i
b
i
c
+ + ( ) + [ ] t d
0
T

=
i
a
i
b
i
c
+ + 0 =
Chapter 11 Balanced Three-Phase Systems
11-28 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
then (11.87) reduces to
(11.89)
This relation is the same as (11.84); therefore, the power indicated by the wattmeters and the true
power absorbed by the load are the same.
Some thought about the location of the arbitrarily selected point would reveal a very interesting
result. No matter where this point is located, the power relation (11.87) reduces to (11.89). Sup-
pose that we locate point on line . If we do this, the voltage coil of Wattmeter is zero and
thus the reading of this wattmeter is zero. Accordingly, we can remove this wattmeter and still
obtain the true power with just Wattmeters and as shown in Figure 11.38.
Figure 11.38. Two wattmeter method of reading three-phase power
11.10 Practical Three-Phase Transformer Connections
The four possible transformer connections and their applications are listed below.
The A-A connection is used in certain industrial applications.
The A-Y connection is the most common and it is used in both commercial and industrial
applications.
The Y-A connection used for transmissions of high voltage power.
The Y-Y connection causes harmonics and balancing problems and thus is to be avoided.
If three phase transformation is needed and a three phase transformer of the proper size and turns
ratio is not available, three single phase transformers can be connected to form a three phase
bank. When three single phase transformers are used to make a three phase transformer bank,
their primary and secondary windings are connected in a Y or A connection. The three trans-
former windings in Figure 11.39 are labeled H1 and the other end is labeled H2. One end of each
secondary lead is labeled X1 and the other end is labeled X2.
P
wattmeters
1
T
--- v
an
i
a
v
bn
i
b
v
cn
i
c
+ + ( ) t d
0
T

=
p
p c 3
1 2
Load
1
2
Wattmeter connections
n
a
c
b
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-29
Copyright Orchard Publications
Transformers Operated in Open A Configuration
Figure 11.39. Primary and secondary leads labels in a transformer
11.11 Transformers Operated in Open A Configuration
In certain applications where large amounts of power are not required, the open A configuration
is a viable alternative. The solution of Exercise 11.9 at the end of this chapter show that the input
line currents form a symmetrical three-phase set and thus two transformers can also be used for a
symmetrical three-phase system.
If in a closed A configuration one of the transformers is burnt out resulting in an open A configu-
ration, the transformer bank rating is reduced to about 58% of its original capacity. This is
because in the open A configuration the line currents become phase currents and thus they are
reduced to . For instance, if three transformers
were connected to form a closed A connection, the total output would be . If one of
these transformers were removed and the transformer bank operated as an open delta connec-
tion, the output power would be reduced to 57.7% of its original capacity, that is,
.
If, in a bank o three transformers connected in A is burnt out and no replacement is readily avail-
able, capacitors with the proper rating can be used to prevent overloading as illustrated with
Example 11.4 below.
Example 11.4
A bank of three transformers each rated , connected in A-A,
feeds a short distribution line that is terminated in a bank of three , trans-
formers with a , and lagging load.

A
Y

H
1
H
1
H
1
X
1
H
2
H
2
H
2
X
2
X
1
X
1
X
2
X
2
KVA
I
PHASE
I
LINE
3 ( ) ' 0.577 I
LINE
= = 100 KVA
300 KVA
300 KVA 0.577 173.2 KVA =
13200 / 4160 V 833 KVA 60 Hz
833 KVA 4160 / 480 V
1600 KVA 0.8 pf
Chapter 11 Balanced Three-Phase Systems
11-30 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
a. If one of the transformers burns out, what would the voltage, current, and rat-
ing of capacitors on the secondary side of the transformers be to prevent over-
loading of any of the transformers?
b. What would the capacitor ratings be if installed at the side and what would the current
be through this capacitor bank?
c. What would the capacitor ratings be if installed at the side and what would the cur-
rent be through this capacitor bank?
Assume that line and transformer impedances are negligible.
Solution:
a. With the assumption that the line and transformer impedances are negligible, the open A con-
nection still forms a balanced symmetrical system.
*
The rated current per transformer at is
(1)
With the open A connection the at lagging load, the new rating is
, and the actual current per transformer is
(2)
The reduction in is found from the proportion of (1) and (2) above, i.e.,
The real power (kilowatts) at lagging load is
and without capacitors the reactive power (kilovars) is
With capacitors the reactive power (kilovars) will be
* This is illustrated in Exercise 11.9 at the end of this chapter.
13200 / 4160 V
4160 / 480 V
480 V
4160 V
13200 V
I
rated
833 KVA
13.2 KV
------------------------ 63.1 A = =
1600 KVA 0.8 pf KVA
1600 3 ' 923.8 KVA =
I
actual
923.8 KVA
13.2 KV
----------------------------- 70 A = =
KVA
63.1
70
---------- 1600 1443 KVA =
P
KW
0.8 pf
P
Kw
1600 0.8 1280 Kw = =
Q
Kvar1
Q
Kvar1
KVA
old
2
P
Kw
2
1600
2
1280
2
960 Kvar = = =
Q
Kvar2
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-31
Copyright Orchard Publications
Three-Phase Systems Modeling with Simulink / SimPowerSystems
Therefore, the required to prevent overloading should be
b. For installation at the side, three single-phase capacitors each rated will be
required, and the current through this capacitor bank must be per phase.
c. For installation at the side, three single-phase capacitors each rated will
be required, and the current through this capacitor bank must be per phase.
11.12 Three-Phase Systems Modeling with Simulink / SimPowerSystems
The MathWorks Simulink / SimPowerSystems toolbox includes several three-phase transformer
and they can be used with three-phase system models that include three-phase transformers.
Two of these are shown in Figure 11.40 below.
Figure 11.40. Two of the three-phase transformer blocks included in the Simulink / SimPowerSystems toolbox
Example 11.5
For the circuit in Figure 11.41, the three-phase transformer bank consists of three transformers
each rated , , connected A-Y connection, and the lighting load is bal-
anced. Each lamp is rated at . Assume that each lamp draws rated current. The
three-phase motor draws at a power factor of lagging. The secondary of the trans-
former is connected Y grounded and provides balanced line-to-line. The distance
between the transformer and the loads is small and the wiring resistance and inductance can be
neglected. The input voltages are:
Q
Kvar2
KVA
new
2
P
Kw
2
1443
2
1280
2
666 Kvar = = =
Kvar
Q
Kvar1
Q
Kvar2
960 666 294 300 Kvar = = =
480 V 100 Kvar
100 0.480 ' 208 A =
13200 V 100 Kvar
100 13.2 ' 24 A =
A1+
A1
B1+
B1
C1+
C1
A2+
A2
B2+
B2
C2+
C2
Thr ee- Phase Tr ansf or mer
12 Ter minals
A
B
C
a
b
c
Thr ee- Phase
Tr ansf or mer
( Two Windings)
5 KVA 440 / 208 V 60 Hz
500 w 120 V
5.0 Kw 0.8
208 V
Chapter 11 Balanced Three-Phase Systems
11-32 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 11.41. Three-phase circuit for Example 11.5
Create a Simulink / SimPowerSystems model to display all voltages and currents.
Solution:
The model is shown in Figure 11.42.
Figure 11.42. Simulink / SimPowerSystems model for the three-phase circuit in Figure 11.41
V
AB
480 0 Z = V
BC
480 120 Z = V
CA
480 120 Z =

L
L
L
L
L L
M

A
B
C
a
b
c
n
Vs1
Vs2
Vs3
Load 1
3-ph motor
Load 2
Lighting
VM = Voltage Measurement
3-Phase V-I = Three-Phase V-I Measurement
Vs1 = 480 V @ 0 deg
Vs2 = 480 V @ -120 deg
Vs3 = 480 V @ +120 deg
Cont inuous
power gui
v
+
-
VM 1
A
B
C
A
B
C
Scope 3
Scope 2
Scope 1
30
Mult imet er
Vabc
I abc
A
B
C
a
b
c
3- Phase V- I 2
Vabc
I abc
A
B
C
a
b
c
3- Phase V- I 1
A
B
C
a
b
c
3- Phase
Tr ansf or mer
( Two Windings)
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-33
Copyright Orchard Publications
Three-Phase Systems Modeling with Simulink / SimPowerSystems
For the model in Figure 11.42, the default integration algorithm ode45 was changed to odetb23.
This is done with Simulation>Configuration Parameters>Solver>odetb23.
The dialog box is configured as shown in Figure 11.43, and the dialog box for is shown in Figure
11.44.
Figure 11.43. Block Parameters 3-Phase Transformer - Configuration tab
Figure 11.44. Block Parameters 3-Phase Transformer - Parameters tab
Chapter 11 Balanced Three-Phase Systems
11-34 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
For the remaining blocks, the Measurement parameter has been set to Voltage, Current. Voltage
and Current, or All Measurements (V-I) fluxes (indicated in Figure 11.43), and the Multimeter
block in Figure 11.42 indicates that 30 measurements will be displayed when selected in the Mul-
timeter block dialog box shown in Figure 11.45.
Figure 11.45. The Multimeter block dialog box
The SimPowerSystems powerlib/Electrical Sources library includes the Three-Phase Source
block shown in Figure 11.46.
Figure 11.46. The SimPowerSystems Three-Phase Source block
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-35
Copyright Orchard Publications
Three-Phase Systems Modeling with Simulink / SimPowerSystems
This block is a balanced three-phase voltage source with an internal R-L impedance. It allows us
to specify the source internal resistance and inductance either directly by entering R and L values
or indirectly by specifying the source inductive short-circuit level
*
and X/R ratio. More details are
provided in the Help menu for this block, and an example is provided by The MathWorks. It can
be accessed by typing power_3phseriescomp at the MATLAB prompt.
Another three-phase voltage source block is the Three-Phase Programmable Voltage Source
shown in Figure 11.47. This three-phase voltage source allows variation for the amplitude, phase,
or frequency of the fundamental component of the source. Positive, negative, and zero sequences
are discussed in Chapter 12.
Figure 11.47. The SimPowerSystems Three-Phase Programmable Voltage Source block
More details are provided in the Help menu for this block, and an example is provided by The
MathWorks. It can be accessed by typing power_3phsignalseq at the MATLAB prompt.
* The short-circuit level is a function of the transformer rated VA, the rated secondary voltage, and the trans-
former impedance in percent. These parameters are provided by the transformer manufacturer. It is computed
from the relation . Thus, for a trans-
former, the short-circuit level will be
I
SC
100 %
Z %
--------------- VA


3 V
SEC
( ) ' = 100KVA 2300 / 13800 V, Z = 7% ,
100
7.5
--------- 10
5



3 13.8 10
3
( ) ' 55.8 A =
Chapter 11 Balanced Three-Phase Systems
11-36 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
11.13 Summary
- AC is preferable to DC because voltage levels can be changed by transformers. This allows more
economical transmission and distribution.
- The flow of power in a three-phase system is constant rather than pulsating. Three-phase
motors and generators start and run more smoothly since they have constant torque. They are
also more economical.
- If the voltage sources are equal in magnitude and apart, and the loads are also equal, the
currents will be balanced (equal in magnitude and out-of-phase).
- Industrial facilities need three-phase power for three-phase motors. Three-phase motors run
smoother and have higher efficiency than single-phase motors.
- The equations , , define a balanced set of currents of
positive phase sequence .
- The equations , , and also define a bal-
anced set of voltages of positive phase sequence .
- In a -connected system
- In a -connected load, the line and phase currents are the same.
- In a -connected system
- In a -connected load, the line and phase voltages are the same.
- For we use the relations
- For we use the relations
- When we want to compute the voltages, currents, and power in a balanced three-phase system,
it is very convenient to use the -connection and work with one phase only.
120
120
I
a
I
a
0 Z = I
b
I
a
120 Z = I
c
I
a
+120 Z =
a b c
V
an
V
an
0 Z = V
bn
V
an
120 Z = V
cn
V
an
+120 Z =
a b c
Y
V
ab
3V
an
30 Z =
Y
A
I
a
3I
ab
30 Z =
A
A Y Conversion
Z
a
Z
1
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- = Z
b
Z
2
Z
3
Z
1
Z
2
Z
3
+ +
------------------------------- = Z
c
Z
1
Z
2
Z
1
Z
2
Z
3
+ +
------------------------------- =
Y A Conversion
Z
1
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
b
-------------------------------------------------- = Z
2
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
a
-------------------------------------------------- = Z
3
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
c
-------------------------------------------------- =
Y
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-37
Copyright Orchard Publications
Summary
- If a load is -connected, the total three-phase power is given by
- If the load is A-connected the total three-phase power is given by
- For any load ( ) the total three-phase power can be computed from
and it is important to remember that the power factor refers to the load, that is, the
angle is not the angle between and .
- Three-phase power can be measured with only two wattmeters.
- In a three-phase system, the A-A connection is preferred in certain industrial applications, the
A-Y connection is the most common and it is used in both commercial and industrial
applications, the Y-A connection used for transmissions of high voltage power, but the Y-Y
connection causes harmonics and balancing problems and it is to be avoided.
- If a three-phase transformation is needed and a three phase transformer of the proper size and
turns ratio is not available, three single phase transformers can be connected to form a three
phase bank.
- A symmetrical three-phase system can also be formed with two transformers.
- If one of these transformers were removed and the transformer bank operated as an open delta
connection, the output power would be reduced to 57.7% of its original capacity. To restore
the system to its original capacity, capacitors can be added to the system.
- The MathWorks Simulink / SimPowerSystems toolbox includes several three-phase trans-
former and they can be used with three-phase system models that include three-phase trans-
formers.
Y
P
TOTAL
3 V
AN
I
A
0 cos =
Y connected load
P
TOTAL
3 V
AB
I
AB
0 cos =
A connected load
Y or A connected
P
TOTAL
3 V
AB
I
A
0
LD
cos =
Y or A connected load
0
LD
cos
0 V
AB
I
A
Chapter 11 Balanced Three-Phase Systems
11-38 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
11.14 Exercises
1. In the circuit below the line-to-line voltage is , the phase sequence is , and each
. Compute:
a. the total power absorbed by the three-phase load.
b. the wattmeter reading.
2. Three single-phase transformers are connected A - Y as shown below. Each transformer is
rated , , . The total three-phase load is with
lagging. The input voltages are:
Find all voltages and currents assuming that the transformers are ideal, and the line-to-neu-
tral voltages on the secondary are in phase with the input voltages.
3. In the circuit below the lighting load is balanced. Each lamp is rated at . Assume
constant resistance, that is, each lamp will draw rated current. The three-phase motor draws
at a power factor of lagging. The secondary of the transformer provides balanced
line-to-line. The load is located feet from the three-phase transformer. The resis-
tance and inductive reactance of the distribution line is and respectively per
ft of the wire line. Compute line-to-line and line-to-neutral voltages at the load.
100 V a b c
Z 10 30 Z =
Z
Z
Z
Wattmeter
Load
a
b
c
100 KVA 2300 13800 V RMS ' 60 Hz L 270 KVA
pf 0.866 =
V
AB
2300 0 Z = V
BC
2300 120 Z = V
CA
2300 120 Z =

L
n
A
B
C
a
b
c
500 w 120 V
5.0 Kw 0.8
208 V 1500
0.403 O 0.143 O
1000
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-39
Copyright Orchard Publications
Exercises
4. A three-phase motor and a single-phase motor are connected in a three-phase ,
phase distribution system with neutral. The single-phase motor is connected between
line and the neutral, and there is no neutral connection for the three-phase motor. The
phase sequence is .
The three-phase motor is rated , , , , and .
The single-phase motor is rated , , , , and .
How much current flows in each line and in the neutral when both motors are operating with
full loads?
5. Three-phase power of is to be delivered over a distance of miles to a -connected
load whose power factor is lagging. The operating frequency is and each line has a
resistance and inductance. The generator at the sending end is also -con-
nected.
What must the line-to-line voltages be at the sending end if the corresponding voltages at the
load are to be in magnitude?
6. A three-phase transmission line miles long has a resistance of per mile of conductor
and a reactance of per mile of conductor at . The transmission line delivers
to a -connected inductive load at a power factor of . The potential difference
between line conductors at the load is .
a. Calculate the potential difference between line conductors at the input end of the line.
b. Calculate the total rating in of a bank of capacitors placed at the input of the line that
will increase the power factor at that point to lagging.
7. A potential difference of is impressed between the conductors of a three-wire trans-
mission line at its generator end. Each line conductor has an impedance of . The
load is -connected and the power absorbed by this load is at a lagging power factor
of . Calculate the potential difference between conductors at the load.

L
L
L
L
L L
M

208 volt
60 Hz
c
a b c
15 hp 208 volts 1740 rpm 87% efficiency 0.866 pf
3.5 hp 115 volts 1750 rpm 85% efficiency 0.8 pf
1 Mw 100 Y
0.80 60 Hz
30 O 30 mH Y
20 000 V ,
20 0.6 O
0.27 O 60 Hz
1000 Kw Y 0.80
11000 V
KVA
0.90
66000 V
80 j60 O +
Y 1000 Kw
0.80
Chapter 11 Balanced Three-Phase Systems
11-40 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
8. Each conductor of a three-phase, three-wire transmission line has an impedance of
at . The potential difference between line conductors is . The load connected to
this system is balanced and absorbs at a lagging power factor that is to be determined.
The current per conductor is . Find:
a. the efficiency of transmission
b. the potential difference between line conductors at the load
c. the power factor at the load
9. Two transformers, each rated , , , are connected in open config-
uration as shown below. Each load is a resistive load of . The input voltages are:
Assuming that the primary and secondary voltages are in phase, and the transformers are
ideal, find:
a. the voltages on the secondary
b. all currents
15 j20 O +
60 Hz 13200 V
1000 Kw
70 A
20 KVA 440 / 220 V 60 Hz A
R
LD
1.27 O
V
AB
440 0 V Z = V
BC
440 120 V Z = V
CA
440 120 V Z =

n
A
B
C
c
b
a
R
LD
R
LD
R
LD
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-41
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
11.15 Solutions to End-of-Chapter Exercises
1.
a.
From the circuit above
and with MATLAB,
x=5*sqrt(3)-15j; fprintf(' \n');...
fprintf('mag = %5.2f A \t', abs(x)); fprintf('phase = %5.2f deg', angle(x)*180/pi)
ma g = 17. 32 A pha s e = - 60. 00 de g
Thus,
The phase sequence implies the phase diagram below.
From (11.59)
b.
The wattmeter reads the product where is behind as shown on the phasor
diagram below. Thus, the wattmeter reading is
Z
Z
Z
Wattmeter
Load
a
b
c
V
ab
I
ca
I
c
I
a
I
bc
I
ab
I
ab
V
ab
Z
---------
100 0 Z
10 30 Z
------------------- 10 30 Z 10
3
2
------- j10
1
2
-- - 5 3 j5 = = = = =
I
ca
V
ca
Z
---------
100 240 Z
10 30 Z
---------------------------- 10 270 Z 10 90 Z j10 = = = = =
I
a
I
ab
I
ca
5 3 j5 j10 5 3 j15 = = =
I
a
17.32 A =
a b c
P
total
3 V
ab
I
a
load pf ( ) =
3 100 17.32 30 cos 2 598 w , = =
V
ab
I
c
I
c
240 I
a
P
wattmeter
V
ab
I
c
100 0 10 3 60 240 ( ) cos Z = =
100 17.32 300 ( ) cos 866 w = =
Chapter 11 Balanced Three-Phase Systems
11-42 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
and, as expected, this value is one-third of the total power.
2.
Since the transformers are ideal, and the line-to-neutral voltages on the secondary are in
phase with the input voltages, the line-to-neutral voltages on the secondary are:
With reference to the phase diagram below, the line-to-line voltages on the secondary are:
V
ab
100 0 Z =
V
ca
100 240 Z =
V
bc
100 120 Z =
I
ab
I
ca
30
I
bc
I
bc
I
c
I
ca

I
a
V
AB
2300 0 Z = V
BC
2300 120 Z = V
CA
2300 120 Z =

L
n
A
B
C
a
b
c
V
an
13800 0 Z = V
bn
13800 120 Z = V
cn
13800 120 Z =
V
ab
V
an
V
bn
13800 0 Z 13800 120 Z 23900 30 Z = = =
V
bc
V
bn
V
cn
13800 120 Z 13800 60 Z 23900 90 Z = = =
V
ca
V
cn
V
an
13800 120 Z 13800 180 Z 23900 150 Z = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-43
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
For the above complex number operations and the others below, it is convenient to use the
Simulink model below.
*
The magnitude of the line currents on the secondary is determined by the current drawn by
the load, that is, total three-phase load divided by 3, , and thus

The load power factor is lagging and since , ,
and therefore the currents on the secondary lag the line-to-neutral voltages by . Then,
* For the description of the Simulink blocks used in the model above, please consult The MathWorks, Inc. docu-
mentation, or refer to Introduction to Simulink with Engineering Applications, ISBN 978-1-934404-09-06.
V
ca
V
cn
V
an

V
bc
V
bn
V
cn

V
ab
V
an
V
bn

30
K=180/pi
Polar to
Cartesian1
Polar to
Cartesian
-K-
Gain
30
0.5236
2.39e+004
-1.195e+004
-6900
0
1.38e+004
-2*pi/3
13800
0
13800
Cartesian to
Polar
270 KVA 3 ' 90 KVA =
I
LOAD
(per phase) 90 KVA 13800 V ' 6.52 A = =
0.866 pf 0 cos 0.866 = = 0 0.866
1
cos 30 = =
30
I
na
6.52 0 30 Z 6.52 30 Z = =
I
nb
6.52 120 30 Z 6.52 150 Z = =
I
nc
6.52 120 30 Z 6.52 90 Z = =
Chapter 11 Balanced Three-Phase Systems
11-44 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
To find the values of the currents on the primary side, we make us of the transformers turns
ratio, that is, . Then,
With reference to the phase diagram below, the input line currents are:
3.
The single-phase equivalent circuit is shown below where
and thus
a 2300 13800 1 6 ' = ' =
I
AB
1 a ' ( ) I
na
39 = 30 Z =
I
BC
1 a ' ( ) I
nb
39 = 150 Z =
I
CA
1 a ' ( ) I
nc
39 = 90 Z =
I
A
I
AB
I
CA
39 30 Z 39 90 Z 67.6 60 Z = = =
I
B
I
BC
I
AB
39 150 Z 39 30 Z 67.6 180 Z = = =
I
C
I
CA
I
BC
39 90 Z 39 150 Z 67.6 60 Z = = =
I
c
I
a
I
b
I
ab
I
ca
I
bc
-30
o
-I
ab
-I
ca
-I
bc
R 0.403 O 1000 ft ' 1500 ft 0.605 O = =
X
L
0.143 O 1000 ft ' 1500 ft 0.215 O = =
Z
line
0.605 j0.215 + =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-45
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Also,
We recall that for a single phase system the real power is given by
where
Then, we find the motor current in terms of the motor voltage as
and since , the motor current is expressed as
The total current is
and the voltage drop across the line is
Next,

R
jX
L
M
V
an
208 3 ' 0 V Z =
120 0 V Z =
1500 ft
j0.215 O 0.605 O I
lamp2 I
lamp1
4.17 A 4.17 A
I
M
5 3 Kw '
0.8 pf
V
M
V
load
=
Z
line
I
total
I
lamp1
I
lamp2
P
rated
V
rated
--------------
500
120
--------- 4.17 A = = = =
P
real
V
RMS
I
RMS
0 cos =
0 cos pf =
I
M
V
M
I
M
5000 3 '
0.8 V
M
-------------------
2083
V
M
------------ = =
0.8
1
cos 36.9 lagging pf ( ) = I
M
I
M
2083
V
M
------------ 36.9 Z
1
V
M
-------- 1666 j1251 ( ) = =
I
total
I
lamp1
I
lamp2
I
M
+ + 2 4.17
1
V
M
-------- 1666 j1251 ( ) +
1
V
M
-------- 8.34V
M
1666 j1251 + ( ) = = =
1500 ft
V
line
I
total
Z
line

1
V
M
-------- 8.34V
M
1666 j1251 + ( ) 0.605 j0.215 + ( ) = =
1
V
M
-------- 5.05V
M
j1.79V
M
1008 j358.2 j756.9 269.0 + + + + ( ) =
1
V
M
-------- 5.05V
M
1277 + ( ) j 1.79V
M
398.7 ( ) + [ ] =
V
an
120 0 Z V
line
V
M
+
1
V
M
-------- 5.05V
M
1277 + ( ) j 1.79V
M
398.7 ( ) + [ ] V
M
+ = = =
Chapter 11 Balanced Three-Phase Systems
11-46 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
or
or
We solve this quadratic equation with the following MATLAB script:
p=[1 114.95-1.79j 1277-398.7j]; roots(p)
a ns =
1. 0e +002 *
1. 0260 + 0. 0238i
0. 1235 - 0. 0417i
Then, and . Of
these, the value of is unrealistic and thus it is rejected. The positive phase angle in is
a result of the fact that a motor is an inductive load. But since an inductive load has a lagging
power factor, we denote this line-to neutral of line-to-ground voltage with a negative angle,
that is,
The magnitude of the line-to-line voltage is
4.
For the three-phase motor, the power is computed from the relation
where is the load power factor, and is the efficiency. Solving for the magnitude of the
line current we obtain
120V
M
5.05V
M
1277 + ( ) j 1.79V
M
398.7 ( ) + [ ] V
M
2
+ =
V
M
2
114.95 j1.79 ( )V
M
1277 j398.7 ( ) + 0 =
V
M1
102.6 j2.39 + 102.63 1.33 Z = = V
M2
12.35 j 4.17 13.4 18.66 Z = =
V
M2
V
M1
V
M
V
load
102.63 1.33 V Z = =
V
l l
3 V
M
3 102.63 177.76 V = = =
3 o
1 o
motor
motor
a
b
c
n
I
b
I
a
I
c
I'
c
I
n
I''
c
P 3 V
ab
I
a
0
LD
q cos =
0
LD
cos q
I
a
I
a
P
3 V
ab
0
LD
q cos
-----------------------------------------
15 746
3 208 0.866 0.87
-------------------------------------------------------------- 41.2 A = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-47
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Next, let us refer to the phasor diagram below where we have chosen as the reference
phase voltage. Then,
as shown in the phasor diagram below. The position of the phase current in the phasor dia-
gram is determined by the load power factor from which where the
negative sign stems from the fact that the power factor is lagging. Therefore,
For the single-phase motor, the magnitude of the current is computed from the relation
and since lagging, and since is a component of the line current
which is out-of-phase with the line current , it follows that
and
V
an
V
an
120 0 Z =
V
bn
120 120 Z =
V
cn
120 120 Z =
I
a
0
LD
cos 0.866 = 0 30 =
I
a
41.2 30 Z =
I
b
41.2 150 Z =
I'
c
41.2 90 Z =
I'
c
V
an
V
ab
V
bc
V
ca
V
bn
V
cn
I
a
I
b
I''
c
I''
c
3.5 746
115 0.8 0.85
------------------------------------ 33.4 A = =
0'
LD
cos 0.8 = 0' 36.9 = I''
c
I
c
120 I
a
I''
c
33.4 36.9 120 Z Z 33.4 83.1A Z = =
I
c
I'
c
I''
c
+ 41.2 90 Z 33.4 83.1 Z + j41.2 4 j33.1 + + 4 j74.3 + 74.4 87 Z = = = = =
Chapter 11 Balanced Three-Phase Systems
11-48 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
5. Since the system is balanced, we can find the solution treating it as a single-phase system as
shown below.
We let:

Then,
That is, the magnitude of voltage to neutral at the sending end is , and the line-to-line
voltages are
The phasor diagram below shows the relevant voltages and currents. The angle of is very
small and it is neglected.
6.
a. The line current is
30 O
R
Z
L
I
L
V
sn
V
rn
30 mH
0.8 pf
lagging
1 Mw
100 miles
Z
L
V
sn
Voltage to neutral at sending end =
jX j2rfL j2r 60 0.03 11.31 O = = =
Z
L
R jX + 30 j11.31 O + = =
0 power factor angle 0.80
1
cos = =
V
rn
Voltage to neutral at receiving end 20 000 , 3 ' 11 547 V , = = =
I
L
P
3V
L L
0 cos
----------------------------------
10
6
3 20 000 0.8 ,
--------------------------------------------- 36.1 A = = =
V
sn
Z
L
I
L
V
rn
+ 30 j11.31 + ( ) 36.1 ( ) 0.8 j0.6 ( ) 11 547

, +
12658 j323 12662 1.5 V Z
= =
= =
12662 V
V
L L
3 12662 Z 22 000 V , = =
V
sn
0
I
L
V
rn
RI
L
V
sn
XI
L
I
LN
I
LN
P
3V
L
pf
--------------------
1000 1000
3 11000 0.8
------------------------------------------ 65.6 A = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-49
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
The line resistance and the line reactance for the entire length of miles are
and thus the line impedance is
The line-to-neutral voltage at the load end, denoted as , is
and the line-to-neutral voltage at the sending end, denoted as , is
and the line-to-line voltage at the sending end, denoted as , is
The phasor diagram below shows the relevant voltages and currents. The angle of is
very small and it is neglected.
b. The capacitor bank consumes no real power but it will cause the flow of a current that leads
by as shown in the phasor diagram below.
Original current:
Original lagging reactive current:
R
L
X
L
20
R
L
20 0.6 12 O = = X
L
20 0.27 5.4 O = =
Z
L
Z
L
12 j5.4 O + =
V
rn
V
rn
11000
3
--------------- 6350 V = =
V
sn
V
sn
Z
L
I
L
V
rn
+ 12 j5.4 + ( )65.6 0.8 j0.6 ( ) 6350

+
7192 j189 7195 1.5 V Z
= =
= =
V
L L
V
L L
3 V
sn
3 7195 12500 V = = =
V
sn
0
I
L
V
rn
RI
L
V
sn
XI
L
V
sn
90
I
x1
I
x2
I
c
I
LN1
V
sn
I
c
0
1
0
2
I
LN2
I
LN1
65.6 0
1
cos j 0
1
sin ( ) 65.6 0.8 j0.6 ( ) 52.5 j39.4 = = =
Chapter 11 Balanced Three-Phase Systems
11-50 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
For improved power factor , , . Then,
Thus, final lagging reactive current is
and leading reactive current by the capacitor bank is
Therefore, the rating of the capacitor bank is
7.
The single-phase equivalent circuit is shown below where
We recall that for a three-phase -connected load the three-phase power is given by
and thus
We choose as a reference vector as shown in the phasor diagram below.
Then, as a vector is
I
x1
j39.4 =
0.9 0.9 ( ) acos 25.8 = 25.8 ( ) sin 0.436 =
I
LN2
65.6 0
2
cos j 0
2
sin ( ) 65.6 0.9 j0.436 ( ) 59.0 j28.6 = = =
I
x2
j28.6 =
I
c
I
x1
I
x2
j39.4 j28.6 j10.8 = = =
KVA
Capacitor bank rating
3 V
L L
I
c

1000
----------------------------------
3 12500 10.8
1000
--------------------------------------------- 234 KVA = = =
V
sn
66000 3 ' 38100 V = =
80 O
R
Z
L
I
L
V
sn
V
rn
j60 O
0.8 pf
lagging
1 Mw
Z
L
Y
P
total
3 V
rn
I
L
load pf ( ) =
I
L
P
3 V
rn
pf
-----------------------------
1000 1000
3 V
rn
0.8
-------------------------------
10
6
2.4 V
rn

----------------------- = = =
V
rn
0
r
I
L
V
rn
RI
L
V
sn
XI
L
I
L
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-51
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Next,
and since , and are in-phase and the expression above
simplifies to
or
We will use MATLAB to solve this quadratic equation.
syms Vrn
solve(Vrn^2-38100*Vrn+41.7*10^6)
a ns =
19050+50*128481^( 1/ 2)
19050- 50*128481^( 1/ 2)
We can find the magnitude of from either of these two solutions. Thus,
a=19050+50*128481^(1/2); abs(a)
a ns =
3. 6972e +004
That is, , and denoting the potential difference between conductors at the load as
, we obtain
I
L
I
L
0
r
cos 0
r
sin ( )
10
6
2.4 V
rn

----------------------- 0.8 j0.6 ( ) = =


V
sn
ZI
L
V
rn
+ 80 j60 + ( )
10
6
2.4 V
rn

----------------------- 0.8 j0.6 ( ) V


rn
+ = =
80 j60 + ( ) 0.8 j0.6 ( ) 100 = V
sn
V
rn
V
sn
10
6
2.4 V
rn

----------------------- 100 V
rn
+
10
8
2.4 V
rn

----------------------- V
rn
+ = =
38100
10
8
2.4 V
rn

----------------------- V
rn
+ =
V
rn
2
38100V
rn
41.7 10
6
+ 0 =
V
rn
V
rn
36972 =
V
r
V
r
3 36972 64037 V = =
Chapter 11 Balanced Three-Phase Systems
11-52 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
8.
a. The percent efficiency of the systems is
b. The power factor at the sending end is
Also, , . Then,
and
c. The power factor at the load end is
9.
a. Since the voltages on the primary and secondary are in-phase, it follows that:
q
q
Power output
Power output Line copper losses +
---------------------------------------------------------------------------------------------
P
out
P
out
3I
L
2
R +
-----------------------------
10
6
10
6
3 70
2
15 +
-------------------------------------------- 82% = = = =
Power factor 0
s
cos
P
s
q '
3 V
s
I
L

---------------------------
10
6
0.82 '
3 13200 70
---------------------------------------- 0.762 = = = =
0.762 ( ) acos 40.36 = 0
s
sin 40.36 ( ) sin 0.648 = =
V
rn phase ( )
V
sn phase ( )
I
LN
Z
LN
13200 3 ( ) ' 70 0
s
cos j 0
s
sin ( ) 15 j20 + ( )

7621 70 0.762 j0.648 ( ) 15 j20 + ( ) 5914 j386 5926 3.74 V Z


= =
= = =
V
rn line ( )
3 V
rn phase ( )
3 5926 10264 V = = =
pf
LD
P
LD
3 V
rn line ( )
I
L
----------------------------------------
10
6
3 10264 70
---------------------------------------- 0.80 = = =

n
A
B
C
c
b
a
R
LD
R
LD
R
LD
20 KVA
440 / 220 V
1.27 O
1.27 O
1.27 O
V
AB
440 0 V Z = V
BC
440 120 V Z = V
CA
440 120 V Z =
c
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 11-53
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and we observe that the secondary voltages form a symmetrical three-phase set.
b. The magnitude of the line-to-line voltages on the secondary side are and since the
secondary is connected in , the phase voltages are . Accordingly, the magnitude
of the current through each is
We found that , then from the phasor diagram below,
and since the secondary voltages form a symmetrical three-phase set, it follows that:
V
bc
220 120 V Z =
V
ca
220 120 V Z =
V
ab
V
ac
V
cb
+ V
ca
V
bc
220 0 V Z = = =
220 V
Y 220 3 '
R
LD
I
LD
220 3 '
1.27
-------------------- 100 A = =
V
ab
220 0 V Z =
V
ca
V
cn
V
an

V
bc
V
bn
V
cn

V
ab
V
an
V
bn

30
V
an
V
ab
3
--------- 30 Z =
I
an
V
an
R
LD
---------- 100 30 Z I
ca
= = =
I
bn
V
bn
R
LD
---------- 100 150 Z I
ca
= = =
I
cn
V
cn
R
LD
---------- 100 270 Z 100 90 Z I
bc
I
ca
= = = =
Chapter 11 Balanced Three-Phase Systems
11-54 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
The ratio of transformation is . Then, the primary currents are:
These results show that the input line currents form a symmetrical three-phase set and
thus two transformers can also be used for a symmetrical three-phase system.
a 2
I
A
I
AC
1 a ' ( )I
ca
50 30 Z = = =
I
B
I
BC
1 a ' ( )I
cb
50 150 Z = = =
I
C
I
CB
I
CA
+ 50 270 Z 50 90 Z = = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-1
Copyright Orchard Publications
Chapter 12
Unbalanced Three-Phase Systems
his chapter is an introduction to unbalanced three-phase power systems. It presents several
practical examples of analysis applied to unbalanced three-phase systems and a number of
observations are made based on the numerical examples. The method of symmetrical com-
ponents is introduced and a phase sequence indicator serves as an illustration of a Y-connection
with floating neutral.
12.1 Unbalanced Loads
Three-phase systems deliver power in enormous amounts to single-phase loads such as lamps,
heaters, air-conditioners, and small motors. It is the responsibility of the power systems engineer
to distribute these loads equally among the three-phases to maintain the demand for power fairly
balanced at all times. While good balance can be achieved on large power systems, individual
loads on smaller systems are generally unbalanced and must be analyzed as unbalanced three-
phase systems.
Fortunately, many problems involving unbalanced loads can be handled as single-phase problems
even though the computations can be three times as long as illustrated by the example below.
Example 12.1
In the three-phase system in Figure 12.1, the load consisting of electric heaters, draw currents as
follows:
Figure 12.1. Three-phase system for Example 12.1
T
I
a
150 A = I
b
100 A = I
c
50 A =
Generator
c
B
A A
B
N
C
I
A
I
C
I
B
b
a
a
b
n
n
c
C
I
a
I
b
I
n
I
c
2400 to 120 V
Transformer
Load
z
c
z
a
z
b




Chapter 12 Unbalanced Three-Phase Systems
12-2 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Find the current in each phase of the Y-connected generator.
Solution:
Let us assume that these currents are balanced in phase. Then,
(12.1)
and the current in the neutral connection is
(12.2)
The currents , , and on the primary side of each transformer is found from the known
secondary currents , , and and observing in Figure 12.1 that parallel coils belong to the
same transformer, that is, the primary winding and the secondary winding are on the same
transformer and so on, and observing that the transformer turn ratio is to , or to ,
and thus the current ratio is to .
*
Then, assuming that the polarity of the transformer wind-
ings is the same for the primary and the secondary, we have:
(12.3)
Next, we compute the primary line currents , , and which are also the generator phase
currents. From Figure 12.1 we observe that
(12.4)
Therefore, the magnitude of the current in each phase of the Y-connected generator is ,
, and , and the rating of a generator to carry this load must have a rating of
per phase or a total rating of or more.
* We recall from relation (9.89), Chapter 9, Page 9-29, that .
I
a
150 0 Z 150 j0 A + = =
I
b
100 120 Z 50 j86.6 A = =
I
c
50 +120 Z 25 j43.3 A + = =
I
n
I
a
I
b
I
c
+ + 75 j43.3 86.6 30 A Z = = =
I
AB
I
BC
I
CA
I
a
I
b
I
c
AB nc
2400 120 20 1
1 20
I
2
I
1
' 1 a ' =
I
AB
I
nc
20
-------
I
c
20
------
25 j43.3 +
20
----------------------------- 1.25 j2.16 + 2.5 120 Z = = = = =
I
BC
I
na
20
-------
I
a
20
------
150 j0 +
20
-------------------- 7.5 j0 + 7.5 0 Z = = = = =
I
CA
I
nb
20
-------
I
b
20
------
50 j 86.6
20
------------------------- 2.5 j 4.33 5 120 Z = = = = =
I
A
I
B
I
C
I
A
I
AB
I
AC
+ I
AB
I
CA
1.25 j2.16 2.5 j 4.33 ( ) + 1.25 j6.49 + 6.61 79.1 Z = = = = =
I
B
I
BC
I
BA
+ I
BC
I
AB
7.5 j0 1.25 j2.16 + ( ) + 8.75 j2.16 9.01 13.87 Z = = = = =
I
C
I
CA
I
CB
+ I
CA
I
BC
2.5 j 4.33 7.5 j0 + ( ) 10 j 4.33 10.90 156.59 Z = = = = =
6.61 A
9.01 A 10.90 A 11 A
3 2 400 11 , 45.7 KVA =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-3
Copyright Orchard Publications
Voltage Computations
The current in the neutral connection of the generator is
(12.5)
as expected since there is no circuit in which it can flow.
The primary phase currents , , and the line currents , , , are shown in the pha-
sor diagram in Figure 12.2.
Figure 12.2. Phasor diagram for the primary phase and line currents in Example 12.1
12.2 Voltage Computations
In Example 12.1 above we did not consider the actual voltages at the load. If we assume that
these voltages are volts, line to neutral, and balanced, the voltage at the generator will be
somewhat greater than the nominal value of volts because of the impedances in the system.
This will be considered in Example 12.2 below.
Example 12.2
For the three-phase system in Figure 12.3, compute the generator voltages , , and .
Assume that each transformer impedance on the high side is and the transformer resis-
tances are negligible. Assume also that the lines are very short and thus their impedances can are
also negligible. The transformer secondary voltages are assumed to be as follows:
(12.6)
Solution:
From Example 12.1, relation (12.3),
The voltage ratio is to .
*
Therefore, the transformer primary voltages, line-to-line, are as
follows:
I
N
I
A
I
B
I
C
+ + 1.25 j6.49 8.75 j2.16 10 j 4.33 + + 0 = = =
I
AB
I
BC
I
CA
I
A
I
B
I
C
I
CA
I
AB
I
BC
I
C
I
B
I
A
120
2400
V
AB
V
BC
V
CA
j30 O
V
an
120 0 Z 120 j0 + = =
V
bn
120 120 Z 60 j104 = =
V
cn
120 +120 Z 60 j104 + = =
I
AB
1.25 j2.16 + = I
BC
7.5 j0 + = I
CA
2.5 j 4.33 =
20 1
Chapter 12 Unbalanced Three-Phase Systems
12-4 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 12.3. Three-phase system for Example 12.2
Figure 12.4 below is the phasor diagram for these voltages.
Figure 12.4. Phasor diagram for Example 12.2
The computations in Example 12.2 are accurate. However, the approach is not practical. A prac-
tical approach would be to begin with the assumption that the generator voltage is constant at
volts and compute the load (heaters) voltages given their resistances. This can be done with
loop or mesh equations and this approach will be used in the next example.
12.3 Phase-Sequence Indicator
The phase sequence is essential with rotating machines. The rotation of a generator in a clockwise
direction may develop voltages of phase sequence while the rotation in a counterclock-
* We recall from relation (9.99), Chapter 9, Page 9-30, that . V
2
V
1
' a =
Generator
c
B
A A
B
N
C
I
A
I
C
I
B
b
a
a
b
n
n
c
C
I
a
I
b
I
n
I
c
2400 to 120 V
Transformer
Load z
c
z
a
z
b
V
AB
20V
cn
I
AB
Z + 1200 j2080 + ( ) 1.25 j2.16 + ( )j30 + 1265 j2043 + 2403 121.8 Z = = = =
V
BC
20V
an
I
BC
Z + 2400 ( ) 7.5 j0 + ( )j30 + 2400 j225 + 2411 5.4 Z = = = =
V
CA
20V
bn
I
CA
Z + 1200 j 2080 ( ) 2.5 j 4.33 ( )j30 + 1270 j2155 2406 116.4 Z = = = =
V
BC
V
AB
V
CA
2400
a b c
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-5
Copyright Orchard Publications
Phase-Sequence Indicator
wise direction will develop voltages of phase sequence . The direction of rotation of an
induction motor will be reversed if two line connections are interchanged. Using a device called
phase-sequence indicator, we can prove that the currents in the three phases of an unbalanced Y-
connected load are dependent on the phase sequence of the source. This will be illustrated with
Example 12.3 below.
Example 12.3
Figure 12.5 shows a typical phase-indicator consisting of two resistors representing two light
bulbs each rated watts, volts at frequency, and a capacitor connected to a
volt three-phase system.
Figure 12.5. A phase-sequence indicator
The instructions provided by the manufacturer of this device states that after connecting the cir-
cuit as shown, we should attach line to the middle (capacitor) terminal. Then, the lamp that
lights is in line . In the discussion that follows we will prove that only one of the lamps lights and
which one.
Let us assign currents and as shown in Figure 12.6, and assume that
(12.7)
At the frequency , the capacitive reactance is
and the resistance of each lamp is
*
* For a balanced 3-phase load we must have
c b a
15 120 60 Hz 2 F
120
15 watt 120volt lamp ,
2 F
15 watt 120volt lamp ,
c
a
b
I
c
I
a
I
b
n
a
b
I
1
I
2
V
ab
120 0 Z 120 j0 + = =
V
bc
120 120 Z 60 j104 = =
V
ca
120 +120 Z 60 j104 + = =
f 60 Hz =
X
C
1 cC ' 10
6
2r 60 2 ( ) ' 1326 O = = =
R V
2
P ' 120
2
15 ' 960 O = = =
X
C
R =
Chapter 12 Unbalanced Three-Phase Systems
12-6 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 12.6. The phase-sequence indicator with assigned mesh currents
The mesh equations are
(12.8)
By Cramers rule,
and since
*
we obtain
and by substitution of numerical values we obtain
(12.9)
By a similar procedure we obtain
and by substitution of numerical values we obtain
(12.10)
* See Figure 12.6
15 watt 120volt lamp ,
2 F
15 watt 120volt lamp ,
c
a
b
I
c
I
a
I
b
n
I
1
I
2
X
C
R
R
R jX
C
+ ( )I
1
jX
C
I
2
V
ab
=
jX
C
I
1
R jX
C
+ ( )I
2
+ V
ca
=
I
1
V
ab
jX
C

V
ca
R jX
C
+
R jX
C
+ jX
C

jX
C
R jX
C
+
-----------------------------------------------
RV
ab
jX
C
V
ab
jX
C
V
ca
+ +
R jX
C
+ ( )
2
X
C
( )
2

-----------------------------------------------------------------
RV
ab
jX
C
V
ab
V
ca
+ ( ) +
R jX
C
+ ( )
2
X
C
2
+
------------------------------------------------------------ = = =
V
ab
V
ca
+ V
cb
V
bc
= =
I
1
RV
ab
jX
C
V
cb
( ) +
R jX
C
+ ( )
2
X
C
2
+
--------------------------------------------
RV
ab
jX
C
V
bc
( )
R
2
j2RX
C
+
-------------------------------------------- = =
I
1
960 120 j 1326 ( ) 60 j104 ( )
960
2
2j 960 1326 ( ) +
------------------------------------------------------------------------------------------- 0.098 52.6 A Z = =
I
2
RV
ca
jX
C
V
bc
( )
R
2
j2RX
C
+
------------------------------------------- =
I
2
960 60 j104 + ( ) j 1326 ( ) 60 j104 ( )
960
2
2j 960 1326 ( ) +
------------------------------------------------------------------------------------------------------------------ 0.031 84.3 A Z = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-7
Copyright Orchard Publications
A-Y Transformation
The rated current for the lamp is and from (12.8) we observe that
the value of is approximately of its rated current, and this is sufficient to light the lower
lamp in Figure 12.6 though not to full brilliance. However, the value of is about one-fourth of
the rated value of the lamp, and this is not sufficient to produce a noticeable brightness. Thus we
have shown that one lamp lights brightly, and the other hardly at all, and that the lamp in line
is the bright one. More importantly, we have shown that the phase sequence does make a differ-
ence.
12.4 A-Y Transformation
We can substitute a -connected load such as that of the phase-sequence indicator in Figure
12.6, with a -connected load and solve for phase and then for line currents.
Example 12.4
Figure 12.7(a) below is the same as the phase-sequence indicator as in Figure 12.6. We wish to
find the equivalent shown in 12.7(b).
Figure 12.7. to transformation for Example 12.4
Solution:
We begin with the application of the relations (11.45), Page 11-15, Chapter 11 which are
repeated below for convenience, where we have substituted , , and with , , and
respectively.
With reference to Figure 12.7, we obtain the following relations:
15 watt 15 120 ' 0.125 A =
I
1
80%
I
2
b
Y
A
A
a ( ) b ( )
a a
b b
c
c
z
ab
z
bc
z
ca
960
960
j1326
n
jX
C
R
R
I
b
I
a
I
c
Y A
Z
1
Z
2
Z
3
Z
ab
Z
bc
Z
ca
Z
ab
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
b
---------------------------------------------------- = Z
bc
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
a
---------------------------------------------------- = Z
ca
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
c
---------------------------------------------------- =
Y A Conversion
Chapter 12 Unbalanced Three-Phase Systems
12-8 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
From (12.7),
and the phase currents in the connection are:
and the currents in Figure 12.7(a) or Figure 12.6 are:
(12.11)
We observe that
from (12.10) and (12.11)
and from (12.9) and (12.11)
12.5 Practical and Impractical Connections
A -connected system with a floating neutral should be avoided because the load may become
unbalanced. The reason becomes obvious by considering the phasor diagram in Figure 12.8.
Z
ab
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
b
----------------------------------------------------
jXR R
2
jXR + +
R
---------------------------------------- R j2X + 960 j2652 2820 70.1 Z = = = = =
Z
bc
Z
a
Z
b
Z
b
Z
c
Z
c
Z
a
+ +
Z
a
----------------------------------------------------
jXR R
2
jXR + +
jX
---------------------------------------- 2R j
R
2
X
------ 1920 j695 + 2042 19.9 Z = = = = =
Z
ca
Z
ab
2820 70.1 Z = =
V
ab
120 0 Z 120 j0 + = =
V
bc
120 120 Z 60 j104 = =
V
ca
120 +120 Z 60 j104 + = =
A
I
ab
V
ab
Z
ab
---------
120 0 Z
2820 70.1 Z
--------------------------------- 0.0426 70.1 Z 0.0145 j0.0401 + = = = =
I
bc
V
bc
Z
bc
---------
120 120 Z
2042 19.9 Z
------------------------------ 0.0588 139.9 Z 0.0450 j 0.0379 = = = =
I
ca
V
bc
Z
bc
---------
120 +120 Z
2820 70.1 Z
--------------------------------- 0.0426 190.1 Z 0.0419 j 0.0075 = = = =
I
a
I
ab
I
ca
0.0564 j0.0475 + 0.0736 40.1 Z = = =
I
b
I
bc
I
ab
0.0595 j0.079 0.0980 127.4 Z = = =
I
c
I
ca
I
bc
0.031 j0.0304 + 0.0306 84.2 Z = = =
I
a
I
b
I
c
+ + 0 =
I
2
I
c
=
I
1
I
b
=
Y
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-9
Copyright Orchard Publications
Practical and Impractical Connections
Figure 12.8. Phasor diagrams for balanced and unbalanced loads
In Figure 12.8(a) above the load is assumed to be balanced and thus the neutral point is at the
center of the triangle. However, if the load becomes unbalanced, the neutral point moves away
from the center as shown in Figure 12.8(b). An example where this may occur is the three-phase
distribution system shown in Figure 12.9 below, and thus this arrangement is impractical and
should be avoided.
Another example of an impractical distribution system is shown in Figure 12.10 where a
transformer bank and a transformer bank are connected in parallel on both the primary
and secondary sides. The problem here is that one transformer bank shifts the voltages
*
and
the other does not.
Figure 12.9. An impractical configuration for a three-phase distribution system
* We recall that in a Y-connected system the line and phase voltages are different whereas in a -connected sys-
tem they are the same.
a
a ( )
V
an
a
b
b
c c
n
n
b ( )
V
ab
V
ab
V
bc
V
bc
V
ca
V
ca
V
an
V
bn
V
bn
V
cn
V
cn
n
n
Y Y
Y A
30
A
z
5
z
1
z
2
z
3
z
4
Chapter 12 Unbalanced Three-Phase Systems
12-10 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 12.10. Another impractical configuration for a three-phase distribution system
Figure 12.11 shows an connection on both the primary and secondary sides.
Figure 12.11. A practical open- connection
This is the same as a standard connection but with one transformer omitted on both sides.
This is a practical connection and it is convenient for temporary installations that are not heavily
loaded. We observe that this arrangement provides three line-to-line voltages with the correct
magnitude and phase.
12.6 Symmetrical Components
The analysis of unbalanced three-phase systems can be greatly simplified with the principle of
symmetrical components. This principle states that any three vectors can be represented by three
sets of balanced vectors. Thus, when applied to three-phase currents, any three current phasors
can be replaced by three sets of balanced currents, and when applied to three-phase voltages, any
three voltage phasors can be replaced by three sets of balanced voltages.
The voltages or currents at a point of unbalance in a three-phase system are determined and
replaced by three sets of components known as positive phase sequence, negative phase sequence, and
zero phase sequence. The positive phase sequence, negative phase sequence, and zero phase
open A
z
6
z
1
z
2
z
3
z
4
z
5
A
A A
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-11
Copyright Orchard Publications
Symmetrical Components
sequence voltages or currents are determined independently and the actual unbalanced voltages
or currents are found by adding these three-phase sequences. Thus the solution of a difficult
problem involving unbalanced voltages or currents is simplified to the solution of three easy prob-
lems involving only balanced voltages or currents.
Example 12.5
Show that the three unbalance current phasors in Figure 12.12(a) are the sum of the three bal-
anced currents shown in Figure 12.12(b).
Figure 12.12. (a) Unbalanced currents and (b) their symmetrical components.
In symmetrical components, a symmetrical set of vectors as shown in Figure 12.12(b) above, are
equal in length, and equally spaced in angle. The symmetrical sets of three vectors such as those
shown in Figure 12.12(b) are related by equation (12.12) below.
(12.12)
For the positive-sequence we set , and thus
(12.13)
In other words, for the positive-phase sequence set the order is as shown
in Figure 12.13 below.
Figure 12.13. Positive sequence phasor diagram
For the negative-sequence we set , and thus
I
a
I
b
I
c
I
a1
a ( )
b ( )
I
b1
I
c1
I
a2
I
b2
I
c2
I
a0
I
b0
I
c0
Positive
sequence
sequence
Negative
Zero
sequence
I
an
I
bn
n 120 Z I
cn
2n 120 Z = =
n 1 =
I
a1
I
b1
120 Z I
c1
240 Z = =
a b c a b c .
I
a1
I
c1
I
b1
n 2 =
Chapter 12 Unbalanced Three-Phase Systems
12-12 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
(12.14)
or
(12.15)
The same symmetrical set results by letting , and this accounts for the name of negative
sequence. Thus,
(12.16)
In other words, for the negative-phase sequence set the order is as shown
in Figure 12.14 below.
Figure 12.14. Negative sequence phasor diagram
For the zero-sequence we set or , and the latter accounts for the zero-sequence
name. The three components that comprise the zero-sequence set are equal in both magnitude
and phase, and thus it is unnecessary to denote them as , , and . Instead, we use the sin-
gle notation for any of the zero-sequence components, i.e.,
(12.17)
Now, let us return to Figure 12.12, Example 12.5, to prove that the addition of the positive-
sequence, negative-sequence, a zero-sequence components in Figure 12.12(b) are added graphi-
cally to obtain the unbalanced set in Figure 12.12(a). The addition is shown in Figure 12.15
below.
The addition of the three symmetrical sets to obtain one unbalanced set is easy as shown in Figure
12.15. We will now derive three equations for finding the three symmetrical component sets of
any three unbalanced phasors.
We begin the derivation with the definitions in the system of the three equations below.
(12.18)
I
a2
I
b2
240 Z I
c2
480 Z = =
I
a2
I
b2
120 Z I
c2
120 Z = =
n 1 =
I
a2
I
b2
120 Z I
c2
240 Z = =
c b a c b a .
I
a2
I
c2
I
b2
n 3 = n 0 =
I
a0
I
b0
I
c0
I
0
I
0
I
a0
I
b0
I
c0
= = =
I
a1
I
a2
I
0
+ + I
a
=
I
b1
I
b2
I
0
+ + I
b
=
I
c1
I
c2
I
0
+ + I
c
=
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-13
Copyright Orchard Publications
Symmetrical Components
Figure 12.15. Addition of the symmetrical components to obtain an unbalanced three-phase set.
From (12.13),
(12.19)
and
(12.20)
From (12.15),
(12.21)
and
(12.22)
Substitution of (12.19) through (12.22) into (12.18) yields
(12.23)
Adding the three equations in (12.23), we observe that the first two columns vanish, and thus
or
(12.24)
Next, we multiply the second equation in (12.23) by and the third equation by
and we add again. This time the second and third columns in (12.23) vanish, leaving
I
b1
I
a1
120 Z =
I
c1
I
a1
+120 Z =
I
b2
I
a2
+120 Z =
I
c2
I
a2
120 Z =
I
a1
I
a2
I
0
+ + I
a
=
I
a1
120 Z I
a2
+120 Z I
0
+ + I
b
=
I
a1
+120 Z I
a2
120 Z I
0
+ + I
c
=
3I
0
I
a
I
b
I
c
+ + =
I
0
1
3
-- - I
a
I
b
I
c
+ + ( ) =
1 +120 Z
1 120 Z
3I
a1
I
a
I
b
+120 Z I
c
120 Z + + =
Chapter 12 Unbalanced Three-Phase Systems
12-14 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
or
(12.25)
Finally, we multiply the second equation in (12.23) by and the third equation by
and we add again. We observe that the first and third columns in (12.23) vanish, leav-
ing
(12.26)
Therefore, with (12.24) through (12.26) we can compute the symmetrical components of any
unbalanced three-phase using the set of equations in (12.27) below.
(12.27)
It is customary to let and be unity vectors that apply
the appropriate shift. Then, (12.27) can be expressed as
(12.28)
Example 12.6
In Example 12.5 the symmetrical components were presented without any explanation of where
they came from. In this example, we will find the symmetrical components using (12.27).
Solution:
The method of analysis is illustrated in Figure 12.16 below where the phasors , , and
are the same as in Figure 12.15.
I
a1
1
3
--- I
a
I
b
+120 Z I
c
120 Z + + ( ) =
1 120 Z
1 +120 Z
I
a2
1
3
--- I
a
I
b
120 Z I
c
+120 Z + + ( ) =
I
0
1
3
--- I
a
I
b
I
c
+ + ( ) =
I
a1
1
3
--- I
a
I
b
+120 Z I
c
120 Z + + ( ) =
I
a2
1
3
--- I
a
I
b
120 Z I
c
+120 Z + + ( ) =
a 1.0 120 Z = a
2
1.0 240 Z 1.0 120 Z = =
I
0
1
3
--- I
a
I
b
I
c
+ + ( ) =
I
a1
1
3
--- I
a
aI
b
a
2
I
c
+ + ( ) =
I
a2
1
3
--- I
a
a
2
I
b
aI
c
+ + ( ) =
I
a
I
b
I
c
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-15
Copyright Orchard Publications
Symmetrical Components
Figure 12.16. Analysis of an unbalanced three-phase set to find symmetrical components
The zero-sequence component is found by adding dashed lines equal to and at the tip of
, and one-third of the resultant is marked off as in accordance with the first equation in
(12.27).
The positive-sequence component is found by adding a line equal to rotated by at the
tip of , and then a line equal to rotated by . In accordance with the second equation in
(12.27), one-third of the resultant is .
The negative-sequence component is found by applying the third equation in (12.27) in a
similar manner.
The complete symmetrical components system is by adding the phasors and after being
rotated by the appropriate phase shift to the positive-sequence set, and by adding the phasors
and after being rotated by the appropriate phase shift to the negative-sequence set as shown
in Figure 12.17 below.
Figure 12.17. The complete symmetrical components set for Example 12.6
Zero sequence
Positive sequence
Negative sequence
I
a1
1
3
---
I
a
I
b
+120 Z I
c
120 Z + + ( ) =
I
0
1
3
---
I
a
I
b
I
c
+ + ( ) = I
a2
1
3
---
I
a
I
b
120 Z I
c
+120 Z + + ( ) =
I
b
I
b
I
b
I
c
I
c
I
c
I
a
I
a
I
a
I
a1
3I
a1
I
c
120 Z
I
b
+120 Z
I
c
+120 Z
I
b
120 Z
I
0
3I
0
I
b
I
c
I
a2
3I
a2
I
0
I
b
I
c
I
a
I
0
I
a1
I
b
120
I
a
I
c
120
I
a1
I
a2
I
b1
I
c1
I
b2
I
c2
Positive
sequence
sequence
Negative
Zero
sequence
I
a1
I
c1
I
c2
I
a2
I
b2
I
a0
I
b0
I
c0
Chapter 12 Unbalanced Three-Phase Systems
12-16 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Three more problems on symmetrical components are given as exercises at the end of this chap-
ter. Because symmetrical components are phasors, the computations can be facilitated with the
use of MATLAB and /or Simulink as illustrated in Exercise 3 at the end of this chapter.
12.7 Cases where Zero-Sequence Components are Zero
Let us consider a -connected load with floating neutral shown in Figure 12.18.
Figure 12.18. -connected load with floating neutral
The three-phase -connected load with floating neutral point shown in Figure 12.18 can have
no zero-sequence component. This can be shown from relation (12.24), i.e.,
and with a floating neutral, , and thus regardless whether the load imped-
ances are unbalanced and what the applied voltages may be.
Next, let us consider a -connected load with the neutral point connected to a ground as
shown in Figure 12.19.
Figure 12.19. -connected load with grounded neutral
In Figure 12.19,
and since
it follows that
Y
n
I
a
I
b
I
c
Z
2
I
0
0 =
Z
1
Z
3
Y
Y n
I
0
1
3
-- - I
a
I
b
I
c
+ + ( ) =
I
a
I
b
I
c
+ + 0 = I
0
0 =
Y n
n
I
a
I
b
I
c
I
G
3I
0
=
z
3
z
1 z
2
Y
I
a
I
b
I
c
+ + I
G
=
I
0
1
3
-- - I
a
I
b
I
c
+ + ( ) =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-17
Copyright Orchard Publications
Cases where Zero-Sequence Components are Zero
Now, let us consider the -connected load shown in Figure 12.20.
Figure 12.20. -connected load showing line and phase currents
In Figure 12.20, the three line currents , , and that supply the -connected load have no
zero-sequence component because . However, the sum of the phase currents ,
, and do not necessarily add to zero; they may, they may not.
If there is a zero-sequence current in the -connected load, it is a circulating current as indi-
cated by the arrows for the phase currents , , and . If there is only zero-sequence current
flowing, these three currents are all in the arrow direction at the same instant. Then, they reverse
all in the opposite direction together. In other words, the current flows first one way around the
-connected load, then the other way, but never gets our of the .
A similarity applies to line-to-line voltages and line to neutral voltages. Zero-sequence voltage is
one-third the sum of the three line-to-line voltages and these when circulated around a closed
path always add to zero. But there may be a zero-sequence component of the line-to-neutral
voltages.
Example 12.7
The three-phase generator in Figure 12.21 is connected to a transmission line through a trans-
former bank. There is no load at the other end of the transmission line system. One wire of the
transmission line breaks and falls to the ground resulting in a line-to-ground short circuit. Derive
the symmetrical component currents and total currents produced by the generator.
I
G
3I
0
=
A
z
1
z
2
z
3
I
a
I
b
I
c
I
A
I
C
I
B
A
I
a
I
b
I
c
A
I
a
I
b
I
c
+ + 0 = I
A
I
B
I
C
A
I
A
I
B
I
C
A A
Chapter 12 Unbalanced Three-Phase Systems
12-18 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Figure 12.21. Three-phase system with a line-to-ground fault
Solution:
The system is balanced except at the point of fault indicated in Figure 12.21, and the fault current
is . Because no load is connected to the system, currents and are both zero.
The positive-, negative-, and zero-sequence currents at the point of fault are found from the sys-
tem of equations of (12.27), i.e.,
and since and , from the equations above we find that
Hence
as shown in Figure 12.22.
Figure 12.22. The symmetrical components for Example 12.7
Also, since the line currents and are both zero, we have
and
Symmetrical components are used in the calculation of fault currents since the total fault current
is not symmetrical. It includes a DC component which depends on the point at which the fault is
initiated.
Transformer
I
a
Generator
bank
Ground to
line short
I
b
I
c
I
a
I
b
I
c
I
0
1
3
--- I
a
I
b
I
c
+ + ( ) =
I
a1
1
3
--- I
a
I
b
+120 Z I
c
120 Z + + ( ) =
I
a2
1
3
--- I
a
I
b
120 Z I
c
+120 Z + + ( ) =
I
b
0 = I
c
0 =
I
0
1
3
-- -I
a
= I
a1
1
3
---I
a
= I
a2
1
3
-- -I
a
=
I
a1
I
a2
I
0
= =
I
a
I
a0
I
a1
I
a2
I
b
I
c
I
b1
I
b2
I
a0
+ + 0 =
I
c1
I
c2
I
a0
+ + 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-19
Copyright Orchard Publications
Cases where Zero-Sequence Components are Zero
The four types of faults that can occur in a three-phase system are shown in Figure 12.23
In the calculation of a three-phase fault only positive sequence components are considered, in
the calculation of a line-to-line fault positive and negative sequence components are considered,
and in the calculation of a line-to-neutral fault or in a line-to-ground fault, all three sequences,
that is, positive, negative, and zero sequences are considered.
The calculation of fault currents is a laborious procedure since the degree of asymmetry is not the
same in all three phases. Detailed discussion on this topic is beyond the scope of this book. This
topic is discussed in power systems books, in General Electric, Westinghouse, and other refer-
ence books, and also in the Internet. Computer programs are available for the calculations and
these can also be found in the Internet.
The MathWorks SimPowerSystems documentation contains several demos with three-phase
faults. Four of them can be accessed by typi ng power_machi nes, power_svc_pss,
power_wind_dfig, and power_3phseriescomp at the MATLAB command prompt. An example
with a DC line fault can also be accessed by typing power_hvdc12pulse at the MATLAB com-
mand prompt.
Figure 12.23. Types of faults in three-phase systems
Three-Phase
Line-to-Line
Line-to-Neutral Line-to-Ground
n
n
n n
Chapter 12 Unbalanced Three-Phase Systems
12-20 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
12.8 Summary
Loads connected to three-phase systems must be distributed equally among the three-phases
to maintain the demand for power fairly balanced at all times.
Loads are generally unbalanced and must be analyzed as unbalanced three-phase systems.
Many problems involving unbalanced loads can be handled as single-phase problems even
though the computations can be three times as long.
A practical approach to compute load voltages, line currents, and load currents is to use loop or
mesh equations.
The phase sequence is essential with rotating machines. The rotation of a generator in a clock-
wise direction may develop voltages of phase sequence while the rotation in a counter-
clockwise direction will develop voltages of phase sequence . The direction of rotation
of an induction motor will be reversed if two line connections are interchanged.
We can prove that the currents in the three phases of an unbalanced Y-connected load are
dependent on the phase sequence of the source using a phase-sequence indicator.
The analysis of unbalanced three-phase systems can be greatly simplified with the method of
symmetrical components. This principle states that any three vectors can be represented by
three sets of balanced vectors. Thus, when applied to three-phase currents, any three current
phasors can be replaced by three sets of balanced currents, and when applied to three-phase
voltages, any three voltage phasors can be replaced by three sets of balanced voltages.
Using the method of symmetrical components the voltages or currents at a point of unbalance
in a three-phase system are determined and replaced by three sets of components known as
positive phase sequence, negative phase sequence, and zero phase sequence. The positive phase
sequence, negative phase sequence, and zero phase sequence voltages or currents are deter-
mined independently and the actual unbalanced voltages or currents are found by adding these
three-phase sequences. Thus the solution of a difficult problem involving unbalanced voltages
or currents is simplified to the solution of three easy problems involving only balanced voltages
or currents.
In symmetrical components the vectors are equal in length, and equally spaced in angle. The
symmetrical sets of three vectors are related by equation
For the positive-sequence we set , and thus
In other words, for the positive-phase sequence set the order is .
a b c
c b a
I
an
I
bn
n 120 Z I
cn
2n 120 Z = =
n 1 =
I
a1
I
b1
120 Z I
c1
240 Z = =
a b c a b c .
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-21
Copyright Orchard Publications
Summary
For the negative-sequence we set , and thus
or
The same symmetrical set results by letting , and this accounts for the name of negative
sequence. Thus,
In other words, for the negative-phase sequence set the order is .
For the zero-sequence we set or , and the latter accounts for the zero-sequence
name. The three components that comprise the zero-sequence set are equal in both magnitude
and phase, and thus it is unnecessary to denote them as , , and . Instead, we use the
single notation for any of the zero-sequence components, i.e.,
The three symmetrical sets are related as shown in the system of the three equations below.
We can compute the symmetrical components of any unbalanced three-phase using the set of
equations below.
or in terms of the unity vectors and
A three-phase -connected load with floating neutral point can have no zero-sequence
component regardless whether the load impedances are unbalanced and what the applied volt-
ages may be.
In a three-phase -connected load with neutral point connected to a ground,
where is the current flowing in the wire that connects the neutral point to the ground.
In a three-phase system the three line currents , , and that supply a -connected load
have no zero-sequence component because . However, the sum of the phase
currents , , and do not necessarily add to zero; they may, they may not.
n 2 =
I
a2
I
b2
240 Z I
c2
480 Z = =
I
a2
I
b2
120 Z I
c2
120 Z = =
n 1 =
I
a2
I
b2
120 Z I
c2
240 Z = =
c b a c b a .
n 3 = n 0 =
I
a0
I
b0
I
c0
I
0
I
0
I
a0
I
b0
I
c0
= = =
I
a1
I
a2
I
0
+ + I
a
= I
b1
I
b2
I
0
+ + I
b
= I
c1
I
c2
I
0
+ + I
c
=
I
0
1
3
--- I
a
I
b
I
c
+ + ( ) = I
a1
1
3
--- I
a
I
b
+120 Z I
c
120 Z + + ( ) = I
a2
1
3
-- - I
a
I
b
120 Z I
c
+120 Z + + ( ) =
a 1.0 120 Z = a
2
1.0 240 Z 1.0 120 Z = =
I
0
1
3
-- - I
a
I
b
I
c
+ + ( ) = I
a1
1
3
--- I
a
aI
b
a
2
I
c
+ + ( ) = I
a2
1
3
--- I
a
a
2
I
b
aI
c
+ + ( ) =
Y
Y I
G
3I
0
=
I
G
I
a
I
b
I
c
A
I
a
I
b
I
c
+ + 0 =
I
A
I
B
I
C
Chapter 12 Unbalanced Three-Phase Systems
12-22 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
12.9 Exercises
1. Balanced three-phase voltage volts line-to-line, positive-phase sequence, is supplied to a
load that is -connected, floating neutral, with resistors from neutral to lines and ,
and a capacitor whose capacitive reactance is to line . Compute the current in each
phase and draw a phasor diagram.
2. A good phase-sequence indicator operates with one lamp very bright and the other very dim.
Using the same lamps as in Example 12.3, Page 12-5, but with a capacitor of different value,
can you design a better indicator?
3. Resolve the unbalanced three-phase system shown below into its symmetrical components.
4. The voltages of an unbalanced three-phase supply are , , and
. Connected in across this supply are three equal impedances each
. There is no connection between the neutral and the supply neutral. Derive the
symmetrical components of phase and compute the three line currents.
5. The voltages of an unbalanced three-phase supply are , , and
.
a. Derive the symmetrical components of .
b. Derive the symmetrical components of and from the symmetrical components of
found in part (a).
c. Draw a phasor diagram showing all symmetrical components.
6. The currents in a three-phase system are , , and . Compute
, , and . Sketch phasors of the three positive-sequence components, the three nega-
tive-sequence components, and the zero-sequence component.
220
Y 500 O a b
500 O c
V
a
1500 = 30 Z
V
b
1800 = 70 Z
V
c
2000 = 170 Z
V
a
200 j0 + = V
b
j200 =
V
c
100 j200 + = Y
20 j10 O + Y
a
V
a
150 0 Z = V
b
86.6 90 Z =
V
c
86.6 90 Z =
V
a
V
b
V
c
V
a
I
a
5.00 = I
b
j8.66 = I
c
j10.00 =
I
a1
I
a2
I
0
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-23
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
12.10 Solutions to End-of-Chapter Exercises
1.
By KVL
(12.29)
and by Cramers rule
where the determinant is
and
Since
Also,
Then,
and
a
b
c
500 O
500 O
j 500 O
V
ab
V
bc
V
ca
n
I
1
I
2
jX
C
R
R
I
a
I
b
I
c
2RI
1
RI
2
V
ab
220 0 Z 220 j0 + = = =
RI
1
R jXc + ( )I
2
+ V
bc
220 120 Z 110 j190 = = =
I
1
D
1
A
------ = I
2
D
2
A
------ =
A
A
2R R
R R jXc +
2R
2
j2RXc R
2
+ R
2
j2RXc + = = =
D
1
V
ab
R
V
bc
R jXc +
RV
ab
jXcV
ab
RV
bc
+ + R V
ab
V
bc
+ ( ) jXcV
ab
+ = = =
V
ab
V
bc
+ V
ac
V
ca
= =
D
1
RV
ca
jXcV
ab
+ =
D
2
2R V
ab
R V
bc
2RV
bc
RV
ab
RV
bc
+ + R 2V
bc
V
ab
+ ( ) = = =
I
1
D
1
A
------
RV
ca
jXcV
ab
+
R
2
j2RXc +
------------------------------------------ 0.372 j0.076 = = =
Chapter 12 Unbalanced Three-Phase Systems
12-24 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
From the three-phase network above, we observe that
and
The phasor diagram for the three line currents is shown below.
2. The brightness or dimness of the lamps will depend on the magnitude, but not the phase of the
current that flows through them. Accordingly let us choose a capacitor with capacitive reac-
tance equal to the to the resistance of each of the lamps as follows:
and with , in , and in , the last expression above reduces to
From Example 12.3
and thus
Replacing in Example 12.3 with , we obtain
I
2
D
2
A
------
R 2V
bc
V
ab
+ ( )
R
2
j2RXc +
------------------------------------ 0.304 j0.152 = = =
I
a
I
1
0.372 j0.076 0.38 11.5 Z = = =
I
b
I
2
I
1
0.068 j0.076 0.102 131.8 Z = = =
I
c
I
2
0.304 j0.152 + 0.34 153.4 Z = = =
I
a
I
b
I
c
R
X
C
R =
X
C
1
2rfC
------------- =
C
1
2rfX
C
---------------- =
C
1
2rfR
------------- =
f 60 Hz = C F R KO
C F ( )
2.65
R KO ( )
-------------------- =
R V
2
P ' 120
2
15 ' 960 O 0.96 KO = = = =
C
2.65
0.96
---------- 2.76 F = =
1326 960
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-25
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
and
(12.30)
The rated current for the lamp is and we observe that the value
of is approximately of its rated current, and this is an improvement in the lower lamp
brilliance. The value of is only about of the rated value of the lamp, and this is not suf-
ficient to produce a noticeable brightness.
3.
(1)
where by definition
Then,
(2)
I
1
960 120 j 960 ( ) 60 j104 ( )
960
2
2 j 960
2

---------------------------------------------------------------------------------------- 0.108 48.4 A Z = =


I
2
960 60 j104 + ( ) j 960 ( ) 60 j104 ( )
960
2
2 j 960
2

--------------------------------------------------------------------------------------------------------------- 0.029 108.4 A Z = =


15 watt 15 120 ' 0.125 A =
I
1
85%
I
2
23%
V
a
1500 = 30 Z
V
b
1800 = 70 Z
V
c
2000 = 170 Z
V
a1
1
3
-- - V
a
V
b
120 Z V
c
240 Z + + ( ) =
V
a2
1
3
-- - V
a
V
b
240 Z V
c
120 Z + + ( ) =
V
a0
1
3
-- - V
a
V
b
V
c
+ + ( ) =
V
a1
V
a2
V
a0
+ + V
a
=
V
b1
V
b2
V
b0
+ + V
b
=
V
c1
V
c2
V
c0
+ + V
c
=
V
a1
1
3
-- - 1500 30 Z 1800 70 120 + ( ) Z 2000 170 240 + ( ) Z + + ( )

1
3
--- 1500 30 Z 1800 50 Z 2000 410 Z + + ( )

1
3
--- 1299 j750 1157 j1379 1286 j1532 + + + + + ( )

1
3
--- 3742 j3661 + ( ) 1247 j1220 + 1744 44.37 Z
=
=
=
= = =
Chapter 12 Unbalanced Three-Phase Systems
12-26 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
By definition, , and for this exercise
(3)
Also,
(4)
Next,
(5)
(6)
(7)
Finally,
(8)
and thus
(9)
Check:
The symmetrical components in phasor diagrams are as shown below where we observe that for
the positive-sequence the order of phases is , and that for the negative-
sequence the order of phases is .
We can verify the computations for in (2) above with the following MATLAB script:
V
b1
V
a1
120 Z =
V
b1
1744 44.4 120 ( ) Z 1744 75.6 Z 433 j1689 = = =
V
c1
1744 44.4 120 + ( ) Z 1744 164.4 Z 1680 j469 + = = =
V
a2
1
3
-- - 1500 30 Z 1800 70 240 + ( ) Z 2000 170 120 + ( ) Z + + ( )

1
3
--- 1500 30 1800 170 Z + Z 2000 290 Z + ( )

1
3
--- 1299 j750 1773 j313 684 j1879 + + + ( )

1
3
--- 210 j816 ( ) 70 j272 281 75.6 Z
=
=
=
= = =
V
b2
281 75.6 120 + ( ) Z 281 44.4 Z 201 j197 + = = =
V
c2
281 75.6 240 + ( ) Z 281 164.4 Z 271 j76 + = = =
V
a0
1
3
-- - 1500 30 Z 1800 70 2000 170 Z + Z + ( )

1
3
--- 1299 j750 616 j1691 1970 j347 + + + ( )

1
3
--- 55 j594 ( ) 18.3 j198 199 95.3 Z
=
=
= = =
V
a0
V
b0
V
c0
199 95.3 Z = = =
V
a
V
a1
V
a2
V
a0
+ + 1247 j1220 70 j272 18 j198 + + 1299 j750 + 1500 30 Z = = = =
V
b
V
b1
V
b2
V
b0
+ + 434 j1689 201 j197 18 j198 + + 617 j1690 1800 70 Z = = = =
V
c
V
c1
V
c2
V
c0
+ + 1680 j469 271 j75.6 18 j198 + + 1969 j347 + 2000 170 Z = = = =
a b c a b c .
c b a c b a .
V
a1
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-27
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
% Express Va, Vb rotated by 120 deg, and Vc rotated by 240 deg or by -120 deg, in accordance
% with (1) above
ReVa,ImVa]=pol2cart(30*pi/180, 1500),[ReVb,ImVb]=pol2cart((-70+120)*pi/180, 1800),
[ReVc,ImVc]=pol2cart((170-120)*pi/180, 2000)
Re Va = 1. 2990e +003
I mVa = 750. 0000
Re Vb = 1. 1570e +003
I mVb = 1. 3789e +003
Re Vc = 1. 2856e +003
I mVc = 1. 5321e +003
%
% Add reals and imaginaries and divide by 3 to obtain Va1 in Cartesian form
Va1=(1/3)*(ReVa+ReVb+ReVc+j*(ImVa+ImVb+ImVc))
Va 1 = 1. 2472e +003 + 1. 2203e +003i
% To convert to polar form we define the real part ax x and the imaginary part as y
x=(1/3)*(ReVa+ReVb+ReVc), y=(1/3)*(ImVa+ImVb+ImVc)
x = 1. 2472e +003
y = 1. 2203e +003
[rad,mag]=cart2pol(x,y), deg=rad*180/pi
r a d = 0. 7745
ma g = 1. 7449e +003
de g = 44. 3757
This script can be extended for the remaining calculations by repeated application of the
[x,y]=pol2cart(theta,r) and [theta,r]=cart2pol(x,y) MATLAB functions.
V
b1
V
a1
V
c1
V
a2
V
b2
V
c2
V
a0
V
b0
V
c0
Chapter 12 Unbalanced Three-Phase Systems
12-28 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
The Simulink model below can also be used for the computations of .
This model can also be used for the computations of and
4.
For positive-phase sequence,
V
a1
V
a2
V
a0
V
a
200 j0 + =
V
b
j200 =
V
c
100 j200 + =
z 20 j10

+
22.4 26.6 Z
=
=
z
z
z
I
a
I
b
I
c
Supply ground
n
a 1 120 Z = a
2
1 240 Z = a
3
1 360 Z 1 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-29
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
For negative-phase sequence,
For zero-phase sequence,
Next,
There is no connection between the neutral point and the supply ground, and thus
Now, for line current ,
For line current ,
V
a1
1
3
-- - V
a
aV
b
a
2
V
c
+ + ( )
1
3
--- V
a
V
b
120 Z V
c
240 Z + + ( )

1
3
--- 200 j200 120 100 j200 + ( ) 240 Z + Z ( )

1
3
--- 200 200 30 223.6 116.6 240 + ( ) Z + Z + ( )

1
3
--- 200 173.2 j100 223.2 j13.3 + + + ( )

1
3
--- 596.4 j86.7 + ( ) 198.8 j28.9 + 200.9 8.3 Z
= =
=
=
=
= = =
V
a2
1
3
-- - V
a
a
2
V
b
aV
c
+ + ( )
1
3
--- V
a
V
b
240 Z V
c
120 Z + + ( )

1
3
--- 200 j200 240 100 j200 + ( ) 120 Z + Z ( )

1
3
--- 200 200 150 223.6 116.6 120 + ( ) Z + Z + ( )

1
3
--- 200 173.2 j100 123.1 j186.7 + ( )

1
3
--- 96.3 j86.7 ( ) 32.1 j28.9 43.2 138 Z
= =
=
=
=
= = =
V
a2
1
3
-- - V
a
V
b
V
c
+ + ( )
1
3
-- - 200 j200 100 j200 + ( ) 33.3 = = =
I
a1
V
a1
Z
--------
200.9 8.3 Z
22.4 26.6 Z
---------------------------- 8.97 18.3 Z 8.52 j2.82 = = = =
I
a2
V
a2
Z
--------
43.2 138 Z
22.4 26.6 Z
------------------------------ 1.93 164.6 Z 1.86 j0.51 = = = =
Y n
I
a0
0 =
I
a
I
a
I
a1
I
a2
I
a0
+ + 8.52 j2.82 1.86 j0.51 0 + 6.66 j3.33 7.45 26.6 Z = = = =
I
b
Chapter 12 Unbalanced Three-Phase Systems
12-30 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
and for line current ,
Check:
5.
a.
b.
Check:
Next,
I
b
a
2
I
a1
aI
a2
I
a0
+ + 8.97 18.3 Z ( ) 120 Z 1.93 164.6 Z ( ) 120

Z +
8.97 138.3 1.93 44.6 Z + Z 6.70 j5.97 1.37 j1.36

+
5.33 j7.33 9.06 54 Z
= =
= =
= =
I
c
I
c
aI
a1
a
2
I
a2
I
a0
+ + 8.97 18.3 Z ( ) 120 Z 1.93 164.6 Z ( ) 120

Z +
8.97 101.7 1.93 284.6 Z + Z 1.82 j8.78 0.49 j1.87

+ + +
1.33 j10.65 + 10.73 97.1 Z
= =
= =
= =
I
a
I
b
I
c
+ + 6.66 j3.33 5.33 j7.33 1.33 j10.65 + 0 = =
V
c
86.6 90 Z =
V
a
150 0 Z =
V
b
86.6 90 Z =
V
a1
1
3
-- - V
a
aV
b
a
2
V
c
+ + ( )
1
3
-- - V
a
V
b
120 Z V
c
120 Z + + ( )

1
3
--- 150 0 Z 86.6 30 Z 86.6 30 Z + + ( )

1
3
--- 150 86.6 3 2 ' ( ) j86.6 1 2 ' ( ) 86.6 3 2 ' ( ) j86.6 1 2 ' ( ) + + + ( )

1
3
--- 150 150 + ( ) 100 0 Z
= =
=
=
= =
V
b1
a
2
V
a1
V
a1
120 Z 100 120 Z 50 j86.6 = = = =
V
c1
aV
a1
V
a1
120 Z 100 120 Z 50 j86.6 + = = = =
V
a1
V
b1
V
c1
+ + 100 50 j86.6 50 j86.6 + 0 = =
Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling 12-31
Copyright Orchard Publications
Solutions to End-of-Chapter Exercises
Check:
and the phasor diagram is shown below.
6.
V
a2
1
3
-- - V
a
a
2
V
b
aV
c
+ + ( )
1
3
-- - V
a
V
b
120 Z V
c
120 Z + + ( )

1
3
--- 150 0 Z 86.6 150 Z 86.6 210 Z + + ( )

1
3
--- 150 86.6 3 2 ' ( ) j86.6 1 2 ' ( ) 86.6 3 2 ' ( ) j86.6 1 2 ' ( ) + + + ( )

1
3
--- 150 75 75 ( ) 0
= =
=
=
= =
V
a0
1
3
-- - V
a
V
b
V
c
+ + ( )
1
3
-- - 150 0 Z 86.6 90 Z 86.6 90 Z + + ( )

1
3
--- 150 0 Z 0 + ( ) 50 0 Z
= =
= =
V
a
V
a1
V
a2
V
a0
+ + 100 0 Z 0 50 0 Z + + 150 0 Z = = =
V
c
86.6 90 Z =
V
a
150 0 Z =
V
b
86.6 90 Z =
V
b1
100 120 Z =
V
c1
100 120 Z =
V
a1
100 0 Z =
V
b0
50 0 Z =
V
a0
50 0 Z =
I
a
5.00 5 0 A Z = = I
b
j8.66 8.66 90 A Z = = I
c
j10.00 10.00 90 A Z = =
I
a1
1
3
--- I
a
aI
b
a
2
I
c
+ + ( )
1
3
-- - I
a
I
b
120 Z I
c
120 Z + + ( )

1
3
--- 5 0 Z 8.66 30 Z 10 30 Z + + ( )

1
3
--- 5 8.66 3 2 ' ( ) j8.66 1 2 ' ( ) 10 3 2 ' ( ) j10 1 2 ' ( ) + + + ( )

1
3
--- 5 7.5 j4.33 8.66 j5 + + + ( )
1
3
--- 21.16 j0.67 ( )
7.05 j0.22 7.05 1.8 Z
= =
=
=
= =
= =
I
b1
a
2
I
a1
I
a1
120 Z 7.05 121.8 Z 3.72 j5.99 = = = =
I
c1
aI
a1
I
a1
120 Z 7.05 118.2 Z 3.33 j6.21 + = = = =
Chapter 12 Unbalanced Three-Phase Systems
12-32 Circuit Analysis II with MATLAB

Computing and Simulink

/SimPowerSystems

Modeling
Copyright Orchard Publications
Next,
and the phasor diagrams are shown below.
I
a2
1
3
--- I
a
a
2
I
b
aI
c
+ + ( )
1
3
-- - I
a
I
b
120 Z I
c
120 Z + + ( )

1
3
--- 5 8.66 150 Z 10 210 Z + + ( )

1
3
--- 5 8.66 3 2 ' ( ) j8.66 1 2 ' ( ) 10 3 2 ' ( ) j10 1 2 ' ( ) + + + ( )

1
3
--- 5 7.5 j4.33 8.66 j5 + ( )
1
3
-- - 11.16 j0.67 ( )
3.72 j0.22 3.73 176.6 Z
= =
=
=
= =
= =
I
b2
aI
a2
I
a2
120 Z 3.73 56.6 Z 2.05 j3.11 = = = =
I
c2
a
2
I
a1
I
a2
120 Z 3.73 63.4 Z 1.67 j3.34 + = = = =
I
a0
1
3
--- I
a
I
b
I
c
+ + ( )
1
3
-- - 5 j8.66 j10 + ( ) 1.67 j0.45 + 1.73 15 Z = = = =
10 90 Z
8.66 90 Z
5 0 Z
I
b
I
c
I
a
I
a1
7.05 1.8 Z
I
b1
7.05 121.8 Z
I
c1
7.05 118.2 Z
I
a2
3.73 176.6 Z
3.73 63.4 Z
I
c2
I
b2
3.73 56.6 Z
1.73 15 Z
I
a0
I
b0
I
c0
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-1
Copyright Orchard Publications
Appendix A
Introduction to MATLAB
his appendix serves as an introduction to the basic MATLAB commands and functions,
procedures for naming and saving the user generated files, comment lines, access to MAT-
LABs Editor / Debugger, finding the roots of a polynomial, and making plots. Several exam-
ples are provided with detailed explanations.
A.1 MATLAB and Simulink
MATLAB and Simulink are products of The MathWorks, Inc. These are two outstanding soft-
ware packages for scientific and engineering computations and are used in educational institu-
tions and in industries including automotive, aerospace, electronics, telecommunications, and
environmental applications. MATLAB enables us to solve many advanced numerical problems
rapidly and efficiently.
A.2 Command Window
To distinguish the screen displays from the user commands, important terms, and MATLAB
functions, we will use the following conventions:
Click: Click the left button of the mouse
Courier Font: Screen displays
Helvetica Font: User inputs at MATLABs command window prompt >> or EDU>>
*
Helvetica Bold: MATLAB functions
Times Bold Italic: Important terms and facts, notes and file names
When we first start MATLAB, we see various help topics and other information. Initially, we are
interested in the command screen which can be selected from the Window drop menu. When the
command screen, we see the prompt >> or EDU>>. This prompt is displayed also after execution
of a command; MATLAB now waits for a new command from the user. It is highly recommended
that we use the Editor/Debugger to write our program, save it, and return to the command screen
to execute the program as explained below.
To use the Editor/Debugger:
1. From the File menu on the toolbar, we choose New and click on M-File. This takes us to the
Editor Window where we can type our script (list of statements) for a new file, or open a previ-
ously saved file. We must save our program with a file name which starts with a letter.
* EDU>> is the MATLAB prompt in the Student Version
T




Appendix A Introduction to MATLAB
A-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Important! MATLAB is case sensitive, that is, it distinguishes between upper- and lower-case let-
ters. Thus, t and T are two different letters in MATLAB language. The files that we create are
saved with the file name we use and the extension .m; for example, myfile01.m. It is a good prac-
tice to save the script in a file name that is descriptive of our script content. For instance, if the
script performs some matrix operations, we ought to name and save that file as matrices01.m or
any other similar name. We should also use a floppy disk or an external drive to backup our files.
2. Once the script is written and saved as an m-file, we may exit the Editor/Debugger window by
clicking on Exit Editor/Debugger of the File menu. MATLAB then returns to the command
window.
3. To execute a program, we type the file name without the .m extension at the >> prompt;
then, we press <enter> and observe the execution and the values obtained from it. If we have
saved our file in drive a or any other drive, we must make sure that it is added it to the desired
directory in MATLABs search path. The MATLAB Users Guide provides more information
on this topic.
Henceforth, it will be understood that each input command is typed after the >> prompt and fol-
lowed by the <enter> key.
The command help matlab\iofun will display input/output information. To get help with other
MATLAB topics, we can type help followed by any topic from the displayed menu. For example,
to get information on graphics, we type help matlab\graphics. The MATLAB Users Guide con-
tains numerous help topics.
To appreciate MATLABs capabilities, we type demo and we see the MATLAB Demos menu.
We can do this periodically to become familiar with them. Whenever we want to return to the
command window, we click on the Close button.
When we are done and want to leave MATLAB, we type quit or exit. But if we want to clear all
previous values, variables, and equations without exiting, we should use the command clear. This
command erases everything; it is like exiting MATLAB and starting it again. The command clc
clears the screen but MATLAB still remembers all values, variables and equations that we have
already used. In other words, if we want to clear all previously entered commands, leaving only
the >> prompt on the upper left of the screen, we use the clc command.
All text after the % (percent) symbol is interpreted as a comment line by MATLAB, and thus it is
ignored during the execution of a program. A comment can be typed on the same line as the func-
tion or command or as a separate line. For instance,
conv(p,q) % performs multiplication of polynomials p and q
% The next statement performs partial fraction expansion of p(x) / q(x)
are both correct.
Roots of Polynomials
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-3
Copyright Orchard Publications
One of the most powerful features of MATLAB is the ability to do computations involving com-
plex numbers. We can use either , or to denote the imaginary part of a complex number, such as
3- 4i or 3- 4j . For example, the statement
z=3-4j
displays
z = 3.0000-4.0000i
In the above example, a multiplication (*) sign between 4 and was not necessary because the
complex number consists of numerical constants. However, if the imaginary part is a function, or
variable such as , we must use the multiplication sign, that is, we must type cos(x)*j or
j*cos(x) for the imaginary part of the complex number.
A.3 Roots of Polynomials
In MATLAB, a polynomial is expressed as a row vector of the form . These
are the coefficients of the polynomial in descending order. We must include terms whose coeffi-
cients are zero.
We find the roots of any polynomial with the roots(p) function; p is a row vector containing the
polynomial coefficients in descending order.
Example A.1
Find the roots of the polynomial
Solution:
The roots are found with the following two statements where we have denoted the polynomial as
p1, and the roots as roots_ p1.
p1=[1 -10 35 -50 24] % Specify and display the coefficients of p1(x)
p1 =
1 - 10 35 - 50 24
roots_ p1=roots(p1) % Find the roots of p1(x)
r oot s _p1 =
4. 0000
3. 0000
2. 0000
1. 0000
i j
j
x ( ) cos
a
n
a
n 1
. a
2
a
1
a
0
[ ]
p
1
x ( ) x
4
10x
3
35x
2
50x 24 + + =
Appendix A Introduction to MATLAB
A-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
We observe that MATLAB displays the polynomial coefficients as a row vector, and the roots as a
column vector.
Example A.2
Find the roots of the polynomial
Solution:
There is no cube term; therefore, we must enter zero as its coefficient. The roots are found with
the statements below, where we have defined the polynomial as p2, and the roots of this polyno-
mial as roots_ p2. The result indicates that this polynomial has three real roots, and two complex
roots. Of course, complex roots always occur in complex conjugate
*
pairs.
p2=[1 -7 0 16 25 52]
p2 =
1 - 7 0 16 25 52
roots_ p2=roots(p2)
r oot s _p2 =
6. 5014
2. 7428
- 1. 5711
- 0. 3366 + 1. 3202i
- 0. 3366 - 1. 3202i
A.4 Polynomial Construction from Known Roots
We can compute the coefficients of a polynomial, from a given set of roots, with the poly(r) func-
tion where r is a row vector containing the roots.

Example A.3
It is known that the roots of a polynomial are . Compute the coefficients of this
polynomial.
* By definition, the conjugate of a complex number is
p
2
x ( ) x
5
7x
4
16x
2
25x + + 52 + =
A a jb + = A
-
a jb =
1 2 3 and 4 , , ,
Polynomial Construction from Known Roots
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-5
Copyright Orchard Publications
Solution:
We first define a row vector, say , with the given roots as elements of this vector; then, we find
the coefficients with the poly(r) function as shown below.
r3=[1 2 3 4] % Specify the roots of the polynomial
r 3 =
1 2 3 4
poly_r3=poly(r3) % Find the polynomial coefficients
pol y_r 3 =
1 - 10 35 - 50 24
We observe that these are the coefficients of the polynomial of Example A.1.
Example A.4
It is known that the roots of a polynomial are . Find the coeffi-
cients of this polynomial.
Solution:
We form a row vector, say , with the given roots, and we find the polynomial coefficients with
the poly(r) function as shown below.
r4=[ -1 -2 -3 4+5j 4-5j ]
r 4 =
Col umns 1 t hr ough 4
- 1. 0000 - 2. 0000 - 3. 0000 - 4. 0000+ 5. 0000i
Col umn 5
- 4. 0000- 5. 0000i
poly_r4=poly(r4)
pol y_r 4 =
1 14 100 340 499 246
Therefore, the polynomial is
r3
p
1
x ( )
1 2 3 4 j5 and 4 , j5 + , , ,
r4
p
4
x ( ) x
5
14x
4
100x
3
340x
2
499x 246 + + + + + =
Appendix A Introduction to MATLAB
A-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
A.5 Evaluation of a Polynomial at Specified Values
The polyval(p,x) function evaluates a polynomial at some specified value of the indepen-
dent variable .
Example A.5
Evaluate the polynomial
(A.1)
at .
Solution:
p5=[1 -3 0 5 -4 3 2]; % These are the coefficients of the given polynomial
% The semicolon (;) after the right bracket suppresses the
% display of the row vector that contains the coefficients of p5.
%
val_minus3=polyval(p5, -3) % Evaluate p5 at x=-3; no semicolon is used here
% because we want the answer to be displayed
va l _mi nus 3 =
1280
Other MATLAB functions used with polynomials are the following:
conv(a,b) - multiplies two polynomials a and b
[q,r]=deconv(c,d) -divides polynomial c by polynomial d and displays the quotient q and
remainder r.
polyder(p) - produces the coefficients of the derivative of a polynomial p.

Example A.6
Let
and
Compute the product using the conv(a,b) function.
p x ( )
x
p
5
x ( ) x
6
3x
5
5x
3
4x
2
3x 2 + + + =
x 3 =
p
1
x
5
3x
4
5x
2
7x 9 + + + =
p
2
2x
6
8x
4
4x
2
10x 12 + + + =
p
1
p
2

Evaluation of a Polynomial at Specified Values


Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-7
Copyright Orchard Publications
Solution:
p1=[1 -3 0 5 7 9]; % The coefficients of p1
p2=[2 0 -8 0 4 10 12]; % The coefficients of p2
p1p2=conv(p1,p2) % Multiply p1 by p2 to compute coefficients of the product p1p2
p1p2 =
2 - 6 - 8 34 18 - 24 - 74 - 88 78 166 174 108
Therefore,
Example A.7
Let
and
Compute the quotient using the [q,r]=deconv(c,d) function.
Solution:
% It is permissible to write two or more statements in one line separated by semicolons
p3=[1 0 -3 0 5 7 9]; p4=[2 -8 0 0 4 10 12]; [q,r]=deconv(p3,p4)
q =
0. 5000
r =
0 4 - 3 0 3 2 3
Therefore,
Example A.8
Let
Compute the derivative using the polyder(p) function.
p
1
p
2
2x
11
6x
10
8x
9
34x
8
18x
7
24x
6
+ + =
74x
5
88x
4
78x
3
166x
2
174x 108 + + + +
p
3
x
7
3x
5
5x
3
7x 9 + + + =
p
4
2x
6
8x
5
4x
2
10x 12 + + + =
p
3
p
4
'
q 0.5 = r 4x
5
3x
4
3x
2
2x 3 + + + =
p
5
2x
6
8x
4
4x
2
10x 12 + + + =
d
dx
------p
5
Appendix A Introduction to MATLAB
A-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
p5=[2 0 -8 0 4 10 12]; % The coefficients of p5
der_p5=polyder(p5) % Compute the coefficients of the derivative of p5
de r _p5 =
12 0 - 32 0 8 10
Therefore,
A.6 Rational Polynomials
Rational Polynomials are those which can be expressed in ratio form, that is, as
(A.2)
where some of the terms in the numerator and/or denominator may be zero. We can find the roots
of the numerator and denominator with the roots(p) function as before.
As noted in the comment line of Example A.7, we can write MATLAB statements in one line, if
we separate them by commas or semicolons. Commas will display the results whereas semicolons
will suppress the display.
Example A.9
Let
Express the numerator and denominator in factored form, using the roots(p) function.
Solution:
num=[1 -3 0 5 7 9]; den=[1 0 -4 0 2 5 6]; % Do not display num and den coefficients
roots_num=roots(num), roots_den=roots(den) % Display num and den roots
r oot s _num =
2. 4186 + 1. 0712i 2. 4186 - 1. 0712i - 1. 1633
- 0. 3370 + 0. 9961i - 0. 3370 - 0. 9961i
d
dx
------p
5
12x
5
32x
3
8x 10 + + =
R x ( )
Num x ( )
Den x ( )
--------------------
b
n
x
n
b
n 1
x
n 1
b
n 2
x
n 2
. b
1
x b
0
+ + + + +
a
m
x
m
a
m 1
x
m 1
a
m 2
x
m 2
. a
1
x a
0
+ + + + +
------------------------------------------------------------------------------------------------------------------------ = =
R x ( )
p
num
p
den
------------
x
5
3x
4
5x
2
7x 9 + + +
x
6
4x
4
2x
2
5x 6 + + +
--------------------------------------------------------- = =
Rational Polynomials
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-9
Copyright Orchard Publications
r oot s _de n =
1. 6760 + 0. 4922i 1. 6760 - 0. 4922i - 1. 9304
- 0. 2108 + 0. 9870i - 0. 2108 - 0. 9870i - 1. 0000
As expected, the complex roots occur in complex conjugate pairs.
For the numerator, we have the factored form
and for the denominator, we have
We can also express the numerator and denominator of this rational function as a combination of
linear and quadratic factors. We recall that, in a quadratic equation of the form
whose roots are and , the negative sum of the roots is equal to the coefficient of the
term, that is, , while the product of the roots is equal to the constant term , that
is, . Accordingly, we form the coefficient by addition of the complex conjugate roots
and this is done by inspection; then we multiply the complex conjugate roots to obtain the con-
stant term using MATLAB as follows:
(2.4186 + 1.0712i)*(2.4186 -1.0712i)
a ns = 6. 9971
(-0.3370+ 0.9961i)*(-0.3370-0.9961i)
a ns = 1. 1058
(1.6760+ 0.4922i)*(1.6760-0.4922i)
a ns = 3. 0512
(-0.2108+ 0.9870i)*(-0.2108-0.9870i)
a ns = 1. 0186
Thus,
p
num
x 2.4186 j1.0712 ( ) x 2.4186 j1.0712 + ( ) x 1.1633 + ( ) =
x 0.3370 j0.9961 + ( ) x 0.3370 j0.9961 + + ( )
p
den
x 1.6760 j0.4922 ( ) x 1.6760 j0.4922 + ( ) x 1.9304 + ( ) =
x 0.2108 j 0.9870 + ( ) x 0.2108 j0.9870 + + ( ) x 1.0000 + ( )
x
2
bx c + + 0 =
x
1
x
2
b x
x
1
x
2
+ ( ) b = c
x
1
x
2
c = b
c
R x ( )
p
num
p
den
------------
x
2
4.8372x 6.9971 + ( ) x
2
0.6740x 1.1058 + + ( ) x 1.1633 + ( )
x
2
3.3520x 3.0512 + ( ) x
2
0.4216x 1.0186 + + ( ) x 1.0000 + ( ) x 1.9304 + ( )
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ = =
Appendix A Introduction to MATLAB
A-10 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
We can check this result of Example A.9 above with MATLABs Symbolic Math Toolbox which is
a collection of tools (functions) used in solving symbolic expressions. They are discussed in detail
in MATLABs Users Manual. For the present, our interest is in using the collect(s) function that
is used to multiply two or more symbolic expressions to obtain the result in polynomial form. We
must remember that the conv(p,q) function is used with numeric expressions only, that is, poly-
nomial coefficients.
Before using a symbolic expression, we must create one or more symbolic variables such as x, y, t,
and so on. For our example, we use the following script:
syms x % Define a symbolic variable and use collect(s) to express numerator in polynomial form
collect((x^2-4.8372*x+6.9971)*(x^2+0.6740*x+1.1058)*(x+1.1633))
a ns =
x^5- 29999/ 10000*x^4- 1323/ 3125000*x^3+7813277909/
1562500000*x^2+1750276323053/ 250000000000*x+4500454743147/
500000000000
and if we simplify this, we find that is the same as the numerator of the given rational expression
in polynomial form. We can use the same procedure to verify the denominator.
A.7 Using MATLAB to Make Plots
Quite often, we want to plot a set of ordered pairs. This is a very easy task with the MATLAB
plot(x,y) command that plots y versus x, where x is the horizontal axis (abscissa) and y is the ver-
tical axis (ordinate).
Example A.10
Consider the electric circuit of Figure A.1, where the radian frequency c (radians/second) of the
applied voltage was varied from 300 to 3000 in steps of 100 radians/second, while the amplitude
was held constant.
Figure A.1. Electric circuit for Example A.10
A
V
L
C
R
2
R
1
Using MATLAB to Make Plots
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-11
Copyright Orchard Publications
The ammeter readings were then recorded for each frequency. The magnitude of the impedance
|Z| was computed as and the data were tabulated on Table A.1.
Plot the magnitude of the impedance, that is, |Z| versus radian frequency .
Solution:
We cannot type (omega) in the MATLAB Command prompt, so we will use the English letter
w instead.
If a statement, or a row vector is too long to fit in one line, it can be continued to the next line by
typing three or more periods, then pressing <enter> to start a new line, and continue to enter
data. This is illustrated below for the data of w and z. Also, as mentioned before, we use the semi-
colon (;) to suppress the display of numbers that we do not care to see on the screen.
The data are entered as follows:
w=[300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900....
2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000];
%
z=[39.339 52.789 71.104 97.665 140.437 222.182 436.056....
1014.938 469.830 266.032 187.052 145.751 120.353 103.111....
90.603 81.088 73.588 67.513 62.481 58.240 54.611 51.468....
48.717 46.286 44.122 42.182 40.432 38.845];
Of course, if we want to see the values of w or z or both, we simply type w or z, and we press
TABLE A.1 Table for Example A.10
c (rads/s) |Z| Ohms c (rads/s) |Z| Ohms
300 39.339 1700 90.603
400 52.589 1800 81.088
500 71.184 1900 73.588
600 97.665 2000 67.513
700 140.437 2100 62.481
800 222.182 2200 58.240
900 436.056 2300 54.611
1000 1014.938 2400 51.428
1100 469.83 2500 48.717
1200 266.032 2600 46.286
1300 187.052 2700 44.122
1400 145.751 2800 42.182
1500 120.353 2900 40.432
1600 103.111 3000 38.845
Z V A ' =
c
c
Appendix A Introduction to MATLAB
A-12 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
<enter>. To plot (y-axis) versus (x-axis), we use the plot(x,y) command. For this example,
we use plot(w,z). When this command is executed, MATLAB displays the plot on MATLABs
graph screen and MATLAB denotes this plot as Figure 1. This plot is shown in Figure A.2.
Figure A.2. Plot of impedance versus frequency for Example A.10
This plot is referred to as the magnitude frequency response of the circuit.
To return to the command window, we press any key, or from the Window pull-down menu, we
select MATLAB Command Window. To see the graph again, we click on the Window pull-down
menu, and we choose Figure 1.
We can make the above, or any plot, more presentable with the following commands:
grid on: This command adds grid lines to the plot. The grid off command removes the grid. The
command grid toggles them, that is, changes from off to on or vice versa. The default
*
is off.
box off: This command removes the box (the solid lines which enclose the plot), and box on
restores the box. The command box toggles them. The default is on.
title(string): This command adds a line of the text string (label) at the top of the plot.
xlabel(string) and ylabel(string) are used to label the x- and y-axis respectively.
The magnitude frequency response is usually represented with the x-axis in a logarithmic scale.
We can use the semilogx(x,y) command which is similar to the plot(x,y) command, except that
the x-axis is represented as a log scale, and the y-axis as a linear scale. Likewise, the semil-
ogy(x,y) command is similar to the plot(x,y) command, except that the y-axis is represented as a
* A default is a particular value for a variable that is assigned automatically by an operating system and remains
in effect unless canceled or overridden by the operator.
z w
0 500 1000 1500 2000 2500 3000
0
200
400
600
800
1000
1200
z c
Using MATLAB to Make Plots
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-13
Copyright Orchard Publications
log scale, and the x-axis as a linear scale. The loglog(x,y) command uses logarithmic scales for
both axes.
Throughout this text it will be understood that log is the common (base 10) logarithm, and ln is
the natural (base e) logarithm. We must remember, however, the function log(x) in MATLAB is
the natural logarithm, whereas the common logarithm is expressed as log10(x), and the logarithm
to the base 2 as log2(x).
Let us now redraw the plot with the above options by adding the following statements:
semilogx(w,z); grid; % Replaces the plot(w,z) command
title('Magnitude of Impedance vs. Radian Frequency');
xlabel('w in rads/sec'); ylabel('|Z| in Ohms')
After execution of these commands, the plot is as shown in Figure A.3.
If the y-axis represents power, voltage or current, the x-axis of the frequency response is more
often shown in a logarithmic scale, and the y-axis in dB (decibels).
Figure A.3. Modified frequency response plot of Figure A.2.
To display the voltage in a dB scale on the y-axis, we add the relation dB=20*log10(v), and we
replace the semilogx(w,z) command with semilogx(w,dB) provided that v is predefined.
The command gtext(string)
*
switches to the current Figure Window, and displays a cross-hair
that can be moved around with the mouse. For instance, we can use the command gtext(Imped-
ance |Z| versus Frequency), and this will place a cross-hair in the Figure window. Then, using
* With the latest MATLAB Versions 6 and 7 (Student Editions 13 and 14), we can add text, lines and arrows directly into
the graph using the tools provided on the Figure Window. For advanced MATLAB graphics, please refer to The Math-
Works Using MATLAB Graphics documentation.
10
2
10
3
10
4
0
200
400
600
800
1000
1200
Magnitude of Impedance vs. Radian Frequency
w in rads/sec
|
Z
|

i
n

O
h
m
s
v
Appendix A Introduction to MATLAB
A-14 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
the mouse, we can move the cross-hair to the position where we want our label to begin, and we
press <enter>.
The command text(x,y,string) is similar to gtext(string). It places a label on a plot in some
specific location specified by x and y, and string is the label which we want to place at that loca-
tion. We will illustrate its use with the following example which plots a 3-phase sinusoidal wave-
form.
The first line of the script below has the form
linspace(first_value, last_value, number_of_values)
This function specifies the number of data points but not the increments between data points. An
alternate function is
x=first: increment: last
and this specifies the increments between points but not the number of data points.
The script for the 3-phase plot is as follows:
x=linspace(0, 2*pi, 60); % pi is a built-in function in MATLAB;
% we could have used x=0:0.02*pi:2*pi or x = (0: 0.02: 2)*pi instead;
y=sin(x); u=sin(x+2*pi/3); v=sin(x+4*pi/3);
plot(x,y,x,u,x,v); % The x-axis must be specified for each function
grid on, box on, % turn grid and axes box on
text(0.75, 0.65, 'sin(x)'); text(2.85, 0.65, 'sin(x+2*pi/3)'); text(4.95, 0.65, 'sin(x+4*pi/3)')
These three waveforms are shown on the same plot of Figure A.4.
Figure A.4. Three-phase waveforms
0 1 2 3 4 5 6 7
-1
-0.5
0
0.5
1
sin(x) sin(x+2*pi/3) sin(x+4*pi/3)
Using MATLAB to Make Plots
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-15
Copyright Orchard Publications
In our previous examples, we did not specify line styles, markers, and colors for our plots. How-
ever, MATLAB allows us to specify various line types, plot symbols, and colors. These, or a com-
bination of these, can be added with the plot(x,y,s) command, where s is a character string con-
taining one or more characters shown on the three columns of Table A.2. MATLAB has no
default color; it starts with blue and cycles through the first seven colors listed in Table A.2 for
each additional line in the plot. Also, there is no default marker; no markers are drawn unless
they are selected. The default line is the solid line. But with the latest MATLAB versions, we can
select the line color, line width, and other options directly from the Figure Window.
For example, plot(x,y,'m*:') plots a magenta dotted line with a star at each data point, and
plot(x,y,'rs') plots a red square at each data point, but does not draw any line because no line was
selected. If we want to connect the data points with a solid line, we must type plot(x,y,'rs-'). For
additional information we can type help plot in MATLABs command screen.
The plots we have discussed thus far are two-dimensional, that is, they are drawn on two axes.
MATLAB has also a three-dimensional (three-axes) capability and this is discussed next.
The plot3(x,y,z) command plots a line in 3-space through the points whose coordinates are the
elements of x, y and z, where x, y and z are three vectors of the same length.
The general format is plot3(x
1
,y
1
,z
1
,s
1
,x
2
,y
2
,z
2
,s
2
,x
3
,y
3
,z
3
,s
3
,...) where x
n
, y
n
and z
n
are vectors
or matrices, and s
n
are strings specifying color, marker symbol, or line style. These strings are the
same as those of the two-dimensional plots.
TABLE A.2 Styles, colors, and markets used in MATLAB
Symbol Color Symbol Marker Symbol Line Style
b blue . point - solid line
g green o circle : dotted line
r red x x-mark -. dash-dot line
c cyan + plus -- dashed line
m magenta * star
y yellow s square
k black d diamond
w white v triangle down
r triangle up
< triangle left
> triangle right
p pentagram
h hexagram
Appendix A Introduction to MATLAB
A-16 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Example A.11
Plot the function
(A.3)
Solution:
We arbitrarily choose the interval (length) shown on the script below.
x= -10: 0.5: 10; % Length of vector x
y= x; % Length of vector y must be same as x
z= -2.*x.^3+x+3.*y.^2-1; % Vector z is function of both x and y
*
plot3(x,y,z); grid
The three-dimensional plot is shown in Figure A.5.
Figure A.5. Three dimensional plot for Example A.11
In a two-dimensional plot, we can set the limits of the x- and y-axes with the axis([xmin xmax
ymin ymax]) command. Likewise, in a three-dimensional plot we can set the limits of all three
axes with the axis([xmin xmax ymin ymax zmin zmax]) command. It must be placed after the
plot(x,y) or plot3(x,y,z) commands, or on the same line without first executing the plot com-
mand. This must be done for each plot. The three-dimensional text(x,y,z,string) command will
place string beginning at the co-ordinate (x,y,z) on the plot.
For three-dimensional plots, grid on and box off are the default states.
* This statement uses the so called dot multiplication, dot division, and dot exponentiation where the multiplication, division,
and exponential operators are preceded by a dot. These important operations will be explained in Section A.9.
z 2x
3
x 3y
2
1 + + =
-10
-5
0
5
10
-10
-5
0
5
10
-2000
-1000
0
1000
2000
3000
Using MATLAB to Make Plots
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-17
Copyright Orchard Publications
We can also use the mesh(x,y,z) command with two vector arguments. These must be defined as
and where . In this case, the vertices of the mesh
lines are the triples . We observe that x corresponds to the columns of Z, and y
corresponds to the rows.
To produce a mesh plot of a function of two variables, say , we must first generate the
X and Y matrices that consist of repeated rows and columns over the range of the variables x and
y. We can generate the matrices X and Y with the [X,Y]=meshgrid(x,y) function that creates the
matrix X whose rows are copies of the vector x, and the matrix Y whose columns are copies of the
vector y.
Example A.12
The volume of a right circular cone of radius and height is given by
(A.4)
Plot the volume of the cone as and vary on the intervals and meters.
Solution:
The volume of the cone is a function of both the radius r and the height h, that is,
The three-dimensional plot is created with the following MATLAB script where, as in the previ-
ous example, in the second line we have used the dot multiplication, dot division, and dot expo-
nentiation. This will be explained in Section A.9.
[R,H]=meshgrid(0: 4, 0: 6); % Creates R and H matrices from vectors r and h;...
V=(pi .* R .^ 2 .* H) ./ 3; mesh(R, H, V);...
xlabel('x-axis, radius r (meters)'); ylabel('y-axis, altitude h (meters)');...
zlabel('z-axis, volume (cubic meters)'); title('Volume of Right Circular Cone'); box on
The three-dimensional plot of Figure A.6 shows how the volume of the cone increases as the
radius and height are increased.
The plots of Figure A.5 and A.6 are rudimentary; MATLAB can generate very sophisticated
three-dimensional plots. The MATLAB Users Manual and the Using MATLAB Graphics Man-
ual contain numerous examples.
length x ( ) n = length y ( ) m = m n , [ ] size Z ( ) =
x j ( ) y i ( ) Z i j , ( ) , , {
z f x y , ( ) =
V r h
V
1
3
---rr
2
h =
r h 0 r 4 s s 0 h 6 s s
V f r h , ( ) =
Appendix A Introduction to MATLAB
A-18 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure A.6. Volume of a right circular cone.
A.8 Subplots
MATLAB can display up to four windows of different plots on the Figure window using the com-
mand subplot(m,n,p). This command divides the window into an m n matrix of plotting areas
and chooses the pth area to be active. No spaces or commas are required between the three inte-
gers m, n and p. The possible combinations are shown in Figure A.7.
We will illustrate the use of the subplot(m,n,p) command following the discussion on multiplica-
tion, division and exponentiation that follows.
Figure A.7. Possible subplot arrangements in MATLAB
A.9 Multiplication, Division, and Exponentiation
MATLAB recognizes two types of multiplication, division, and exponentiation. These are the
matrix multiplication, division, and exponentiation, and the element-by-element multiplication,
division, and exponentiation. They are explained in the following paragraphs.
0
1
2
3
4
0
2
4
6
0
50
100
150
x-axis, radius r (meters)
Volume of Right Circular Cone
y-axis, altitude h (meters)
z
-
a
x
i
s
,

v
o
l
u
m
e

(
c
u
b
i
c

m
e
t
e
r
s
)
111
Full Screen
Default
211
212
221 222
223 224
121
122
221 222
212
211
223 224
221
223
122
121
222
224
Multiplication, Division, and Exponentiation
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-19
Copyright Orchard Publications
In Section A.2, the arrays , such a those that contained the coefficients of polynomi-
als, consisted of one row and multiple columns, and thus are called row vectors. If an array has
one column and multiple rows, it is called a column vector. We recall that the elements of a row
vector are separated by spaces. To distinguish between row and column vectors, the elements of a
column vector must be separated by semicolons. An easier way to construct a column vector, is to
write it first as a row vector, and then transpose it into a column vector. MATLAB uses the single
quotation character () to transpose a vector. Thus, a column vector can be written either as
b=[-1; 3; 6; 11]
or as
b=[-1 3 6 11]'
As shown below, MATLAB produces the same display with either format.
b=[-1; 3; 6; 11]
b =
- 1
3
6
11
b=[-1 3 6 11]' % Observe the single quotation character ()
b =
- 1
3
6
11
We will now define Matrix Multiplication and Element-by-Element multiplication.
1. Matrix Multiplication (multiplication of row by column vectors)
Let
and

be two vectors. We observe that is defined as a row vector whereas is defined as a col-
umn vector, as indicated by the transpose operator (). Here, multiplication of the row vector
by the column vector , is performed with the matrix multiplication operator (*). Then,
(A.5)
a b c . [ ]
A a
1
a
2
a
3
. a
n
[ ] =
B b
1
b
2
b
3
. b
n
[ ]' =
A B
A B
A*B a
1
b
1
a
2
b
2
a
3
b
3
. a
n
b
n
+ + + + [ ] gle value sin = =
Appendix A Introduction to MATLAB
A-20 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
For example, if
and
the matrix multiplication produces the single value 68, that is,
and this is verified with the MATLAB script
A=[1 2 3 4 5]; B=[ -2 6 -3 8 7]'; A*B % Observe transpose operator () in B
a ns =
68
Now, let us suppose that both and are row vectors, and we attempt to perform a row-by-
row multiplication with the following MATLAB statements.
A=[1 2 3 4 5]; B=[-2 6 -3 8 7]; A*B % No transpose operator () here
When these statements are executed, MATLAB displays the following message:
??? Error using ==> *
Inner matrix dimensions must agree.
Here, because we have used the matrix multiplication operator (*) in A*B, MATLAB expects
vector to be a column vector, not a row vector. It recognizes that is a row vector, and
warns us that we cannot perform this multiplication using the matrix multiplication operator
(*). Accordingly, we must perform this type of multiplication with a different operator. This
operator is defined below.
2. Element-by-Element Multiplication (multiplication of a row vector by another row vector)
Let
and

be two row vectors. Here, multiplication of the row vector by the row vector is per-
formed with the dot multiplication operator (.*). There is no space between the dot and the
multiplication symbol. Thus,
(A.6)
This product is another row vector with the same number of elements, as the elements of
A 1 2 3 4 5 [ ] =
B 2 6 3 8 7 [ ]' =
A*B
A
-
B 1 2 ( ) 2 6 3 3 ( ) 4 8 5 7 + + + + 68 = =
A B
B B
C c
1
c
2
c
3
. c
n
[ ] =
D d
1
d
2
d
3
. d
n
[ ] =
C D
C.
-
D c
1
d
1
c
2
d
2
c
3
d
3
. c
n
d
n
[ ] =
C
Multiplication, Division, and Exponentiation
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-21
Copyright Orchard Publications
and .
As an example, let
and
Dot multiplication of these two row vectors produce the following result.
Check with MATLAB:
C=[1 2 3 4 5]; % Vectors C and D must have
D=[-2 6 -3 8 7]; % same number of elements
C.*D % We observe that this is a dot multiplication
ans =
-2 12 -9 32 35
Similarly, the division (/) and exponentiation (^) operators, are used for matrix division and
exponentiation, whereas dot division (./) and dot exponentiation (.^) are used for element-
by-element division and exponentiation, as illustrated in Examples A.11 and A.12 above.
We must remember that no space is allowed between the dot (.) and the multiplication, divi-
sion, and exponentiation operators.
Note: A dot (.) is never required with the plus (+) and minus (-) operators.
Example A.13
Write the MATLAB script that produces a simple plot for the waveform defined as
(A.7)
in the seconds interval.
Solution:
The MATLAB script for this example is as follows:
t=0: 0.01: 5; % Define t-axis in 0.01 increments
y=3 .* exp(-4 .* t) .* cos(5 .* t)-2 .* exp(-3 .* t) .* sin(2 .* t) + t .^2 ./ (t+1);
plot(t,y); grid; xlabel('t'); ylabel('y=f(t)'); title('Plot for Example A.13')
The plot for this example is shown in Figure A.8.
D
C 1 2 3 4 5 [ ] =
D 2 6 3 8 7 [ ] =
C.
-
D 1 2 ( ) 2 6 3 3 ( ) 4 8 5 7 2 12 9 32 35 = =
y f t ( ) 3e
4t
5t cos 2e
3t
2t sin
t
2
t 1 +
----------- + = =
0 t 5 s s
Appendix A Introduction to MATLAB
A-22 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure A.8. Plot for Example A.13
Had we, in this example, defined the time interval starting with a negative value equal to or less
than , say as , MATLAB would have displayed the following message:
Wa r ni ng: Di vi de by z e r o.
This is because the last term (the rational fraction) of the given expression, is divided by zero
when . To avoid division by zero, we use the special MATLAB function eps, which is a
number approximately equal to . It will be used with the next example.
The command axis([xmin xmax ymin ymax]) scales the current plot to the values specified by
the arguments xmin, xmax, ymin and ymax. There are no commas between these four argu-
ments. This command must be placed after the plot command and must be repeated for each plot.
The following example illustrates the use of the dot multiplication, division, and exponentiation,
the eps number, the axis([xmin xmax ymin ymax]) command, and also MATLABs capability
of displaying up to four windows of different plots.
Example A.14
Plot the functions
in the interval using 100 data points. Use the subplot command to display these func-
tions on four windows on the same graph.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
-1
0
1
2
3
4
5
t
y
=
f
(
t
)
Plot for Example A.13
1 3 t 3 s s
t 1 =
2.2 10
16

y x
2
sin z , x
2
cos w , x
2
sin x
2
cos v , x
2
sin x
2
cos ' = = = =
0 x 2r s s
Multiplication, Division, and Exponentiation
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-23
Copyright Orchard Publications
Solution:
The MATLAB script to produce the four subplots is as follows:
x=linspace(0,2*pi,100); % Interval with 100 data points
y=(sin(x).^ 2); z=(cos(x).^ 2);
w=y.* z;
v=y./ (z+eps);% add eps to avoid division by zero
subplot(221);% upper left of four subplots
plot(x,y); axis([0 2*pi 0 1]);
title('y=(sinx)^2');
subplot(222); % upper right of four subplots
plot(x,z); axis([0 2*pi 0 1]);
title('z=(cosx)^2');
subplot(223); % lower left of four subplots
plot(x,w); axis([0 2*pi 0 0.3]);
title('w=(sinx)^2*(cosx)^2');
subplot(224); % lower right of four subplots
plot(x,v); axis([0 2*pi 0 400]);
title('v=(sinx)^2/(cosx)^2');
These subplots are shown in Figure A.9.
Figure A.9. Subplots for the functions of Example A.14
The next example illustrates MATLABs capabilities with imaginary numbers. We will introduce
the real(z) and imag(z) functions that display the real and imaginary parts of the complex quan-
tity z = x + iy, the abs(z), and the angle(z) functions that compute the absolute value (magni-
tude) and phase angle of the complex quantity z = x + iy = rZ0. We will also use the
polar(theta,r) function that produces a plot in polar coordinates, where r is the magnitude, theta
0 2 4 6
0
0.5
1
y=(sinx)
2
0 2 4 6
0
0.5
1
z=(cosx)
2
0 2 4 6
0
0.1
0.2
w=(sinx)
2
*(cosx)
2
0 2 4 6
0
200
400
v=(sinx)
2
/(cosx)
2
Appendix A Introduction to MATLAB
A-24 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
is the angle in radians, and the round(n) function that rounds a number to its nearest integer.
Example A.15
Consider the electric circuit of Figure A.10.
Figure A.10. Electric circuit for Example A.15
With the given values of resistance, inductance, and capacitance, the impedance as a func-
tion of the radian frequency c can be computed from the following expression:
(A.8)
a. Plot (the real part of the impedance Z) versus frequency c.
b. Plot (the imaginary part of the impedance Z) versus frequency c.
c. Plot the impedance Z versus frequency c in polar coordinates.
Solution:
The MATLAB script below computes the real and imaginary parts of which, for simplicity,
are denoted as , and plots these as two separate graphs (parts a & b). It also produces a polar
plot (part c).
w=0: 1: 2000; % Define interval with one radian interval;...
z=(10+(10 .^ 4 -j .* 10 .^ 6 ./ (w+eps)) ./ (10 + j .* (0.1 .* w -10.^5./ (w+eps))));...
%
% The first five statements (next two lines) compute and plot Re{z}
real_part=real(z); plot(w,real_part);...
xlabel('radian frequency w'); ylabel('Real part of Z'); grid
a
b
10 O
10 O
0.1 H
10 F Z
ab
Z
ab
Z
ab
Z 10
10
4
j 10
6
c ' ( )
10 j 0.1c 10
5
c ' ( ) +
-------------------------------------------------------- + = =
Re Z {
Im Z {
Z
ab
z
Multiplication, Division, and Exponentiation
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-25
Copyright Orchard Publications
Figure A.11. Plot for the real part of the impedance in Example A.15
% The next five statements (next two lines) compute and plot Im{z}
imag_part=imag(z); plot(w,imag_part);...
xlabel('radian frequency w'); ylabel('Imaginary part of Z'); grid
Figure A.12. Plot for the imaginary part of the impedance in Example A.15
% The last six statements (next five lines) below produce the polar plot of z
mag=abs(z); % Computes |Z|;...
rndz=round(abs(z)); % Rounds |Z| to read polar plot easier;...
theta=angle(z); % Computes the phase angle of impedance Z;...
polar(theta,rndz); % Angle is the first argument
ylabel('Polar Plot of Z'); grid
0 200 400 600 800 1000 1200 1400 1600 1800 2000
0
200
400
600
800
1000
1200
radian frequency w
R
e
a
l

p
a
r
t

o
f

Z
0 200 400 600 800 1000 1200 1400 1600 1800 2000
-600
-400
-200
0
200
400
600
radian frequency w
I
m
a
g
i
n
a
r
y

p
a
r
t

o
f

Z
Appendix A Introduction to MATLAB
A-26 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure A.13. Polar plot of the impedance in Example A.15
Example A.15 clearly illustrates how powerful, fast, accurate, and flexible MATLAB is.
A.10 Script and Function Files
MATLAB recognizes two types of files: script files and function files. Both types are referred to as
m-files since both require the .m extension.
A script file consists of two or more built-in functions such as those we have discussed thus far.
Thus, the script for each of the examples we discussed earlier, make up a script file. Generally, a
script file is one which was generated and saved as an m-file with an editor such as the MAT-
LABs Editor/Debugger.
A function file is a user-defined function using MATLAB. We use function files for repetitive
tasks. The first line of a function file must contain the word function, followed by the output argu-
ment, the equal sign ( = ), and the input argument enclosed in parentheses. The function name
and file name must be the same, but the file name must have the extension .m. For example, the
function file consisting of the two lines below
function y = myfunction(x)
y=x.^ 3 + cos(3.* x)
is a function file and must be saved as myfunction.m
For the next example, we will use the following MATLAB functions:
fzero(f,x) - attempts to find a zero of a function of one variable, where f is a string containing the
name of a real-valued function of a single real variable. MATLAB searches for a value near a
point where the function f changes sign, and returns that value, or returns NaN if the search fails.
500
1000
1500
30
210
60
240
90
270
120
300
150
330
180 0
P
o
l
a
r

P
l
o
t

o
f

Z
Script and Function Files
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-27
Copyright Orchard Publications
Important: We must remember that we use roots(p) to find the roots of polynomials only, such as
those in Examples A.1 and A.2.
fplot(fcn,lims) - plots the function specified by the string fcn between the x-axis limits specified
by lims = [xmin xmax]. Using lims = [xmin xmax ymin ymax] also controls the y-axis limits.
The string fcn must be the name of an m-file function or a string with variable .
NaN (Not-a-Number) is not a function; it is MATLABs response to an undefined expression
such as , , or inability to produce a result as described on the next paragraph. We can
avoid division by zero using the eps number, which we mentioned earlier.
Example A.16
Find the zeros, the minimum, and the maximum values of the function
(A.9)
in the interval
Solution:
We first plot this function to observe the approximate zeros, maxima, and minima using the fol-
lowing script.
x=-1.5: 0.01: 1.5;
y=1./ ((x-0.1).^ 2 + 0.01) -1./ ((x-1.2).^ 2 + 0.04) -10;
plot(x,y); grid
The plot is shown in Figure A.14.
Figure A.14. Plot for Example A.16 using the plot command
x
0 0 ' '
f x ( )
1
x 0.1 ( )
2
0.01 +
----------------------------------------
1
x 1.2 ( )
2
0.04 +
---------------------------------------- 10 =
1.5 x 1.5 s s
-1.5 -1 -0.5 0 0.5 1 1.5
-40
-20
0
20
40
60
80
100
Appendix A Introduction to MATLAB
A-28 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
The roots (zeros) of this function appear to be in the neighborhood of and . The
maximum occurs at approximately where, approximately, , and the minimum
occurs at approximately where, approximately, .
Next, we define and save f(x) as the funczero01.m function m-file with the following script:
function y=funczero01(x)
% Finding the zeros of the function shown below
y=1/((x-0.1)^2+0.01)-1/((x-1.2)^2+0.04)-10;
To save this file, from the File drop menu on the Command Window, we choose New, and when
the Editor Window appears, we type the script above and we save it as funczero01. MATLAB
appends the extension .m to it.
Now, we can use the fplot(fcn,lims) command to plot as follows:
fplot('funczero01', [-1.5 1.5]); grid
This plot is shown in Figure A.15. As expected, this plot is identical to the plot of Figure A.14
which was obtained with the plot(x,y) command as shown in Figure A.14.
Figure A.15. Plot for Example A.16 using the fplot command
We will use the fzero(f,x) function to compute the roots of in Equation (A.9) more precisely.
The MATLAB script below will accomplish this.
x1= fzero('funczero01', -0.2);
x2= fzero('funczero01', 0.3);
fprintf('The roots (zeros) of this function are r1= %3.4f', x1);
fprintf(' and r2= %3.4f \n', x2)
x 0.2 = x 0.3 =
x 0.1 = y
max
90 =
x 1.2 = y
min
34 =
f x ( )
-1.5 -1 -0.5 0 0.5 1 1.5
-40
-20
0
20
40
60
80
100
f x ( )
Script and Function Files
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-29
Copyright Orchard Publications
MATLAB displays the following:
The r oot s ( z e r os ) of t hi s f unc t i on a r e r 1= - 0. 1919 a nd r 2= 0. 3788
The earlier MATLAB versions included the function fmin(f,x1,x2) and with this function we
could compute both a minimum of some function or a maximum of since a maximum of
is equal to a minimum of . This can be visualized by flipping the plot of a function
upside-down. This function is no longer used in MATLAB and thus we will compute the maxima
and minima from the derivative of the given function.
From elementary calculus, we recall that the maxima or minima of a function can be
found by setting the first derivative of a function equal to zero and solving for the independent
variable . For this example we use the diff(x) function which produces the approximate deriva-
tive of a function. Thus, we use the following MATLAB script:
syms x ymin zmin; ymin=1/((x-0.1)^2+0.01)-1/((x-1.2)^2+0.04)-10;...
zmin=diff(ymin)
z mi n =
- 1/ ( ( x- 1/ 10) ^2+1/ 100) ^2*( 2*x- 1/ 5) +1/ ( ( x- 6/ 5) ^2+1/ 25) ^2*( 2*x- 12/ 5)
When the command
solve(zmin)
is executed, MATLAB displays a very long expression which when copied at the command
prompt and executed, produces the following:
a ns =
0. 6585 + 0. 3437i
a ns =
0. 6585 - 0. 3437i
a ns =
1. 2012
The real value above is the value of at which the function has its minimum value as
we observe also in the plot of Figure A.15.
To find the value of y corresponding to this value of x, we substitute it into , that is,
x=1.2012; ymin=1 / ((x-0.1) ^ 2 + 0.01) -1 / ((x-1.2) ^ 2 + 0.04) -10
ymin = -34.1812
We can find the maximum value from whose plot is produced with the script
x=-1.5:0.01:1.5; ymax=-1./((x-0.1).^2+0.01)-1./((x-1.2).^2+0.04)-10; plot(x,ymax); grid
and the plot is shown in Figure A.16.
f x ( ) f x ( )
f x ( ) f x ( ) f x ( )
y f x ( ) =
x
1.2012 x y
f x ( )
f x ( )
Appendix A Introduction to MATLAB
A-30 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure A.16. Plot of for Example A.16
Next we compute the first derivative of and we solve for to find the value where the max-
imum of occurs. This is accomplished with the MATLAB script below.
syms x ymax zmax; ymax=-(1/((x-0.1)^2+0.01)-1/((x-1.2)^2+0.04)-10); zmax=diff(ymax)
z ma x =
1/ ( ( x- 1/ 10) ^2+1/ 100) ^2*( 2*x- 1/ 5) - 1/ ( ( x- 6/ 5) ^2+1/ 25) ^2*( 2*x- 12/ 5)
solve(zmax)
When the command
solve(zmax)
is executed, MATLAB displays a very long expression which when copied at the command
prompt and executed, produces the following:
a ns =
0. 6585 + 0. 3437i
a ns =
0. 6585 - 0. 3437i
a ns =
1. 2012
a ns =
0. 0999
From the values above we choose which is consistent with the plots of Figures A.15
and A.16. Accordingly, we execute the following script to obtain the value of .
-1.5 -1 -0.5 0 0.5 1 1.5
-100
-80
-60
-40
-20
0
20
40
f x ( )
f x ( ) x
ymax
x 0.0999 =
ymin
Display Formats
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling A-31
Copyright Orchard Publications
x=0.0999; % Using this value find the corresponding value of ymax
ymax=1 / ((x-0.1) ^ 2 + 0.01) -1 / ((x-1.2) ^ 2 + 0.04) -10
yma x = 89. 2000
A.11 Display Formats
MATLAB displays the results on the screen in integer format without decimals if the result is an
integer number, or in short floating point format with four decimals if it a fractional number. The
format displayed has nothing to do with the accuracy in the computations. MATLAB performs all
computations with accuracy up to 16 decimal places.
The output format can changed with the format command. The available MATLAB formats can
be displayed with the help format command as follows:
help format
FORMAT Se t out put f or ma t .
Al l c omput a t i ons i n MATLAB a r e done i n doubl e pr e c i s i on.
FORMAT ma y be us e d t o s wi t c h be t we e n di f f e r e nt out put di s pl a y f or ma t s
a s f ol l ows :
FORMAT De f a ul t . Sa me a s SHORT.
FORMAT SHORT Sc a l e d f i xe d poi nt f or ma t wi t h 5 di gi t s .
FORMAT LONG Sc a l e d f i xe d poi nt f or ma t wi t h 15 di gi t s .
FORMAT SHORT E Fl oa t i ng poi nt f or ma t wi t h 5 di gi t s .
FORMAT LONG E Fl oa t i ng poi nt f or ma t wi t h 15 di gi t s .
FORMAT SHORT G Be s t of f i xe d or f l oa t i ng poi nt f or ma t wi t h 5 di gi t s .
FORMAT LONG G Be s t of f i xe d or f l oa t i ng poi nt f or ma t wi t h 15 di gi t s .
FORMAT HEX He xa de c i ma l f or ma t .
FORMAT + The s ymbol s +, - a nd bl a nk a r e pr i nt e d f or pos i t i ve , ne ga t i ve ,
a nd z e r o e l e me nt s . I ma gi na r y pa r t s a r e i gnor e d.
FORMAT BANK Fi xe d f or ma t f or dol l a r s a nd c e nt s .
FORMAT RAT Appr oxi ma t i on by r a t i o of s ma l l i nt e ge r s .
Spa c i ng:
FORMAT COMPACT Suppr e s s e xt r a l i ne - f e e ds .
FORMAT LOOSE Put s t he e xt r a l i ne - f e e ds ba c k i n.
Some e xa mpl e s wi t h di f f e r e nt f or ma t di s pl a ys a ge gi ve n be l ow.
f or ma t s hor t 33. 3335 Four de c i ma l di gi t s ( de f a ul t )
f or ma t l ong 33. 33333333333334 16 di gi t s
f or ma t s hor t e 3. 3333e +01 Four de c i ma l di gi t s pl us e xpone nt
f or ma t s hor t g 33. 333 Be t t e r of f or ma t s hor t or f or ma t s hor t e
f or ma t ba nk 33. 33 t wo de c i ma l di gi t s
f or ma t + onl y + or - or z e r o a r e pr i nt e d
Appendix A Introduction to MATLAB
A-32 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
f or ma t r a t 100/ 3 r a t i ona l a ppr oxi ma t i on
The disp(X) command displays the array X without printing the array name. If X is a string, the
text is displayed.
The fprintf(format,array) command displays and prints both text and arrays. It uses specifiers to
indicate where and in which format the values would be displayed and printed. Thus, if %f is
used, the values will be displayed and printed in fixed decimal format, and if %e is used, the val-
ues will be displayed and printed in scientific notation format. With this command only the real
part of each parameter is processed.
This appendix is just an introduction to MATLAB.
*
This outstanding software package consists
of many applications known as Toolboxes. The MATLAB Student Version contains just a few of
these Toolboxes. Others can be bought directly from The MathWorks, Inc., as add-ons.
* For more MATLAB applications, please refer to Numerical Analysis Using MATLAB and Excel, ISBN 978-
1-934404-03-4.
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-1
Copyright Orchard Publications
Appendix B
Introduction to Simulink

his appendix is a brief introduction to Simulink. This author feels that we can best intro-
duce Simulink with a few examples. Some familiarity with MATLAB is essential in under-
standing Simulink, and for this purpose, Appendix A is included as an introduction to
MATLAB.
B.1 Simulink and its Relation to MATLAB
The MATLAB

and Simulink

environments are integrated into one entity, and thus we can


analyze, simulate, and revise our models in either environment at any point. We invoke Simulink
from within MATLAB. We will introduce Simulink with a few illustrated examples.
Example B.1
For the circuit of Figure B.1, the initial conditions are , and . We will
compute .
Figure B.1. Circuit for Example B.1
For this example,
(B.1)
and by Kirchoffs voltage law (KVL),
(B.2)
Substitution of (B.1) into (B.2) yields
T
i
L
0
-
( ) 0 = v
c
0
-
( ) 0.5 V =
v
c
t ( )
-
+
R
L
+
-
C
1 O
v
s
t ( ) u
0
t ( ) =
v
C
t ( )
i t ( )
1 4 ' H
4 3 ' F
i i
L
i
C
C
dv
C
dt
--------- = = =
Ri
L
L
di
L
dt
------- v
C
+ + u
0
t ( ) =




Introduction to Simulink
B-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
(B.3)
Substituting the values of the circuit constants and rearranging we obtain:
(B.4)
(B.5)
To appreciate Simulinks capabilities, for comparison, three different methods of obtaining the
solution are presented, and the solution using Simulink follows.
First Method - Assumed Solution
Equation (B.5) is a second-order, non-homogeneous differential equation with constant coeffi-
cients, and thus the complete solution will consist of the sum of the forced response and the natu-
ral response. It is obvious that the solution of this equation cannot be a constant since the deriva-
tives of a constant are zero and thus the equation is not satisfied. Also, the solution cannot
contain sinusoidal functions (sine and cosine) since the derivatives of these are also sinusoids.
However, decaying exponentials of the form where k and a are constants, are possible candi-
dates since their derivatives have the same form but alternate in sign.
It is shown in Appendix H that if and where and are constants and and
are the roots of the characteristic equation of the homogeneous part of the given differential
equation, the natural response is the sum of the terms and . Therefore, the total
solution will be
(B.6)
The values of and are the roots of the characteristic equation
(B.7)
Solution of (B.7) yields of and and with these values (B.6) is written as
RC
dv
C
dt
--------- LC
d
2
v
C
dt
2
----------- v
C
+ + u
0
t ( ) =
1
3
-- -
d
2
v
C
dt
2
-----------
4
3
-- -
dv
C
dt
--------- v
C
+ + u
0
t ( ) =
d
2
v
C
dt
2
----------- 4
dv
C
dt
--------- 3v
C
+ + 3u
0
t ( ) =
d
2
v
C
dt
2
----------- 4
dv
C
dt
--------- 3v
C
+ + 3 = t 0 >
ke
at
k
1
e
s
1
t
k
2
e
s
2
t
k
1
k
2
s
1
s
2
k
1
e
s
1
t
k
2
e
s
2
t
v
c
t ( ) natural response forced response + v
cn
t ( ) v
cf
t ( ) + k
1
e
s
1
t
k
2
e
s
2
t
v
cf
t ( ) + + = = =
s
1
s
2
s
2
4s 3 + + 0 =
s
1
1 = s
2
3 =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-3
Copyright Orchard Publications
Simulink and its Relation to MATLAB
(B.8)
The forced component is found from (B.5), i.e.,
(B.9)
Since the right side of (B.9) is a constant, the forced response will also be a constant and we
denote it as . By substitution into (B.9) we obtain
or
(B.10)
Substitution of this value into (B.8), yields the total solution as
(B.11)
The constants and will be evaluated from the initial conditions. First, using
and evaluating (B.11) at , we obtain
(B.12)
Also,
and
(B.13)
Next, we differentiate (B.11), we evaluate it at , and equate it with (B.13). Thus,
(B.14)
By equating the right sides of (B.13) and (B.14) we obtain
(B.15)
v
c
t ( ) k
1
e
t
k
2
e
3 t
v
cf
t ( ) + + =
v
cf
t ( )
d
2
v
C
dt
2
----------- 4
dv
C
dt
--------- 3v
C
+ + 3 = t 0 >
v
Cf
k
3
=
0 0 3k
3
+ + 3 =
v
Cf
k
3
1 = =
v
C
t ( ) v
Cn
t ( ) v
Cf
+ = k
1
e
t
k
2
e
3 t
1 + + =
k
1
k
2
v
C
0 ( ) 0.5 V =
t 0 =
v
C
0 ( ) k
1
e
0
k
2
e
0
1 + + 0.5 = =
k
1
k
2
+ 0.5 =
i
L
i
C
C
dv
C
dt
--------- = =
dv
C
dt
---------
i
L
C
---- = ,

dv
C
dt
---------
t 0 =
i
L
0 ( )
C
------------
0
C
---- 0 = = =
t 0 =

dv
C
dt
---------
t 0 =
k
1
3k
2
=
k
1
3k
2
0 =
Introduction to Simulink
B-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Simultaneous solution of (B.12) and (B.15), gives and . By substitution into
(B.8), we obtain the total solution as
(B.16)
Check with MATLAB:
syms t % Define symbolic variable t
y0=-0.75*exp(-t)+0.25*exp(-3*t)+1; % The total solution y(t), for our example, vc(t)
y1=diff(y0) % The first derivative of y(t)
y1 =
3/ 4*e xp( - t ) - 3/ 4*e xp( - 3*t )
y2=diff(y0,2) % The second derivative of y(t)
y2 =
- 3/ 4*e xp( - t ) +9/ 4*e xp( - 3*t )
y=y2+4*y1+3*y0 % Summation of y and its derivatives
y =
3
Thus, the solution has been verified by MATLAB. Using the expression for in (B.16), we
find the expression for the current as
(B.17)
Second Method - Using the Laplace Transformation
The transformed circuit is shown in Figure B.2.
Figure B.2. Transformed Circuit for Example B.1
k
1
0.75 = k
2
0.25 =
v
C
t ( ) 0.75 e
t
0.25e
3 t
1 + + ( )u
0
t ( ) =
v
C
t ( )
i i
L
= i
C
C
dv
C
dt
----------
4
3
---
3
4
---e
t 3
4
--- e
3t


e
t
e
3t
A = = = =
-
+
R L
+
-
C
1
V
s
s ( ) 1 s ' =
V
C
s ( )
I s ( )
0.25s
3 4s '
+
-
V
C
0 ( )
0.5 s '
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-5
Copyright Orchard Publications
Simulink and its Relation to MATLAB
By the voltage division
*
expression,
Using partial fraction expansion,

we let
(B.18)
and by substitution into (B.18)
Taking the Inverse Laplace transform

we find that
Third Method - Using State Variables
**
* For derivation of the voltage division and current division expressions, please refer to Circuit Analysis I with
MATLAB Computing and Simulink / SimPowerSystems , ISBN 978-1-934404-17-1.
Partial fraction expansion is discussed in Chapter 5, this text.
For an introduction to Laplace Transform and Inverse Laplace Transform, please refer Chapters 4 and 5, this
text.
** Usually, in State-Space and State Variables Analysis, denotes any input. For distinction, we will denote
the Unit Step Function as . For a detailed discussion on State-Space and State Variables Analysis, please
refer to Chapter 7, this text.
V
C
s ( )
3 4s '
1 0.25s 3 4s ' + + ( )
----------------------------------------------
1
s
-- -
0.5
s
-------

0.5
s
------- + =
1.5
s s
2
4s 3 + + ( )
---------------------------------
0.5
s
------- +
0.5s
2
2s 3 + +
s s 1 + ( ) s 3 + ( )
------------------------------------ = =
0.5s
2
2s 3 + +
s s 1 + ( ) s 3 + ( )
------------------------------------
r
1
s
----
r
2
s 1 + ( )
----------------
r
3
s 3 + ( )
---------------- + + =
r
1
0.5s
2
2s 3 + +
s 1 + ( ) s 3 + ( )
----------------------------------
s 0 =
1 = =
r
2
0.5s
2
2s 3 + +
s s 3 + ( )
----------------------------------
s 1 =
0.75 = =
r
3
0.5s
2
2s 3 + +
s s 1 + ( )
----------------------------------
s 3 =
0.25 = =
V
C
s ( )
0.5s
2
2s 3 + +
s s 1 + ( ) s 3 + ( )
------------------------------------
1
s
-- -
0.75
s 1 + ( )
----------------
0.25
s 3 + ( )
---------------- + + = =
v
C
t ( ) 1 0.75e
t
0.25e
3t
+ =
Ri
L
L
di
L
dt
------- v
C
+ + u
0
t ( ) =
u t ( )
u
0
t ( )
Introduction to Simulink
B-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
By substitution of given values and rearranging, we obtain
or
(B.19)
Next, we define the state variables and . Then,
*
(B.20)
and
(B.21)
Also,
and thus,
or
(B.22)
Therefore, from (B.19), (B.20), and (B.22), we obtain the state equations
and in matrix form,
(B.23)
Solution

of (B.23) yields
* The notation (x dot) is often used to denote the first derivative of the function , that is, .
The detailed solution of (B.23) is given in Chapter 7, Example 7.10, Page 7-23, this text.
1
4
-- -
di
L
dt
------- 1 ( )i
L
v
C
1 + =
di
L
dt
------- 4i
L
4v
C
4 + =
x
1
i
L
= x
2
v
C
=
x

1
di
L
dt
------- =
x

x x

dx dt ' =
x

2
dv
C
dt
--------- =
i
L
C
dv
C
dt
--------- =
x
1
i
L
C
dv
C
dt
--------- Cx

2
4
3
---x

2
= = = =
x

2
3
4
-- -x
1
=
x

1
4x
1
4x
2
4 + =
x

2
3
4
--- x
1
=
x

1
x

2
4 4
3 4 ' 0
x
1
x
2
4
0
u
0
t ( ) + =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-7
Copyright Orchard Publications
Simulink and its Relation to MATLAB
Then,
(B.24)
and
(B.25)
Modeling the Differential Equation of Example B.1 with Simulink
To run Simulink, we must first invoke MATLAB. Make sure that Simulink is installed in your sys-
tem. In the MATLAB Command prompt, we type:
simulink
Alternately, we can click on the Simulink icon shown in Figure B.3. It appears on the top bar on
MATLABs Command prompt.
Figure B.3. The Simulink icon
Upon execution of the Simulink command, the Commonly Used Blocks appear as shown in Fig-
ure B.4.
In Figure B.4, the left side is referred to as the Tree Pane and displays all Simulink libraries
installed. The right side is referred to as the Contents Pane and displays the blocks that reside in
the library currently selected in the Tree Pane.
Let us express the differential equation of Example B.1 as
(B.26)
A block diagram representing relation (B.26) above is shown in Figure B.5. We will use Simulink
to draw a similar block diagram.
*
* Henceforth, all Simulink block diagrams will be referred to as models.
x
1
x
2
e
t
e
3t
1 0.75 e
t
0.25e
3t
+
=
x
1
i
L
e
t
e
3t
= =
x
2
v
C
1 0.75e
t
0.25e
3t
+ = =
d
2
v
C
dt
2
----------- 4
dv
C
dt
--------- 3v
C
3u
0
t ( ) + =
Introduction to Simulink
B-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure B.4. The Simulink Library Browser
Figure B.5. Block diagram for equation (B.26)
To model the differential equation (B.26) using Simulink, we perform the following steps:
1. On the Simulink Library Browser, we click on the leftmost icon shown as a blank page on the
top title bar. A new model window named untitled will appear as shown in Figure B.6.
3
u
0
t ( )
Z
dt

dt

-4
-3
d
2
v
C
dt
2
-----------
dv
C
dt
---------
v
C
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-9
Copyright Orchard Publications
Simulink and its Relation to MATLAB
Figure B.6. The Untitled model window in Simulink.
The window of Figure B.6 is the model window where we enter our blocks to form a block dia-
gram. We save this as model file name Equation_1_26. This is done from the File drop menu of
Figure B.6 where we choose Save as and name the file as Equation_1_26. Simulink will add
the extension .mdl. The new model window will now be shown as Equati on_1_26, and all
saved files will have this appearance. See Figure B.7.
Figure B.7. Model window for Equation_1_26.mdl file
2. With the Equation_1_26 model window and the Simulink Library Browser both visible, we
click on the Sources appearing on the left side list, and on the right side we scroll down until
we see the unit step function shown as Step. See Figure B.8. We select it, and we drag it into
the Equation_1_26 model window which now appears as shown in Figure B.8. We save file
Equation_1_26 using the File drop menu on the Equation_1_26 model window (right side of
Figure B.8).
3. With reference to block diagram of Figure B.5, we observe that we need to connect an ampli-
fier with Gain 3 to the unit step function block. The gain block in Simulink is under Com-
monly Used Blocks (first item under Simulink on the Simulink Library Browser). See Figure
B.8. If the Equation_1_26 model window is no longer visible, it can be recalled by clicking on
the white page icon on the top bar of the Simulink Library Browser.
4. We choose the gain block and we drag it to the right of the unit step function. The triangle on
the right side of the unit step function block and the > symbols on the left and right sides of
the gain block are connection points. We point the mouse close to the connection point of the
unit step function until is shows as a cross hair, and draw a straight line to connect the two
Introduction to Simulink
B-10 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
blocks.
*
We double-click on the gain block and on the Function Block Parameters, we
change the gain from 1 to 3. See Figure B.9.
Figure B.8. Dragging the unit step function into File Equation_1_26
Figure B.9. File Equation_1_26 with added Step and Gain blocks
* An easy method to interconnect two Simulink blocks by clicking on the source block to select it, then hold down
the Ctrl key and left-click on the destination block.
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-11
Copyright Orchard Publications
Simulink and its Relation to MATLAB
5. Next, we need to add a thee-input adder. The adder block appears on the right side of the
Simulink Library Browser under Math Operations. We select it, and we drag it into the
Equation_1_26 model window. We double click it, and on the Function Block Parameters
window which appears, we specify 3 inputs. We then connect the output of the of the gain
block to the first input of the adder block as shown in Figure B.10.
Figure B.10. File Equation_1_26 with added gain block
6. From the Commonly Used Blocks of the Simulink Library Browser, we choose the Integra-
tor block, we drag it into the Equation_1_26 model window, and we connect it to the output
of the Add block. We repeat this step and to add a second Integrator block. We click on the
text Integrator under the first integrator block, and we change it to Integrator 1. Then, we
change the text Integrator 1 under the second Integrator to Integrator 2 as shown in Fig-
ure B.11.
Figure B.11. File Equation_1_26 with the addition of two integrators
7. To complete the block diagram, we add the Scope block which is found in the Commonly
Used Blocks on the Simulink Library Browser, we click on the Gain block, and we copy and
paste it twice. We flip the pasted Gain blocks by using the Flip Block command from the For-
mat drop menu, and we label these as Gain 2 and Gain 3. Finally, we double-click on these
gain blocks and on the Function Block Parameters window, we change the gains from to -4
and -3 as shown in Figure B.12.
Figure B.12. File Equation_1_26 complete block diagram
Introduction to Simulink
B-12 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
8. The initial conditions , and are entered by double
clicking the Integrator blocks and entering the values for the first integrator, and for the
second integrator. We also need to specify the simulation time. This is done by specifying the
simulation time to be seconds on the Configuration Parameters from the Simulation drop
menu. We can start the simulation on Start from the Simulation drop menu or by clicking on
the icon.
9. To see the output waveform, we double click on the Scope block, and then clicking on the
Autoscale icon, we obtain the waveform shown in Figure B.13.
Figure B.13. The waveform for the function for Example B.1
Another easier method to obtain and display the output for Example B.1, is to use State-
Space block from Continuous in the Simulink Library Browser, as shown in Figure B.14.
Figure B.14. Obtaining the function for Example B.1 with the State-Space block.
i
L
0
-
( ) C
dv
C
dt
---------
t 0 =
0 = = v
c
0
-
( ) 0.5 V =
0 0.5
10
v
C
t ( )
v
C
t ( )
v
C
t ( )
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-13
Copyright Orchard Publications
Simulink and its Relation to MATLAB
The simout To Workspace block shown in Figure B.14 writes its input to the workspace. The
data and variables created in the MATLAB Command window, reside in the MATLAB Work-
space. This block writes its output to an array or structure that has the name specified by the
block's Variable name parameter. This gives us the ability to delete or modify selected variables.
We issue the command who to see those variables. From Equation B.23, Page B-6,
The output equation is
or
We double-click on the State-Space block, and in the Functions Block Parameters window we
enter the constants shown in Figure B.15.
Figure B.15. The Function block parameters for the State-Space block.
x

1
x

2
4 4
3 4 ' 0
x
1
x
2
4
0
u
0
t ( ) + =
y Cx du + =
y 0 1 [ ]
x
1
x
2
0 [ ]u + =
Introduction to Simulink
B-14 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
The initials conditions are specified in MATLABs Command prompt as
x1=0; x2=0.5;
As before, to start the simulation we click clicking on the icon, and to see the output wave-
form, we double click on the Scope block, and then clicking on the Autoscale icon, we
obtain the waveform shown in Figure B.16.
Figure B.16. The waveform for the function for Example B.1 with the State-Space block.
The state-space block is the best choice when we need to display the output waveform of three or
more variables as illustrated by the following example.
Example B.2
A fourth-order network is described by the differential equation
(B.27)
where is the output representing the voltage or current of the network, and is any input,
and the initial conditions are .
a. We will express (B.27) as a set of state equations
x1 x2 [ ]'
v
C
t ( )
d
4
y
dt
4
--------- a
3
d
3
y
dt
3
--------- a
2
d
2
y
dt
2
-------- a
1
dy
dt
------ a
0
y t ( ) + + + + u t ( ) =
y t ( ) u t ( )
y 0 ( ) y' 0 ( ) y'' 0 ( ) y''' 0 ( ) 0 = = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-15
Copyright Orchard Publications
Simulink and its Relation to MATLAB
b. It is known that the solution of the differential equation
(B.28)
subject to the initial conditions , has the solution
(B.29)
In our set of state equations, we will select appropriate values for the coefficients
so that the new set of the state equations will represent the differential equa-
tion of (B.28), and using Simulink, we will display the waveform of the output .
1. The differential equation of (B.28) is of fourth-order; therefore, we must define four state vari-
ables that will be used with the four first-order state equations.
We denote the state variables as , and , and we relate them to the terms of the
given differential equation as
(B.30)
We observe that
(B.31)
and in matrix form
(B.32)
In compact form, (B.32) is written as
(B.33)
Also, the output is
(B.34)
where
d
4
y
dt
4
-------- 2
d
2
y
dt
2
-------- y t ( ) + + t sin =
y 0 ( ) y' 0 ( ) y'' 0 ( ) y''' 0 ( ) 0 = = = =
y t ( ) 0.125 3 t
2
( ) 3t t cos [ ] =
a
3
a
2
a
1
and a
0
, , ,
y t ( )
x
1
x
2
x
3
, , x
4
x
1
y t ( ) = x
2
dy
dt
------ = x
3
d
2
y
dt
2
--------- = x
4
d
3
y
dt
3
--------- =
x

1
x
2
=
x

2
x
3
=
x

3
x
4
=
d
4
y
dt
4
--------- x

4
a
0
x
1
a
1
x
2
a
2
x
3
a
3
x
4
u t ( ) + = =
x

1
x

2
x

3
x

4
0 1 0 0
0 0 1 0
0 0 0 1
a
0
a
1
a
2
a
3

x
1
x
2
x
3
x
4
0
0
0
1
u t ( ) + =
x

Ax bu + =
y Cx du + =
Introduction to Simulink
B-16 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
(B.35)
and since the output is defined as
relation (B.34) is expressed as
(B.36)
2. By inspection, the differential equation of (B.27) will be reduced to the differential equation of
(B.28) if we let
and thus the differential equation of (B.28) can be expressed in state-space form as
(B.37)
where
(B.38)
Since the output is defined as
in matrix form it is expressed as
x

1
x

2
x

3
x

4
= A
0 1 0 0
0 0 1 0
0 0 0 1
a
0
a
1
a
2
a
3

= x
x
1
x
2
x
3
x
4
= b
0
0
0
1
and u , = , , , u t ( ) =
y t ( ) x
1
=
y 1 0 0 0 [ ]
x
1
x
2
x
3
x
4
0 [ ]u t ( ) + =
a
3
0 = a
2
2 = a
1
0 = a
0
1 = u t ( ) t sin =
x

1
x

2
x

3
x

4
0 1 0 0
0 0 1 0
0 0 0 1
a
0
0 2 0
x
1
x
2
x
3
x
4
0
0
0
1
t sin + =
x

1
x

2
x

3
x

4
= A
0 1 0 0
0 0 1 0
0 0 0 1
a
0
0 2 0
= x
x
1
x
2
x
3
x
4
= b
0
0
0
1
and u , = , , , t sin =
y t ( ) x
1
=
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-17
Copyright Orchard Publications
Simulink and its Relation to MATLAB
(B.39)
We invoke MATLAB, we start Simulink by clicking on the Simulink icon, on the Simulink
Library Browser we click on the Create a new model (blank page icon on the left of the top
bar), and we save this model as Example_1_2. On the Simulink Library Browser we select
Sources, we drag the Signal Generator block on the Example_1_2 model window, we click
and drag the State-Space block from the Continuous on Simulink Library Browser, and we
click and drag the Scope block from the Commonly Used Blocks on the Simulink Library
Browser. We also add the Display block found under Sinks on the Simulink Library
Browser. We connect these four blocks and the complete block diagram is as shown in Figure
B.17.
Figure B.17. Block diagram for Example B.2
We now double-click on the Signal Generator block and we enter the following in the Func-
tion Block Parameters:
Wave form: sine
Time (t): Use simulation time
Amplitude: 1
Frequency: 2
Units: Hertz
Next, we double-click on the state-space block and we enter the following parameter values
in the Function Block Parameters:
A: [0 1 0 0; 0 0 1 0; 0 0 0 1; -a0 -a1 -a2 -a3]
B: [0 0 0 1]
C: [1 0 0 0]
D: [0]
Initial conditions: x0
y 1 0 0 0 [ ]
x
1
x
2
x
3
x
4
0 [ ] t sin + =
Introduction to Simulink
B-18 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Absolute tolerance: auto
Now, we switch to the MATLAB Command prompt and we type the following:
>> a0=1; a1=0; a2=2; a3=0; x0=[0 0 0 0];
We change the Simulation Stop time to , and we start the simulation by clicking on the
icon. To see the output waveform, we double click on the Scope block, then clicking on the
Autoscale icon, we obtain the waveform shown in Figure B.18.
Figure B.18. Waveform for Example B.2
The Display block in Figure B.17 shows the value at the end of the simulation stop time.
Examples B.1 and B.2 have clearly illustrated that the State-Space is indeed a powerful block. We
could have obtained the solution of Example B.2 using four Integrator blocks by this approach
would have been more time consuming.

Example B.3
Using Algebraic Constraint blocks found in the Math Operations library, Display blocks found
in the Sinks library, and Gain blocks found in the Commonly Used Blocks library, we will create
a model that will produce the simultaneous solution of three equations with three unknowns.
The model will display the values for the unknowns , , and in the system of the equations
(B.40)
25
z
1
z
2
z
3
a
1
z
1
a
2
z
2
a
3
z
3
k
1
+ + + 0 =
a
4
z
1
a
5
z
2
a
6
z
3
k
2
+ + + 0 =
a
7
z
1
a
8
z
2
a
9
z
3
k
3
+ + + 0 =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling B-19
Copyright Orchard Publications
Simulink and its Relation to MATLAB
The model is shown in Figure B.19.
Figure B.19. Model for Example B.3
Next, we go to MATLABs Command prompt and we enter the following values:
a1=2; a2=-3; a3=-1; a4=1; a5=5; a6=4; a7=-6; a8=1; a9=2;...
k1=-8; k2=-7; k3=5;
After clicking on the simulation icon, we observe the values of the unknowns as ,
, and .These values are shown in the Display blocks of Figure B.19.
The Algebraic Constraint block constrains the input signal to zero and outputs an algebraic
state . The block outputs the value necessary to produce a zero at the input. The output must
affect the input through some feedback path. This enables us to specify algebraic equations for
index 1 differential/algebraic systems (DAEs). By default, the Initial guess parameter is zero. We
can improve the efficiency of the algebraic loop solver by providing an Initial guess for the alge-
braic state z that is close to the solution value.
z
1
2 =
z
2
3 = z
3
5 =
f z ( )
z
Introduction to Simulink
B-20 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
An outstanding feature in Simulink is the representation of a large model consisting of many
blocks and lines, to be shown as a single Subsystem block.
*
For instance, we can group all blocks
and lines in the model of Figure B.19 except the display blocks, we choose Create Subsystem
from the Edit menu, and this model will be shown as in Figure B.20

where in MATLABs Com-


mand prompt we have entered:
a1=5; a2=-1; a3=4; a4=11; a5=6; a6=9; a7=-8; a8=4; a9=15;...
k1=14; k2=-6; k3=9;
Figure B.20. The model of Figure B.19 represented as a subsystem
The Display blocks in Figure B.20 show the values of , , and for the values specified at the
MATLAB command prompt.
B.2 Simulink Demos
At this time, the reader with no prior knowledge of Simulink, should be ready to learn Simulinks
additional capabilities. It is highly recommended that the reader becomes familiar with the block
libraries found in the Simulink Library Browser. Then, the reader can follow the steps delineated
in The MathWorks Simulink Users Manual to run the Demo Models beginning with the thermo
model. This model can be seen by typing
thermo
at the MATLAB command prompt.
* The Subsystem block is described in detail in Chapter 2, Section 2.1, Page 2-2, Introduction to Simulink with
Engineering Applications, 978-1-934404-09-6.
The contents of the Subsystem block are not lost. We can double-click on the Subsystem block to see its con-
tents. The Subsystem block replaces the inputs and outputs of the model with Inport and Outport blocks. These
blocks are described in Section 2.1, Chapter 2, Page 2-2, Introduction to Simulink with Engineering Applica-
tions, ISBN 978-1-934404-09-6.
z
1
z
2
z
3
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling C-1
Copyright Orchard Publications
Appendix C
Introduction to SimPowerSystems

his appendix is a brief introduction to SimPowerSystems

blockset that operates in the


Simulink

environment. An introduction to Simulink is presented in Appendix B. For


additional help with Simulink, please refer to the Simulink documentation.
C.1 Simulation of Electric Circuits with SimPowerSystems
As stated in Appendix B, the MATLAB

and Simulink

environments are integrated into one


entity, and thus we can analyze, simulate, and revise our models in either environment at any
point. We can invoke Simulink from within MATLAB or by typing simulink at the MATLAB
command prompt, and we can invoke SimPowerSystems from within Simulink or by typing pow-
erlib at the MATLAB command prompt. We will introduce SimPowerSystems with two illus-
trated examples, a DC electric circuit, and an AC electric circuit
Example C.1
For the simple resistive circuit in Figure C.1, , , and . From the volt-
age division expression, and from Ohms law,
.
Figure C.1. Circuit for Example C.1
To model the circuit in Figure C.1, we enter the following command at the MATLAB prompt.
powerlib
and upon execution of this command, the powerlib window shown in Figure C.2 is displayed.
From the File menu in Figure C.2, we open a new window and we name it Sim_Fig_C3 as shown
in Figure C.3.
T
v
S
12v = R
1
7O = R
2
5O =
v
R2
R
2
v
S
R
1
R
2
+ ( ) ' 5 12 12 ' 5v = = =
i v
S
R
1
R
2
+ ( ) ' 1A = =
+
-
v
S
R
2
R
1
i




Introduction to SimPowerSystems
C-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure C.2. Library blocks for SimPowerSystems
Figure C.3. New window for modeling the circuit shown in Figure C.1
The powergui block in Figure C.2 is referred to as the Environmental block for SimPowerSys-
tems models and it must be included in every model containing SimPowerSystems blocks.
Accordingly, we begin our model by adding this block as shown in Figure C.4.
We observe that in Figure C.4, the powergui block is named Continuous. This is the default
method of solving an electric circuit and uses a variable step Simulink solver. Other methods are
the Discrete method used when the discretization of the system at fixed time steps is desired, and
the Phasors method which performs phasor simulation at the frequency specified by the Phasor
frequency parameter. These methods are described in detail in the SimPowerSystems documen-
tation.
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling C-3
Copyright Orchard Publications
Simulation of Electric Circuits with SimPowerSystems
Figure C.4. Window with the addition of the powergui block
Next, we need to the components of the electric circuit shown in Figure C.1. From the Electrical
Sources library in Figure C.2 we select the DC Voltage Source block and drag it into the model,
from the Elements library we select and drag the Series RLC Branch block and the Ground
block, from the Measurements library we select the Current Measurement and the Voltage
Measurement blocks, and from the Simulink Sinks library we select and drag the Display block.
The model now appears as shown in Figure C.5.
Figure C.5. The circuit components for our model
From the Series RLC Branch block we only need the resistor, and to eliminate the inductor and
the capacitor, we double click it and from the Block Parameters window we select the R compo-
nent with value set at as shown in Figure C.6. 7 O
Introduction to SimPowerSystems
C-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure C.6. The Block Parameters window for the Series RLC Branch
We need two resistors for our model and thus we copy and paste the resistor into the model, using
the Block Parameters window we change its value to , and from the Format drop window we
click the Rotate block option and we rotate it clockwise. We also need two Display blocks, one
for the current measurement and the second for the voltage measurement and thus we copy and
paste the Display block into the model. We also copy and paste twice the Ground block and the
model is now as shown in Figure C.7 where we also have renamed the blocks to shorter names.
Figure C.7. Model with blocks renamed
From Figure C.7 above, we observe that both terminals of the voltage source and the resistors are
shown with small square ( ) ports, the left ports of the CM (Current Measurement), and VM
(Voltage Measurement) are also shown with ports, but the terminals on the right are shown with
the Simulink output ports as >. The rules for the SimPowerSystems electrical terminal ports
and connection lines are as follows:
5 O
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling C-5
Copyright Orchard Publications
Simulation of Electric Circuits with SimPowerSystems
1. We can connect Simulink ports (>) only to other Simulink ports.
2. We can connect SimPowerSystems ports ( ) only to other SimPowerSystems ports.
*
3. If it is necessary to connect Simulink ports (>) to SimPowerSystems ports ( ), we can use
SimPowerSystems blocks that contain both Simulink and SimPowerSystems ports such as the
Current Measurement (CM) block and the Voltage Measurement (VM) block shown in Fig-
ure C.7.
The model for the electric circuit in Figure C.1 is shown in Figure C.8.
Figure C.8. The final form of the SimPowerSystems model for the electric circuit in Figure C.1
For the model in Figure C.8 we used the DC Voltage Source block. The SimPowerSystems doc-
umentation states that we can also use the AC Voltage Source block as a DC Voltage Source
block provided that we set the frequency at and the phase at in the Block
Parameters window as shown in Figure C.9.
* As in Simulink, we can autoconnect two SimPowerSystems blocks by selecting the source block, then holding
down the Ctrl key, and left-clicking the destination block.
0 Hz 90 degrees
Introduction to SimPowerSystems
C-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure C.9. Block parameter settings when using an AC Voltage Source block as a DC Voltage Source
Figure C.10. Model with AC Voltage Source used as DC Voltage Source
A third option is to use a Controlled Voltage Source block with a Constant block set to the
numerical value of the DC voltage Source as shown in the model of Figure C.11.
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling C-7
Copyright Orchard Publications
Simulation of Electric Circuits with SimPowerSystems
Figure C.11. Model with Controlled Voltage Source block
Example C.2
Consider the AC electric circuit in Figure C.12
Figure C.12. Electric circuit for Example C.2
The current I and the voltage Vc across the capacitor are computed with MATLAB as follows:
Vs=120; f=60; R=1; L=0.2; C=10^(-3); XL=2*pi*f*L; XC=1/(2*pi*f*C);...
Z=sqrt(R^2+(XL-XC)^2); I=Vs/Z, Vc=XC*I
I =
1. 6494
Vc =
4. 3752
The SimPowerSystems model and the waveforms for the current I and the voltage Vc are shown
in Figures C.13 and C.14 respectively.
V
S
I
0.2H
C
120 0 V Z
1 O
L R
10
3
F
60 Hz
Introduction to SimPowerSystems
C-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure C.13. SimPowerSystems model for the electric circuit in Figure C.12
Figure C.14. Waveforms for the current I and voltage Vc across the capacitor in Figure C.12
The same results are obtained if we replace the applied AC voltage source block in the model of
Figure C.13 with a Controlled Voltage Source (CVS) block as shown in Figure C.15.
Figure C.15. The model in Figure C.13 with the AC Voltage Source block replaced with a CVS block
Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling D-1
Copyright Orchard Publications
Appendix D
Review of Complex Numbers
his appendix is a review of the algebra of complex numbers. The basic operations are
defined and illustrated by several examples. Applications using Eulers identities are pre-
sented, and the exponential and polar forms are discussed and illustrated with examples.
D.1 Definition of a Complex Number
In the language of mathematics, the square root of minus one is denoted as , that is, .
In the electrical engineering field, we denote as to avoid confusion with current . Essentially,
is an operator that produces a 90-degree counterclockwise rotation to any vector to which it is
applied as a multiplying factor. Thus, if it is given that a vector has the direction along the
right side of the x-axis as shown in Figure D.1, multiplication of this vector by the operator will
result in a new vector whose magnitude remains the same, but it has been rotated counter-
clockwise by .
Figure D.1. The j operator
Also, another multiplication of the new vector by will produce another counterclock-
wise direction. In this case, the vector has rotated and its new value now is . When
this vector is rotated by another for a total of , its value becomes . A
fourth rotation returns the vector to its original position, and thus its value is again .
Therefore, we conclude that , , and .
T
i i 1 =
i j i
j
A
j
jA
90
x
y
jA
j jA ( ) j
2
A A = =
j A ( ) j
3
A jA = =
j jA ( ) j
2
A A = =
A
jA j 90
A 180 A
90 270 j A ( ) jA =
90 A
j
2
1 = j
3
j = j
4
1 =




Review of Complex Numbers
D-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling
Copyright Orchard Publications
Note: In our subsequent discussion, we will denote the x-axis (abscissa) as the real axis, and the
y-axis (ordinate) as the imaginary axis with the understanding that the imaginary axis is just as
real as the real axis. In other words, the imaginary axis is just as important as the real axis.
*
An imaginary number is the product of a real number, say , by the operator . Thus, is a real
number and is an imaginary number.
A complex number is the sum (or difference) of a real number and an imaginary number. For
example, the number where and are both real numbers, is a complex number.
Then, and where denotes real part of A, and
the imaginary part of .
By definition, two complex numbers and where and , are equal if
and only if their real parts are equal, and also their imaginary parts are equal. Thus, if and
only if and .
D.2 Addition and Subtraction of Complex Numbers
The sum of two complex numbers has a real component equal to the sum of the real components,
and an imaginary component equal to the sum of the imaginary components. For subtraction, we
change the signs of the components of the subtrahend and we perform addition. Thus, if
and
then
and
Example D.1
It is given that , and . Find and
Solution:
and
* We may think the real axis as the cosine axis and the imaginary axis as the sine axis.
r j r
jr
A a jb + = a b
a Re A { = b Im A { = Re A { b Im A { =
A
A B A a jb + = B c jd + =
A B =
a c = b d =
A a jb + = B c jd + =
A B + a c + ( ) j b d + ( ) + =
A B a c ( ) j b d ( ) + =
A 3 j4 + = B 4 j2 = A B + A B
A B + 3 j4 + ( ) = 4 j2 ( ) + 3 4 + ( ) j 4 2 ( ) + 7 j2 + = =
A B 3 j4 + ( ) = 4 j2 ( ) 3 4 ( ) j 4 2 + ( ) + 1 j6 + = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling D-3
Copyright Orchard Publications
Multiplication of Complex Numbers
D.3 Multiplication of Complex Numbers
Complex numbers are multiplied using the rules of elementary algebra, and making use of the
fact that . Thus, if
and
then
and since , it follows that
(D.1)
Example D.2
It is given that and . Find
Solution:
The conjugate of a complex number, denoted as , is another complex number with the same
real component, and with an imaginary component of opposite sign. Thus, if , then
.
Example D.3
It is given that . Find
Solution:
The conjugate of the complex number has the same real component, but the imaginary com-
ponent has opposite sign. Then,
If a complex number is multiplied by its conjugate, the result is a real number. Thus, if
, then
j
2
1 =
A a jb + = B c jd + =
A B a jb + ( ) c jd + ( ) ac jad jbc j
2
bd + + + = =
j
2
1 =
A B ac jad jbc b d + + =
ac bd ( ) j ad bc + ( ) + =
A 3 j4 + = B 4 j2 = A B
A B 3 j4 + ( ) 4 j2 ( ) 12 j6 j16 j
2
8 + 20 j10 + = = =
A
-
A a jb + =
A
-
a j b =
A 3 j5 + = A
-
A
A
-
3 j 5 =
A
A a jb + =
A A
-
a jb + ( ) a jb ( ) a
2
jab jab j
2
b
2
+ a
2
b
2
+ = = =
Review of Complex Numbers
D-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling
Copyright Orchard Publications
Example D.4
It is given that . Find
Solution:
D.4 Division of Complex Numbers
When performing division of complex numbers, it is desirable to obtain the quotient separated
into a real part and an imaginary part. This procedure is called rationalization of the quotient, and it
is done by multiplying the denominator by its conjugate. Thus, if and ,
then,
(D.2)
In (D.2), we multiplied both the numerator and denominator by the conjugate of the denomina-
tor to eliminate the j operator from the denominator of the quotient. Using this procedure, we see
that the quotient is easily separated into a real and an imaginary part.
Example D.5
It is given that , and . Find
Solution:
Using the procedure of (D.2), we obtain
D.5 Exponential and Polar Forms of Complex Numbers
The relations
(D.3)
and
A 3 j5 + = A A
-

A A
-
3 j5 + ( ) 3 j5 ( ) 3
2
5
2
+ 9 25 34 = + = = =
A a jb + = B c jd + =
A
B
----
a jb +
c jd +
--------------
a jb + ( ) c jd ( )
c jd + ( ) c jd ( )
-------------------------------------
A
B
----
B
-
B
-
-------
ac bd + ( ) j bc ad ( ) +
c
2
d
2
+
------------------------------------------------------ = = = =
ac bd + ( )
c
2
d
2
+
----------------------- j
bc ad ( )
c
2
d
2
+
---------------------- + =
A 3 j4 + = B 4 j3 + = A B '
A
B
----
3 j4 +
4 j3 +
--------------
3 j4 + ( ) 4 j3 ( )
4 j3 + ( ) 4 j3 ( )
--------------------------------------
12 j9 j16 12 + +
4
2
3
2
+
--------------------------------------------
24 j7 +
25
-----------------
24
25
------ j
7
25
------ + 0.96 j0.28 + = = = = = =
e
j0
0 j 0 sin + cos =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling D-5
Copyright Orchard Publications
Exponential and Polar Forms of Complex Numbers
(D.4)
are known as the Eulers identities.
Multiplying (D.3) by the real positive constant C we obtain:
(D.5)
This expression represents a complex number, say , and thus
(D.6)
where the left side of (D.6) is the exponential form, and the right side is the rectangular form.
Equating real and imaginary parts in (D.5) and (D.6), we obtain
(D.7)
Squaring and adding the expressions in (D.7), we obtain
Then,
or
(D.8)
Also, from (D.7)
or
(D.9)
To convert a complex number from rectangular to exponential form, we use the expression
(D.10)
To convert a complex number from exponential to rectangular form, we use the expressions
(D.11)
e
j0
0 j 0 sin cos =
Ce
j0
C 0 jC 0 sin + cos =
a jb +
Ce
j0
a jb + =
a C 0 cos = and b C 0 sin =
a
2
b
2
+ C 0 cos ( )
2
C 0 sin ( )
2
+ C
2
0
2
cos 0
2
sin + ( ) C
2
= = =
C
2
a
2
b
2
+ =
C a
2
b
2
+ =
b
a
---
C 0 sin
C 0 cos
--------------- 0 tan = =
0
b
a
---


1
tan =
a jb + a
2
b
2
+ e
j tan
1

b
a
---


=
Ce
j0
C 0 jC 0 sin + cos =
Ce
j0
C 0 j C 0 sin cos =
Review of Complex Numbers
D-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling
Copyright Orchard Publications
The polar form is essentially the same as the exponential form but the notation is different, that
is,
(D.12)
where the left side of (D.12) is the exponential form, and the right side is the polar form.
We must remember that the phase angle is always measured with respect to the positive real
axis, and rotates in the counterclockwise direction.
Example D.6
Convert the following complex numbers from rectangular
*
to exponential and polar forms:
a.
b.
c.
d.
Solution:
a. The real and imaginary components of this complex number are shown in Figure D.2.
Figure D.2. The components of
Then,
Check with MATLAB:
x=3+j*4; magx=abs(x); thetax=angle(x)*180/pi; disp(magx); disp(thetax)
5
* The rectangular form is also known as Cartesian form.
Ce
j0
C 0 Z =
0
3 j4 +
1 j2 +
2 j
4 j3
Re
Im
4
3
5
53.1
3 j4 +
3 j4 + 3
2
4
2
+ e
j
4
3
---
1
tan


5e
j53.1
5 53.1 Z = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling D-7
Copyright Orchard Publications
Exponential and Polar Forms of Complex Numbers
53. 1301
Check with the Simulink Complex to Magnitude-Angle block
*
shown in the Simulink
model of Figure D.3.
Figure D.3. Simulink model for Example D.6a
b. The real and imaginary components of this complex number are shown in Figure D.4.
Figure D.4. The components of
Then,
Check with MATLAB:
y=-1+j*2; magy=abs(y); thetay=angle(y)*180/pi; disp(magy); disp(thetay)
2. 2361
116. 5651
c. The real and imaginary components of this complex number are shown in Figure D.5.
* For a detailed description and examples with this and other related transformation blocks, please refer to Intro-
duction to Simulink with Engineering Applications, ISBN 978-1-934404-09-6.
Re
Im
2
-1
116.6
63.4
5
1 j2 +
1 j2 + 1
2
2
2
+ e
j
2
1
------
1
tan


5e
j116.6
5 116.6 Z = = =
Re
Im
-2
-1
206.6
-153.4(Measured
26.6
Clockwise) 5
Review of Complex Numbers
D-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling
Copyright Orchard Publications
Figure D.5. The components of
Then,
Check with MATLAB:
v=-2-j*1; magv=abs(v); thetav=angle(v)*180/pi; disp(magv); disp(thetav)
2. 2361
- 153. 4349
d. The real and imaginary components of this complex number are shown in Figure D.6.
Figure D.6. The components of
Then,
Check with MATLAB:
w=4-j*3; magw=abs(w); thetaw=angle(w)*180/pi; disp(magw); disp(thetaw)
5
- 36. 8699
Example D.7
Express the complex number in exponential and in rectangular forms.
Solution:
We recall that . Since each rotates a vector by counterclockwise, then is
the same as rotated counterclockwise by . Therefore,
2 j
2 j 1 2
2
1
2
+ e
j
1
2
------
1
tan


5e
j206.6
= = 5 206.6 Z 5e
j 153.4 ( )
5 153.4 Z = = =
Re
Im
4
-3
5
323.1
-36.9
4 j3
4 j 3 4
2
3
2
+ e
j
3
4
------
1
tan


5e
j323.1
= = 5 323.1 Z 5e
j36.9
5 36.9 Z = = =
2 30 Z
1 j
2
= j 90 2 30 Z
2 30 Z 180
2 30 Z 2 30 180 + ( ) Z 2 210 Z 2 150 Z = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling D-9
Copyright Orchard Publications
Exponential and Polar Forms of Complex Numbers
The components of this complex number are shown in Figure D.7.
Figure D.7. The components of
Then,
Note: The rectangular form is most useful when we add or subtract complex numbers; however,
the exponential and polar forms are most convenient when we multiply or divide complex
numbers.
To multiply two complex numbers in exponential (or polar) form, we multiply the magnitudes
and we add the phase angles, that is, if
then,
(D.13)
Example D.8
Multiply by
Solution:
Multiplication in polar form yields
and multiplication in exponential form yields
To divide one complex number by another when both are expressed in exponential or polar
form, we divide the magnitude of the dividend by the magnitude of the divisor, and we subtract
the phase angle of the divisor from the phase angle of the dividend, that is, if
Re
Im
-1.73
-1
210
2
-150(Measured
30
Clockwise)
2 150 Z
2 150 Z 2e
j 150
= 2 150 j 150 sin cos ( ) 2 0.866 j0.5 ( ) 1.73 j = = =
A M 0 Z = and B N o Z =
AB MN 0 o + ( ) Z Me
j0
Ne
jo
MNe
j 0 o + ( )
= = =
A 10 53.1 Z = B 5 36.9 Z =
AB 10 5 ( ) 53.1 36.9 ( ) + [ ] Z 50 16.2 Z = =
AB 10e
j53.1
( ) 5e
j 36.9
( ) 50e
j 53.1 36.9 ( )
50e
j16.2
= = =
Review of Complex Numbers
D-10 Circuit Analysis II with MATLAB

Computing and Simulink / SimPower Systems

Modeling
Copyright Orchard Publications
then,
(D.14)
Example D.9
Divide by
Solution:
Division in polar form yields
Division in exponential form yields
A M 0 Z = and B N o Z =
A
B
----
M
N
----- 0 o ( ) Z
Me
j0
Ne
jo
-------------
M
N
----e
j 0 o ( )
= = =
A 10 53.1 Z = B 5 36.9 Z =
A
B
----
10 53.1 Z
5 36.9 Z
------------------------ 2 53.1 36.9 ( ) [ ] Z 2 90 Z = = =
A
B
----
10e
j53.1
5e
j36.9
--------------------- 2e
j53.1
e
j36.9
2e
j90
= = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-1
Copyright Orchard Publications
Appendix E
Matrices and Determinants
his appendix is an introduction to matrices and matrix operations. Determinants, Cramers
rule, and Gausss elimination method are reviewed. Some definitions and examples are not
applicable to the material presented in this text, but are included for subject continuity,
and academic interest. They are discussed in detail in matrix theory textbooks. These are
denoted with a dagger () and may be skipped.
E.1 Matrix Definition
A matrix is a rectangular array of numbers such as those shown below.
In general form, a matrix A is denoted as
(E.1)
The numbers are the elements of the matrix where the index indicates the row, and indi-
cates the column in which each element is positioned. For instance, indicates the element
positioned in the fourth row and third column.
A matrix of rows and columns is said to be of order matrix.
If , the matrix is said to be a square matrix of order (or ). Thus, if a matrix has five
rows and five columns, it is said to be a square matrix of order 5.
T
2 3 7
1 1 5
or
1 3 1
2 1 5
4 7 6
A
a
11
a
12
a
13
. a
1n
a
21
a
22
a
23
. a
2n
a
31
a
32
a
33
. a
3n
. . . . .
a
m1
a
m2
a
m3
. a
mn
=
a
ij
i j
a
43
m n m n
m n = m n




Appendix E Matrices and Determinants
E-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
In a square matrix, the elements are called the main diagonal elements.
Alternately, we say that the matrix elements , are located on the main
diagonal.
The sum of the diagonal elements of a square matrix is called the trace
*
of .
A matrix in which every element is zero, is called a zero matrix.
E.2 Matrix Operations
Two matrices and are equal, that is, , if and only if
(E.2)
Two matrices are said to be conformable for addition (subtraction), if they are of the same order
.
If and are conformable for addition (subtraction), their sum (difference) will
be another matrix with the same order as and , where each element of is the sum (dif-
ference) of the corresponding elements of and , that is,
(E.3)
Example E.1
Compute and given that
and
Solution:
and
* Henceforth, all paragraphs and topics preceded by a dagger ( ) may be skipped. These are discussed in matrix
theory textbooks.
a
11
a
22
a
33
. a
nn
, , , ,
a
11
a
22
a
33
. a
nn
, , , ,
A A
A
a
ij
= B
b
ij
= A B =
a
ij
b
ij
= i 1 2 3 . m , , , , = j 1 2 3 . n , , , , =
m n
A
a
ij
= B
b
ij
=
C A B C
A B
C A B a
ij
b
ij
[ ] = =
A B + A B
A
1 2 3
0 1 4
= B
2 3 0
1 2 5
=
A B +
1 2 + 2 3 + 3 0 +
0 1 1 2 + 4 5 +
3 5 3
1 3 9
= =
A B
1 2 2 3 3 0
0 1 + 1 2 4 5
1 1 3
1 1 1
= =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-3
Copyright Orchard Publications
Matrix Operations
Check with MATLAB:
A=[1 2 3; 0 1 4]; B=[2 3 0; -1 2 5]; % Define matrices A and B
A+B, A-B % Add A and B, then Subtract B from A
a ns =
3 5 3
- 1 3 9
a ns =
- 1 - 1 3
1 - 1 - 1
Check with Simulink:
If is any scalar (a positive or negative number), and not which is a matrix, then mul-
tiplication of a matrix by the scalar is the multiplication of every element of by .
Example E.2
Multiply the matrix
by
a.
b.
Note: The elements of matrices
A and B are specified in
MATLAB's Command prompt
Sum 2
Sum 1
-1
1
-1
-1
3
-1
Display 2 (A-B)
3
-1
5
3
3
9
Display 1 (A+B)
B
Constant 2
A
Constant 1
k k [ ] 1 1
A k A k
A
1 2
2 3
=
k
1
5 =
k
2
3 j2 + =
Appendix E Matrices and Determinants
E-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
a.
b.
Check with MATLAB:
k1=5; k2=(-3 + 2*j); % Define scalars k
1
and k
2
A=[1 -2; 2 3]; % Define matrix A
k1*A, k2*A % Multiply matrix A by scalars k
1
and k
2
a ns =
5 - 10
10 15
a ns =
- 3. 0000+ 2. 0000i 6. 0000- 4. 0000i
- 6. 0000+ 4. 0000i - 9. 0000+ 6. 0000i
Two matrices and are said to be conformable for multiplication in that order, only
when the number of columns of matrix is equal to the number of rows of matrix . That is, the
product (but not ) is conformable for multiplication only if is an matrix and
matrix is an matrix. The product will then be an matrix. A convenient way
to determine if two matrices are conformable for multiplication is to write the dimensions of the
two matrices side-by-side as shown below.

For the product we have:
k
1
A 5
1 2
2 3

5 1 5 2 ( )
5 2 5 3
5 10
10 15
= = =
k
2
A 3 j2 + ( )
1 2
2 3

3 j2 + ( ) 1 3 j2 + ( ) 2 ( )
3 j2 + ( ) 2 3 j2 + ( ) 3
3 j2 + 6 j4
6 j4 + 9 j6 +
= = =
A B A B
A B
A B B A A m p
B p n A B m n
m p p n
A B
Shows that A and B are conformable for multiplication
Indicates the dimension of the product A B
B A
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-5
Copyright Orchard Publications
Matrix Operations
For matrix multiplication, the operation is row by column. Thus, to obtain the product , we
multiply each element of a row of by the corresponding element of a column of ; then, we
add these products.
Example E.3
Matrices and are defined as
and
Compute the products and
Solution:
The dimensions of matrices and are respectively ; therefore the product is
feasible, and will result in a , that is,
The dimensions for and are respectively and therefore, the product is
also feasible. Multiplication of these will produce a matrix as follows:
Check with MATLAB:
C=[2 3 4]; D=[1 -1 2]; % Define matrices C and D. Observe that D is a column vector
C*D, D*C % Multiply C by D, then multiply D by C
a ns =
7
Here, B and A are not conformable for multiplication
B A
p n m p
A B
A B
C D
C
2 3 4
= D
1
1
2
=
C D D C
C D 1 3 3 1 C D
1 1
C D
2 3 4
1
1
2
2 ( ) 1 ( ) 3 ( ) 1 ( ) 4 ( ) 2 ( ) + + 7
= = =
D C 3 1 1 3 D C
3 3
D C
1
1
2
2 3 4
1 ( ) 2 ( ) 1 ( ) 3 ( ) 1 ( ) 4 ( )
1 ( ) 2 ( ) 1 ( ) 3 ( ) 1 ( ) 4 ( )
2 ( ) 2 ( ) 2 ( ) 3 ( ) 2 ( ) 4 ( )
2 3 4
2 3 4
4 6 8
= = =
Appendix E Matrices and Determinants
E-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
a ns =
2 3 4
- 2 - 3 - 4
4 6 8
Division of one matrix by another, is not defined. However, an analogous operation exists, and it
will become apparent later in this chapter when we discuss the inverse of a matrix.
E.3 Special Forms of Matrices
A square matrix is said to be upper triangular when all the elements below the diagonal are
zero. The matrix of (E.4) is an upper triangular matrix. In an upper triangular matrix, not
all elements above the diagonal need to be non-zero.
(E.4)
A square matrix is said to be lower triangular, when all the elements above the diagonal are
zero. The matrix of (E.5) is a lower triangular matrix. In a lower triangular matrix, not all
elements below the diagonal need to be non-zero.
(E.5)
A square matrix is said to be diagonal, if all elements are zero, except those in the diagonal. The
matrix of (E.6) is a diagonal matrix.
A
A
a
11
a
12
a
13
. a
1n
0 a
22
a
23
. a
2n
0 0 . . .
. . 0 . .
0 0 0 . a
mn
=
B
B
a
11
0 0 . 0
a
21
a
22
0 . 0
. . . 0 0
. . . . 0
a
m1
a
m2
a
m3
. a
mn
=
C
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-7
Copyright Orchard Publications
Special Forms of Matrices
(E.6)
A diagonal matrix is called a scalar matrix, if where is a
scalar. The matrix of (E.7) is a scalar matrix with .
(E.7)
A scalar matrix with , is called an identity matrix . Shown below are , , and
identity matrices.
(E.8)
The MATLAB eye(n) function displays an identity matrix. For example,
eye(4) % Display a 4 by 4 identity matrix
a ns =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
Likewise, the eye(size(A)) function, produces an identity matrix whose size is the same as matrix
. For example, let matrix be defined as
A=[1 3 1; -2 1 -5; 4 -7 6] % Define matrix A
A =
1 3 1
- 2 1 - 5
4 - 7 6
C
a
11
0 0 . 0
0 a
22
0 . 0
0 0 . 0 0
0 0 0 . 0
0 0 0 . a
mn
=
a
11
a
22
a
33
. a
nn
k = = = = = k
D k 4 =
D
4 0 0 0
0 4 0 0
0 0 4 0
0 0 0 4
=
k 1 = I 2 2 3 3
4 4
1 0
0 1
1 0 0
0 1 0
0 0 1
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
n n
A A
Appendix E Matrices and Determinants
E-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Then,
eye(size(A))
displays
a ns =
1 0 0
0 1 0
0 0 1
The transpose of a matrix , denoted as , is the matrix that is obtained when the rows and
columns of matrix are interchangeE. For example, if
(E.9)
In MATLAB, we use the apostrophe () symbol to denote and obtain the transpose of a matrix.
Thus, for the above example,
A=[1 2 3; 4 5 6] % Define matrix A
A =
1 2 3
4 5 6
A' % Display the transpose of A
a ns =
1 4
2 5
3 6
A symmetric matrix is a matrix such that , that is, the transpose of a matrix is the
same as . An example of a symmetric matrix is shown below.
(E.10)
If a matrix has complex numbers as elements, the matrix obtained from by replacing each
element by its conjugate, is called the conjugate of , and it is denoted as , for example,
A A
T
A
A
1 2 3
4 5 6
= then A
T
1 4
2 5
3 6
=
A A
T
A = A
A
A
1 2 3
2 4 5
3 5 6
= A
T
1 2 3
2 4 5
3 5 6
A = =
A A
A A
-
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-9
Copyright Orchard Publications
Special Forms of Matrices
MATLAB has two built-in functions which compute the complex conjugate of a number. The
first, conj (x), computes the complex conjugate of any complex number, and the second,
conj(A), computes the conjugate of a matrix . Using MATLAB with the matrix defined
as above, we obtain
A = [1+2j j; 3 2-3j] % Define and display matrix A
A =
1. 0000 + 2. 0000i 0 + 1. 0000i
3. 0000 2. 0000 - 3. 0000i
conj_A=conj(A) % Compute and display the conjugate of A
c onj _A =
1. 0000 - 2. 0000i 0 - 1. 0000i
3. 0000 2. 0000 + 3. 0000i
A square matrix such that is called skew-symmetric. For example,
Therefore, matrix above is skew symmetric.
A square matrix such that is called Hermitian. For example,
Therefore, matrix above is Hermitian.
A square matrix such that is called skew-Hermitian. For example,
Therefore, matrix above is skew-Hermitian.
A
1 j2 + j
3 2 j3
= A
-
1 j2 j
3 2 j3 +
=
A A
A A
T
A =
A
0 2 3
2 0 4
3 4 0
= A
T
0 2 3
2 0 4
3 4 0
A = =
A
A A
T-
A =
A
1 1 j 2
1 j + 3 j
2 j 0
A
T
1 1 j + 2
1 j 3 j
2 j 0
A
T*
1 1 j + 2
1 j 3 j
2 j 0
A = = = =
A
A A
T-
A =
A
j 1 j 2
1 j 3j j
2 j 0
A
T
j 1 j 2
1 j 3j j
2 j 0
A
T*
j 1 j + 2
1 j + 3j j
2 j 0
A = = = =
A
Appendix E Matrices and Determinants
E-10 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
E.4 Determinants
Let matrix be defined as the square matrix
(E.11)
then, the determinant of , denoted as , is defined as
(E.12)
The determinant of a square matrix of order n is referred to as determinant of order n.
Let be a determinant of order , that is,
(E.13)
Then,
(E.14)
Example E.4
Matrices and are defined as
and
Compute and .
Solution:
Check with MATLAB:
A=[1 2; 3 4]; B=[2 -1; 2 0]; % Define matrices A and B
det(A), det(B) % Compute the determinants of A and B
A
A
a
11
a
12
a
13
. a
1n
a
21
a
22
a
23
. a
2n
a
31
a
32
a
33
. a
3n
. . . . .
a
n1
a
n2
a
n3
. a
nn
=
A detA
detA a
11
a
22
a
33
.a
nn
a
12
a
23
a
34
.a
n1
a
13
a
24
a
35
.a
n2
.
a
n1
.a
22
a
13
. a
n2
.a
23
a
14
a
n3
.a
24
a
15
.
+ + + =
A 2
A
a
11
a
12
a
21
a
22
=
detA a
11
a
22
a
21
a
12
=
A B
A
1 2
3 4
= B
2 1
2 0
=
detA detB
detA 1 4 3 2 4 6 2 = = =
detB 2 0 2 1 ( ) 0 2 ( ) 2 = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-11
Copyright Orchard Publications
Determinants
a ns =
- 2
a ns =
2
Let be a matrix of order , that is,
(E.15)
then, is found from
(E.16)
A convenient method to evaluate the determinant of order , is to write the first two columns to
the right of the matrix, and add the products formed by the diagonals from upper left to
lower right; then subtract the products formed by the diagonals from lower left to upper right as
shown on the diagram of the next page. When this is done properly, we obtain (E.16) above.
This method works only with second and third order determinants. To evaluate higher order
determinants, we must first compute the cofactors; these will be defined shortly.
Example E.5
Compute and if matrices and are defined as
and
A 3
A
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
a
33
=
detA
detA a
11
a
22
a
33
a
12
a
23
a
31
a
11
a
22
a
33
+ + =
a
11
a
22
a
33
a
11
a
22
a
33
a
11
a
22
a
33

3
3 3
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
a
33
a
11
a
12
a
21
a
22
a
31
a
32 +
-
detA detB A B
A
2 3 5
1 0 1
2 1 0
= B
2 3 4
1 0 2
0 5 6
=
Appendix E Matrices and Determinants
E-12 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Solution:
or
Likewise,
or
Check with MATLAB:
A=[2 3 5; 1 0 1; 2 1 0]; det(A) % Define matrix A and compute detA
a ns =
9
B=[2 -3 -4; 1 0 -2; 0 -5 -6];det(B) % Define matrix B and compute detB
a ns =
- 18
E.5 Minors and Cofactors
Let matrix be defined as the square matrix of order as shown below.
(E.17)
If we remove the elements of its row, and column, the remaining square matrix is
called the minor of , and it is denoted as .
detA
2 3 5 2 3
1 0 1 1 0
2 1 0 2 1
=
detA 2 0 0 ( ) 3 1 1 ( ) 5 1 1 ( )
2 0 5 ( ) 1 1 2 ( ) 0 1 3 ( )
+ +
11 2 9 = =
=
detB
2 3 4 2 3
1 0 2 1 2
0 5 6 2 6
=
detB 2 0 6 ( ) [ ] 3 ( ) 2 ( ) 0 [ ] 4 ( ) 1 5 ( ) [ ]
0 0 4 ( ) [ ] 5 ( ) 2 ( ) 2 [ ] 6 ( ) 1 3 ( ) [ ]
+ +
20 38 18 = =
=
A n
A
a
11
a
12
a
13
. a
1n
a
21
a
22
a
23
. a
2n
a
31
a
32
a
33
. a
3n
. . . . .
a
n1
a
n2
a
n3
. a
nn
=
ith jth n 1
A
M
ij
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-13
Copyright Orchard Publications
Minors and Cofactors
The signed minor is called the cofactor of and it is denoted as .
Example E.6
Matrix is defined as
(E.18)
Compute the minors , , and the cofactors , and .
Solution:
and
The remaining minors
and cofactors
are defined similarly.
Example E.7
Compute the cofactors of matrix defined as
(E.19)
Solution:
(E.20)
1 ( )
i j +
M
ij
a
ij
o
ij
A
A
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
a
33
=
M
11
M
12
M
13
o
11
o
12
o
13
M
11
a
22
a
23
a
32
a
33
=
M
12
a
21
a
23
a
31
a
33
=
M
11
a
21
a
22
a
31
a
32
=
o
11
1 ( )
1 1 +
M
11
M
11
o
12
1 ( )
1 2 +
M
12
M
12
o
13
M
13
1 ( )
1 3 +
M
13
= = = = = =
M
21

M
22

M
23

M
31

M
32

M
33
, , , , ,
o
21
o
22
o
23
o
31
o
32
and o
33
, , , , ,
A
A
1 2 3
2 4 2
1 2 6
=
o
11
1 ( )
1 1 +
4 2
2 6
20 = = o
12
1 ( )
1 2 +
2 2
1 6
10 = =
Appendix E Matrices and Determinants
E-14 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
(E.21)
(E.22)
(E.23)
(E.24)
It is useful to remember that the signs of the cofactors follow the pattern below
that is, the cofactors on the diagonals have the same sign as their minors.
Let be a square matrix of any size; the value of the determinant of is the sum of the products
obtained by multiplying each element of any row or any column by its cofactor.
Example E.8
Matrix is defined as
(E.25)
Compute the determinant of using the elements of the first row.
Solution:
o
13
1 ( )
1 3 +
2 4
1 2
0 o
21
1 ( )
2 1 +
2 3
2 6
6 = = = =
o
22
1 ( )
2 2 +
1 3
1 6
9 = = o
23
1 ( )
2 3 +
1 2
1 2
4 = =
o
31
1 ( )
3 1 +
2 3
4 2
8 = = o
32
1 ( )
3 2 +
1 3
2 2
8 = = ,
o
33
1 ( )
3 3 +
1 2
2 4
8 = =
+ - + - +
- + - + -
+ - + - +
- + - + -
+ - + - +
A A
A
A
1 2 3
2 4 2
1 2 6
=
A
detA 1
4 2
2 6
= 2
2 2
1 6
3
2 4
1 2
1 20 2 10 ( ) 3 0 40 = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-15
Copyright Orchard Publications
Minors and Cofactors
Check with MATLAB:
A=[1 2 -3; 2 -4 2; -1 2 -6]; det(A) % Define matrix A and compute detA
a ns =
40
We must use the above procedure to find the determinant of a matrix of order or higher.
Thus, a fourth-order determinant can first be expressed as the sum of the products of the ele-
ments of its first row by its cofactor as shown below.
(E.26)
Determinants of order five or higher can be evaluated similarly.
Example E.9
Compute the value of the determinant of the matrix defined as
(E.27)
Solution:
Using the above procedure, we will multiply each element of the first column by its cofactor.
Then,
A 4
A
a
11
a
12
a
13
a
14
a
21
a
22
a
23
a
24
a
31
a
32
a
33
a
34
a
41
a
42
a
43
a
44
a
11
a
22
a
23
a
24
a
32
a
33
a
34
a
42
a
43
a
44
a
21
a
12
a
13
a
14
a
32
a
33
a
34
a
42
a
43
a
44

+a
31
a
12
a
13
a
14
a
22
a
23
a
24
a
42
a
43
a
44
a
41
a
12
a
13
a
14
a
22
a
23
a
24
a
32
a
33
a
34

= =
A
A
2 1 0 3
1 1 0 1
4 0 3 2
3 0 0 1
=
A=2
1 0 1
0 3 2
0 0 1
a [ ]
1 ( )
1 0 3
0 3 2
0 0 1

b [ ]

+4
1 0 3
1 0 1
0 0 1
c [ ]
3 ( )
1 0 3
1 0 1
0 3 2

d [ ]

Appendix E Matrices and Determinants
E-16 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Next, using the procedure of Example E.5 or Example E.8, we find
, , ,
and thus
We can verify our answer with MATLAB as follows:
A=[ 2 -1 0 -3; -1 1 0 -1; 4 0 3 -2; -3 0 0 1]; delta = det(A)
de l t a =
- 33
Some useful properties of determinants are given below.
Property 1: If all elements of one row or one column are zero, the determinant is zero. An exam-
ple of this is the determinant of the cofactor above.
Property 2: If all the elements of one row or column are m times the corresponding elements of
another row or column, the determinant is zero. For example, if
(E.28)
then,
(E.29)
Here, is zero because the second column in is times the first column.
Check with MATLAB:
A=[2 4 1; 3 6 1; 1 2 1]; det(A)
a ns =
0
Property 3: If two rows or two columns of a matrix are identical, the determinant is zero. This
follows from Property 2 with .
E.6 Cramers Rule
Let us consider the systems of the three equations below:
a [ ] 6 = b [ ] 3 = c [ ] 0 = d [ ] 36 =
detA a [ ] b [ ] c [ ] d [ ] + + + 6 3 0 36 + 33 = = =
c [ ]
A
2 4 1
3 6 1
1 2 1
=
detA
2 4 1
3 6 1
1 2 1
2 4
3 6
1 2
12 4 6 6 4 12 + + 0 = = =
detA A 2
m 1 =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-17
Copyright Orchard Publications
Cramers Rule
(E.30)
and let
Cramers rule states that the unknowns x, y, and z can be found from the relations
(E.31)
provided that the determinant A (delta) is not zero.
We observe that the numerators of (E.31) are determinants that are formed from A by the substi-
tution of the known values , , and , for the coefficients of the desired unknown.
Cramers rule applies to systems of two or more equations.
If (E.30) is a homogeneous set of equations, that is, if , then,
are all zero as we found in Property 1 above. Then, also.
Example E.10
Use Cramers rule to find , , and if
(E.32)
and verify your answers with MATLAB.
Solution:
Rearranging the unknowns , and transferring known values to the right side, we obtain
(E.33)
By Cramers rule,
a
11
x a
12
y a
13
z + + A =
a
21
x a
22
y a
23
z + + B =
a
31
x a
32
y a
33
z + + C =
A
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
a
33
D
1
A a
11
a
13
B a
21
a
23
C a
31
a
33
D
2
a
11
A a
13
a
21
B a
23
a
31
C a
33
D
3
a
11
a
12
A
a
21
a
22
B
a
31
a
32
C
= = = =
x
D
1
A
------ = y
D
2
A
------ = z
D
3
A
------ =
A B C
A B C 0 = = = D
1
D
2
and D
3
, ,
x y z 0 = = =
v
1
v
2
v
3
2v
1
5 v
2
3v
3
+ 0 =
2v
3
3v
2
4v
1
8 =
v
2
3v
1
4 v
3
+ 0 =
v
2v
1
v
2
3v
3
+ 5 =
4v
1
3v
2
2v
3
8 =
3v
1
v
2
v
3
+ 4 =
Appendix E Matrices and Determinants
E-18 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Using relation (E.31) we obtain
(E.34)
We will verify with MATLAB as follows:
% The following script will compute and display the values of v
1
, v
2
and v
3
.
format rat % Express answers in ratio form
B=[2 -1 3; -4 -3 -2; 3 1 -1]; % The elements of the determinant D of matrix B
delta=det(B); % Compute the determinant D of matrix B
d1=[5 -1 3; 8 -3 -2; 4 1 -1]; % The elements of D
1
detd1=det(d1); % Compute the determinant of D
1
d2=[2 5 3; -4 8 -2; 3 4 -1]; % The elements of D
2
detd2=det(d2); % Compute the determinant of D
2
d3=[2 -1 5; -4 -3 8; 3 1 4]; % The elements of D
3
detd3=det(d3); % Compute he determinant of D
3
v1=detd1/delta; % Compute the value of v
1
v2=detd2/delta; % Compute the value of v
2
v3=detd3/delta; % Compute the value of v
3
%
disp('v1=');disp(v1); % Display the value of v
1
disp('v2=');disp(v2); % Display the value of v
2
disp('v3=');disp(v3); % Display the value of v
3
A
2 1 3
4 3 2
3 1 1
2 1
4 3
3 1
6 6 12 27 4 4 + + + + 35 = = =
D
1
5 1 3
8 3 2
4 1 1
5 1
8 3
4 1
15 8 24 36 10 8 + + + + 85 = = =
D
2
2 5 3
4 8 2
3 4 1
2 5
4 8
3 4
16 30 48 72 16 20 + 170 = = =
D
3
2 1 5
4 3 8
3 1 4
2 1
4 3
3 1
24 24 20 45 16 16 + 55 = = =
x
1
D
1
A
------
85
35
------
17
7
------ = = = x
2
D
2
A
------
170
35
---------
34
7
------ = = = x
3
D
3
A
------
55
35
------
11
7
------ = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-19
Copyright Orchard Publications
Gaussian Elimination Method
v1=
17/ 7
v2=
- 34/ 7
v3=
- 11/ 7
These are the same values as in (E.34)
E.7 Gaussian Elimination Method
We can find the unknowns in a system of two or more equations also by the Gaussian elimina-
tion method. With this method, the objective is to eliminate one unknown at a time. This can be
done by multiplying the terms of any of the equations of the system by a number such that we
can add (or subtract) this equation to another equation in the system so that one of the
unknowns will be eliminated. Then, by substitution to another equation with two unknowns, we
can find the second unknown. Subsequently, substitution of the two values found can be made
into an equation with three unknowns from which we can find the value of the third unknown.
This procedure is repeated until all unknowns are found. This method is best illustrated with the
following example which consists of the same equations as the previous example.
Example E.11
Use the Gaussian elimination method to find , , and of the system of equations
(E.35)
Solution:
As a first step, we add the first equation of (E.35) with the third to eliminate the unknown v
2
and
we obtain the equation
(E.36)
Next, we multiply the third equation of (E.35) by 3, and we add it with the second to eliminate
, and we obtain the equation
(E.37)
Subtraction of (E.37) from (E.36) yields
v
1
v
2
v
3
2v
1
v
2
3v
3
+ 5 =
4v
1
3v
2
2v
3
8 =
3v
1
v
2
v
3
+ 4 =
5v
1
2v
3
+ 9 =
v
2
5v
1
5v
3
20 =
Appendix E Matrices and Determinants
E-20 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
(E.38)
Now, we can find the unknown from either (E.36) or (E.37). By substitution of (D.38) into
(E.36) we obtain
(E.39)
Finally, we can find the last unknown from any of the three equations of (E.35). By substitu-
tion into the first equation we obtain
(E.40)
These are the same values as those we found in Example E.10.
The Gaussian elimination method works well if the coefficients of the unknowns are small inte-
gers, as in Example E.11. However, it becomes impractical if the coefficients are large or fractional
numbers.
E.8 The Adjoint of a Matrix
Let us assume that is an n square matrix and is the cofactor of . Then the adjoint of ,
denoted as , is defined as the n square matrix below.
(E.41)
We observe that the cofactors of the elements of the ith row (column) of are the elements of
the ith column (row) of .
Example E.12
Compute if Matrix is defined as
7v
3
11 or v
3
11
7
------ = =
v
1
5v
1
2
11
7
------
\ .
| |
+ 9 or v
1
17
7
------ = =
v
2
v
2
2v
1
3v
3
5 +
34
7
------
33
7
------
35
7
------
34
7
------ = = =
A o
ij
a
ij
A
adjA
adjA
o
11
o
21
o
31
. o
n1
o
12
o
22
o
32
. o
n2
o
13
o
23
o
33
. o
n3
. . . . .
o
1n
o
2n
o
3n
. o
nn
=
A
adjA
adjA A
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-21
Copyright Orchard Publications
Singular and Non-Singular Matrices
(E.42)
Solution:
E.9 Singular and Non-Singular Matrices
An square matrix is called singular if ; if , is called non-singular.
Example E.13
Matrix is defined as
(E.43)
Determine whether this matrix is singular or non-singular.
Solution:
Therefore, matrix is singular.
A
1 2 3
1 3 4
1 4 3
=
adjA

3 4
4 3
2 3
4 3

2 3
3 4
1 4
1 3

1 3
1 3
2 3
3 4

1 3
1 4

1 2
1 4

1 2
1 3
7 6 1
1 0 1
1 2 1
= =
n A detA 0 = detA 0 A
A
A
1 2 3
2 3 4
3 5 7
=
detA
1 2 3
2 3 4
3 5 7
1 2
2 3
3 5
21 24 30 27 20 28 + + 0 = = =
A
Appendix E Matrices and Determinants
E-22 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
E.10 The Inverse of a Matrix
If and are square matrices such that , where is the identity matrix, is
called the inverse of , denoted as , and likewise, is called the inverse of , that is,
If a matrix is non-singular, we can compute its inverse from the relation
(E.44)
Example E.14
Matrix is defined as
(E.45)
Compute its inverse, that is, find
Solution:
Here, , and since this is a non-zero value, it is possible to com-
pute the inverse of using (E.44).
From Example E.12,
Then,
(E.46)
Check with MATLAB:
A=[1 2 3; 1 3 4; 1 4 3], invA=inv(A) % Define matrix A and compute its inverse
A =
1 2 3
1 3 4
1 4 3
A B n AB BA I = = I B
A B A
1
= A B
A B
1
=
A A
1
A
1 1
detA
------------adjA =
A
A
1 2 3
1 3 4
1 4 3
=
A
1
detA 9 8 12 9 16 6 + + 2 = =
A
adjA
7 6 1
1 0 1
1 2 1
=
A
1 1
detA
------------adjA
1
2
------
7 6 1
1 0 1
1 2 1
3.5 3 0.5
0.5 0 0.5
0.5 1 0.5
= = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-23
Copyright Orchard Publications
Solution of Simultaneous Equations with Matrices
i nvA =
3. 5000 - 3. 0000 0. 5000
- 0. 5000 0 0. 5000
- 0. 5000 1. 0000 - 0. 5000
Multiplication of a matrix by its inverse produces the identity matrix , that is,
(E.47)
Example E.15
Prove the validity of (E.47) for the Matrix defined as
Proof:
Then,
and
E.11 Solution of Simultaneous Equations with Matrices
Consider the relation
(E.48)
where and are matrices whose elements are known, and is a matrix (a column vector)
whose elements are the unknowns. We assume that and are conformable for multiplica-
tion.
Multiplication of both sides of (E.48) by yields:
(E.49)
or
A A
1
I
AA
1
I or A
1
A I = =
A
A
4 3
2 2
=
detA 8 6 2 and adjA
2 3
2 4
= = =
A
1 1
detA
------------adjA
1
2
---
2 3
2 4
1 3 2 '
1 2
= = =
AA
1 4 3
2 2
1 3 2 '
1 2
4 3 6 6 +
2 2 3 4 +
1 0
0 1
I = = = =
AX B =
A B X
A X
A
1
A
1
AX A
1
B IX A
1
B = = =
Appendix E Matrices and Determinants
E-24 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
(E.50)
Therefore, we can use (E.50) to solve any set of simultaneous equations that have solutions. We
will refer to this method as the inverse matrix method of solution of simultaneous equations.
Example E.16
For the system of the equations
(E.51)
compute the unknowns using the inverse matrix method.
Solution:
In matrix form, the given set of equations is where
(E.52)
Then,
(E.53)
or
(E.54)
Next, we find the determinant , and the adjoint .
Therefore,
X=A
1
B
2x
1
3x
2
x
3
+ + 9 =
x
1
2x
2
3x
3
+ + 6 =
3x
1
x
2
2x
3
+ + 8 =
)

`


x
1
x
2
and x
3
, ,
AX B =
A
2 3 1
1 2 3
3 1 2
= X
x
1
x
2
x
3
= B
9
6
8
= , ,
X A
1
B =
x
1
x
2
x
3
2 3 1
1 2 3
3 1 2
1
9
6
8
=
detA adjA
detA 18 = and adjA
1 5 7
7 1 5
5 7 1
=
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-25
Copyright Orchard Publications
Solution of Simultaneous Equations with Matrices
and with relation (E.53) we obtain the solution as follows:
(E.55)
To verify our results, we could use the MATLABs inv(A) function, and then multiply by .
However, it is easier to use the matrix left division operation ; this is MATLABs solu-
tion of for the matrix equation , where matrix is the same size as matrix .
For this example,
A=[2 3 1; 1 2 3; 3 1 2]; B=[9 6 8]'; X=A \ B
X =
1. 9444
1. 6111
0. 2778
Example E.17
For the electric circuit of Figure E.1,

Figure E.1. Electric circuit for Example E.17
the loop equations are
(E.56)
A
1 1
detA
------------ adjA
1
18
------
1 5 7
7 1 5
5 7 1
= =
X
x
1
x
2
x
3
1
18
------
1 5 7
7 1 5
5 7 1
9
6
8
1
18
------
35
29
5
35 18 '
29 18 '
5 18 '
1.94
1.61
0.28
= = = = =
A
1
B
X A \ B =
A
1
B A X B = X B
+
-
V = 100 v
9 O 9 O 4 O
2 O 2 O 1 O
I
1
I
3
I
2
10I
1
9I
2
100 =
9I
1
20I
2
9I
3
+ 0 =
9I
2
15I
3
+ 0 =
Appendix E Matrices and Determinants
E-26 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Use the inverse matrix method to compute the values of the currents , , and
Solution:
For this example, the matrix equation is or , where
The next step is to find . It is found from the relation
(E.57)
Therefore, we must find the determinant and the adjoint of . For this example, we find that
(E.58)
Then,
and
Check with MATLAB:
R=[10 -9 0; -9 20 -9; 0 -9 15]; V=[100 0 0]'; I=R\V; fprintf(' \n');...
fprintf('I1 = %4.2f \t', I(1)); fprintf('I2 = %4.2f \t', I(2)); fprintf('I3 = %4.2f \t', I(3)); fprintf(' \n')
I 1 = 22. 46 I 2 = 13. 85 I 3 = 8. 31
We can also use subscripts to address the individual elements of the matrix. Accordingly, the
MATLAB script above could also have been written as:
R(1,1)=10; R(1,2)=-9; % No need to make entry for A(1,3) since it is zero.
R(2,1)=-9; R(2,2)=20; R(2,3)=-9; R(3,2)=-9; R(3,3)=15; V=[100 0 0]'; I=R\V; fprintf(' \n');...
fprintf('I1 = %4.2f \t', I(1)); fprintf('I2 = %4.2f \t', I(2)); fprintf('I3 = %4.2f \t', I(3)); fprintf(' \n')
I
1
I
2
I
3
RI V = I R
1
V =
R
10 9 0
9 20 9
0 9 15
= V
100
0
0
and I
I
1
I
2
I
3
= = ,
R
1
R
1 1
detR
------------ adjR =
R
detR 975 = adjR
219 135 81
135 150 90
81 90 119
= ,
R
1 1
detR
------------adjR
1
975
---------
219 135 81
135 150 90
81 90 119
= =
I
I
1
I
2
I
3
1
975
---------
219 135 81
135 150 90
81 90 119
100
0
0
100
975
---------
219
135
81
22.46
13.85
8.31
= = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-27
Copyright Orchard Publications
Solution of Simultaneous Equations with Matrices
I 1 = 22. 46 I 2 = 13. 85 I 3 = 8. 31
Spreadsheets also have the capability of solving simultaneous equations with real coefficients
using the inverse matrix method. For instance, we can use Microsoft Excels MINVERSE (Matrix
Inversion) and MMULT (Matrix Multiplication) functions, to obtain the values of the three cur-
rents in Example E.17.
The procedure is as follows:
1. We begin with a blank spreadsheet and in a block of cells, say B3:D5, we enter the elements of
matrix R as shown in Figure D.2. Then, we enter the elements of matrix in G3:G5.
2. Next, we compute and display the inverse of , that is, . We choose B7:D9 for the ele-
ments of this inverted matrix. We format this block for number display with three decimal
places. With this range highlighted and making sure that the cell marker is in B7, we type the
formula
=MININVERSE(B3:D5)
and we press the Crtl-Shift-Enter keys simultaneously. We observe that appears in these
cells.
3. Now, we choose the block of cells G7:G9 for the values of the current . As before, we high-
light them, and with the cell marker positioned in G7, we type the formula
=MMULT(B7:D9,G3:G5)
and we press the Crtl-Shift-Enter keys simultaneously. The values of then appear in G7:G9.
Figure E.2. Solution of Example E.17 with a spreadsheet
Example E.18
For the phasor circuit of Figure E.18
V
R R
1
R
1
I
I
1
2
3
4
5
6
7
8
9
10
A B C D E F G H
Spreadsheet for Matrix Inversion and Matrix Multiplication
10 -9 0 100
R= -9 20 -9 V= 0
0 -9 15 0
0.225 0.138 0.083 22.462
R
-1
= 0.138 0.154 0.092 I= 13.846
0.083 0.092 0.122 8.3077
Appendix E Matrices and Determinants
E-28 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure E.3. Circuit for Example E.18
the current can be found from the relation
(E.59)
and the voltages and can be computed from the nodal equations
(E.60)
and
(E.61)
Compute, and express the current in both rectangular and polar forms by first simplifying like
terms, collecting, and then writing the above relations in matrix form as , where
, , and
Solution:
The matrix elements are the coefficients of and . Simplifying and rearranging the nodal
equations of (E.60) and (E.61), we obtain
(E.62)
Next, we write (E.62) in matrix form as
(E.63)
+
-
R
1 85 O
50 O
R
2
C
L
R
3
= 100 O
I
X
V
S
-j100 O
j200 O
170ZO
V
1
V
2
I
X
I
X
V
1
V
2

R
3
------------------- =
V
1
V
2
V
1
170 0 Z
85
--------------------------------
V
1
V
2

100
-------------------
V
1
0
j200
--------------- + + 0 =
V
2
170 0 Z
j100
--------------------------------
V
2
V
1

100
-------------------
V
2
0
50
--------------- + + 0 =
I
x
YV I =
Y Admit ce tan = V Voltage = I Current =
Y V
1
V
2
0.0218 j0.005 ( )V
1
0.01V
2
2 =
0.01 V
1
0.03 j0.01 + ( )V
2
+ j1.7 =
0.0218 j0.005 0.01
0.01 0.03 j0.01 +
Y
V
1
V
2
V
2
j1.7
I
=



Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling E-29
Copyright Orchard Publications
Solution of Simultaneous Equations with Matrices
where the matrices , , and are as indicated.
We will use MATLAB to compute the voltages and , and to do all other computations.
The script is shown below.
Y=[0.0218-0.005j -0.01; -0.01 0.03+0.01j]; I=[2; 1.7j]; V=Y\I; % Define Y, I, and find V
fprintf('\n'); % Insert a line
disp('V1 = '); disp(V(1)); disp('V2 = '); disp(V(2)); % Display values of V1 and V2
V1 =
1. 0490e +002 + 4. 9448e +001i
V2 =
53. 4162 + 55. 3439i
Next, we find from
R3=100; IX=(V(1)-V(2))/R3 % Compute the value of I
X
I X =
0. 5149 - 0. 0590i
This is the rectangular form of . For the polar form we use the MATLAB script
magIX=abs(IX), thetaIX=angle(IX)*180/pi % Compute the magnitude and the angle in
degrees
ma gI X =
0. 5183
t he t a I X =
- 6. 5326
Therefore, in polar form,
Spreadsheets have limited capabilities with complex numbers, and thus we cannot use them to
compute matrices that include complex numbers in their elements as in Example E.18.
Y V I
V
1
V
2
I
X
I
X
I
X
0.518 6.53 Z =
Appendix E Matrices and Determinants
E-30 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
E.12 Exercises
For Exercises 1, 2, and 3 below, the matrices , , , and are defined as:
1. Perform the following computations, if possible. Verify your answers with MATLAB.
a. b. c. d.
e. f. g. h.
2. Perform the following computations, if possible. Verify your answers with MATLAB.
a. b. c. d.
e. f. g. h.
3. Perform the following computations, if possible. Verify your answers with MATLAB.
a. b. c. d. e. f.
4. Solve the following systems of equations using Cramers rule. Verify your answers with MAT-
LAB.
a. b.
5. Repeat Exercise 4 using the Gaussian elimination method.
6. Solve the following systems of equations using the inverse matrix method. Verify your answers
with MATLAB.
a. b.
A B C D
A
1 1 4
5 7 2
3 5 6
= B
5 9 3
2 8 2
7 4 6
= C=
4 6
3 8
5 2
D
1 2 3
3 6 4
=
A B + A C + B D + C D +
A B A C B D C D
A B A C B D C D
B A C A D A D

C
detA detB detC detD det A B ( ) det A C ( )
x
1
2x
2
x
3
+ 4 =
2x
1
3x
2
x
3
+ + 9 =
3x
1
4x
2
5x
3
+ 0 =
x
1
2x
2
3x
3
5x
4
+ + 14 =
x
1
3x
2
2x
3
x
4
+ + 9 =
3x
1
3 x
2
2x
3
4x
4
+ + 19 =
4x
1
2x
2
5x
3
x
4
+ + + 27 =
1 3 4
3 1 2
2 3 5
x
1
x
2
x
3

3
2
0
=
2 4 3 2
2 4 1 3
1 3 4 2
2 2 2 1
x
1
x
2
x
3
x
4

1
10
14
7
=
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling F-1
Copyright Orchard Publications
Appendix F
Scaling
his chapter discusses magnitude and frequency scaling procedures that allow us to trans-
form circuits that contain passive devices with unrealistic values to equivalent circuits with
realistic values.
F.1 Magnitude Scaling
Magnitude scaling is the process by which the impedance of a two terminal network is changed by
a factor which is a real positive number greater or smaller than unity.
If we increase the input impedance by a factor , we must increase the impedance of each
device of the network by the same factor. Thus, if a network consists of , , and devices and
we wish to scale this network by this factor, the magnitude scaling process entails the following
transformations where the subscript m denotes magnitude scaling.
(F.1)
These transformations are consistent with the time-domain to frequency domain transformations
(F.2)
and the -domain to -domain transformations
(F.3)
F.2 Frequency Scaling
Frequency scaling is the process in which we change the values of the network devices so that at
the new frequency the impedance of each device has the same value as at the original frequency.
T
k
m
k
m
R L C
R
m
k
m
R
L
m
k
m
L
C
m
C
k
m
------
R R
L jcL
C
1
jcC
----------
t s
R R
L sL
C
1
sC
------




Appendix F Scaling
F-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
The frequency scaling factor is denoted as . This factor is also a real positive number and can be
greater or smaller than unity.
The resistance value is independent of the frequency. However, the complex impedance of any
inductor is , and in order to maintain the same impedance at a frequency times as great, we
must replace the inductor value by another which is equal to . Similarly, a capacitor with value
must be replaced with another having a capacitance value equal to . For frequency scaling then, the
following transformations are necessary where the subscript denotes magnitude scaling.
(F.4)
A circuit can be scaled simultaneously in both magnitude and frequency using the scales values
below where the subscript denotes simultaneous magnitude and frequency scaling.
(F.5)
Example F.1
For the network of Figure F.6 compute
Figure F.6. Network for Example F.1
a. the resonant frequency .
b. the maximum impedance .
c. the quality factor .
d. the bandwidth BW.
e. the magnitude of the input impedance , and using MATLAB sketch it as a function of fre-
quency.
k
f
sL k
f
L k
f
' C
C k
f
'
f
R
f
R
L
f
L
k
f
----
C
f
C
k
f
----
mf
R
mf
k
m
R
L
mf
k
m
k
f
------L
C
mf
1
k
m
k
f
-----------C
Z
R
L
C
2.5 O 0.5 H
2 F
c
0
Z
max
Q
0P
Z
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling F-3
Copyright Orchard Publications
Frequency Scaling
f. Scale this circuit so that the impedance will have a maximum value of at a resonant fre-
quency of
Solution:
a. The resonant frequency of the given circuit is
and thus the circuit is parallel resonant.
b. The impedance is maximum at parallel resonance. Therefore,
c. The quality factor at parallel resonance is
d. The bandwidth of this circuit is
e. The magnitude of the input impedance versus radian frequency is shown in Figure F.7 and
was generated with the MATLAB script below.
w=0.01: 0.005: 5; R=2.5; G=1/R; C=2; L=0.5; Y=G+j.*(w.*C-1./(w.*L));...
magY=abs(Y); magZ=1./magY; plot(w,magZ); grid
f. Using (F.1), we obtain
Then,
and
After being scaled in magnitude by the factor , the network constants are as shown
in Figure F.8, and the plot is shown in Figure F.9.
5 KO
5 10
6
rad s '
c
0
1
LC
------------ 1 rad s ' = =
Z
max
2.5 O =
Q
0P
c
0
C
G
---------- c
0
CR 1 2 2.5 5 = = = =
BW
c
0
Q
0P
---------
1
5
-- - 0.2 = = =
c
k
m
R
m
R
-------
5000
2.5
------------ 2000 = = =
L
m
k
m
L 2000 0.5 1000 H = = =
C
m
C
k
m
------
2
2000
------------ 10
3
F = = =
k
m
2000 =
Appendix F Scaling
F-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure F.7. Plot for Example F.1
Figure F.8. The network in Figure F.6 scaled by the factor
Figure F.9. Plot for the network of Figure F.6 after being scaled by the factor
The final step is to scale the above circuit to . Using (F.4), we obtain:
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
0.5
1
1.5
2
2.5
Z
R
L
C
5 KO 10
3
H
10
-3
F
k
m
2000 =
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
1000
2000
3000
4000
5000
k
m
2000 =
5 10
6
rad s '
R
f
R 5 kO = =
L
f
L k
f
' 1000 5 10
6
( ) ' 200 H = = =
C
f
C k
f
' 10
3
5 10
6
' 200 pF = = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling F-5
Copyright Orchard Publications
Frequency Scaling
The network constants and its response, in final form, are as shown in Figures F.10 and F.11
respectively.
Figure F.10. The network in Figure F.6 scaled to its final form
Figure F.11. Plot for Example F.1 scaled to its final form
The plot of Figure F.11 was generated with the following MATLAB script:
w=1: 10^3: 10^7; R=5000; G=1/R; C=200.*10.^(-12); L=200.*10.^(-6); ...
magY=sqrt(G.^2+(w.*C-1./(w.*L)).^2); magZ=1./magY; plot(w,magZ); grid
Check:
The resonant frequency of the scaled circuit is
and thus the circuit is parallel resonant at this frequency.
The impedance is maximum at parallel resonance. Therefore,
The quality factor at parallel resonance is
and the bandwidth is
Z
R
L C
5 KO 200 H
200 pF
0 1 2 3 4 5 6 7 8 9 10
x 10
6
0
1000
2000
3000
4000
5000
c
0
1
LC
------------
1
0.2 10
3
0.2 10
9

-----------------------------------------------------------
1
0.2 10
6

------------------------ 5 10
6
rad s ' = = = =
Z
max
5 KO =
Q
0P
c
0
C
G
---------- c
0
CR 5 10
6
2 10
10
5 10
3
5 = = = =
Appendix F Scaling
F-6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
The values of the circuit devices could have been obtained also by direct application of (F.5),
that is,
and these values are the same as obtained before.
Example F.2
A series circuit has resistance , inductance , and capacitance .
Use scaling to compute the new values of and which will result in a circuit with the same
quality factor , resonant frequency at and the new value of the capacitor to be .
Solution:
The resonant frequency of the circuit before scaling is
and we want the resonant frequency of the scaled circuit to be or .
Therefore, the frequency scaling factor must be
Now, we must compute the magnitude scale factor, and since we want the capacitor value to be
, we use (F.5), that is,
BW
c
0
Q
0P
---------
5 10
6

5
----------------- 10
6
= = =
R
mf
k
m
R
L
mf
k
m
k
f
------L
C
mf
k
m
k
f
------C
R
mf
k
m
R 2000 2.5 5 KO = = =
L
mf
k
m
k
f
------L
2000
5 10
6

----------------- 0.5 200 H = = =


C
mf
1
k
m
k
f
-----------C
1
2 10
3
5 10
6

----------------------------------------- 2 200 pf = = =
RLC R 1 O = L 1 H = C 1 F =
R L
Q
OS
500 Hz 2 F
c
0
1
LC
------------ 1 rad s ' = =
500 Hz 2r 500 3142 rad s ' =
k
f
3142
1
------------ 3142 = =
2 F
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling F-7
Copyright Orchard Publications
Frequency Scaling
or
Then, the scaled values for the resistance and inductance are
and
C
mf
1
k
m
k
f
-----------C =
k
m
C
k
f
C
mf
--------------
1
3142 2 10
6

-------------------------------------- 159 = = =
R
m
k
m
R 159 1 159 O = = =
L
mf
k
m
k
f
------L
159
3142
------------ 1 50.6 mH = = =
Appendix F Scaling
F-8 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
F.3 Exercises
1. A series resonant circuit has a bandwidth of , and . Compute
the new resonant frequency and inductance if the circuit is scaled
a. in magnitude by a factor of 5
b. in frequency by a factor of 5
c. in both magnitude and frequency by factors of 5
2. A scaled parallel resonant circuit consists of , , and . Com-
pute and if the original circuit had the following values before scaling.
a. and
b. and
c. and
100 rad s ' Q
0s
20 = C 50 F =
R 4 KO = L 0.1 H = C 0.3 F =
k
m
k
f
R 10 O = L 1 H =
R 10 O = C 5 F =
L 1 H = C 5 F =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling F-9
Copyright Orchard Publications
Solutions to End-of-Appendix Exercises
F.4 Solutions to End-of-Appendix Exercises
1. a. It is given that and ; then,

Since , , and with ,
. Also,
and
or
b. It is given that and from (a) . Then, with ,

Also,
and
or

c. and . Then, from (F.5)
Also from (F.5)
and
or
2. a. From (F.1), and from (F.5)
b. From (a) and from (F.5),
BW c
0
Q
OS
' = 100 = Q
OS
20 =
c
0
BW Q
OS
100 20 2000 rad s ' = = =
c
0
2
1 LC ' = L
OLD
1 c
0
2
' C 1 4 10
6
50 10
6
( ) ' 5 mH = = = k
m
5 =
L
NEW
k
m
L
OLD
5 5 mH 25 mH = = = C
NEW
C
OLD
k
m
' 50 10
6
5 ' 10 F = = =
c
0 NEW
2
1 L
NEW
C
NEW
' 1 25 10
3
10 10
6
( ) ' 10
8
25 ' = = = c
0 NEW
2000 r s ' =
C
OLD
50 10
6
= L
OLD
5 mH = k
f
5 =
L
NEW
L
OLD
k
f
' 5 10
3
5 ' 1 mH = = =
C
NEW
C
OLD
k
f
' 50 10
6
5 ' 10 F = = =
c
0 NEW
2
1 L
NEW
C
NEW
' 1 10
3
10 10
6
( ) ' 10
8
= = =
c
0 NEW
10000 r s ' =
L
OLD
5 mH = C
OLD
50 10
6
=
L
NEW
k
m
k
f
' ( ) L
OLD
5 5 ' ( ) 5 mH 5 mH = = =
C
NEW
1 k
m
k
f
( ) ' ( ) C
OLD
50 F 5 5 ( ) ' 2 F = = =
c
0 NEW
2
1 L
NEW
C
NEW
' 1 5 10
3
2 10
6
( ) ' 10
8
= = = c
0 NEW
10000 r s ' =
k
m
R
NEW
R
OLD
' 4000 10 ' 400 = = =
k
f
L
OLD
L
NEW
' ( ) k
m
1 0.1 ' ( ) 400 4000 = = =
k
m
400 =
k
f
1 k
m
' ( ) C
OLD
C
NEW
' ( ) 1 400 ' ( ) 5 0.3 10
6
' ( ) 41677 = = =
Appendix F Scaling
F-10 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
c. From (F.5) and thus (1)
Also from (F.5), (2)
Substitution of (1) into (2) yields , , or ,
and from (1)
k
f
k
m
' L
OLD
L
NEW
' 1 0.1 ' 10 = = = k
f
10k
m
=
k
m
k
f
C
OLD
C
NEW
' 5 0.3 10
6
' 5 10
6
0.3 ' = = =
10k
m
k
m
5 10
6
0.3 ' = k
m
2
5 10
6
3 ' = k
m
1291 =
k
f
1291 10 12910 = =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling G-1
Copyright Orchard Publications
Appendix G
Per Unit System
his chapter introduces the per unit system. This system allows us to work with normalized
power, voltage current, impedance, and admittance values known as per unit (pu) values.
The relationship between units in a per-unit system depends on whether the system is sin-
gle-phase or three-phase. Three-phase systems are discussed in Chapters 11 and 12.
G.1 Per Unit Defined
By definition,
(G.1)
A per unit (pu) system defines per unit values for volt-ampere (VA) power, voltage, current,
impedance, and admittance, and of these only two of these are independent. It is customary to
choose VA (or KVA) power and nominal voltage as the independent base values, and others are
specified as multiples of selected base values.
For single-phase systems, the pu values are based on rated VA (or KVA) rated power and on the
nominal voltage of the equipment, e.g., single-phase transformer, single-phase motor.
Example G.1
A single-phase transformer is rated and the nominal voltage on the primary winding is
. Compute its pu impedance.
Solution:
(G.2)
and assuming that the actual primary winding voltage, current, and impedance are
, , and , respectively, the per unit values are computed as follows:
T
Per Unit Value
Actual Value
Base Value
--------------------------------- =
10 KVA
480 V RMS
Base Current (amperes)
Base KVA
Base Volts
---------------------------
10000 VA
480 V
------------------------- 20.83 A RMS = = =
Base Impedance (Ohms)
Base Volts
Base Current
--------------------------------
480 V
20.83 A
------------------- 23.04 O = = =
436 Volts RMS 15 A RMS 5 O




Appendix G Per Unit System
G-2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publicationss
(G.3)
The base impedance in (G.2) is also expressed as
(G.4)
Thus, the pu impedance can also be expressed as
(G.5)
and using the values above we obtain
as before.
The pu values allow us to express quantities in percentages, that is,
(G.6)
and thus
The per unit values in three-phase systems are based on
(G.7)
Example G.2
A three-phase Y-connected transformer is rated and the line-to-line voltage is
. Compute its per phase (line-to-neutral) pu impedance.
Solution:
The per phase (line-to-neutral) pu values are computed as follows:
Voltage
pu
Actual Volts
Base Volts
--------------------------------
436 V
480 V
--------------- 0.91 pu = = =
Current
pu
Actual Current
Base Current
-------------------------------------
15 A
20.83 A
------------------- 0.72 pu = = =
Impedance
pu
Actual Impedance
Base Impedance
-------------------------------------------------
5 O
23.04 O
-------------------- 0.22 pu = = =
Base Impedance (Ohms)
Base Volts
Base Current
--------------------------------
Base Volts
Base KVA ( ) Base Volts ( ) '
--------------------------------------------------------------------
Base Volts ( )
2
Base KVA ( )
---------------------------------- = = =
Impedance
pu
Actual Impedance
Base Impedance
-------------------------------------------------
Actual Impedance
Base Volts ( )
2
Base KVA ( ) '
-----------------------------------------------------------------------
Actual Impedance
Base KVA ( )
Base Volts ( )
2
----------------------------------
= =
=
Impedance
pu
O ( ) 5
10000
480
2
--------------- 0.22 pu = =
% pu 100 =
0.22 pu 22% =
Base VA 3-phase VA =
Base Volts Line-to-Line Volts RMS =
7.5 KVA
480 V RMS
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling G-3
Copyright Orchard Publications
Impedance Transformation from One Base to Another Base
(G.8)
and assuming that the per phase (line-to-neutral) actual primary winding voltage, current, and
impedance are , , and respectively, the per phase (line-to-
neutral) per unit values are computed as follows:
(G.9)
G.2 Impedance Transformation from One Base to Another Base
Often, we need to change the base values from one base to another, and thus we must change the
original pu values to the new base pu values. Denoting the original pu as and the new pu as
, and using relation (G.5) we obtain:
(G.10)
from which,
(G.11)
Example G.3
A three-phase AC motor rated , , , , full-load effi-
ciency , power factor , is connected to a , system. Compute its pu
impedance on the system base values.
Solution:
First, we must find the rated KVA of the motor. It is computed from the equation
Per phase Base Current (A)
Per phase Base KVA
Per phase Base Volts
-------------------------------------------------------
7.5 3 ' KVA
480 3 ' V
----------------------------- 9.02 A RMS = = =
Base Impedance (O )
Per phase Base Volts
Per phase Base Current
-------------------------------------------------------------
480 3 ' KV
9.02 A
------------------------------- 30.73 O = = =
472 3 ' Volts RMS 12.2 A RMS 5 O
Voltage
pu
Actual Volts
Base Volts
--------------------------------
472 3 ' V
480 3 ' V
-------------------------- 0.98 pu = = =
Current
pu
Actual Current
Base Current
-------------------------------------
9.02 A
12.2 A
---------------- 0.74 pu = = =
Impedance
pu
Actual Impedance
Base Impedance
-------------------------------------------------
5 O
30.73 O
-------------------- 0.16 pu = = =
pu
1
pu
2
Impedance
pu1
Impedance
pu2
-------------------------------------
Actual Impedance Base KVA
1
( ) Base Volts
1
( )
2
'
Actual Impedance Base KVA
2
( ) Base Volts
2
( )
2
'
----------------------------------------------------------------------------------------------------------------------------------- =
Impedance
pu2
Impedance
pu1
Base KVA
2
( )
Base KVA
1
( )
----------------------------------
Base Volts
1
Base Volts
2
------------------------------


2
=
500 hp 2.0 KV 60 Hz pu impedance 0.26 =
88 % 0.85 10 000 KVA , 4 160 V ,
Appendix G Per Unit System
G-4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publicationss
(G.12)
Thus,
and with (G.11) we obtain
Example G.4
A step-down three-phase transformer is rated , , with pu
impedance. It is proposed to use this transformer on a , system. Compute:
a. The pu impedance of the , system.
b. If the is to be used as the new base voltage on the high voltage side, what would the
base voltage be on the low voltage side?
c. What would the base current values be on the high voltage side and the low voltage side on
the , system?
Solution:
a.
b.
By proportion,
c.
Motor Rated KVA
Rated hp ( ) 0.746 Kw/hp
Full Load Efficiency Rated Power Factor
-------------------------------------------------------------------------------------------------------------------- =
Motor Rated KVA
500 0.746
0.88 0.85
----------------------------
500 0.746
0.88 0.85
---------------------------- 500 = KVA
1
= = =
Impedance
pu2
0.26
10000
500
---------------
2
4.16
----------


2
1.2 = =
1 000 KVA , 13 200 / 480 V , 0.0575
750 KVA 12 000 V ,
750 KVA 12 000 V ,
12 000 V ,
750 KVA 12 000 V ,
Impedance
pu2
Impedance
pu1
Base KVA
2
( )
Base KVA
1
( )
----------------------------------
Base Volts
1
Base Volts
2
------------------------------


2

0.0575
750
1 000 ,
---------------
13.2
12
----------


2
0.052 = =
=
Low voltage side 480
12
13.2
---------- 436 = =
High voltage side base current
750
3 12
----------------- 36 A = =
Low voltage side base current
750
3 0.436
------------------------- 993 A = =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-1
Copyright Orchard Publications
Appendix H
Review of Differential Equations
his appendix is a review of ordinary differential equations. Some definitions, topics, and
examples are not applicable to introductory circuit analysis but are included for continuity of
the subject, and for reference to more advance topics in electrical engineering such as state
variables. These are denoted with an asterisk and may be skipped.
H.1 Simple Differential Equations
In this section we present two simple examples to show the importance of differential equations in
engineering applications.
Example H.1
A capacitor is being charged by a constant current . Find the voltage across this capacitor
as a function of time given that the voltage at some reference time is .
Solution:
It is given that the current, as a function of time, is constant, that is,
(H.1)
We know that the current and voltage in a capacitor are related by
(H.2)
and for our example, . Then, by substitution of (H.2) into (H.1) we obtain
By separation of the variables,
(H.3)
and by integrating both sides of (H.3) we obtain
(H.4)
where represents the constants of integration of both sides.
T
1 F I v
C
t 0 = V
0
i
C
t ( ) I cons t tan = =
i
C
t ( ) C
dv
C
dt
--------- =
C 1 =
dv
C
dt
--------- I =
dv
C
Idt =
v
C
t ( ) It k + =
k




Review of Differential Equations
H-2 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We can find the value of the constant by making use of the initial condition, i.e., at ,
and (H.4) then becomes
(H.5)
or , and by substitution into (H.4),
(H.6)
This example shows that when a capacitor is charged with a constant current, a linear voltage is pro-
duced across the terminals of the capacitor.
Example H.2
Find the current through an inductor whose slope at the coordinate is and the
current passes through the point .
Solution:
We are given that
(H.7)
By separating the variables we obtain
(H.8)
and integrating both sides we obtain
(H.9)
where represents the constants of integration of both sides.
We find the value of the constant by making use of the initial condition. For this example,
and thus at , . With these values (H.9) becomes
(H.10)
or , and by substitution into (H.9),
(H.11)
k t 0 =
v
C
V
0
=
V
0
0 k + =
k V
0
=
v
C
t ( ) It V
0
+ =
i
L
t ( ) t i
L
, ( ) t cos
i
L
r 2 ' 1 , ( )
di
L
dt
------- t cos =
di
L
tdt cos =
i
L
t ( ) t k + sin =
k
k
c 1 = ct t r 2 ' = = i
L
1 =
1
r
2
--- sin k + =
k 0 =
i
L
t ( ) t sin =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-3
Copyright Orchard Publications
Classification
H.2 Classification
Differential equations are classified by:
1. Type - Ordinary or Partial
2. Order - The highest order derivative which is included in the differential equation
3. Degree - The exponent of the highest power of the highest order derivative after the differen-
tial equation has been cleared of any fractions or radicals in the dependent variable and its
derivatives
For example, the differential equation
is an ordinary differential equation of order and degree .
If the dependent variable is a function of only a single variable , that is, if , the dif-
ferential equation which relates and is said to be an ordinary differential equation and it is
abbreviated as ODE.
The differential equation
is an ODE with constant coefficients.
The differential equation
is an ODE with variable coefficients.
If the dependent variable is a function of two or more variables such as , where
and are independent variables, the differential equation that relates , , and is said to be a
partial differential equation and it is abbreviated as PDE.
An example of a partial differential equation is the well-known one-dimensional wave equation
shown below.
Most of the electrical engineering problems are solved with ordinary differential equations with
constant coefficients; however, partial differential equations provide often quick solutions to
some practical applications as illustrated with the following three examples.
d
4
y
dx
4
--------
\ .
| |
2
5
d
3
y
dx
3
--------
\ .
| |
4
6
d
2
y
dx
2
--------
\ .
| |
6
3
dy
dx
------
\ .
| |
8
y
2
x
3
1 +
-------------- + + + + ye
2x
=
4 2
y x y f x ( ) =
y x
d
2
y
dt
2
-------- 3
dy
dt
------ 2 + + 5 4t cos =
x
2
d
2
y
dt
2
-------- x
dy
dt
------ x
2
n
2
( ) + + 0 =
y y f x t , ( ) = x
t y x t
o
2
y
ot
2
-------- a
2o
2
y
ox
2
-------- =
Review of Differential Equations
H-4 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Example H.3
The equivalent resistance of three resistors , , and in parallel is given by
Given that initially , , and compute the change in if is
increased by and is decreased by while does not change.
Solution:
The initial value of the equivalent resistance is .
We begin by treating and as constants and differentiating with respect to

we obtain
Similarly,
and the total differential is
By substitution of the given numerical values we obtain
Therefore, the eequivalent resistance decreases by .
Example H.4
In a series circuit that is excited by a sinusoidal voltage, the magnitude of the impedance is
computed from . Initially, and . Find the change in the
impedance if the resistance is increased by ( ) and the capacitive reactance
is decreased by ( ).
Solution:
We will first find the partial derivatives and ; then we compute the change in impedance
R
T
R
1
R
2
R
3
1
R
T
------
1
R
1
------
1
R
2
------
1
R
3
------ + + =
R
1
5 O = R
2
20 O = R
3
4 O = R
T
R
2
10 % R
3
5 % R
1
R
T
5 20 4

2 O = =
R
2
R
3
R
T
R
1
1
R
T
2
------
oR
T
oR
1
---------
1
R
1
2
------ = or
oR
T
oR
1
---------
R
T
R
1
------
\ .
| |
2
=
oR
T
oR
2
---------
R
T
R
2
------
\ .
| |
2
= and
oR
T
oR
3
---------
R
T
R
3
------
\ .
| |
2
=
dR
T
dR
T
oR
T
oR
1
---------dR
1
oR
T
oR
2
---------dR
2
oR
T
oR
3
---------dR
3
+ +
R
T
R
1
------
\ .
| |
2
dR
1
R
T
R
2
------
\ .
| |
2
dR
2
R
T
R
3
------
\ .
| |
2
dR + + = =
dR
T
2
5
-- -
\ .
| |
2
0 ( )
2
20
------
\ .
| |
2
2 ( )
2
4
-- -
\ .
| |
2
0.2 ( ) + + 0.02 0.05 0.03 = = =
3 %
RC Z
Z R
2
X
C
2
+ = R 4 O = X
C
3 O =
Z R 0.25 O 6.25 % X
C
0.125 O 4.167%
oZ
oR
-------
oZ
oX
C
----------
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-5
Copyright Orchard Publications
Classification
from the total differential . Thus,
and
and by substitution of the given values
Therefore, if increases by and decreases by , the impedance increases by
.
Example H.5
A light bulb is rated at volts and watts. If the voltage decreases by volts and the resis-
tance of the bulb is increased by , by how much will the power change?
Solution:
At volts and watts, the bulb resistance is
and since
and the total differential is
That is, the power will decrease by watts.
dZ
oZ
oR
-------
R
R
2
X
C
2
+
--------------------------- = and
oZ
oX
C
----------
X
C
R
2
X
C
2
+
--------------------------- =
dZ
oZ
oR
------- dR
oZ
oX
C
---------- dX
C
+
R dR X
C
dX
C
+
R
2
X
C
2
+
--------------------------------------- = =
dZ
4 0.25 ( ) 3 0.125 ( ) +
4
2
3
2
+
-----------------------------------------------------
1 0.375
5
-------------------------- 0.125 = = =
R 6.25 % X
C
4.167% Z
4.167%
120 75 5
8 O
V 120 = P 75 =
R
V
2
P
------
120
2
75
------------ 192 O = = =
P
V
2
R
------ = then
oP
oV
-------
2V
R
------- = and
oP
oR
-------
V
2
R
2
------ =
dP
oP
oV
------- dV
oP
oR
------- dR +
2V
R
-------dV
V
2
R
2
------ dR = =
2 120 ( )
192
----------------- 5 ( )
120
2
192
2
----------- 8 ( ) 9.375 = =
9.375
Review of Differential Equations
H-6 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
H.3 Solutions of Ordinary Differential Equations (ODE)
A function is a solution of a differential equation if the latter is satisfied when and its
derivatives are replaced throughout by and its corresponding derivatives. Also, the initial
conditions must be satisfied.
For example a solution of the differential equation
is

since and its second derivative satisfy the given differential equation.
Any linear, time-invariant electric circuit can be described by an ODE which has the form
(H.12)
If the excitation in (B12) is not zero, that is, if , the ODE is called a non-homogeneous
ODE. If , it reduces to:
(H.13)
The differential equation of (H.13) above is called a homogeneous ODE and has different lin-
early independent solutions denoted as .
We will now prove that the most general solution of (H.13) is:
(H.14)
where the subscript on the left side is used to emphasize that this is the form of the solution of
the homogeneous ODE and are arbitrary constants.
y f x ( ) = y
f x ( )
d
2
y
dx
2
-------- y + 0 =
y k
1
x sin k
2
x cos + =
y
a
n
d
n
y
dt
n
--------- a
n 1
d
n 1
y
dt
n 1
-------------- . a
1
dy
dt
------ a
0
y + + + +

b
m
d
m
x
dt
m
---------- b
m 1
d
m 1
x
dt
n 1
--------------- . b
1
dx
dt
------ b
0
x + + + +
Excitation Forcing ( ) Function x t ( )
=
NON HOMOGENEOUS DIFFERENTIAL EQUATION

x t ( ) 0
x t ( ) 0 =
a
n
d
n
y
dt
n
--------- a
n 1
d
n 1
y
dt
n 1
-------------- . a
1
dy
dt
------ a
0
y + + + + 0 =
HOMOGENEOUS DIFFERENTIAL EQUATION
n
y
1
t ( ) y
2
t ( ) y
3
t ( ) . y
n
t ( ) , , , ,
y
H
t ( ) k
1
y
1
t ( ) k
2
y
2
t ( ) k
3
y
3
t ( ) . k
n
y
n
t ( ) + + + + =
H
k
1
k
2
k
3
. k
n
, , , ,
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-7
Copyright Orchard Publications
Solutions of Ordinary Differential Equations (ODE)
Proof:
Let us assume that is a solution of (H.13); then by substitution,
(H.15)
A solution of the form will also satisfy (H.13) since
(H.16)
If and are any two solutions, then will also be a solution
since
and

Therefore,
(H.17)
In general, if
are the solutions of the homogeneous ODE of (H.13), the linear combination
is also a solution.
In our subsequent discussion, the solution of the homogeneous ODE, i.e., the complementary
solution, will be referred to as the natural response, and will be denoted as or simply . The
particular solution of a non-homogeneous ODE will be referred to as the forced response, and will
y
1
t ( )
a
n
d
n
y
1
dt
n
----------- a
n 1
d
n 1
y
1
dt
n 1
----------------- . a
1
dy
1
dt
-------- a
0
y
1
+ + + + 0 =
k
1
y
1
t ( )
a
n
d
n
dt
n
------- k
1
y
1
( ) a
n 1
d
n 1
dt
n 1
------------ k
1
y
1
( ) . a
1
d
dt
----- k
1
y
1
( ) a
0
k
1
y
1
( ) + + + +
k
1
a
n
d
n
y
1
dt
n
----------- a
n 1
d
n 1
y
1
dt
n 1
----------------- . a
1
dy
1
dt
-------- a
0
y
1
+ + + +
\ .
|
| |
0 = =
y y
1
t ( ) = y y
2
t ( ) = y y
1
t ( ) y
2
t ( ) + =
a
n
d
n
y
1
dt
n
----------- a
n 1
d
n 1
y
1
dt
n 1
----------------- . a
1
dy
1
dt
-------- a
0
y
1
+ + + + 0 =
a
n
d
n
y
2
dt
n
----------- a
n 1
d
n 1
y
2
dt
n 1
----------------- . a
1
d y
2
dt
--------- a
0
y
2
+ + + + 0 =
a
n
d
n
dt
n
------- y
1
y
2
+ ( ) a
n 1
d
n 1
dt
n 1
------------ y
1
y
2
+ ( ) . a
1
d
dt
----- y
1
y
2
+ ( ) a
0
y
1
y
2
+ ( ) + + + +
a
n
d
n
dt
n
------- y
1
a
n 1
d
n 1
dt
n 1
------------ y
1
. a
1
d
dt
----- y
1
a
0
y
1
a
n
d
n
dt
n
------- y
2
a
n 1
d
n 1
dt
n 1
------------ y
2
. a
1
d
dt
----- y
2
a
0
y
2
+ + + +
+ + + + + 0
=
=
y k
1
y
1
t ( ) k
2
y
1
t ( ) k
3
y
3
t ( ) . k
n
y
n
t ( ) , , , , =
n
y k
1
y
1
t ( ) k
2
y
1
t ( ) k
3
y
3
t ( ) . k
n
y
n
t ( ) + + + + =
y
N
t ( ) y
N
Review of Differential Equations
H-8 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
be denoted as or simply . Accordingly, we express the total solution of the non-homoge-
neous ODE of (H.12) as:
(H.18)
The natural response contains arbitrary constants and these can be evaluated from the given
initial conditions. The forced response , however, contains no arbitrary constants. It is impera-
tive to remember that the arbitrary constants of the natural response must be evaluated from the
total response.
H.4 Solution of the Homogeneous ODE
Let the solutions of the homogeneous ODE
(H.19)
be of the form
(H.20)
Then, by substitution of (H.20) into (H.19) we obtain
or
(H.21)
We observe that (H.21) can be satisfied when
(H.22)
but the only meaningful solution is the quantity enclosed in parentheses since the latter two yield
trivial (meaningless) solutions. We, therefore, accept the expression inside the parentheses as the
only meaningful solution and this is referred to as the characteristic (auxiliary) equation, that is,
(H.23)
Since the characteristic equation is an algebraic equation of an nth-power polynomial, its solu-
tions are , and thus the solutions of the homogeneous ODE are:
(H.24)
y
F
t ( ) y
F
y t ( ) y
Natural
Response
y
Forced
Response
+ y
N
y
F
+ = =
y
N
y
F
a
n
d
n
y
dt
n
--------- a
n 1
d
n 1
y
dt
n 1
-------------- . a
1
dy
dt
------ a
0
y + + + + 0 =
y ke
st
=
a
n
ks
n
e
st
a
n 1
ks
n 1
e
st
. a
1
kse
st
a
0
ke
st
+ + + + 0 =
a
n
s
n
a
n 1
s
n 1
. a
1
s a
0
+ + + + ( ) ke
st
0 =
a
n
s
n
a
n 1
s
n 1
. a
1
s a
0
+ + + + ( ) 0 or k 0 or s = = =
a
n
s
n
a
n 1
s
n 1
. a
1
s a
0
+ + + + ( ) 0 =
Characteristic Equation

s
1
s
2
s
3
. s
n
, , , ,
y
1
k
1
e
s
1
t
= y
2
k
2
e
s
2
t
= y
3
k
3
e
s
3
t
= . y
n
k
n
e
s
n
t
= , , , ,
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-9
Copyright Orchard Publications
Solution of the Homogeneous ODE
Case I - Distinct Roots
If the roots of the characteristic equation are distinct (different from each another), the solu-
tions of (H.23) are independent and the most general solution is:
(H.25)
Case II - Repeated Roots
If two or more roots of the characteristic equation are repeated (same roots), then some of the
terms of (H.24) are not independent and therefore (H.25) does not represent the most general
solution. If, for example, , then,
and we see that one term of (H.25) is lost. In this case, we express one of the terms of (H.25), say
as . These two represent two independent solutions and therefore the most general
solution has the form:
(H.26)
If there are m equal roots the most general solution has the form:
(H.27)
Case III - Complex Roots
If the characteristic equation contains complex roots, these occur as complex conjugate pairs.
Thus, if one root is where and are real numbers, then another root is
. Then,
(H.28)
n
y
N
k
1
e
s
1
t
= k
2
e
s
2
t
. k
n
e
s
n
t
+ + +
FOR DISTINCT ROOTS
s
1
s
2
=
k
1
e
s
1
t
k
2
e
s
2
t
+ k
1
e
s
1
t
k
2
e
s
1
t
+ k
1
k
2
+ ( )e
s
1
t
k
3
e
s
1
t
= = =
k
2
e
s
1
t
k
2
te
s
1
t
y
N
k
1
k
2
t + ( )e
s
1
t
= k
3
e
s
3
t
. k
n
e
s
n
t
+ + +
y
N
k
1
k
2
t . k
m
t
m 1
+ + + ( ) e
s
1
t
= k
n i
e
s
2
t
. k
n
e
s
n
t
+ + +
FOR M EQUAL ROOTS
s
1
o j + = o
s
1
o j =
k
1
e
s
1
t
k
2
e
s
2
t
+ k
1
e
ot jt +
k
2
e
ot j t
+ e
ot
k
1
e
jt
k
2
e
j t
+ ( ) = =
e
ot
k
1
t cos jk
1
sin t k
2
t cos jk
2
sin t + + ( ) =
e
ot
k
1
k
2
+ ( ) t cos j k
1
k
2
( ) sin t + [ ] =
e
ot
k
3
t cos k
4
sin t + ( ) e
ot
k
5
t + ( ) cos = =
FOR TWO COMPLEX CONJUGATE ROOTS
Review of Differential Equations
H-10 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
If (H.28) is to be a real function of time, the constants and must be complex conjugates.
The other constants , , , and the phase angle are real constants.
The forced response can be found by
a. The Method of Undetermined Coefficients or
b. The Method of Variation of Parameters
We will study the Method of Undetermined Coefficients first.
H.5 Using the Method of Undetermined Coefficients for the Forced Response
For simplicity, we will only consider ODEs of . Higher order ODEs are discussed in differ-
ential equations textbooks.
Consider the non-homogeneous ODE
(H.29)
where , , and are real constants.
We have learned that the total (complete) solution consists of the summation of the natural and
forced responses.
For the natural response, if and are any two solutions of (H.29), the linear combination
, where and are arbitrary constants, is also a solution, that is, if we know
the two solutions, we can obtain the most general solution by forming the linear combination of
and . To be certain that there exist no other solutions, we examine the Wronskian Determi-
nant defined below.
(H.30)
If (H.30) is true, we can be assured that all solutions of (H.29) are indeed the linear combination
of and .
The forced response is, in most circuit analysis problems, obtained by observation of the right side
of the given ODE as it is illustrated by the examples that follow.
k
1
k
2
k
3
k
4
k
5

order 2
a
t
2
2
d
d y
b
d
dt
-----y cy + + f x ( ) =
a b c
y
1
y
2
y
3
k
1
y
1
k
2
y
2
+ = k
1
k
2
y
1
y
2
W y
1
y
2
, ( )
y
1
y
2
d
dx
------ y
1
d
dx
------ y
2
= y
1
d
dx
------ y
2
y
2
d
dx
------ y
1
0 =
WRONSKIAN DETERMINANT
y
1
y
2
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-11
Copyright Orchard Publications
Using the Method of Undetermined Coefficients for the Forced Response
Example H.6
Find the total solution of the ODE
(H.31)
subject to the initial conditions and where
Solution:
This is a homogeneous ODE and its total solution is just the natural response found from the
characteristic equation whose roots are and . The total response
is:
(H.32)
The constants and are evaluated from the given initial conditions. For this example,
or
(H.33)
Also,
or
(H.34)
Simultaneous solution of (H.33) and (H.34) yields and . By substitution into
(H.32), we obtain
(H.35)
Check with MATLAB:
y=dsolve('D2y+4*Dy+3*y=0', 'y(0)=3', 'Dy(0)=4') % Must have Symbolic Math Tool box installed
y =
13/ ( 2*e xp( t ) ) - 7/ ( 2*e xp( 3*t ) )
pretty(y)
13 e xp( - t ) 7 e xp( - 3 t )
- - - - - - - - - - - - - - - - - - - - - -
2 2
The function is shown in Figure H.1 plotted with the MATLAB command
ezplot(y,[0 10])
t
2
2
d
d y
4
dy
dt
------ 3y + + 0 =
y 0 ( ) 3 = y' 0 ( ) 4 = y' dy dt ' =
s
2
4s 3 + + 0 = s
1
1 = s
2
3 =
y t ( ) y
N
t ( ) k
1
e
t
k
2
e
3t
+ = =
k
1
k
2
y 0 ( ) 3 k
1
e
0
k
2
e
0
+ = =
k
1
k
2
+ 3 =
y' 0 ( ) 4
dy
dt
------
t 0 =
k
1
e
t
3k
2
e
3t

t 0 =
= = =
k
1
3k
2
4 =
k
1
6.5 = k
2
3.5 =
y t ( ) y
N
t ( ) 6.5e
t
3.5e
3t
= =
y f t ( ) =
Review of Differential Equations
H-12 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure H.1. Plot for the function of Example H.6.
Example H.7
Find the total solution of the ODE
(H.36)
subject to the initial conditions and
Solution:
The left side of (H.36) is the same as that of Example H.6.Therefore,
(H.37)
(We must remember that the constants and must be evaluated from the total response).
To find the forced response, we assume a solution of the form
(H.38)
We can find out whether our assumption is correct by substituting (H.38) into the given ODE of
(H.36). Then,
(H.39)
0 1 2 3 4 5 6 7 8 9 10
0
0.5
1
1.5
2
2.5
3
t
13/(2 exp(t)) - 7/(2 exp(3 t))
y
y f t ( ) =
t
2
2
d
d y
4
dy
dt
------ 3y + + 3e
2t
=
y 0 ( ) 1 = y' 0 ( ) 1 =
y
N
t ( ) k
1
e
t
k
2
e
3t
+ =
k
1
k
2
y
F
Ae
2t
=
4Ae
2t
8Ae
2t
3Ae
2t
+ 3e
2t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-13
Copyright Orchard Publications
Using the Method of Undetermined Coefficients for the Forced Response
from which and the total solution is
(H.40)
The constants and are evaluated from the given initial conditions. For this example,
or
(H.41)
Also,
or

Simultaneous solution of (H.41) and (H.42) yields and . By substitution into
(H.40), we obtain
(H.42)
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+4*Dy+3*y=3*exp(-2*t)', 'y(0)=1', 'Dy(0)=-1')
y=
5/ ( 2*e xp( t ) ) - 3/ e xp( 2*t ) + 3/ ( 2*e xp( 3*t ) )
pretty(y)
5 e xp( - t ) 3 e xp( - 3 t )
- - - - - - - - - - 3 e xp( - 2 t ) + - - - - - - - - - - -
2 2
ezplot(y,[0 8])
The plot is shown in Figure H.2
Example H.8
Find the total solution of the ODE
(H.43)
subject to the initial conditions and
A 3 =
y t ( ) y
N
y
F
+ k
1
e
t
k
2
e
3t
3 e
2t
+ = =
k
1
k
2
y 0 ( ) 1 k
1
e
0
k
2
e
0
3e
0
+ = =
k
1
k
2
+ 4 =
y' 0 ( ) 1
dy
dt
------
t 0 =
k
1
e
t
3k
2
e
3t
6e
2t
+
t 0 =
= = =
k
1
3k
2
7 =
k
1
2.5 = k
2
1.5 =
y t ( ) y
N
y
F
+ 2.5e
t
1.5e
3t
3 e
2t
+ = =
t
2
2
d
d y
6
dy
dt
------ 9y + + 0 =
y 0 ( ) 1 = y' 0 ( ) 1 =
Review of Differential Equations
H-14 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
Figure H.2. Plot for the function of Example H.7
Solution:
This is a homogeneous ODE and therefore its total solution is just the natural response found
from the characteristic equation whose roots are (repeated roots).
Thus, the total response is
(H.44)
Next, we evaluate the constants and from the given initial conditions. For this example,
or
(H.45)
Also,
or
(H.46)
From (H.45) and (H.46) we obtain and . By substitution into (H.44),
(H.47)
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+6*Dy+9*y=0', 'y(0)=-1', 'Dy(0)=1')
0 1 2 3 4 5 6 7 8
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
t
5/(2 exp(t)) - 3/exp(2 t) + 3/(2 exp(3 t))
y
y f t ( ) =
s
2
6s 9 + + 0 = s
1
s
2
3 = =
y t ( ) y
N
k
1
e
3t
k
2
te
3t
+ = =
k
1
k
2
y 0 ( ) 1 k
1
e
0
k
2
0 ( )e
0
+ = =
k
1
1 =
y' 0 ( ) 1
dy
dt
------
t 0 =
3k
1
e
3t
k
2
e
3t
3k
2
te
3t
+
t 0 =
= = =
3k
1
k
2
+ 1 =
k
1
1 = k
2
2 =
y t ( ) e
3t
2te
3t
=
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-15
Copyright Orchard Publications
Using the Method of Undetermined Coefficients for the Forced Response
y =
- 1/ e xp( 3*t ) - ( 2*t ) / e xp( 3*t )
ezplot(y,[0 4])
The plot is shown in Figure H.3.
Figure H.3. Plot for the function of Example H.8.
Example H.9
Find the total solution of the ODE
(H.48)
Solution:
No initial conditions are given; therefore, we will express the solution in terms of the constants
and . By inspection, the roots of the characteristic equation of (H.48) are and
and thus the natural response has the form
(H.49)
Next, we find the forced response by assuming a solution of the form
(H.50)
0 0.5 1 1.5 2 2.5 3 3.5 4
-0.9
-0.8
-0.7
-0.6
-0.5
-0.4
-0.3
-0.2
-0.1
0
t
- 1/exp(3 t) - (2 t)/exp(3 t)
y
y f t ( ) =
t
2
2
d
d y
5
dy
dt
------ 6y + + 3e
2t
=
k
1
k
2
s
1
2 = s
2
3 =
y
N
k
1
e
2t
k
2
e
3t
+ =
y
F
Ae
2t
=
Review of Differential Equations
H-16 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
We can find out whether our assumption is correct by substitution of (H.50) into the given ODE
of (H.48). Then,
(H.51)
but the sum of the three terms on the left side of (H.52) is zero whereas the right side can never be
zero unless we let t and this produces a meaningless result.
The problem here is that the right side of the given ODE of (H.48) has the same form as one of
the terms of the natural response of (H.49), namely the term .
To work around this problem, we assume that the forced response has the form
(H.52)
that is, we multiply (H.50) by in order to eliminate the duplication of terms in the total
response. Then, by substitution of (H.52) into (H.48) and equating like terms, we find that
. Therefore, the total response is
(H.53)
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+5*Dy+6*y=3*exp(-2*t)')
y =
- 3*e xp( - 2*t ) +3*t *e xp( - 2*t ) +C1*e xp( - 3*t ) +C2*e xp( - 2*t )
Example H.10
Find the total solution of the ODE
(H.54)
Solution:
No initial conditions are given; therefore, we will express solution in terms of the constants
and . We observe that the left side of (H.54) is the same of that of Example H.9. Therefore, the
natural response is the same, that is, it has the form
(H.55)
Next, to find the forced response and we assume a solution of the form
(H.56)
4Ae
2t
10Ae
2t
6Ae
2t
+ 3e
2t
=
k
1
e
2t
y
F
Ate
2t
=
t
A 3 =
y t ( ) y
N
y
F
+ k
1
e
2t
k
2
e
3t
3te
2t
+ + = =
t
2
2
d
d y
5
dy
dt
------ 6y + + 4 5t cos =
k
1
k
2
y
N
k
1
e
2t
k
2
e
3t
+ =
y
F
A 5t cos =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-17
Copyright Orchard Publications
Using the Method of Undetermined Coefficients for the Forced Response
We can find out whether our assumption is correct by substitution of the assumed solution of
(H.56) into the given ODE of (H.55). Then,
but this relation is invalid since by equating cosine and sine terms, we find that and
also . This inconsistency is a result of our failure to recognize that the derivatives of
produce new terms of the form and these terms must be included in the forced
response. Accordingly, we let
(H.57)
and by substitution into (H.54) we obtain
Collecting like terms and equating sine and cosine terms, we obtain the following set of equations
(H.58)
We use MATLAB to solve (H.58)
% Must have Symbolic Math Tool box installed
format rat; [k3 k4]=solve(19*x+25*y, 25*x-19*y-4)
k3 =
50/ 493
k4 =
- 38/ 493
Therefore, the total solution is
(H.59)
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+5*Dy+6*y=4*cos(5*t)'); y=simple(y)
y =
- 38/ 493*c os ( 5*t ) +50/ 493*s i n( 5*t ) +C1*e xp( - 3*t ) +C2*e xp( - 2*t )
In most engineering problems the right side of the non-homogeneous ODE consists of elementary
functions such as (constant), where is a positive integer, , , , and linear
25A 5t cos 25A 5 sin t 6A 5t cos + 19A 5t cos 25A 5 sin t 4 5t cos = =
A 4 19 ' =
A 0 =
A 5t cos B 5t sin
y
F
k
3
5 sin t k
4
5t cos + =
25 k
3
5t sin 25k
4
5 cos t 25k
3
5 cos t + 25k
4
5 sin t
6k
3
5t sin 6k
4
5 cos t + + 4 5 cos t =
19k
3
25k
4
+ 0 =
25k
3
19 k
4
4 =
y t ( ) y
N
y
F
t ( ) + k
1
e
2t
k
2
e
3t 50
493
--------- 5t sin
38
493
--------- 5t cos + + + = =
k x
n
n e
kx
kx cos kx sin
Review of Differential Equations
H-18 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
combinations of these. Table H.1 summarizes the forms of the forced response for a second order
ODE with constant coefficients.
We must remember that if is the sum of several terms, the most general form of the forced
response is the linear combination of these terms. Also, if a term in is a duplicate of a
term in the natural response , we must multiply by the lowest power of that will
eliminate the duplication.
Example H.11
Find the total solution of the ODE
(H.60)
Solution:
No initial conditions are given; therefore we will express solution in terms of the constants and
. The roots of the characteristic equation are equal, that is, , and thus the natural
response has the form
(H.61)
To find the forced response (particular solution), we refer to Table H.1 and from the last row we
choose the term . This term with , , and , reduces to .
TABLE H.1 Form of the forced response for 2nd order differential equations
Forced Response of the ODE
Form of Forced Response
(constant) (constant)
( = positive integer)
( =real or complex)
or ( =constant)
or
+
a
d
2
y
dt
2
-------- b
dy
dt
------ cy + + f t ( ) =
f t ( )
y
F
t ( )
k K
k t
n
n K
0
t
n
K
1
t
n 1
. K
n 1
t K
n
+ + + +
ke
r t
r Ke
r t
k ot cos k ot sin o K
1
coaot K
2
ot sin +
k t
n
e
r t
ot cos k t
n
e
r t
o sin t K
0
t
n
K
1
t
n 1
. K
n 1
t K
n
+ + + + ( )e
r t
ot cos
K
0
t
n
K
1
t
n 1
. K
n 1
t K
n
+ + + + ( )e
r t
ot sin
f t ( )
y
F
t ( ) y
F
t ( )
y
N
t ( ) y
F
t ( ) t
t
2
2
d
d y
4
dy
dt
------ 4y + + te
2t
e
2t
=
k
1
k
2
s
1
s
2
2 = =
y
N
k
1
e
2 t
k
2
te
2 t
+ =
k t
n
e
r t
ot cos n 1 = r 2 = o 0 = kte
2 t
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-19
Copyright Orchard Publications
Using the Method of Undetermined Coefficients for the Forced Response
Therefore the forced response will have the form
(H.62)
But the terms and are also present in (H.61); therefore, we multiply (H.62) by to
obtain a suitable form for the forced response which now is
(H.63)
Now, we need to evaluate the constants and . This is done by substituting (H.63) into the
given ODE of (H.60) and equating with the right side. We use MATLAB do the computations as
shown below.
syms t k3 k4 % Define symbolic variables
f0=(k3*t^3+k4*t^2)*exp(-2*t); % Forced response (H.64)
f1=diff(f0); f1=simple(f1) % Compute and simplify first derivative
f 1 =
- t *e xp( - 2*t ) *( - 3*k3*t - 2*k4+2*k3*t ^2+2*k4*t )
f2=diff(f0,2); f2=simple(f2) % Compute and simplify second derivative
f 2 =
2*e xp( - 2*t ) *( 3*k3*t +k4- 6*k3*t ^2- 4*k4*t +2*k3*t ^3+2*k4*t ^2)
f=f2+4*f1+4*f0; f=simple(f)% Form and simplify the left side of the given ODE
f = 2*( 3*k3*t +k4) *e xp( - 2*t )
Finally, we equate f above with the right side of the given ODE, that is
(H.64)
and we find and . By substitution of these values into (H.64) and combining
the forced response with the natural response, we obtain the total solution
(H.65)
We verify this solution with MATLAB.
% Must have Symbolic Math Tool box installed
z=dsolve('D2y+4*Dy+4*y=t*exp(-2*t)-exp(-2*t)')
z =
1/ 6*e xp( -2*t ) *t ^3-1/ 2*e xp( -2*t ) *t ^2
+C1*e xp( -2*t ) +C2*t *e xp( -2*t )
y
F
k
3
t k
4
+ ( )e
2 t
=
e
2t
te
2t
t
2
y
F
k
3
t
3
k
4
t
2
+ ( )e
2 t
=
k
3
k
4
2 3k
3
t k
4
+ ( )e
2t
te
2t
e
2t
=
k
3
1 6 ' = k
4
1 2 ' =
y t ( ) k
1
e
2 t
k
2
te
2 t 1
6
-- -t
3
e
2 t 1
2
-- -t
2
e
2 t
+ + =
Review of Differential Equations
H-20 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
H.6 Using the Method of Variation of Parameters for the Forced Response
In certain non-homogeneous ODEs, the right side cannot be determined by the method of
undetermined coefficients. For these ODEs we must use the method of variation of parameters.
This method will work with all linear equations including those with variable coefficients such as
(H.66)
provided that the general form of the natural response is known.
Our discussion will be restricted to second order ODEs with constant coefficients.
The method of variation of parameters replaces the constants and by two variables and
that satisfy the following three relations:
(H.67)
(H.68)
(H.69)
Simultaneous solution of (H.68) and (H.69) will yield the values of and ; then,
integration of these will produce and , which when substituted into (H.67) will yield the
total solution.
Example H.12
Find the total solution of
(H.70)
in terms of the constants and by the
a. method of undetermined coefficients
b. method of variation of parameters
Solution:
With either method, we must first find the natural response. The characteristic equation yields
the roots and . Therefore, the natural response is
f t ( )
d
2
y
dt
2
-------- o t ( )
dy
dt
------ t ( )y + + f t ( ) =
k
1
k
2
u
1
u
2
y u
1
y
1
u
2
y
2
+ =
du
1
dt
------- y
1
du
2
dt
------- y
2
+ 0 =
du
1
dt
-------
dy
1
dt
-------
du
2
dt
--------
dy
2
dt
-------- + f t ( ) =
du
1
dt ' du
2
dt '
u
1
u
2
d
2
y
dt
2
-------- 4
dy
dt
------ 3y + + 12 =
k
1
k
2
s
1
1 = s
2
3 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-21
Copyright Orchard Publications
Using the Method of Variation of Parameters for the Forced Response
(H.71)
a. Using the method of undetermined coefficients we let (a constant). Then, by substi-
tution into (H.70) we obtain and thus the total solution is
(H.72)
b. With the method of variation of parameters we start with the natural response found above as
(H.71) and we let the solutions and be represented as
(H.73)
Then by (H.67), the total solution is
or
(H.74)
Also, from (H.68),
or
(H.75)
and from (H.69),
or
(H.76)
Next, we find and by Cramers rule as follows:
(H.77)
and
(H.78)
Now, integration of (H.77) and (H.78) and substitution into (H.75) yields
y
N
k
1
e
t
k
2
e
3 t
+ =
y
F
k
3
=
k
3
4 =
y t ( ) y
N
y
F
+ k
1
e
t
k
2
e
3 t
4 + + = =
y
1
y
2
y
1
e
t
= and y
2
e
3t
=
y u
1
y
1
u
2
y
2
+ =
y u
1
e
t
u
2
e
3t
+ =
du
1
dt
--------y
1
du
2
dt
--------y
2
+ 0 =

du
1
dt
--------e
t
du
2
dt
--------e
3t
+ 0 =
du
1
dt
-------
dy
1
dt
-------
du
2
dt
--------
dy
2
dt
-------- + f t ( ) =

du
1
dt
-------- e
t
( )
du
2
dt
-------- 3e
3t
( ) + 12 =
du
1
dt ' du
2
dt '
du
1
dt
--------
0 e
3t
12 3e
3t

e
t
e
3t
e
t
3e
3t

------------------------------------------
12e
3t

3e
4t
e
4t
+
------------------------------
12e
3t

2e
4t

----------------- 6e
t
= = = =
du
2
dt
--------
e
t
0
e
t
12
2e
4t

---------------------------------
12e
t
2e
4t

-------------- 6 e
3t
= = =
Review of Differential Equations
H-22 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
(H.79)
(H.80)
We observe that the last expression in (H.80) is the same as (H.72) of part (a).
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+4*Dy+3*y=12')
y =
( 4*e xp( t ) +C1*e xp( - 3*t ) *e xp( t ) +C2) / e xp( t )
Example H.13
Find the total solution of
(H.81)
in terms of the constants and by any method.
Solution:
This ODE cannot be solved by the method of undetermined coefficients; therefore, we will use
the method of variation of parameters.
The characteristic equation is from which and thus the natural response is
(H.82)
We let
(H.83)
Then, by (H.67) the solution is
(H.84)
Also, from (H.68),
or
(H.85)
u
1
6 e
t
t d
}
6e
t
k
1
+ = = u
2
6 e
3t
t d
}
2 e
3t
k
2
+ = =
y u
1
e
t
u
2
e
3t
+ =
6e
t
k
1
+ ( )e
t
2 e
3t
k
2
+ ( )e
3t
+ ( ) =
6 k
1
e
t
2 k
2
e
3t
+ + ( ) =
k
1
e
t
k
2
e
3t
4 + + ( ) =
d
2
y
dt
2
-------- 4y + 2t tan =
k
1
k
2
s
2
4 + 0 = s j2 =
y
N
k
1
e
j 2t
k
2
e
j 2t
+ =
y
1
2t cos = and y
2
2t sin =
y u
1
y
1
u
2
y
2
+ u
1
2t cos u
2
2t sin + = =
du
1
dt
-------y
1
du
2
dt
--------y
2
+ 0 =

du
1
dt
------- 2t cos
du
2
dt
-------- 2t sin + 0 =
Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling H-23
Copyright Orchard Publications
Using the Method of Variation of Parameters for the Forced Response
and from (H.69),
(H.86)
Next, we find and by Cramers rule as follows:
(H.87)
and
(H.88)
Now, integration of (H.87) and (H.88) and substitution into (H.84) yields
(H.89)
(H.90)
(H.91)
Check with MATLAB:
% Must have Symbolic Math Tool box installed
y=dsolve('D2y+4*y=tan(2*t)')
y =
- 1/ 4*c os ( 2*t ) *l og( ( 1+s i n( 2*t ) ) / c os ( 2*t ) ) +C1*c os ( 2*t ) +C2*s i n( 2*t )
du
1
dt
-------
dy
1
dt
-------
du
2
dt
--------
dy
2
dt
-------- + f t ( )
du
1
dt
------- = = 2 2t sin ( )
du
2
dt
-------- 2 2t cos ( ) + 2t tan =
du
1
dt ' du
2
dt '
du
1
dt
-------
0 2t sin
2t tan 2 2t cos
2t cos 2t sin
2 2t sin 2 2t cos
------------------------------------------------------
2t
2
sin
2t cos
--------------
2 2t
2
cos 2 2t
2
sin +
-------------------------------------------
2t
2
sin
2 2t cos
------------------ = = =
du
2
dt
--------
2t cos 0
2 2t sin 2t tan
2
--------------------------------------------------
2t sin
2
------------ = =
u
1
1
2
---
2t
2
sin
2t cos
-------------- t d
}
2t sin
4
------------
1
4
--- 2t sec 2t tan + ( ) ln k
1
+ = =
u
2
1
2
-- - 2t sin t d
}
2t cos
4
------------- k
2
+ = =
y u
1
y
1
u
2
y
2
+
2t 2t cos sin
4
---------------------------
1
4
-- - 2t 2t sec 2t tan + ( ) ln cos k
1
2t cos +
2t 2t cos sin
4
--------------------------- k
2
2t sin + = =
1
4
-- - 2t 2t sec 2t tan + ( ) ln cos k
1
2t cos k
2
2t sin + + =
Review of Differential Equations
H-24 Circuit Analysis II with MATLAB

Computing and Simulink

/ SimPowerSystems

Modeling
Copyright Orchard Publications
H.7 Exercises
Solve the following ODEs by any method.
1.

Answer:

2.

Answer:
3.
Hint: Use
Answer:
4.

Answer:
d
2
y
dt
2
-------- 4
dy
dt
------ 3y + + t 1 =
y k
1
e
t
k
2
e
3t 1
3
---t
7
9
-- - + + =
d
2
y
dt
2
-------- 4
dy
dt
------ 3y + + 4e
t
=
y k
1
e
t
k
2
e
3t
2te
t
+ + =
d
2
y
dt
2
-------- 2
dy
dt
------ y + + t
2
cos = t
2
cos
1
2
-- - 2t 1 + cos ( ) =
y k
1
e
t
k
2
te
t 1
2
-- -
3 2t cos 4 2t sin
50
--------------------------------------- + + =
d
2
y
dt
2
-------- y + t sec =
y k
1
t cos k
2
t sin t t sin t t cos ln ( ) cos + + + =
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling I1
Copyright Orchard Publications
Appendix I
Constructing Semilog Paper with Excel and with MATLAB
his appendix contains instructions for constructing semilog plots with the Microsoft Excel
spreadsheet. Semilog, short for semilogarithmic, paper is graph paper having one logarithmic
and one linear scale. It is used in many scientific and engineering applications including fre-
quency response illustrations and Bode Plots.
I.1 Instructions for Constructing Semilog Paper with Excel
Figure I.1 shows the Excel spreadsheet workspace and identifies the different parts of the Excel win-
dow when we first start Excel.

Figure I.1. The Excel Spreadsheet Workspace
T
Menu bar
ChartWizard
Chart toolbar (hidden)




Constructing Semilog Paper with Excel and with MATLAB
I2 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
Figure I.2 shows that whenever a chart is selected, as shown by the visible handles around the
selected chart, the Chart drop menu appears on the Menu bar and that the Chart toolbar now is visi-
ble. We can now use the Chart Objects Edit Box and Format Chart Area tools to edit our chart.
Figure I.2. The Excel Spreadsheet with Chart selected
1. Begin with a blank spreadsheet as shown in Figure I.1.
2. Click Chart Wizard.
3. Click XY (Scatter) Chart type under the Standard Types tab on the Chart Wizard menu.
4. The Chart subtype shows five different subtypes. Click the upper right (the one showing two
continuous curves without square points.)
5. Click Next, Series tab, Add, Next.
6. Click Gridlines tab and click all square boxes under Value Xaxis and Value Yaxis to place
check marks on Major and Minor gridlines.
Menu bar
ChartWizard
Chart Objects Edit Box Format Chart Area
Handles
Chart drop menu
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling I3
Copyright Orchard Publications
Instructions for Constructing Semilog Paper with Excel
7. Click Next, Finish, click Series 1 box to select it, and press the Delete key on the keyboard to
delete it.
8. The plot area normally appears in gray color. To change it to white, first make sure that the chart
is selected, that is, the handles (black squares) around the plot are visible. Point the mouse on the
Chart Objects Edit Box tool (refer to Figure I.2), scroll down, click Plot Area, then click For-
mat Plot Area (shown as Format Chart Area tool in Figure I.2).
9. The Area section on the Patterns tab shows several squares with different colors. Click the white
square, fifth row, rightmost column, and click OK to return to the Chart display. You will
observe that the Plot Area has now a white background.
10. Click anywhere near the xaxis (lowest horizontal line on the plot) and observe that the Chart
Objects Edit box now displays Value (X) axis. Click the Format Chart Area tool which now
displays Format Axis, click the Scale tab and make the following entries:
Minimum: 1 Maximum: 100000 Major Unit: 10 Minor Unit: 10
Make sure that the squares to the left of these values are not checked.
Click Logarithmic scale to place a check mark, and click OK to return to the plot.
11. Click anywhere near the yaxis (leftmost vertical line on the plot) and observe that the Chart
Objects Edit box now displays Value (Y) axis. Click the Format Chart Area tool which now
displays Format Axis, click he Scale tab and make the following entries:
Minimum: 80 Maximum: 80 Major Unit: 20 Minor Unit: 20
Make sure that the squares to the left of these values are not checked. Also, make sure that the
Logarithmic scale is not checked. Click OK to return to the plot.
12. You will observe that the xaxis values appear at the middle of the plot. To move them below the
plot, click Format Chart Area tool, click Patterns tab, click Tick mark labels (lower right sec-
tion), and click OK to return to the plot area.
13. To expand the plot so that it will look more useful and presentable, make sure that the chart is
selected (the handles are visible). This is done by clicking anywhere in the chart area. Bring the
mouse close to the lower center handle until a bidirectional arrow appears and stretch down-
wards. Repeat with the right center handle to stretch the plot to the right. Alternately, you may
bring the mouse near the lower right handle and stretch the plot diagonally.
14. You may wish to display the xaxis values in exponential (scientific) format. To do that, click any-
where near the xaxis (zero point), and observe that the Chart Objects Edit box now displays
Value (X) axis. Click the Format Chart Area tool which now displays Format Axis, click the
Number tab and under Category click Scientific with zero decimal places.
15. If you wish to enter title and labels for the x and yaxes, with the chart selected, click Chart (on
the Menu bar), click Chart Options, and on the Titles tab enter the Title and the x and yaxis
Constructing Semilog Paper with Excel and with MATLAB
I4 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
labels. Remember that the Chart drop menu on the Menu bar and the Chart toolbar are hidden
when the chart is deselected.
16. With the values used for this example, your semilog plot should look like the one in Figure I.3,
and it can be printed for creating Bode plots.
Figure I.3. Semilog paper created with Excel
I.2 Instructions for Constructing Semilog Paper with MATLAB
It is much easier to construct semilog paper with MATLAB. The procedure is as follows:
1. Begin with the MATLAB script below.
x=linspace(1,10^6,7); y=linspace(-40,90,7); semilogx(x,y);...
grid; xlabel('Frequency (log scale)'); ylabel('Gain (linear scale)')
With this script, MATLAB creates the plot shown in Figure I.4.
2. To change the background from gray to white, scroll down the Figure Color icon and
select the white (blank) square by clicking it.
3. To erase the unwanted line segment, click it, and now the plot appears as shown in Figure I.5.
-80
-60
-40
-20
0
20
40
60
80
1.E+00 1.E+01 1.E+02 1.E+03 1.E+04 1.E+05
Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling I5
Copyright Orchard Publications
Instructions for Constructing Semilog Paper with MATLAB
Figure I.4. MATLAB plot generated with the script above
Figure I.5. Selecting the unwanted line segment to erase it
10
0
10
1
10
2
10
3
10
4
10
5
10
6
-40
-20
0
20
40
60
80
100
Frequency (log scale)
G
a
i
n

(
l
i
n
e
a
r

s
c
a
l
e
)
Constructing Semilog Paper with Excel and with MATLAB
I6 Circuit Analysis II with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
4. Change the Line parameter shown in Figure 1.6 to no line
*
. The plot now appears as shown in
Figure 1.7, and can be printed for use with Bode plots.
Figure I.6. Changing line to no line
Figure I.7. Semilog paper created with MATLAB
*. The unwanted line segment can also be erased with the Delete key.
10
0
10
1
10
2
10
3
10
4
10
5
10
6
-40
-20
0
20
40
60
80
100
Frequency (log scale)
G
a
i
n

(
l
i
n
e
a
r

s
c
a
l
e
)
Circuit Analysis I with MATLAB

Computing and Simulink / SimPowerSystems

Modeling R1
Copyright Orchard Publications
References and Suggestions for Further Study
A. The following publications by The MathWorks, are highly recommended for further study. They
are available from The MathWorks, 3 Apple Hill Drive, Natick, MA, 01760,
www.mathworks.com.
1. Getting Started with MATLAB

2. Using MATLAB


3. Using MATLAB

Graphics
4. Using Simulink

5. SimPowerSystems

for Use with Simulink

6. FixedPoint Toolbox
7. Simulink

FixedPoint
8. RealTime Workshop
9. Signal Processing Toolbox
10. Getting Started with Signal Processing Blockset
10. Signal Processing Blockset
11. Control System Toolbox
12. Stateflow

B. Other references indicated in text pages and footnotes throughout this text, are listed below.
1. Mathematics for Business, Science, and Technology, ISBN 9781934404010
2. Numerical Analysis Using MATLAB

and Excel

, ISBN 9781934404034
3. Circuit Analysis I with MATLAB

Computing and Simulink / SimPoweStems Modeling,


ISBN 9781934404171
4. Signals and Systems with MATLAB

Computing and Simulink

Modeling,
ISBN 9781934404119
5. Electronic Devices and Amplifier Circuits with MATLAB

Applications, ISBN 9781934404133


6. Digital Circuit Analysis and Design with Simulink Modeling and Introduction to CPLDs and FPGAs,
ISBN 9781934404058
R2 Circuit Analysis I with MATLAB

Computing and Simulink / SimPowerSystems

Modeling
Copyright Orchard Publications
7. Introduction to Simulink

with Engineering Applications, ISBN 9781934404096


8. Introduction to Stateflow

with Applications, ISBN 9781934404072


9. Reference Data for Radio Engineers, ISBN 0672212188, Howard W. Sams & Co.
10. Electronic Engineers Handbook, ISBN 0070209812, McGrawHill
Index
Symbols and Numerics coefficient of coupling 9-18 deconv in MATLAB A-6
cofactor 10-3, E-11, E-13 default color in MATLAB A-15
% (percent) symbol in MATLAB A-2 collect(s) MATLAB function 5-12 default line in MATLAB A-15
3-phase systems - see column vector in MATLAB A-20 default marker in MATLAB A-15
three-phase systems command screen in MATLAB A-1 degree of differential equation H-3
command window in MATLAB A-1 delta function 3-8
A commas in MATLAB A-8 sampling property 3-12
comment line in MATLAB A-2 sifting property 3-13
abs(z) in MATLAB A-23 Commonly Used blocks Delta to Wye conversion 11-11
AC Voltage Source C-5 in Simulink B-7 Delta-Wye transformation 12-7
adjoint of a matrix E-20 complex conjugate A-4 demo in MATLAB A-2
admittance Y(s) 6-13 complex conjugate pairs 5-5 detector circuit 2-19
driving-point 10-5 complex number A-3, D-2 determinant E-10
algebraic constrain blocks B-18 complex poles 5-5 diagonal of a matrix E-6
all-day efficiency 9-45 complex roots of diagonal elements of a matrix. E-2j
alpha coefficient 1-3, 1-16 characteristic equation H-9 differential equations
alternate method of partial computation by reduction auxiliary equation H-8
fraction expansion 5-14 to single phase 11-19 characteristic equation H-8
amplitude plots 8-24 computation of the state classification H-3
angle(z) in MATLAB A-23 transition matrix 7-10 degree H-3
antenna 2-18 configuration parameters B-12 most general solution H-6
antiresonance 2-6 conformable for addition E-2 solution by the
asymptotes 8-4, 8-6 conformable for multiplicatio E-4 method of undetermined
audio frequency amplifier 2-19 congugate of a matrix E-8 coefficients H-10
autoscale icon in Simulink B-12 conj(x) in MATLAB E-9 method of variation
autotransformer 9-36 conjugate of a complex number D-3 of parameters H-20
axis in MATLAB A-16, A-22 contents pane in Simulink B-7 differentiation
Continuous method in in time domain 4-4
B SimPowerSystems C-2 in complex frequency domain 4-5
Controlled Voltage Source in Dirac(t) in MATLAB 3-18
balanced currents 11-2 SimPowerSystems C-6 direct term in MATLAB 5-4
bandwidth 2-11, 8-3 conv(a,b) in MATLAB A-6 discontinuous function 3-1
beta coefficient 1-3, 1-16 convolution Discrete method in SimPowerSystems C-2
bilateral Laplace transform 4-1 in the complex frequency domain 4-11 Display block in Simulink B-18
Bode plots 8-4 in the time domain 4-11 display formats in MATLAB A-31
bode(sys,w) MATLAB function 8-20 copper losses in transformer 9-42 distinct poles 5-2
bodemag(sys,w) MATLAB function 8-20 corner frequency - see frequency distinct roots of characteristic equation H-9
box in MATLAB A-12 Cramers rule E-17 division of complex numbers D-4
bridged network 10-31 critically damped natural response 1-3 dot convention in transformers 9-8
Current Measurement block in dot multiplication, division, and
C SimPowerSystems C-3 exponentiation in MATLAB A-20
cutoff frequency 8-3 doublet function 3-13
capacitive network transformation 6-2 driving-point admittance 10-4
Cartesian form of complex numbrs D-6 D
Cayley-Hamilton theorem 7-11 E
characteristic (auxiliary) equation H-8 damped natural frequency 1-3, 1-16
characteristic equation 7-19 damping coefficient 1-3, 1-16, 8-14 eddy current 9-37, 9-42, 9-61, 9-64
circuit analysis with Laplace transforms 6-1 data points in MATLAB A-14 editor window in MATLAB A-1
circuit analysis with state variables 7-22 dB - see decibel editor/debugger in MATLAB A-1
classification of differential equations H-3 DC isolation in transformers 9-19 eig(x) MATLAB function 7-17
clc in MATLAB A-2 DC Voltage Source block C-3 eigenvalues 7-10
clear in MATLAB A-2 decade 8-4 eigenvector 7-18
close-coupled transformer 9-18 decibel 8-1, A-13 electrokinetic momentum 9-1
IN-1
element-by-element division and frequency scaling F-1 integration in
exponentiation in MATLAB A-21 frequency selectivity 2-5 complex frequency domain 4-7
element-by-element multiplication frequency shifting property 4-3 time domain 4-6
in MATLAB A-18, A-20 full rectification waveform 4-31 inverse hybrid parameters 10-27
Elements library in function block parameters inverse Laplace transform 4-1
SimPowerSystems C-3 in Simulink B-10 inverse Laplace transform integral 5-1
elements of the matrix E-1 function file in MATLAB A-26 inverse matrix method of solution E-24
energy efficiencyin transformers 9-45 fzero in MARLAB A-26, A-28 inverse of a matrix E-22
Environmental block C-2
eps in MATLAB A-22, A-27 G J
equivalent circuit 9-34
Equivalent Delta and g parameters 10-26 j operator D-1
Y-connected loads 11-10 Gain block in Simulink B-18
Eulers identities D-5 gamma function 4-14 L
exit in MATLAB A-2 Gaussian elimination method E-19
expand(s) MATLAB function 5-10 generalized factorial function 4-14 LHpitals rule 1-22, 4-15
exponential and polar forms geometric mean 2-14 laplace MATLAB function 4-26
of complex numbers D-4 grid in MATLAB A-12 Laplace transform of
exponential order function 4-2 Ground block in common functions 4-12
eye(n) in MATLAB E-7 SimPowerSystems C-3 Laplace transform of
gtext in MATLAB A-13 several waveforms 4-21
F Laplace transformation 4-1
H leakage flux 9-37
factor(s) MATLAB function 5-4 left-hand rule 9-2
Faradays law of h parameters 10-22 Leibnitzs rule 4-6
electromagnetic induction 9-2 half-power bandwidth 2-12 Lenzs law 9-3
feedback path 8-3 half-power frequencies 2-11, 2-12 lims = in MATLAB A-27
negative 8-4 half-power point 2-12, 8-3 line currents 11-5
path 8-3 half-rectified sine wave 4-25 linear inductor 9-2
positive 8-4 Heavyside(t) in MATLAB 3-18 linear transformer 9-4, 9-19
figure window in MATLAB A-13 Hermitian matrix E-9 linearity property 4-2, 5-2
filter higher order delta functions 3-13 line-to-line voltages 11-6
low-pass homogeneous differential equation 1-1 linkage flux 9-4, 9-6
multiple feed back 1-30 hybrid parameters 10-22 linspace in MATLAB A-14
final value theorem 4-10 hysteresis 9-37, 9-42, 9-61, 9-64 ln A-13
first-order circuit 7-1 log A-13
first-order simultaneous I log(x) in MATLAB A-13
differential equations 7-1 log10(x) in MATLAB A-13
Flip block command in Simulink B-11 ideal transformer 9-27 log2(x) in MATLAB A-13
flux linkage 9-2 identity matrix E-7 loglog(x,y) in MATLAB A-13
fmin in MATLAB A-27 IF amplifier 2-19 loose-coupled transformer 9-18
forced response H-7 ilaplace MATLAB function 5-4 lower triangular matrix E-6
format in MATLAB A-31 imag(z) in MATLAB A-23
four-wire, three-phase system image-frequency interference 2-18 M
11-12, 11-3 imaginary axis D-2
fplot in MATLAB A-27 imaginary number D-2 magnetic flux 9-2
frequency impedance matching 9-30 magnitude scaling F-1
corner 8-9 impedance Z(s) 6-11 Math operations in Simulink B-11
cutoff 8-3 impractical connections 12-8 MATLAB demos A-2
half-power 2-13 improper integral 4-15 MATLABs editor/debugger A-1
natural improper rational function 5-1 matrix, matrices
damped 1-3, 1-15, 7-14 increments between points adjoint of E-20
resonant 1-3, 2-2, 2-8 in MATLAB A-14 cofactor of E-12
response A-12 inductive network transformation 6-1 conformable for addition E-2
scaling F-1 initial value theorem 4-9 conformable for multiplication E-4
selectivity 2-5 instantaneous power in congugate of E-8
frequency response A-12 three-phase systems 11-22, 11-23 defined E-1
IN-2
diagonal of E-1, E-2, E-6 O proper rational function 5-1
Hermitian E-9 properties of the Laplace transform 4-2
identity E-6 octave 8-4 pu (per unit system) G-1
inverse of E-21 ODE - see ordinary differential equation
left division in MATLAB E-25 one-dimensional wave equation H-3 Q
lower triangular E-6 one-port network 10-1
minor of E-12 one-sided Laplace transform 4-1 quality factor at parallel resonance 2-9
multiplication using MATLAB A-18 open circuit impedance quality factor at series resonance 2-4
non-singular E-21 parameters 10-17 quit in MATLAB A-2
singular E-21 open circuit input impedance 10-18
scalar E-6 open circuit output impedance 10-19 R
skew-Hermitian E-9 open circuit test 9-38, 9-39
skew-symmetric E-9 open circuit transfer radio frequency amplifier 2-18
square E-1 impedance 10-18, 10-19 radio receiver 2-18
symmetric E-8 open Delta configuration 11-29 ramp function 3-8
trace of E-2 order of differential equation H-3 rationalization of the quotient D-4
transpose E-7 ordinary differential equation H-3 real axis D-2
upper triangular E-5 orthogonal vectors 7-19 real inductor 2-16
zero E-2 orthonormal basis 7-19 real number D-2
matrix power series 7-9 oscillatory natural response 1-3 real(z) in MATLAB A-23
maximum power transfer 9-30 overdamped natural response 1-3 reciprocal two-port networks 10-31
Measurements library C-3 reciprocity theorem 10-15
mesh(x,y,z) in MATLAB A-17 P rectangular form D-5
meshgrid(x,y) in MATLAB A-17 rectangular pulse 3-3
method of clearing the fractions 5-14 parallel resonance 2-6 reflected impedance 9-25
method of undetermined coefficients parallel RLC circuit 1-15 relationship between state equations
in differential equations H-10 parallel RLC circuit with AC excitation 1-26 and laplace transform 7-29
method of variation of parameters parallel RLC circuit with DC excitation 1-17 repeated poles 5-8
in differential equations H-20 partial differential equation H-3 repeated roots of characteristic
m-file in MATLAB A-1, A-26 partial fraction expansion 5-2 equation H-9
MINVERSE in Excel E-27 PDE - see partial differential equation residue 5-2, 5-3
MMULT in Excel E-27 per unit system G-1 resistive network transformation 6-1
most general solution H-6 phase currents 11-5 resonant frequency 1-3, 2-1, 2-7
Multiple Feed Back (MFB) phase voltages 11-6 right-hand rule 9-2
low-pass filter 1-30 phase-sequence indicator 12-5 roots of polynomials A-3
multiple poles 5-8 Phasors method in SimPowerSystems C-2 roots(p) MATLAB function 5-6, A-3
multiplication of complex numbers D-3 pie network 10-31 round(n) in MATLAB A-24
mutual inductance 9-5, 9-6 plot in MATLAB A-10 row vector in MATLAB A-3
mutual voltages 9-7 plot3 in MATLAB A-15 running Simulink B-7
polar form D-6
N polar plot A-24 S
polar(theta,r) MATLAB function A-23
NaN in MATLAB A-26 polarity marking in transformersw 9-11 sampling property of the delta function 3-11
natural response H-7 poles 5-1, 5-2, 8-6 sawtooth waveform 4-31
critically damped 1-3 poly(r) in MATLAB A-4 scalar matrix E-7
overdamped 1-3 polyder(p) in MATLAB A-6 scaling property 4-4
underdamped 1-3 polynomial construction from known Scope block in Simulink B-12
negative feedback 8-4 roots using MATLAB A-4 script file A-26
negative phase sequence 12-10 polyval in MATLAB A-6 secondary winding 9-4
network port 10-1 secord-order circuit 1-1
bridged 10-31 positive feedback 8-4 secord-order circuit 7-1
pie 10-31 positive phase sequence 11-6, 12-10 selectivity 2-5
no-load test 9-38, 9-60 possible transformer connections 11-28 self-induced voltages 9-7
non-homogeneous ordinary power factor 11-20 self-inductance 9-1, 9-4, 9-5
differential equation H-6 powerlib in SimPowerSystems C-1 semicolons in MATLAB A-8
non-singular matrix E-21 practical transformer connections 12-8 semilog paper with Excel I-1
nth-order delta function 3-13 preselector 2-19 semilog paper with MATLAB I-4
nth-order differential equation 7-1 primary winding 9-4 semilogx in MATLAB A-12
IN-3
semilogy in MATLAB A-12 tf2ss MATLAB function 7-33 two wattmeter method of reading
series resonance 2-1 theorems of the Laplace transform 4-2 three-phase power 11-28
Series RLC Branch block C-3 Thevenin equivalent circuit 9-32 two-port network 10-11
series RLC circuit 1-15 three-phase systems 11-1 two-sided Laplace transform 4-1
series RLC circuit with AC excitation 1-11 balanced currents 11-2 types of differential equation H-3
series RLC circuit with DC excitation 1-2 computation by reduction
settling time 1-20 to single phase 11-19 U
short circuit input admittance 10-11 Delta to Y conversion 11-11
short circuit output admittance 10-12 four-wire system 11-2, 11-13 unbalanced three-phase
short circuit transfer admittance 10-12 equivalent Delta and power systems 12-1
short-circuit test 9-39 Y-connected loads 11-10 underdamped (oscillatory)
sifting property of the delta function 3-12 instantaneous power 11-22, 11-23 natural response 1-3
signal-to-noise (S/N) ratio 2-18 line currents 11-5 unilateral Laplace transform 4-1
simout To Workspace block B-13 line-to-line voltages 11-6 unit eigenvectors 7-19
simple differential equations H-1 phase currents 11-5 unit impulse function 3-8
SimPowerSystems C-1 phase voltages 11-6 unit ramp function 3-8, 3-9
SimPowerSystems connection lines C-4 positive phase sequence 11-6, 12-10 unit step function 3-2
SimPowerSystems electrical ports C-4 power 11-20 upper triangular matrix E-6
Simulation drop menu in Simulink B-12 power factor 11-20 Using the Simulink Transfer Fcn Block 6-20
simulation start icon in Simulink B-12 three-wire Y-system 11-3
Simulink icon B-7 three-wire Delta system 11-4 V
Simulink Library Browser B-8 two wattmeter method of
single-phase systems 11-1 reading 3-phase power 11-28 variac 9-36
single-phase three-wire system 11-5 unbalanced 12-1 Voltage Measurement block
singular matrix E-21 three-phase transformer modeling in in SimPowerSystems C-3
Sinks library in Simulink B-18 SimPowerSystems 11-31 voltage regulation 9-46
size of a matrix E-7 three-wire three-phase Y-system 11-3
skew-Hermitian matrix E-9 Three-wire, three-phase W
skew-symmetric matrix E-9 Delta load system 11-4
solution of the homogeneous ode H-8 time periodicity property 4-8 wattmeter 11-25
solutions of ordinary differential time shifting property 4-3 weber 9-2
equations H-6 title(string) in MATLAB A-12 Wronskian determinant H-10
solve(equ) MATLAB function 8-23 trace of a matrix E-2
space equations 7-1 transfer admittance 10-4 X
square matrix E-1 transfer function 6-16, 8-4
ss2tf MATLAB function 7-32 transformer xlabel in MATLAB A-12
start simulation in Simulink B-12 coefficient of coupling 9-18
state equations 7-1 DC isolation 9-19 Y
state transition matrix 7-8 dot convention 9-8
state variables 7-1 equivalent circuit 9-31, 9-34 y parameters 10-4, 10-11
State-Space block in Simulink B-12 ideal 9-27 Y to Delta conversion 11-11
step-down transformer 9-14 linear 9-4, 9-19 ylabel in MATLAB A-12
step-up transformer 9-14 mutual inductance 9-5, 9-6
string in MATLAB A-16 mutual voltages 9-7 Z
subplot(m,n,p) in MATLAB A-18 polarity markings 9-11
sum of unit step functions 3-7 self-induced voltages 9-7 z parameters 10-17
summing point 8-4 self-inductance 9-1, 9-4, 9-5 zero matrix E-2
symmetric matrix E-8 step-down 9-14 zero phase sequence 12-10
symmetric network 10-16, 10-31 step-up 9-14 zeros 5-1, 5-2, 8-6
symmetric rectangular pulse 3-5 windings
symmetric triangular waveform 3-6 close-coupled 9-18
symmetrical components 12-10 loose-coupled 9-18
transpose of a matrix E-8
T tree pane in Simulink B-7
triplet function 3-13
tee network 10-31 turns ratio in transformer 27
text in MATLAB A-14 TV receiver 2-18
IN-4
Circuit Analysis II
with MATLAB Computing and
Simulink/SimPowerSystems Modeling
Students and working professionals will find Circuit
Analysis II with MATLAB Computing and
Simulink/SimPowerSystems Modeling to be a
concise and easy-to-learn text. It provides complete,
clear, and detailed explanations of the traditiomal
second semester circuit analysis, and these are illus-
trated with numerous practical examples.
This text includes the following chapters and appendices:
Second Order Circuits Resonance Elementary Signals The Laplace Transformation The
Inverse Laplace Transformation Circuit Analysis with Laplace Transforms State Variables and
State Equations Frequency Response and Bode Plots Self and Mutual Inductances - Transfor-
mers One- and Two-Port Networks Balanced Three-Phase Systems Unbalanced Three-
Phase Systems Introduction to MATLAB Introduction to Simulink Introduction to
SimPowerSystems Review of Complex Numbers Matrices and Determinants Scaling
Matrices and Determinants Per Unit System Review of Differential Equations
Each chapter and each appendix contains numerous practical applications supplemented with
detailed instructions for using MATLAB, Simulink, and SimPowerSystems to obtain quick and accu-
rate results.
Steven T. Karris is the founder and president of Orchard Publications, has undergraduate and
graduate degrees in electrical engineering, and is a registered professional engineer in California
and Florida. He has more than 35 years of professional engineering experience and more than 30
years of teaching experience as an adjunct professor, most recently at UC Berkeley, California. His
area of interest is in The MathWorks, Inc.

products and the publication of MATLAB and


Simulink based texts.
Orchard Publications
Visit us on the Internet
www.orchardpublications.com
or email us: info@orchardpublications.com
$70.00 U.S.A.
ISBN-13: 978-1-934404-20-1
ISBN-10: 1-934404-20-9

You might also like