EEE 244-3: MATRICES AND EQUATION SOLVING

Slides:



Advertisements
Similar presentations
Chapter 6: Roots: Open Methods
Advertisements

Part 2 Chapter 6 Roots: Open Methods
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Roots: Bracketing Methods
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering.
Review of Matrix Algebra
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Modified Gary Larson Far Side cartoon
Chapter 10 Review: Matrix Algebra
Systems and Matrices (Chapter5)
ECON 1150 Matrix Operations Special Matrices
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
Matrix Algebra. Quick Review Quick Review Solutions.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Solutions to Linear Systems.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
CMPS 1371 Introduction to Computing for Engineers MATRICES.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Lecture 28: Mathematical Insight and Engineering.
Unit 3: Matrices.
13.6 MATRIX SOLUTION OF A LINEAR SYSTEM.  Examine the matrix equation below.  How would you solve for X?  In order to solve this type of equation,
CW Matrix Division We have seen that for 2x2 (“two by two”) matrices A and B then AB  BA To divide matrices we need to define what we mean by division!
Part 2 Chapter 5 Roots: Bracketing Methods PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Examples of linear transformation matrices Some special cases of linear transformations of two-dimensional space R 2 are illuminating:dimensional Dimoffree.svgDimoffree.svg‎
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Matrices and Systems of Equations
Systems of Equations and Inequalities Ryan Morris Josh Broughton.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
Part 3 Chapter 9 Gauss Elimination PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
Finishing up Chapter 5. Will this code enter the if statement? G=[30,55,10] if G
3.8B Solving Systems using Matrix Equations and Inverses.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Mathematics Medicine What is meant by a matrix A matrix is a set of numbers arranged in the form of a rectangle and enclosed in curved brackets.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
ROOTS OF EQUATIONS. Graphical Methods A simple method for obtaining the estimate of the root of the equation f(x)=0 is to make a plot of the function.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
Chapter 4 Systems of Linear Equations; Matrices
Linear Algebraic Equations and Matrices
ECE 3301 General Electrical Engineering
Chapter 7 Matrix Mathematics
Linear Algebraic Equations and Matrices
Systems of First Order Linear Equations
Part 2 Chapter 6 Roots: Open Methods
7.3 Matrices.
Percent of Crop Grown in Each Country
Computers in Civil Engineering 53:081 Spring 2003
Unit 3: Matrices
Roots: Bracketing Methods
ARRAY DIVISION Identity matrix Islamic University of Gaza
Systems of Linear Equations and Matrices
EEE 244-3: MATRICES AND EQUATION SOLVING
Roots: Bracketing Methods
Copyright © Cengage Learning. All rights reserved.
Part 2 Chapter 6 Roots: Open Methods
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Matrices and Determinants
Presentation transcript:

EEE 244-3: MATRICES AND EQUATION SOLVING

Application of Matrices Matrices occur in solution of linear equations for Electrical Engineering problems Example of linear equations: Voltage-current relation V1 = Z11 I1 + Z12 I2 V2 = Z21 I1 + Z22 I2

Matrix structure A matrix consists of a rectangular array of elements represented by a single symbol (example: A). An individual entry of a matrix is an element (example: a23) A =

Matrix elements A horizontal set of elements is called a row and a vertical set of elements is called a column The first subscript of an element indicates the row while the second indicates the column The size of a matrix is given as m rows by n columns, or simply m by n (or m x n)

Special Matrices Matrices where m=n are called square matrices There are a number of special forms of square matrices:

Matrix Multiplication The elements in the matrix C that results from multiplying matrices A and B are calculated using: Matlab command: C = A*B

Matrix Inverse and Transpose The inverse of a square, nonsingular matrix A is that matrix which, when multiplied by A, yields the identity matrix. A A-1= A A-1 = I Matlab command: Ainv = inv(A) The transpose of a matrix involves transforming its rows into columns and its columns into rows. (aij)T=aji Matlab command: A_transpose = A’

System of linear equations a11 x1 + a12 x1 + a13 x1 ……… a1n xn = c1 a21 x1 + a22 x1 + a23 x1 ……… a2n xn = c2 . an1 x1 + an2 x1 + an3 x1 ……… ann xn = cn

Matrix equation AX = C

Solving With MATLAB MATLAB provides two direct ways to solve systems of linear algebraic equations AX = C Matrix inversion X = inv(A)*C Gaussian elimination (Left division) X = A\C Matrix inverse is less efficient than left-division and also only works for square, non-singular systems

Example electric circuit problem Find the resistor currents in the circuit below:

KVL equations I1 I2 -10 + (I1-I2) x 100 = 0 => 100 I1 -100 I2 = 10 (I2-I1) x 100 + I2 x 100 -10 = 0 => -100 I1 +200 I2 = 10

Matrix equation

MATLAB solution clear A=[ 100 -100; -100 200]; C= [10; 10]; I=inv(A)*C;

Roots of equations Solution of complex equations require Engineering problems involve finding roots of complex equations Equations can be of different types: Polynomials with powers of x Example: x3 + 2x2 – 4x +1 = 0 Transcendental functions containing sin(x), ex, log(x) Example: sin(x) – 4x +1 = 0 Solution of complex equations require numerical techniques

Graphical Methods Zero crossing is a simple method for obtaining the estimate of the root of the equation f(x)=0 Graphing the function can also indicate types of roots: Same sign, no roots Different sign, one root Same sign, two roots Different sign, three roots

Search Method Make two initial guesses that bracket the root: f(x)=0 Find two guesses xi and xi+1 where the sign of the function changes; that is, where f(xi ) f(xI+1 ) < 0 .

Incremental Search Method Tests the value of the function at evenly spaced intervals Finds brackets by identifying function sign changes between neighboring points

Incremental Search Hazards If the spacing between the points of an incremental search are too far apart, brackets may be missed Incremental searches cannot find brackets containing even-multiplicity roots regardless of spacing.

Bisection The bisection method is the incremental search method in which the interval is always divided in half If a function changes sign over an interval, the function value at the midpoint is evaluated

Newton-Raphson Method Form the tangent line to the f(x) curve at some guess x, then follow the tangent line to where it crosses the x-axis.

MATLAB’s fzero Function MATLAB’s fzero command provides the best qualities of both bracketing and Newton Raphson methods Step 1: Define the function fname = @(x) f(x) Step 2: Use the fzero command [x, fx] = fzero(fname, x0) x0 is the initial guess x is the location of the root fx is the function evaluated at that root

Polynomials MATLAB has a built in program called roots to determine all the roots of a polynomial - including imaginary and complex roots Step 1: Define the vector with polynomial coefficients Step 2: Use the roots command x = roots(c) x is a column vector containing the roots c is a row vector containing the polynomial coefficients

Polynomial commands MATLAB’s poly function can be used to determine polynomial coefficients if roots are given: b = poly([v]) v is the vector containing roots of the polynomial b is the vector with polynomial coefficients MATLAB’s polyval function can evaluate a polynomial at one or more points: polyval(a, 1) This calculates the value of the polynomial at x=1