hw07_sol

pdf

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

70

Subject

Electrical Engineering

Date

Oct 30, 2023

Type

pdf

Pages

9

Uploaded by DeanKangaroo5110

Report
EECS 16B Designing Information Systems and Devices II UC Berkeley Fall 2023 Homework 7 This homework is due on Saturday, October 14, 2023, at 11:59PM. Self- grades and HW Resubmissions are due on Saturday, October 21, 2023, at 11:59PM. 1. Alternative “second order” perspective on solving the RLC circuit In Homework 6, we solved an RLC circuit by setting state variables x 1 ( t ) = V C ( t ) and x 2 ( t ) = I L ( t ) , and using these to build a linear first-order vector differential equation. In this problem, we will see how to solve the same system by picking different state variables x 1 ( t ) = V C ( t ) and x 2 ( t ) = d d t V C ( t ) , getting a linear second order scalar differential equation, and solving that differential equation. Consider the following circuit like you saw in lecture, discussion, and previous homeworks: + V s t = 0 t = 0 C + V C I L R + V R L + V L As before, assume that the system has reached steady-state for t < 0. At time t = 0, the switch changes state and disconnects the voltage source, replacing it with a short. Suppose now we insisted on expressing everything in terms of one waveform V C ( t ) instead of two of them (voltage across the capacitor and current through the inductor). This is called the “second- order” point of view, because we will end up using second derivatives. For this problem, use R for the resistor, L for the inductor, and C for the capacitor in all the expressions. (a) Write the current I L ( t ) through the inductor in terms of the voltage V C ( t ) across the capaci- tor. Solution: The current I L ( t ) through the inductor L must be the same as the current I C ( t ) through C , which is C d d t V C ( t ) . Hence, we can write I L ( t ) = C d d t V C ( t ) . (1) (b) Now, notice that the voltage drop across the inductor involves d d t I L ( t ) . Write the voltage drop across the inductor, V L ( t ) , in terms of the second derivative of V C ( t ) . Solution: The voltage drop is V L ( t ) = L d d t I L ( t ) = LC d d t d d t V C ( t ) = LC d 2 d t 2 V C ( t ) . (2) 1
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 (c) Show that a differential equation governing V C ( t ) is d 2 d t 2 V C ( t ) + R L d d t V C ( t ) + 1 LC V C ( t ) = 0. (3) Solution: Note that the current passing through the resistor is I R ( t ) = V C ( t ) + V L ( t ) R = C d d t V C ( t ) . (4) or equivalently, V L ( t ) + RC d d t V C ( t ) + V C ( t ) = 0. (5) Plugging in V L ( t ) , we have LC d 2 d t 2 V C ( t ) + RC d d t V C ( t ) + V C ( t ) = 0. (6) Finally, dividing by LC , d 2 d t 2 V C ( t ) + R L d d t V C ( t ) + 1 LC V C ( t ) = 0. (7) (d) Recall that previously in class, we solved a second-order differential equation of the form d 2 y ( t ) d t 2 + a d y ( t ) d t + by ( t ) = 0 (8) by converting it into a matrix differential equation d d t " x 1 ( t ) x 2 ( t ) # = " 0 1 b a # | {z } A " x 1 ( t ) x 2 ( t ) # (9) where x 1 ( t ) : = y ( t ) and x 2 ( t ) : = d y ( t ) d t . It turned out that, if A has two distinct eigenvalues, the solution to this homogeneous differential equation have the form " x 1 ( t ) x 2 ( t ) # = " c 1 e λ 1 t + c 2 e λ 2 t c 3 e λ 1 t + c 4 e λ 2 t # . (10) where λ 1 , λ 2 are the eigenvalues of A , and c 1 , c 2 , c 3 , c 4 are constants determined by the initial conditions and the coefficients a , b in the differential equation. We would like to use this to construct a solution for V C ( t ) . Show that, if we identify y ( t ) : = V C ( t ) , then x 1 ( t ) = V C ( t ) x 2 ( t ) = d d t V C ( t ) , (11) and that the matrix A for our RLC circuit is A = " 0 1 1 LC R L # . (12) Then, show that the two eigenvalues of A are λ 1 = R 2 L + 1 2 r R 2 L 2 4 LC , λ 2 = R 2 L 1 2 r R 2 L 2 4 LC . (13) © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 2
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 NOTE : From this part onwards, we will assume that the circuit parameters R , L , C are chosen so that the eigenvalues of A are distinct. Solution: We have x 1 ( t ) = y ( t ) = V C ( t ) (14) x 2 ( t ) = d d t y ( t ) = d d t V C ( t ) . (15) Examining the coefficients in eq. (3), we see a = R L (16) b = 1 LC . (17) Thus A = " 0 1 1 LC R L # . (18) The characteristic polynomial of A is 1 p A ( λ ) : = det ( A λ I ) (19) = det " λ 1 1 LC R L λ #! (20) = ( λ ) R L λ 1 · 1 LC (21) = λ 2 + R L λ + 1 LC . (22) The solutions to p A ( λ ) = 0 are obtained by the quadratic formula to be λ 1 = R 2 L + 1 2 r R 2 L 2 4 LC λ 2 = R 2 L 1 2 r R 2 L 2 4 LC . (23) (e) Now, we solve for x 1 ( t ) = V c ( t ) by determining c 1 and c 2 and plugging those, along with λ 1 and λ 2 , into eq. ( 10 ). Note that determining c 3 and c 4 isn’t necessary to find x 1 ( t ) , but we need them to set up a system of equations to solve for c 1 and c 2 . Show that c 3 = λ 1 c 1 , c 4 = λ 2 c 2 . (24) Then use the initial conditions of the RLC circuit to show that c 1 = λ 2 λ 2 λ 1 V s , c 2 = λ 1 λ 2 λ 1 V s . (25) (HINT: This part is complicated, so here’s some scaffolding to start you off. First, differentiate the expres- sion we have x 1 ( t ) = c 1 e λ 1 t + c 2 e λ 2 t to get a form for x 2 ( t ) , and match coefficients of e λ 1 t and e λ 2 t to get the desired expressions for c 3 and c 4 . Next, use the initial conditions for RLC to see what V C ( 0 ) are and 1 Notice that it looks very similar to the original differential equation. This is not an accident, and holds more generally, but that is outside the scope of this problem. © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 d d t V C ( t ) t = 0 are. This corresponds to x 1 ( 0 ) and x 2 ( 0 ) . Plug t = 0 into the "sum of exponentials" form for x 1 and x 2 . This will get you two equations, one for each x i , for c 1 and c 2 , which you can then solve.) (HINT: The following matrix inverse formula may be useful: " 1 1 λ 1 λ 2 # 1 = 1 λ 2 λ 1 " λ 2 1 λ 1 1 # (26) ) Solution: By definition, x 2 ( t ) = d d t V C ( t ) = d d t x 1 ( t ) (27) so if x 1 ( t ) = c 1 e λ 1 t + c 2 e λ 2 t (28) then x 2 ( t ) = d d t x 1 ( t ) (29) = d d t c 1 e λ 1 t + c 2 e λ 2 t (30) = λ 1 c 1 e λ 1 t + λ 2 c 2 e λ 2 t . (31) But we know that x 2 ( t ) = c 3 e λ 1 t + c 4 e λ 2 t . (32) Thus by pattern matching the coefficients of e λ 1 t and e λ 2 t , we get c 3 = λ 1 c 1 c 4 = λ 2 c 2 . (33) Now to solve for c 1 and c 2 . Recall that in steady state, a capacitor looks like an open circuit, so V C ( 0 ) = V s . By definition, V C ( t ) = x 1 ( t ) , so x 1 ( 0 ) = V s . Plugging in, we have V s = x 1 ( 0 ) = c 1 e λ 1 · 0 + c 2 e λ 2 · 0 = c 1 + c 2 . (34) Now we have one equation in the variables c 1 and c 2 . To solve the system we need two equations. This motivates looking at x 2 ( 0 ) = λ 1 c 1 e λ 1 · 0 + λ 2 c 2 e λ 2 · 0 = λ 1 c 1 + λ 2 c 2 . (35) To find the physical value of x 2 ( 0 ) = d d t V C ( t ) t = 0 , note that in steady state there is no change in any state variable by definition, so d d t V C ( t ) t = 0 = 0. (An alternate physically motivated ar- gument is to note that inductor current in steady state is I L = 0, and it cannot change infinitely fast, so at time 0 we have I L ( 0 ) = 0. Since I L ( t ) º·¶º d V C ( t ) d t , we also have d V C ( t ) d t t = 0 = 0.) Hence x 2 ( 0 ) = 0. This sets up the system of equations c 1 + c 2 = V s (36) λ 1 c 1 + λ 2 c 2 = 0. (37) There are several ways we can solve this system, and one way is to note that this is a matrix- vector equation of the form " 1 1 λ 1 λ 2 # " c 1 c 2 # = " V s 0 # . (38) © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 4
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 To solve it, we can use the matrix inverse that was provided by the hint to get " c 1 c 2 # = " 1 1 λ 1 λ 2 # 1 " V s 0 # (39) = 1 λ 2 λ 1 " λ 2 1 λ 1 1 # " V s 0 # (40) = 1 λ 2 λ 1 " λ 2 λ 1 # V s . (41) Thus we have c 1 = λ 2 λ 2 λ 1 V s , c 2 = λ 1 λ 2 λ 1 V s . (42) We have found λ 1 , λ 2 , c 1 , c 2 , so by substituting into eq. ( 10 ) we have solved for x 1 ( t ) = V C ( t ) ! © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 5
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 2. Solving the Differential Equation with Input Recall that in Discussion 2A we tried to solve the differential equation with input: d d t x ( t ) = λ x ( t ) + bu c ( t ) (43) x ( 0 ) = x 0 . (44) for some continuous input u c ( t ) . The general strategy we employ is: • First we replace our continuous input u c ( t ) with an input u ( t ) which is piecewise constant on the intervals [ i Δ , ( i + 1 ) Δ ) , that is, u ( t ) = u ( i Δ ) = u [ i ] t [ i Δ , ( i + 1 ) Δ ) i ∈ { 0, 1, 2, . . . } : = N . (45) Using this assumption, in discussion we: solved the differential equation on each interval [ i Δ , ( i + 1 ) Δ ) and got a solution expressing x ( t ) in terms of x d [ i ] : = x ( i Δ ) and u [ i ] , for t [ i Δ , ( i + 1 ) Δ ) ; arrived at a formula for x d [ i + 1 ] in terms of x d [ i ] and u [ i ] ; used this to get a formula for x d [ i ] in terms of x 0 and the inputs u [ 0 ] , u [ 1 ] , . . . , u [ i 1 ] ; approximated x ( t ) x d [ t Δ ] to recover an approximate value for x ( t ) , that is, x ( t ) e λ Δ t Δ x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 e λ Δ ( t Δ 1 ) k u [ k ] . (46) • In this homework, we will take the limit Δ 0. This transfers back from u to u c – we saw in discussion that piecewise constant functions on very small intervals, i.e., our u , approximate general continuous functions u c arbitrarily well. Using Riemann sums and calculus, we will turn the sum into an integral and show that, if u approximates u c as Δ 0, then x ( t ) = e λ t x 0 + b Z t 0 e λ ( t τ ) u c ( τ ) d τ . (47) (a) We first need to relate u [ i ] to u c . Suppose that the u [ i ] is a sample of u c ( t ) , namely, u [ i ] = u c ( i Δ ) . (48) To clarify where this fits in with the earlier notation: u ( t ) is a piecewise constant function; u [ i ] is the discrete input that constructs u ( t ) based on eq. ( 45 ); • and u c ( t ) is the underlying input u [ i ] is sampled from based on eq. ( 48 ). This is one good way to get a piecewise constant approximator of a continuous function. Substitute an appropriate value of u c for u [ k ] in eq. ( 46 ) from the discussion. NOTE : Don’t take any limits in this part of the problem; just do the substitution. Solution: Using the substitution u c ( j Δ ) for u [ j ] , we get x ( t ) e λ Δ t Δ x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 ( e λ Δ ) ( t Δ 1 ) k u [ k ] (49) © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 = e λ Δ t Δ x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 ( e λ Δ ) ( t Δ 1 ) k u c ( k Δ ) . (50) (b) To simplify our (discrete-time) eq. ( 46 ) so we can take Δ 0, we would like to make some approximations which are valid for small Δ . By using the following two estimates for small Δ : 2 i. t Δ t Δ ; ii. e λ Δ 1 λ Δ ; 3 show that x ( t ) e λ t x 0 + b e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ . (51) Solution: The first estimate justifies getting rid of the “floor” terms. We have a lot of those terms, so it’s good to use it here. Plugging in t Δ t Δ gives x ( t ) e λ Δ t Δ x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 ( e λ Δ ) ( t Δ 1 ) k u c ( k Δ ) (52) e λ Δ t Δ x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 ( e λ Δ ) ( t Δ 1 ) k u c ( k Δ ) (53) e λ t x 0 + b e λ Δ 1 λ t Δ 1 êçæêôæ k = 0 e λ t λ Δ λ Δ k u c ( k Δ ) (54) e λ t x 0 + b e λ Δ 1 λ e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) . (55) Then plugging in e λ Δ 1 λ Δ gives x ( t ) e λ t x 0 + b e λ Δ 1 λ e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) (56) e λ t x 0 + b e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ . (57) Note that the dependence of x ( t ) on both x 0 and the input u c is the same; it’s been preserved, and perhaps made more clear, through our approximations. NOTE : This may seem like a long solution, but the main idea is to just use the estimates one by one, and simplify as much as possible. (c) Take the limit of x ( t ) as Δ 0 , and show that x ( t ) is given by eq. ( 47 ). Recall that the definite integral is defined from Riemann sums as Z t 0 f ( τ ) d τ = lim n ª§¦ª n 1 êçæêôæ k = 0 f ( τ k ) Δ k (58) 2 Both these approximations become equalities in the limit Δ 0. 3 We can see this approximation using Taylor’s theorem from calculus. © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 7
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 where 0 = τ 0 < τ 1 < · · · < τ n = t , τ k [ τ k , τ k + 1 ] , and Δ k = τ k + 1 τ k . The Δ k is the length of the base of the rectangles and the f ( τ k ) are the heights. As n goes to infinity, the rectangles get skinnier and skinnier, but there are more and more of them. (HINT: Start with eq. ( 51 ) and take limits on both sides. What is n? What is τ k and τ k ? What is Δ k ? What is f?) (HINT: We chose the form of eq. ( 51 ) carefully; it turns out that Δ k is one particular term involving Δ that goes to 0 as Δ 0 , and also that it is independent of k.) Solution: We are evaluating lim Δ 0 x ( t ) = lim Δ 0 e λ t x 0 + b e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ (59) = e λ t x 0 + b lim Δ 0 e λ Δ t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ (60) = e λ t x 0 + b lim Δ 0 e λ Δ lim Δ 0 t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ (61) = e λ t x 0 + b lim Δ 0 t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ . (62) Here, we want to evaluate the sum on the right side; by pattern matching with the Riemann integration template and the fact that Δ k should shrink to 0 in the limit, we have n = t Δ Δ k = Δ . (63) This implies that τ k = k Δ . (64) To recover τ k and f from what we already have, one notes that τ k [ k Δ , ( k + 1 ) Δ ] and that we must have f ( τ k ) = e λ ( t k Δ ) u c ( k Δ ) . (65) From here we see that τ k = k Δ f ( τ ) = e λ ( t τ ) u c ( τ ) . (66) We have lim Δ 0 x ( t ) = e λ t x 0 + b lim Δ 0 t Δ 1 êçæêôæ k = 0 e λ ( t k Δ ) u c ( k Δ ) Δ (67) = e λ t x 0 + b lim n ª§¦ª n 1 êçæêôæ k = 0 e λ ( t τ k ) u c ( τ k ) Δ k (68) = e λ t x 0 + b lim n ª§¦ª n 1 êçæêôæ k = 0 f ( τ k ) Δ k (69) = e λ t x 0 + b Z t 0 f ( τ ) d τ (70) = e λ t x 0 + b Z t 0 e λ ( t τ ) u c ( τ ) d τ (71) © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 8
EECS 16B Homework 7 2023-10-15 11:31:33-07:00 which is our final answer. We can’t simplify further because we don’t know the form of u c ( τ ) . Note that the dependence of x ( t ) on both x 0 and the input u c is the same. This is a special case of a crucial point: sums of small quantities behave roughly the same as integrals . This is one of the main ways to fluently transfer between discrete and continuous time. This problem brings together many different concepts and uses a lot of notation. As such, it may be difficult to fully comprehend everything the first time. Being able to grind through complex math- ematical problems like this is part of the vaunted “mathematical maturity” that this class helps you foster. As the semester continues, you will find that these kinds of problems will seem progressively easier, both to understand quickly and to solve. But it won’t happen without practice. Contributors: • Kuan-Yun Lee. • Anant Sahai. • Druv Pai. • Nikhil Shinde. • Sanjit Batra. • Aditya Arun. • Sidney Buchbinder. © UCB EECS 16B, Fall 2023. All Rights Reserved. This may not be publicly shared without explicit permission. 9
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: 15) Use a significance level of a = 0.05 to test the claim that u z 32.6. The sample data consists…
Q: 1,100 1. Use the given graph of f to find a number 8 such that Swann mot tw if |x-1|<8 then |…
Q: 14 oximate (x²-4) dx using 4 rectangles. 2 pproximatley cessary, round to two decimal places. Do NOT…
Q: Suppose that the roll dynamics (from aileron input to roll angle output) can be approximated with a…
Q: a. The following is not a possible set of quantum numbers. Which of the quantum numbers is not…
Q: Some students riding a bus decide it would be fun to test their physics knowledge to pass the time.…
Q: Write the expression in rectangular form, x+yi, and in exponential form, re. +i sin 8 Cos - 8 4.
Q: A radioactive isotope has a half life of 17.1 minutes. How long will it take for the radiation from…
Q: Order: Zosyn 0.02 gm/kg Supply: 5 gm powder vial with directions to add 10 mL of sterile water as…
Q: What length of 1 in. stock is needed to bend a piece of steel into the shape as shown to the right?…
Q: A biologist recorded a count of 360 bacteria present in a culture after 5 minutes and 1300 bacteria…
Q: Use Stokes Theorem to evaluate F = (+2z)i + (2y-z)j + (x+y-z²)k and C is the triangle with vertices…
Q: (a) There is a triangle x such that for all circles y we have x is above y. O True False (b) For…
Q: Prove that subset S = {a + bi ∈ Z[i] | b is even} is not an ideal
Q: While doing her crossfit workout, Yasmeen holds an 7.0 kg weight at arm's length, a distance of 0.57…
Q: The Inn at Penn has 150 rooms with standard queen size beds and two rates: a full price of $200 and…
Q: What is the IUPAC name for this compound? Н С CH
Q: 18. Consider the following expression (+3)/(x-4)+(2-)² (c) Represent this expression using a binary…
Q: Cyndi Lauper was or was not the vanguard of a different kind of feminism by the 80's ?
Q: Report Table PP.7: Ninhydrin test Analysis of results for the Ninhydrin tests Glycine Tyrosine…
Q: Consider the following reaction: CH4 (9) +20₂ (g) → CO2 (g) + 2H₂O(1) ΔΗ = -891 kJ a. Calculate the…
Q: Davina accelerates a box across a smooth frictionless horizontal surface over a displacement of 18.0…