Systems of Linear Equations: PageRank, Circuit Analysis, and Matrix Operations
Application of Linear Systems in Circuits and Web Search
Circuit Analysis Example (Kirchhoff's Laws):
A circuit consists of three nodes with voltages and .
Components include resistors of and current sources of .
Nodal equations derived from the circuit diagram:
Node 1:
Node 2:
Node 3:
This results in a system of linear equations with 3 unknowns () and 3 equations.
PageRank Algorithm (Web Search):
The Problem: When performing a web search, pages are retrieved based on importance (). The page with the maximum value is considered the most important and is shown first.
Graph Representation: Webpages are visualized as nodes in a graph, and links between them are directed edges.
Condition for Importance (): The importance of a page is determined by the importance of the pages linking to it, divided by the number of outgoing links from those source pages.
Illustrative System of Importance:
(Page 3 has 3 outgoing links to nodes 0, 1, and 4)
(Page 0 has 1 outgoing link to page 1; Page 3 contributes 1/3 of its importance)
(Page 1 has 2 outgoing links to pages 2 and 3)
(Page 1 contributes 1/2; Page 2 has 2 outgoing links to 3 and 4; Page 4 has 1 outgoing link to 3)
(Page 2 contributes 1/2; Page 3 contributes 1/3)
The logic follows: , where links to .
Analysis of Two-Variable Linear Systems
General Form:
Three Possible Types of Solutions:
Unique Solution: The two straight lines intersect at exactly one point.
Infinitely Many Solutions: Both lines are identical (coincident).
No Solution: The lines are parallel and do not intersect.
Graphical Determination (Slope-Intercept View):
If , the equations can be rewritten as:
Let slopes be and .
If , there is a unique solution.
If , the lines are either parallel (no solution) or they coincide (infinite solutions).
Special Cases for Coefficients:
If either : One line is vertical ().
If both and :
Infinite solutions if .
No solution if .
Algebraic Methods and Gaussian Elimination
Triangular Forms:
A system is "easy" to solve if it is in a triangular form with a non-zero diagonal (e.g., ):
Solutions: and .
Elimination Method:
To solve a non-triangular system, eliminate one variable. Replace Equation (2) with .
This transforms the system into:
Solving for yields:
Matrix Representation of Linear Systems
Components:
Coefficient Matrix:
Variable Vector:
Constant Vector:
Augmented Matrix:
Row Operations for Row Echelon Form:
Interchange two rows.
Multiply a row by a non-zero scalar ().
Add a multiple of one row to another row ().
Examples of System Solutions via Matrices:
Unique Solution:
Augmented Matrix:
Result: .
Infinite Solutions:
Solution: .
No Solution:
The equation is a contradiction.
Multi-Equation Systems (3 Equations, 2 Variables)
System Structure:
Matrix Approach: Represent as a coefficient matrix multiplied by a variable vector, equated to a constant vector.
Elimination Strategy:
Use as a pivot to make entries in column 1 () zero.
Then use the second row to make the entry in the third row, second column zero.
Problems and Worked Examples
Unique Solution Condition Problem:
System: and .
Find such that there is a unique solution.
Matrix representation:
For a unique solution, the diagonal entry must be non-zero: .
Consistency Check Example (No Solution Case):
System:
Row operation sequence:
The resulting equation indicates the system has no solution.
Consistency Check Example (Unique Solution Case):
System:
Row operation sequence:
Resulting matrix:
This leads to and . A unique solution exists: .