Solving Linear Equations  Many applications require solving systems of linear equations.  One method for solving linear equations is to write a matrix.

Slides:



Advertisements
Similar presentations
Circuits.
Advertisements

Voltage and Current Division
Fundamentals.
Unit 7 Parallel Circuits
Objective of Lecture Provide step-by-step instructions for nodal analysis, which is a method to calculate node voltages and currents that flow through.
Fisica Generale - Alan Giambattista, Betty McCarty Richardson Copyright © 2008 – The McGraw-Hill Companies s.r.l. 1 Chapter 18: Electric Current and Circuits.
Chapter 19 Methods of AC Analysis. 2 Dependent Sources Voltages and currents of independent sources –Not dependent upon any voltage or current elsewhere.
Using Polar Coordinates Graphing and converting polar and rectangular coordinates.
Series and Parallel Circuits
Physics 1161: Lecture 10 Kirchhoff’s Laws. Kirchhoff’s Rules Kirchhoff’s Junction Rule: – Current going in equals current coming out. Kirchhoff’s Loop.
Chapter 18 Direct Current Circuits. Sources of emf The source that maintains the current in a closed circuit is called a source of emf Any devices that.
Direct Current Circuits
The Lead Acid Electric Battery + - Spongy Lead (Pb) Lead Oxide (PbO 2 ) Sulfuric Acid Solution H 2 SO 4 Sulfuric Acid Electrolyte: Oxidation at the Negative.
1 AC Nodal and Mesh Analysis Discussion D11.1 Chapter 4 4/10/2006.
Systematic Circuit Analysis Nodal Analysis Chapter 4 Section 1.
EET Survey of Electronics Chapter 14 - Series-parallel circuits.
Chapter 8 Methods of Analysis. 2 Constant Current Sources Maintains same current in branch of circuit –Doesn’t matter how components are connected external.
Physics 6B Electric Current And DC Circuit Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Copyright © 2010 Pearson Education South Asia Pte Ltd
DC CIRCUIT ANALYSIS: NODE AND MESH METHOD Current Sources AND Source Conversions Current Sources in Parallel AND Series Branch-Current Analysis Mesh Analysis.
Objective of Lecture Provide step-by-step instructions for mesh analysis, which is a method to calculate voltage drops and mesh currents that flow around.
Use Ohm’s Law to solve the following equations.
Previous Lecture Energy and Power Power in an Electric Circuit
Solving Scale Linear Systems (Example system) Lecture 13 MA/CS 471 Fall 2003.
Circuit Analysis Chapter 18 AP Physics: M. Blachly.
Introduction to Electronics. Basic Electronics What is electricity? How is it measured? Terms Ohm’s Law Kirchhoff's Laws Power Putting it together Power.
Electric Charge One of the seven fundamental SI units.
Objective of Lecture Provide step-by-step instructions for mesh analysis, which is a method to calculate voltage drops and mesh currents that flow around.
Chapter 8 Methods of Analysis. Constant Current Sources Maintains the same current in the branch of the circuit regardless of how components are connected.
Chapter 25 Electric Circuits.
FUNDAMENTALS OF ELECTRIC CIRCUITS EE 318 Dr. ARVIND TIWARI B1-S DEPARTMENT OF ELECTRICAL ENGINEERING, COLLEGE OF.
Current, Resistance,Voltage Electric Power & Energy Series, Parallel & Combo Circuits with Ohm’s Law, Combo Circuits with Kirchoff’s Laws Review for Chapters.
Equilibrium of a particle
9 Kirchhoff’s Laws Chapter Topics Covered in Chapter 9
1 ENGG 1015 Tutorial Circuit Analysis 5 Nov Learning Objectives  Analysis circuits through circuit laws (Ohm’s Law, KCL and KVL) News  HW1 deadline (5.
1 © Unitec New Zealand DE4401&APTE 5601 Topic 4 N ETWORK A NALYSIS.
1. Inverse of A 2. Inverse of a 2x2 Matrix 3. Matrix With No Inverse 4. Solving a Matrix Equation 1.
IEEE’s Hands on Practical Electronics (HOPE) Lesson 3: Ohm’s Law, Equivalent Resistances.
Introduction to Electrical Circuits Unit 17. Sources of emf  The source that maintains the current in a closed circuit is called a source of emf Any.
Chapter 28 Direct Current Circuits. Direct Current When the current in a circuit has a constant direction, the current is called direct current Most of.
Chapter 28 Direct Current Circuits. Introduction In this chapter we will look at simple circuits powered by devices that create a constant potential difference.
Lecture 7 Circuits Chp. 28 Cartoon -Kirchoff’s Laws Opening Demo- transmission lines Physlet Topics –Direct Current Circuits –Kirchoff’s Two Rules –Analysis.
ELECTRICAL CIRCUIT CONCEPTS
LOOP ANALYSIS The second systematic technique to determine all currents and voltages in a circuit IT IS DUAL TO NODE ANALYSIS - IT FIRST DETERMINES ALL.
Fundamentals of Electric Circuits
1 Electronics Parallel Resistive Circuits Part 1 Copyright © Texas Education Agency, All rights reserved.
Determine the mathematical models that capture the behavior of an electrical system 1.Elements making up an electrical system 2.First-principles modeling.
Objective of Lecture Provide step-by-step instructions for nodal analysis, which is a method to calculate node voltages and currents that flow through.
Engineering Fundamentals and Problem Solving, 6e Chapter 17 Electrical Circuits.
Engineering Science EAB_S_127 Electricity Chapter 2.
Regents Physics Parallel Circuits –Ohm’s Law in Parallel Circuits.
The second systematic technique to determine all currents and voltages in a circuit IT IS DUAL TO NODE ANALYSIS - IT FIRST DETERMINES ALL CURRENTS IN A.
CONTINUATION OF COMPONENTS OF FORCES Realize in these problems that a right triangle will represent a FORCE and the COMPONENTS of the force, when the.
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
Equilibrium of a Particle 3 Engineering Mechanics: Statics in SI Units, 12e Copyright © 2010 Pearson Education South Asia Pte Ltd.
Simultaneous Equations Can use matrix maths to solve linear simultaneous equations Arise from: –Electric Circuits Kirchoff’s laws –Fluid Dynamics.
ABE425 Engineering Measurement Systems Circuit Analysis Dr. Tony E. Grift Dept. of Agricultural & Biological Engineering University of Illinois.
1 §18.1 Electric Current e-e- e-e- e-e- e-e- e-e- e-e- e-e- e-e- A metal wire. Assume electrons flow to the right. Current is a measure of the amount of.
MEC 0011 Statics Lecture 3 Prof. Sanghee Kim Fall_ 2012.
Series and Parallel Circuits SNC1D. Series and Parallel Circuits Key Question: How do series and parallel circuits work?
Current, Resistance,Voltage Electric Power & Energy Series, Parallel & Combo Circuits with Ohm’s Law, Combo Circuits with Kirchoff’s Laws Review for Chapters.
Kirchoff’s Voltage Law(KVL), first definition:
Nodal Analysis.
Nodal Analysis.
Kirchoff’s Laws.
Kirchoff’s Laws.
Plotting Ohm’s Law If we write Ohm’s Law in the manner of a straight line equation we get: I = (1/R).E Ohm’s Law y = m .x + b - Straight.
Nodal and Mesh Analysis
Chapter 9.
CE Statics Lecture 8.
Presentation transcript:

Solving Linear Equations  Many applications require solving systems of linear equations.  One method for solving linear equations is to write a matrix equation then apply some of the array operations discussed previously. Procedure: 1. Write the equations in the form: Ax = b where A is a square matrix of equation coefficients, x is a vector of unknown variables, and b is a vector of constants. 2. Check det(A). If det(A) = 0, then there is no unique solution to the equations. If det(A) ≠ 0, invert matrix A and multiply both sides of the equation (on the left) by A  The unknown variables, x, are given by x = A  1  b.

Example: Solving Linear Equations Solve the following system of linear equations: x + 2y – 5z = -8 3x + y + 4z = 9 x + 2y – z = 0 Write matrix equation: 1 2 – 5 x  y = –1 z 0 Does matrix A have an inverse?  Use MATLAB ® : >> A = [1 2 -5; 3 1 4; ]; det (A) ans =-20 So yes, A has an inverse!

Example (continued) Compute the inverse of matrix A (using MATLAB ® ) and then multiply both sides of equation (on left) by A  1. >> inv(A) ans = x 0 y = 1 z 2 A  1  A = MATLAB ® >> b = [-8; 9; 0]; >> inv(A)* b

Example (continued) Check Solution: x + 2y – 5z = -8 3x + y + 4z = 9 x + 2y – z = (1) – 5(2) = -8 3(0) + (1) + 4(2) = (1) – 2 = 0 It Works!

More Efficient Method: Left Divide Previous Example with a Left Divide Operator: >> A = [1 2 -5; 3 1 4; ]; det (A) ans =-20 >> b = [-8; 9; 0]; >> A\b % Note the back slash here (not divide operator). ans =

The behavior of physical objects when subjected to forces

Force: A Vector  Forces are specified using two quantities: the magnitude and the direction of the force.  In polar form, F = e r F r + e θ F θ F = magnitude (Newtons, N or lbs) θ = direction (degrees or rad)  In rectangular form F = iF x + jF y = F x F y F: magnitude θ: direction x y ^ ^ e r,F r e θ,F θ i,F x j,F y

Quick Review of Basic Trig α x y h sin(α) = y/h cos(α) = x/h tan(α) = y/x x 2 + y 2 = h 2

Force Conversions Polar to Rectangular: Fx = Fcos(θ) Force in x-direction Fy = Fsin(θ) Force in y-direction Rectangular to Polar: F = √Fx 2 + Fy 2 θ = tan -1 (Fy/Fx) F θ x y Fx Fy

Computing Resultant Force Numerical Solution: 1. Resolve each force into an x and y component (rectangular). 2. Sum all of the x components and all of the y components to get the x and y component of the resultant force. 3. Calculate the magnitude and direction of the resultant force from the x and y components. F1 = 100 ∠50 o N F2 = 50 ∠-30 o N F3 = 30 ∠130 o N

Computing Resultant Force F1 = 100cos(50) = 64.3 F2 = 50cos(-30) = 43.3 F3 = 30cos(130) =  sin(50) sin(-30)  25 30sin(130) 23 F total = F1 + F2 + F3 =  19.3 = – F1 = 100 ∠50 o N F2 = 50 ∠-30 o N F3 = 30 ∠130 o N  25.0 

Computing Resultant Force Magnitude = sqrt( ) = Direction = atan(Fy/Fx) = 40.2 o Note: If Fx is negative, add 180 o to the direction calculated using MATLAB ® or calculator. F1 = 100 ∠50 o F2 = 50 ∠-30 o N F3 = 30 ∠130 o N F = 115 ∠40.2 o N

Computing Resultant Force Graphically F1 = 100 ∠50 o N F2 = 50 ∠-30 o N F3 = 30 ∠130 o N F3 = 30 ∠130 o F1 = 100 ∠50 o F2 = 50 ∠-30 o N F3 = 30 ∠130 o N Magnitude = (measure length of vector) Direction = 40.2 o (measure angle of vector)

In MATLAB >> F1 = [100*cosd(50); 100*sind(50)]; >> F2 = [30*cosd(130); 30*sind(130)]; >> F3 = [50*cosd(-30); 50*sind(-30)]; >> F = F1 + F2 + F3 F = >> magnitude = sqrt(F(1)^2 + F(2)^2) magnitude = >> if F(1) < 0 angleF = atand(F(2)/F(1))+180; else angleF = atand(F(2)/F(1)); end >> angleF angleF =

A Simple Statics Example Weight = 50 lbs A C B A weight is suspended from two cables (AC and BC) which are secured at points A and B. Assuming the cables can support the weight and there is no motion, find the forces (tension) in the two cables.

A Simple Statics Example What do we know about the cable forces? 50 lbs A C B F1F1 F2F2 The two cables must provide 50 lbs of force in the positive y- direction to counteract the force from the weight. There should be no net force in the x-direction from the two cables. Statics: ∑Fx = 0 ∑Fy = 0

A Simple Statics Example ∑Fx = 0 F 1x + F 2x = 0 ∑Fy = 0 F 1y + F 2y  50 = 0 50 lbs A C B F1F1 F2F2 F 2y F 1y F 2x F 1x What other information do we need?

A Simple Statics Example θ 1 = acos(7.5/10) = 41.4 o θ 2 = acos(7/10) = 45.6 o 50 lbs A C B F1F1 F2F2 F 2y F 1y F 2x F 1x 7 in 10 in 7.5 in 10 in θ1θ1 θ2θ2

A Simple Statics Example 50 lbs A C B F1F1 F2F2 F 2y F 1y F 2x F 1x 45.6 o 41.4 o ∑Fx = 0 F 1x + F 2x = 0  F 1 cos(41.4 o ) + F 2 cos(45.6 o ) = 0 ∑Fy = 0 F 1y + F 2y  50 = 0 F 1 sin(41.4 o ) + F 2 sin(45.6 o )  50 = 0 ∑Fx = 0 F 1x + F 2x = 0  F 1 cos(138.6 o ) + F 2 cos(45.6 o ) = 0 ∑Fy = 0 F 1y + F 2y  50 = 0 F 1 sin(138.6 o ) + F 2 sin(45.6 o )  50 = 0 OR

A Simple Statics Example ∑Fx = 0  F 1 cos(41.4 o ) + F 2 cos(45.6 o ) = 0 ∑Fy = 0 F 1 sin(41.4 o ) + F 2 sin(45.6 o )  50 In Matrix Form:

A Simple Statics Example MATLAB SOLUTION: >> A = [  cosd(41.4) cosd(45.6) ; sind(41.4) sind(45.6)] ; >> b = [0; 50]; >> F = A\b F =

A Simple Statics Example 50 lbs A C B F 1 = ∠ o lbs (Tension) F 2 = ∠ 45.6 o lbs (Tension) Always include units in your answers if possible!

Basic Electrical Laws Ohm’s Law: V = I  R V = voltage (volts, V) I = current (amps, A) R = resistance (ohms,  ) Current - the flow rate of electrons in a circuit. 1A = ⋅ e- /second Voltage - the potential difference between two points in a circuit. Resistance - a measure of the opposition to the flow of current in a circuit. + _ V I R

Basic Electrical Laws (con’t) Kirchoff’s Voltage Law: The sum of the voltage drops and rises around a loop is zero. Kirchoff’s Current Law: Current flow into a node is equal to the current flow out of a node. I 1 = I 2 + I 3 I1I1 I3I3 I2I2

Simple Circuit Example Total Resistance, R=? Current, I = ? Voltage Drop Across Each Resistor? Verify Kirchoff’s Voltage Law I = 2 mA V R1 = (2 mA)  (1 k  ) = 2 V V R2 = (2 mA)  (2 k  ) = 4 V V R3 = (2 mA)  (3k  ) = 6 V 12V – 2V – 4V – 6V = 0 or 12V = 2V + 4V + 6V + 4V  + 2V  + 6V  R = 1 k  + 2 k  + 3 k  = 6 k  I = (12V) / (6000  ) = A = 2 mA + _

Mesh Analysis Circuit Example I1I1 I2I2 I3I3 A student in a circuit class applies Kirchoff’s Voltage Law around each loop and derives the following equations: ++ __

Mesh Analysis Example Use the mesh equations to solve for the three loop currents. Re-write the equations so the unknowns (currents) are on the left side and the constants are on the right side.

Mesh Analysis Example Now combine the three equations into matrix form:

Mesh Analysis Example Solve for currents using MATLAB ® >> R = [ ; ; ]; det (R) ans = >> v = [9; 0; -6]; >> I = R\v I =

Mesh Analysis (continued) I 1 = mA I 2 = mA I 3 =  mA What does negative current mean? Current really flows in other direction Now label currents through each resistor on the circuit diagram I1I1 I2I2 I3I

3.12V Mesh Analysis (continued) Voltage Drop across each resistor is product of the current through the resistor and the resistance (Ohm’s Law V = IR) Voltage drop across 1 k  resistor? V 2.53V 2.65V 5.88V Voltage drop across 2.2 k  resistor? mA * 2.2 k  = 5.88 V mA * 1 k  = V

3.12V Mesh Analysis (continued) Is there a way to check these results? Use Kirchoff’s Voltage Law around each loop: Loop 1: 9V – 3.12V – 5.88V =  V Loop 2: 5.88V  2.53V – 3.35V = 0 V Loop 3: 3.35V V – 6V = 0 V Note: Loop voltages may not exactly equal to zero due to round-off errors V 2.53V 2.65V 5.88V