EHB 211E Basics of Electrical Circuits Asst. Prof. Sheida Faraji First-Order Circuits Week 11 (18th Dec 2023) Fundamentals of Electric Circuits by C. Alexander and M. Sadiku, Seventh Edition (McGraw-Hill Education) Introduction • Study two types of simple circuits: â â Circuit: a resistor and capacitor Circuit: a resistor and inductor RC circuit RL circuit • • • • Analysis of RC and RL circuits by applying Kirchhoff’s law (KCL & KVL) Applying Kirchhoff’s law to pure resistive circuits: Algebraic equations Applying Kirchhoff’s law to RC & RL circuits: Differential equations Differential equations from RC & RL circuits are of the first-order circuit. Hence, the circuits are known as first-order circuits. • First-order circuit is characterized by a first-order differential equation. • Two ways to excite these circuits: â â Initial conditions of the storage elements (source-free circuit). No independent element and energy initially stored in the capacitive and inductive element. They may have dependent sources. Exciting first-order circuits by independent sources. The Source-Free RC Circuit • Source-free RC circuit: dc source is suddenly disconnected. • Energy already stored in the capacitor and released to the resistors. • Objective: determine the circuit response • Voltage across capacitor đŖ(đĄ) • Capacitor is initially charged. Assume đĄ = 0, the initial voltage is đŖ 0 = đ0 • Energy stored in the capacitor: 1 đ¤ 0 = đļ đ0 2 2 đđĄ đĄ = 0 Initial energy stored • Apply KCL to the top node: đđļ + đđ = 0 • By definition: đļ đđŖ đđĄ + đŖ đ =0 đđŖ đđļ = đļ and đđ đđĄ đđŖ đŖ ⇒ + =0 đđĄ đ đļ = đŖ đ First-order differential equation A source-free RC circuit The Source-Free RC Circuit đđŖ đŖ + =0 đđĄ đ đļ đđŖ 1 āļą =− āļą đđĄ đŖ đ đļ đđŖ đŖ đđŖ 1 =− ⇒ =− đđĄ đđĄ đ đļ đŖ đ đļ đĄ đđđŖ = − +đ´ đ đļ Integrate both sides of the equation A is the constant of the integral part Constant đĄ đđđđ đŖ = − +đ´ đ đļ đŖ đĄ = đĄ −đ đļ +đ´ đ đŖ đĄ = • Let’s call đ đ´ = đ0 because at đĄ = 0, đŖ 0 = đ 0 đ đ´ = đ0 đŖ đĄ = đĄ −đ đļ đ0 đ đĄ −đ đļ đ đđ´ The Source-Free RC Circuit đŖ đĄ = đĄ − đ0 đ đ đļ Voltage response of RC circuit is exponential decay of the initial voltage • When đĄ = 0, đŖ đĄ = đ0 (voltage across capacitor is initial voltage). ∞ −đ đļ • When đĄ = ∞, đ approaches zero and đŖ đĄ = 0 (discharging over a certain period of time). • The response is due to initial voltage not due to some external voltage or current source. Hence, it is called natural response of the circuit. • Natural response of a circuit refers to the behavior of the circuit itself, with no external sources of excitation. The Source-Free RC Circuit • Rapid decrease of voltage can be expressed in terms of the time constant đ, unit is second. • Time constant đ of a circuit is the time required for the response to decay to a factor of 1/e or 36.8 percent of its initial value. At đĄ = đ, đŖ đĄ = đ − đ0 đ đ đļ đ = đ đļ Time constant of capacitor đŖ đĄ = đĄ −đ đ0 đ Voltage response of the RC circuit đ0 đ đ −đ đļ = đ0 đ −1 đ ⇒ = 1 ⇒ đ = đ đļ đ đļ The Source-Free RC Circuit • Table shows how the value of đŖ đĄ /đ0 changes when time t increases • After 5đ, đŖ đĄ is less than 1% of đ0 . It takes approximately 5đ for the circuit reach its final state or steady state (Capacitor is fully discharged after 5đ). • Smaller the time constant (đ), more rapidly voltage decreases, i.e., faster response. The Source-Free RC Circuit • Using Ohm’s law, the current đđ (đĄ) is expressed as: đŖ đĄ đ0 −đĄ đđ đĄ = = đ đ đ đ • Power dissipated in the resistor: đĄ đ0 −đĄ đ0 2 −2đĄ −đ đ đĄ = đŖđđ đ đĄ = đ0 đ đ đ đ đĄ = đ đ đ đ • Energy absorbed by the resistor: đ¤ Take derivative of both Integrate both sides đ = ⇒ đ¤ = đđĄ đđ¤ = đđđĄ sides of the equation đĄ đĄ đ0 2 −2đĄ đ đ0 2 −2đĄ , đ = đ đļ đ¤đ đĄ = āļą đ(đĄ)đđĄ ⇒ đ¤đ đĄ = āļą đ đ đđĄ = − đ đ đ 2đ 0 0 0 āļą đđ¤ = āļą đđđĄ đ đļ đ0 =− 2đ đĄ đĄ 2 2đĄ đĄ đ− đ 0 1 = đļ đ0 2 2 1 2đĄ −đ −đ • When đĄ = ∞, đ 1 đ¤đļ = đļ đ0 2 2 2đĄ −đ approaches 0 Example 1 For the circuit shown below, let đŖđļ 0 = 15 đ. Find đŖđļ , đŖđĨ , and đđĨ for đĄ > 0. Solution Example 2 The switch in the circuit shown below has been closed for a long time, and it is opened at đĄ = 0. Find đŖ đĄ for đĄ > 0. Calculate the initial energy stored in the capacitor. Solution For đĄ < 0 the switch is closed; the capacitor is an open circuit to dc Since the voltage across a capacitor cannot change instantaneously, the voltage across the capacitor at đĄ = 0− is the same at đĄ = 0 or đŖđ 0 = đ0 = 15 For đĄ > 0 the switch is opened: The Source-Free RL Circuit • Goal: determine circuit response in RL circuit. • When đĄ = 0, there must be initial current in RL circuit (current excites the circuit) đ(0) = đŧ0 When đĄ = 0, inductor current equal to initial current. • Initial energy in the inductor: 1 đ¤(0) = đŋ đŧ0 2 2 The Source-Free RL Circuit đđ • Apply KVL to the circuit: đŖđŋ + đŖđ = 0 , đŖđŋ = đŋ đđĄ đđ đđ đ đđ đ đŋ + đđ = 0 + đ=0 =− đ đđĄ đđĄ đŋ đđĄ đŋ đ(đĄ) āļą đŧ0 đĄ đđ đ = − āļą đđĄ đ 0 đŋ đ đđđ − đđđŧ0 = − đĄ + 0 đŋ đđđđ đ(đĄ) đ đđđ = − đĄ đŋ đŧ0 đđ đ = − đđĄ đ đŋ Integrate both sides đĄ 0 đ đ đĄ ln( ) = − đŧ0 đŋ đ đĄ đ đ đĄ đ − =− ⇒ =đ đŋ đŧ0 đŋ đŧ0 đŋ Time constant of inductor đ= đ đ đĄ = đ đĄ − đŧ0 đ đŋ đ đĄ = đŧ0 đ đĄ −đ Natural response of RL circuit is exponential decay of the initial current The Source-Free RL Circuit • When đĄ < 0, inductor is charged. • When đĄ = 0, inductor excites the circuit by releasing the stored energy. ∞ −đ • Inductor has an exponential decay due to đ term. • Similar to capacitor, at time đĄ = đ, current through the circuit is 36.8% smaller than initial value. đ đĄ = đĄ −đ đŧ0 đ ⇒đ đ = đŖđ đĄ = đđ ⇒ đŖđ đĄ = đ −đ đŧ0 đ đŧ0 = 1 = 0.368đŧ0 e đĄ −đ đŧ0 đ đ • Power dissipated in the resistor: đ = đŖđ đ ⇒ đ = đŧ0 2đĄ 2 đ đ − đ The Source-Free RL Circuit • Energy absorbed by the resistor: đ¤ Take derivate of both đ = ⇒ đ¤ = đđĄ sides of this equation đĄ đĄ āļą đđ¤ = āļą đđđĄ đđ¤ = đđđĄ đĄ đ¤đ đĄ = āļą đ(đĄ)đđĄ ⇒ đ¤đ đĄ = āļą đŧ0 0 2đĄ 1đŋ − 2 đ¤đ đĄ = − đŧ0 đ đ đ 2đ 2đĄ 2 đ đ − đ đđĄ 0 đĄ 0 1 đ¤đ đĄ = đŋ đŧ0 2 2 1 Integrate both sides 2đĄ đ −đ 2 = − đŧ0 đ đ 2 đŋ , đ= đ 2đĄ −đ −đ • Energy initially stored in the inductor is eventually dissipated by the resistor. • When đĄ → ∞, đ 2đĄ −đ →0 1 đ¤đ đĄ = đŋ đŧ0 2 2 Same as đ¤đŋ (0) which is the initial energy stored in the inductor. Example 3 Assuming that đ 0 = 10 A, calculate đ đĄ and đđĨ (đĄ) in the circuit shown below. Solution • Method 1: apply KVL Solution • Method 2: Find equivalent resistance. • Since the circuit has only dependent source, insert a test voltage source of 1 V at the inductor terminals a-b and find đ đâ . • Keep it in mind that we cannot turn off dependent circuit when applying Thevenin theorem. • To find đ đâ , we need to find đ0 as đ đâ = • Apply KVL both loops: đŖ0 đ0 = 1 đ0 Example 4 The switch in the circuit shown below has been closed for a long time. At đĄ = 0, the switch is opened. Calculate đ(đĄ) for đĄ > 0. Solution For đĄ < 0, the switch is closed. This means that inductor is short circuit to dc condition. Solution For đĄ > 0, the switch is opened, and voltage source is disconnected. This means we have a source-free RL circuit as shown below. To find đ(đĄ), we need to use following equation: đ đĄ = đĄ −đ đ(0)đ To find đ đĄ , determine time constant đ Example 5 In the circuit shown below, find đ0 , đŖ0 and đ for all time, assuming that the switch was open for a long time. Solution: For đĄ < 0, the switch is opened. Since inductor is short circuit to dc, 6 Ω resistor is short circuited. đ0 = 0 đ 0 = 2 đ´ for đĄ < 0 & đĄ = 0, đ 0 = đ 0− = 2 đ´ Solution For đĄ > 0, the switch is closed. The voltage is short circuited. From the Graph and expression: the inductor current is continuous at t=0 (current through inductor cannot change instantly), while resistor current through 6 Ω resistor drop from 0 to -2/3 at t=0, and voltage across 3 Ω resistor drop from 6 V to 4 V at t=0. Singularity (Switching) Function • Singularity (aka switching functions): useful for circuit analysis. • Good approximations to the switching signals that arises in circuit with switching operation. • Helpful in the neat, compact description of the step response of RC or RL circuit. • Singularity function: either discontinuous or have discontinuous derivatives. • Three most widely used singularity functions: â Unit step function â Unit impulse function â Unit ramp function Unit Step Function • Unit step function đĸ đĄ is 0 for negative value of đĄ and 1 for positive value of đĄ. • In mathematically, 0 đĄ<0 1 đĄ>0 đĸ đĄ = • Unit step function is undefined at đĄ = 0 where it changes abruptly from 0 to 1. Unit Step Function • Assume that abrupt (sudden) change occurs at đĄ = đĄ0 (where đĄ0 > 0) instead of đĄ = 0. 0 đĄ < đĄ0 đĸ đĄ − đĄ0 = 1 đĄ > đĄ0 đĸ đĄ is delayed by đĄ0 sec • Assume that abrupt (sudden) change occurs at đĄ = −đĄ0 0 đĄ < −đĄ0 đĸ đĄ + đĄ0 = 1 đĄ > −đĄ0 đĸ đĄ is advanced by đĄ0 sec Unit Step Function • An abrupt change in voltage and current can be represented by step function. 0 đĄ < đĄ0 đŖ đĄ = đŖ đĄ = đ0 đĸ đĄ − đĄ0 1 đĄ > đĄ0 • If đĄ0 = 0, đŖ đĄ is simply the step voltage đ0 đĸ(đĄ) Unit Impulse Function • Derivative of the unit step function đĸ(đĄ) is the unit impulse function which is represented by đŋ(đĄ) đ đŋ đĄ = đĸ đĄ = đđĄ 0 undefined 0 đĄ<0 đĄ=0 đĄ>0 • The unit impulse function đŋ(đĄ) is zero everywhere except at đĄ=0, where it is undefined. • The unit impulse may be regarded as an applied or resulting shock. It may be visualized as a very short duration pulse of unit area. • It can be expressed mathematically as: 0+ āļą đŋ đĄ đđĄ = 1 0− The strength of the impulse function. Unit Ramp Function • Integral of the unit step function đĸ(đĄ) is the unit ramp function r(đĄ): đĄ r đĄ = āļą đĸ đĄ đđĄ = đĸ đĄ . đĄ −∞ 0 đĄ≤0 đĄ đĄ≥0 đ đĄ = Unit Ramp Function • Delayed unit ramp function đ đĄ − đĄ0 = 0 đĄ ≤ đĄ0 đĄ − đĄ0 đĄ ≥ đĄ0 • Advanced unit ramp function đ đĄ + đĄ0 = 0 đĄ ≤ −đĄ0 đĄ + đĄ0 đĄ ≥ −đĄ0 • Three singularity functions are related by differentiation or integration: đđĸ đĄ đŋ đĄ = đđĄ đđ đĄ đĸ đĄ = đđĄ đĄ đĄ đĸ đĄ = āļą đŋ đĄ . đđĄ đ đĄ = āļą đĸ đĄ . đđĄ −∞ −∞ Step Response of an RC Circuit • When the dc source of an RC circuit is suddenly applied, the voltage or current source can be modeled as a step function, and the response is known as a step response. • The step response is the response of the circuit due to a sudden application of a dc voltage or current source. • Once the switch is closed, there is a sudden application of dc source. Thus, the circuit can be replaced by the following circuit (on the right) Step Response of an RC Circuit • Assume đ0 is the initial voltage on the capacitor. • Voltage of a capacitor cannot change instantaneously, đŖ 0− =đŖ 0+ = đ0 0− : just before switching 0+ : just after switching đđŖ đŖ − đđ đĸ(đĄ) • Apply KCL after =0 switch is closed : đļ đđĄ + đ đđŖ đŖ đđ đĸ(đĄ) đļ + = đđĄ đ đ đđŖ đŖ đđ + = đđĄ đ đļ đ đļ đŖ(đĄ) āļą đŖ(0) đđŖ đŖ đđ + = đĸ(đĄ) đđĄ đ đļ đ đļ đđŖ đŖ − đđ =− đđĄ đ đļ đĄ đđŖ 1 = −āļą đđĄ đŖ − đđ 0 đ đļ đĄ ln đŖ(đĄ) − đđ − ln đ0 − đđ = − +0 đ đļ For đĄ > 0, unit step function is 1 đđŖ dt =− đŖ − đđ đ đļ đŖ(đĄ) ln đŖ − đđ đđŖ đŖ đđ đĸ(đĄ) đļ + − =0 đđĄ đ đ đ0 Integrate đĄ t =− đ đļ 0 đŖ(đĄ) − đđ đĄ ln =− đ0 − đđ đ đļ Step Response of an RC Circuit đĄ đŖ(đĄ) − đđ − = đ đ đļ đ0 − đđ đŖ đĄ = đđ + (đ0 − đŖ(đĄ) − đđ = (đ0 − đđ )đ đĄ −đ đđ )đ đĄ −đ đļ đ = đ đļ đĄ>0 Complete response (or total response) of the RC circuit to a sudden application of dc voltage source đŖ đĄ = đ0 đđ + (đ0 − đĄ<0 đĄ −đ đđ )đ đŖ đĄ : two components đĄ>0 Assuming capacitor is initially charged Step Response of an RC Circuit Assume đđ > đ0 Capacitor still charging đŖ đĄ = Initial Voltage If capacitor is initially uncharged, đ0 = 0 When đĄ < 0, đĸ đĄ = 0 When đĄ > 0, đĸ đĄ = 1 đ0 đĄ<0 đđ + (đ0 − đĄ −đ đđ )đ đĄ<0 0 đŖ đĄ = đđ (1 − đ đŖ đĄ = đđ 1 − đĄ −đ đ đĄ>0 đĄ −đ đĸ(đĄ) ) đĄ>0 Step Response of an RC Circuit • Current through the capacitor (capacitor initially uncharged, đ0 = 0 ): đĄ đđŖ đ −đ đ đĄ =đļ =đļ đ (1 − đ ) đđĄ đđĄ đ đĄ 1 −đ đ đĄ =đļ đđ đ đļ đ Capacitor voltage v đĄ đĄ 1 −đ đ đĄ = đļ đđ đ đ đ = đ đļ đĄ>0 đđ −đĄ đ đĄ = đ đ đĸ(đĄ) đ Capacitor current đ đĄ Step Response of an RC Circuit • Another way of finding step response of an RC & RL circuits. đŖ đĄ = đđ + (đ0 − đŖ đĄ = đĄ − đ0 đ đ đĄ −đ đđ )đ + đđ (1 đĄ − − đ đ) đŖ đĄ = đĄ −đ đđ + đ0 đ đŖ đĄ : two components • Two ways of decomposing into two components: â â − đđ đ Natural response and forced response Transient response and steady-state response đĄ −đ Step Response of an RC Circuit • 1st: Natural response and forced response: • Total response or complete response can be written as: Complete response=natural response + forced response (Storage energy) đŖ = đŖđ + đŖđ đŖđ :natural response đŖđ :forced response (Independent source) đŖđ = đ0 đ đĄ −đ đŖđ = đđ (1 đĄ −đ −đ ) Storage energy in the capacitor Independent source • đŖđ is the natural response that is produced by capacitor. • đŖđ is the forced response that is produced by the circuit when external force (a voltage source) is applied. • Natural response dies out and leaving only the steady-state component of forced response since as time increases, energy stored in the capacitor is reduced. Step Response of an RC Circuit • 2nd: Transient response and steady-state response: • Total response or complete response can be written as: Complete response=transient response + steady-state response (Temporary part) đŖ = đŖđĄ + đŖđ đ đŖđĄ :transient response (Permanent part) đŖđĄ = đĄ −đ (đ0 −đđ )đ đŖđ đ :steady-state response đŖđ đ = đđ Temporary part Permanent part • Transient response đŖđĄ is temporary response and decay to zero as time approaches infinity. • The steady-state response đŖđ đ remains after the transient response has die out. Step Response of an RC Circuit • The complete response of the general equation may be written as: đŖ đĄ = đŖ ∞ + [đŖ 0 − đŖ ∞ đĄ −đ ]đ • đŖ 0 : initial voltage • đŖ ∞ : final or steady-state value. • Step response of an RC circuit requires three parameters: â â â The initial capacitor voltage đŖ 0 The final capacitor voltage đŖ ∞ The time constant đ as đŖ 0 reaches đŖ ∞ • If the switch changes position at time đĄ = đĄ0 instead of đĄ = 0, there is a time delay in the response and the equation becomes: đŖ đĄ = đŖ ∞ + [đŖ đĄ0 − đŖ ∞ đĄ−đĄ − đ0 ]đ đŖ đĄ0 : initial voltage value at đĄ = đĄ0 Example 6 The switch in the circuit shown below has been in position A for a long time. At đĄ = 0, the switch moves to B. Determine đŖ đĄ for đĄ > 0 and calculate its value at đĄ = 1 đ and đĄ = 4 đ . Solution: For đĄ < 0, the switch is at position A. The capacitor acts like an open circuit to dc Capacitor voltage cannot change instantaneously Complete response: For đĄ > 0, the switch is at position B. Thevenin resistance (equivalent resistance): đ đâ = 4 đΩ Capacitor acts like an open circuit to dc at steady-state, đŖ ∞ = 30 đ Example 7 In the circuit shown below, the switch has been closed for a long time and is opened at đĄ = 0. Find đ and đŖ for all time. Solution: By definition of the unit step function: 30đĸ đĄ = 0 đĄ<0 30 đĄ>0 đĄ<0 đĄ>0 Apply KCL: Step Response of an RL circuit • When the switch is closed, there is a sudden of voltage source is applied and the circuit is replaced by the following circuit (on the right) • The voltage source (or current source) can be modeled as a step function (aka step response). • Let the current response is sum of transient and steady-state response đ = đđĄ + đđ đ đđĄ = đĄ −đ đ´đ đŋ đ= đ đđ đ đđ = đ đ= đĄ − đ´đ đ • Current through inductor cannot change instantaneously: đ 0+ = đ 0− = đŧ0 đđ At đĄ = 0, đŧ0 = đ´ + đ đđ đ´ = đŧ0 − đ đđ đđ −đĄ đ đĄ = + (đŧ0 − )đ đ đ đ đđ + đ Step Response of an RL circuit • To find the complete response, RL circuit requires three parameters: The initial inductor current i 0 â The final inductor current i ∞ â The time constant đ to get from i 0 to i ∞ . â đ đĄ = đ ∞ + [đ 0 − đ ∞ If đŧ0 = 0, đ đĄ = When đĄ < 0, đĸ đĄ = 0 When đĄ > 0, đĸ đĄ = 1 đĄ −đ ]đ 0 đĄ đđ −đ 1−đ đ Complete response đĄ<0 đĄ>0 đĄ đđ −đ đ đĄ = 1 − đ đĸ(đĄ) đ đĄ đđ −đ đŖ đĄ = đŋ ⇒ đŖ đĄ = đđ đ đđĄ Example 8 Find đ(đĄ) in the circuit of shown below for đĄ > 0. Assume that the switch has been closed for a long time. Solution: When đĄ < 0, 3 Ω resistor is short-circuited and inductor acts like short circuit (dc condition) When đĄ > 0, Example 9 At đĄ = 0, switch 1 in the circuit given below is closed, and switch 2 is closed 4 s later. Find đ(đĄ) for đĄ > 0. Calculate đ for đĄ = 2 đ and đĄ = 5 đ . Solution: Solution First-Order Op Amp Circuit: Example 10 For the op amp circuit shown below, find đŖ0 for đĄ > 0, given that đŖ 0 = 3 đ. Let đ đ = 80 đΩ, đ 1 = 20 đΩ, and đļ = 5 đđš. Solution: Method 1: KCL at node 1: Same equation as source free RC Solution Method 2: To find đ, we need to find đ đđ . Remove capacitor and place 1 A current source (source free circuit). Apply KVL to the input loop: Example 11 Determine the step response đŖ(đĄ) and đŖ0 (đĄ) in the circuit shown below. Solution: Since we will find step response, we can write the following equation: đĄ < 0, the switch is open and no voltage across capacitor đĄ > 0, Capacitor acts like an open circuit to dc and op amp circuit behaves like an noninverting op amp. Noninverting op amp: đ đ đŖ0 = (1 + )đŖ1 đ 1 Example 12 Find the step response đŖ0 (đĄ) for đĄ > 0 in the op amp circuit shown. Let đŖđ = 2đĸ đĄ đ, đ 1 = 20 đΩ, đ đ = 50 đΩ, đ 2 = đ 3 = 10 đΩ, and đļ = 2 đđš. Solution: Using Thevenin theorem, we may simplify the circuit. Remove the capacitor and find the Thevenin equivalent circuit đ đâ can be found by turning off the input voltage đŖđ . Doing so, đŖđđ will be zero