0% found this document useful (0 votes)
35 views8 pages

Sys of Linear Eqn

This document discusses solving systems of linear equations using MATLAB. It defines a system of linear equations as a collection of linear equations involving the same set of variables. It describes three possible behaviors of a linear system: having infinitely many solutions, a unique solution, or no solution. It then presents Cramer's rule and the inverse matrix method for solving systems of linear equations. Finally, it provides an example of using MATLAB functions like linsolve to solve a 3x3 system of linear equations in matrix form.

Uploaded by

Anirudh Mittal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views8 pages

Sys of Linear Eqn

This document discusses solving systems of linear equations using MATLAB. It defines a system of linear equations as a collection of linear equations involving the same set of variables. It describes three possible behaviors of a linear system: having infinitely many solutions, a unique solution, or no solution. It then presents Cramer's rule and the inverse matrix method for solving systems of linear equations. Finally, it provides an example of using MATLAB functions like linsolve to solve a 3x3 system of linear equations in matrix form.

Uploaded by

Anirudh Mittal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

System of Linear Equations

using MATLAB

Subject Teacher : Presented by :

Prof. Vicky Suri SUNNY SINGH 2019UEE5081


ICE Dept. UTKARSH JAIN 2019UEE5083
NSUT ANIRUDH MITTAL 2019UEE5093
RITIKESH VALI 2019UEE5095
SYSTEM OF LINEAR EQUATIONS
⇨In mathematics, a system of linear equations (or linear system) is a collection of one or more linear equations
involving the same set of variables.
For three variables, each linear equation determines a plane in three-dimensional space, and the solution set is
the intersection of these planes.

A linear system may behave in any one of three possible ways:


1. The system has infinitely many solutions- If both numerator and denominator are zero
2. The system has a single unique solution- If both numerator and denominator are non zero
3. The system has no solution-If denominator is zero and numerator is non zero
Out of many methods the most effective method to solve a pair of linear equations is Cramer’s rule. This rule
involves the use of determinants and it’s properties to effectively solve Three Dimensional Linear Equation.
CRAMER’S RULE Cramer's rule is an explicit formula for the solution of a system of linear equations, with each
variable given by a quotient of two determinants. Given
● Inverse-Matrix Method

3x + 2y - z = 6 3 2 -1 x 6
Convert it to its
-2x + 2y + z = 3 -2 2 1 y = 3
x+ y+z=4 1 1 1 z 4
Matrix Form

System of Linear
Equations in x, y, z.
A . X = B
Compute the
Inverse Matrix

x 1 Multiply x 1/13 -3/13 4/13 6


y = 2 y = 3/13 4/13 -1/13 3
z 1 Inverse Matrix and z -4/13 -1/13 10/13 4
Constant Matrix
Solution Obtained. X = A-1 . B
Solving three linear equations (array division) :
Use matrix operations to solve the following system of linear equations

4x-2y+6z=8
2x+8y+2z=4
6x+10y+3z=0
Solution Using the rules of linear algebra demonstrated earlier, the above system of equations
can be written in the matrix form AX=B or in the form XC=D:

Solutions for both forms are shown below:


>> A=[4 -2 6; 2 8 2; 6 10 3]; Solving the form AX = B
>> B=[8; 4; 0];
>> X=A\B
X = -1.8049 0.2927 2.6341 Solving by using left division: X = A \ B
>> Xb=inv(A)*B Solving by using the inverse of A: X=A-1B
Xb = -1.8049
0.2927
2.6341
>> C=[4 2 6; -2 8 10; 6 2 3]; (Solving the form XC = D)
>> D=[8 4 0];
>> Xc=D/C (Solving by using right division: X = D/C)
Xc = -1.8049 0.2927 2.6341

>> Xd=D*inv(C) (Solving by using the inverse of C: X=DC-1)


Xd = -1.8049 0.2927 2.6341
SOLVING SYSTEM OF LINEAR EQUATION USING LINSOLVE :

Use [A,B] =
Declare the equationsTo
2x+y+z=2 system of syms x y z equationsToMatrix
eqn1 = 2*x + y + z == 2; Matrix
−x+y−z=3 ([eqn1, eqn2,
eqn2 = -x + y - z == 3;
x+2y+3z=−10 eqn3], [x, y, z])
eqn3 = x + 2*y + 3*z == to convert
equation
the
s -10;
equations
into the form
AX = B
A =
Use linsolve
[ 2, 1, 1]
X 3 to solve AX =
[ -1, 1, -1]
Y = 1
X = linsolve(A,B) B [ 1, 2, 3]
Z -5
B =
2
3
-10
REFERENCE
- AMOS GILAT :INTRODUCTION TO MATLAB
- B.ADRIAN AND B.MOSHE :INTRODUCTION TO MATLAB
- STEPHEN J.CHAPMAN :MATLAB PROGRAMMING FOR ENGINEERS

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy