Top Banner
Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear, we have a linear system. A solution to the system is a set of values for these quantities that makes all of the equations true. We will solve linear systems using graphical and algebraic methods.
32

Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Dec 27, 2015

Download

Documents

Edith Charles
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Linear SystemsTwo or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear, we have a linear system.A solution to the system is a set of values for these quantities that makes all of the equations true.We will solve linear systems using graphical and algebraic methods.

Page 2: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Graphical Methods

• Example: Solve the system: -3x + 2y = 8 (equation 1) x + 2y = -8 (equation 2)

Graph the two equations. Their point of intersection is the solution. Check the solution.

Page 3: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Algebraic Methods

• Example: Solve the system: -3x + 2y = 8 (equation 1) x + 2y = -8 (equation 2)1) Solve for y in one equation in terms of x.2) Substitute your expression for y (from step 1)

into the other equation and solve for x.3) Knowing the value of x, substitute that value into

either equation and solve for y.

Page 4: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

More Algebraic Methods

• Example: Solve the system: -3x + 2y = 8 (equation 1) x + 2y = -8 (equation 2)Often we can solve a system faster by forming an “equivalent system” (having the same solution) and eliminating one of the variables by adding the equations.Try multiplying both sides of equation 2 by -1 and adding the two equations.

Page 5: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Classifying a system of Linear Equations.

Consistent System: System has at least one solution. Linearly Independent system: Has one solution.

Consists of the equations of two lines that intersect at one point.

Linearly dependent system: Has infinite number of solutions. The equations describe lines that coincide.

Inconsistent System: System has NO solutions. The equations describe lines that do not intersect; that is, they are parallel.

Page 6: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

How can we tell if a system is independent, dependent, or

inconsistent?• Put each line in slope-intercept form• If slopes and intercepts are the same, the lines are

the same (linearly dependent).• If slope is the same, but intercepts are different,

the lines are parallel and have no solution (inconsistent).

• If slopes are different, lines are linearly independent and have one solution.

Page 7: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Classify the following systems of equations.

1) 4y - 2x = 6, 8y = 4x - 12

2) -3x + y = 4, x -

3) 2x + 3y = 1, 4x + y = -3

4) y = 2x – 3, 6x – 3y = 9

Page 8: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

How can we solve a system of inequalities by graphing?

• Solve: 2x – y ≥ -3, y ≥ - x +1 (Hint: First put both inequalities in slope-intercept form)

• Solve: – x + 2y ≤ 4, y ≥ -x – 1– Page 153, Problem 21– Page 153, Problem 31– Page 154, Problem 48– Page 154, Problem 51

• Homework 12.

Page 9: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Linear Programming• A method for optimizing some quantity (say costs

or profits) subject to given constraints. Objective function: The quantity we are trying to

optimize. (ex: minimize costs, maximize profits)Constraints: Restrictions on quantities forming a set

of inequalities.Feasible Region: The region in space that satisfies all

of the constraints.Vertex Principle: If there is a maximum or minimum

value of the objective function, it occurs at one or more vertices of the feasible region.

Page 10: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

EXAMPLE 1:You want to spend no more than $40 for at most 15 tomato plants. You want to maximize the number of pounds of tomatoes you’ll get. Roma plants will yield 8 lbs per plant and cost $2 each. Cherry plants will yield 10 lbs per plant and cost $3 each. How many of each plant should you buy?1) Write the objective function as an equation.2) Write the constraints as inequalities.3) Graph the constraints and shade in the feasible region.4) Test the vertices of the feasible region for an optimal value of the

objective function.

Page 11: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Example 2• You’re making T-Shirts and Sweatshirts to sell at a

festival. You have only 20 hours to do the job. You can only spend up to $600 for supplies. You want to have at least 50 items to sell. Also:

A T-shirt costs $4 and 10 minutes to make with a profit of $6.

A sweatshirt costs $20 and 30 minutes to make with a profit of $20.

• How many of each should you make to maximize your profit? What is your maximum profit?

Page 12: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Example 2 continued….

1) You can organize the information in a table:

2) Write the objective function (Profit): P = 3) Write the constraints using the table.4) Graph the constraints (Note: Allow max value of x at 150)

5) Shade the feasible region6) Test the vertices

constraint T-Shirts (x) Sweatshirts (y) Total

Minutes 10x 30y 1200

Number x y 50

Cost ($) 4x 20y 600

Page 13: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Methods of Solving Simultaneous Equations

We’ve seen two methods of solving simultaneous equations:1) Multiplying entire equations by numbers and

adding them to eliminate one variable. (“Elimination”)

2) Solving one equation for one variable (say, y) in terms of the other (say, x), then substituting for y in the other equation and solving for x. (“Substitution”)

Page 14: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Systems with Three Variables

• In two variable systems, we’ve visualized solutions graphically as the intersection of two lines, each with the form: Ax + By = C.

• In three variable systems, we can visualize solutions graphically as the intersection of three planes, each with the form: Ax + By + Cz = D

Page 15: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Solving Systems Using Elimination1) 2x –y + z = 4, x + 3y –z = 11, 4x + y –z = 14

2) x – y + z = -1, x + y + 3z = -3, 2x –y + 2z = 0

Page 16: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Solving Systems Using Substitution

1) 2x + 3y – 2z = -1, x + 5y = 9, 4z – 5x = 4

2) x – 2y + z = -4, -4x + y -2z = 1, 2x + 2y – z = 10

Page 17: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Some Situations• Inventory Management: You have a clothing store

and a budget of $6000 to use to buy 200 shirts. You can buy T-shirts for $12 each, polo shirts for $24 each, and rugby shirts for $36 each. You wish to have twice as many rugby shirts as polo shirts.

• Geometry Application: In triangle PQR, the measure of angle Q is three times the measure of angle P. The measure of angle R is 20⁰ more than the measure of angle P. Find the measure of each angle.– What are the unknowns?– What system of equations represent the situation?

Page 18: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

• Homework 14: Pages 171-172: 10, 21,30, 32 Show all work.

Page 19: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Solving Linear Systems Using Matrices

• A matrix is an array of numbers that can be used to represent a system of linear equations. Below is a 2X3 (“2 by 3”) matrix:

• has 2 rows and 3 columns.• The above matrix can be used to represent the

following system of linear equations 2x + 4y = 1 6x + 5y = 3

Page 20: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Structure of Matrices• We refer to the numbers in a matrix as

“elements” and they are referenced by indices: aij where i = row and j= column.

• Labeling of elements in a 3X3 matrix:The matrix element (in boldface) is in the second row and third column.

Page 21: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Representing Systems of Equations with Matrices

• Example: x – 3y + z = 6 x + 3z = 12 y = -5x + 1• Rewrite system in the same variable order, lining up the

coefficients of like variables: x – 3y + z = 6 x + 3z = 12

5x + y = 1• Write the matrix using only coefficients and constants

and use a vertical line to separate coefficients from constants:

Page 22: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Represent the following systems using matrices

• -4x – 2y = 7 3x + y = -5• 4x – y + 2z = 1 y + 5z = 20 2x = -y + 7• What system is represented by: ?

Page 23: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

An Especially Convenient Matrix• What system is represented by:?Solving systems using matrices is a convenient way to solve using elimination. We perform “row operations” that leave the system unchanged until we get the matrix in the above form, called “Reduced Row Echelon Form” (RREF).

Page 24: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Row Operations• We can perform the following operations on a matrix

without changing the solution of the system. (Remember: Each row corresponds to an equation.):

Switch any two rows. (That’s just changing the order in which we look at the equations.)

Multiply a row by a constant. (That’s just multiplying both sides of an equation by the same number.)

Add one row to another. (That’s just adding the right hand sides and left hand sides of two equations).

Any combination of the above.We have done all of these things before, just not in matrix

form.

Page 25: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Using Row Operations to reduce a Matrix to RREF.• Find the solution to: x+ 4y = -1 and 2x + 5y = 41) Write in matrix form as: 2) Get bottom row reduced first: Multiply top row by

-2 and add to bottom row : 3) Multiply bottom row by (-1/3): 4) Multiply bottom row by -4 and add to top row: So:

x =7 and y = -2.

Page 26: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Gauss-Jordan Elimination: Systematic Method to reduce a Matrix to RREF

• Think of the elements to the left of the constants as a “square matrix” (i.e. 2 by 2, 3 by 3, …. n by n). You want to get all the elements along the diagonal (called the “diagonal elements”) equal to 1 and all the others; zero.

1) In general, get the elements below the diagonal of the leftmost column zeroed starting from the bottom using row operations, until you reach the diagonal element. Repeat for each column, working your way to the right. At the end of this step, all elements below the diagonal are zero.

2) Then multiply the bottom most row by the reciprocal of its diagonal element to turn it into 1.

3) Now work your way up the rows: For each row, zero the off diagonal elements using multiples of the lower rows , then multiply by the reciprocal of the diagonal element.

Page 27: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Solve the following Systems Using Gaussian Elimination

A) x + 3y = 22 2x – y = 2

B) Hint: Let and and rewrite system solving for n and m

C) 2x + 3y + z = 13 5x – 2y – 4z = 7 4x + 5y + 3z = 25

Page 28: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

More About Gauss-Jordan Elimination• Provides a more concise, less cluttered representation of

elimination.• Easy to program in a computer in case you have thousands

of equations and unknowns.• Has further applications (especially in physics) beyond

solving systems of linear equations.• More complex programming methods are possible that are

faster than Gauss-Jordan Elimination.• If you stop row operations after the lower off diagonal

elements are zero and the diagonal elements are 1, your matrix will be in “row echelon form” (“REF”) and this process is called “Gaussian Elimination”. If you translate the result back to a system of equations, it can be easily solved using substitution.

Page 29: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,

Homework 15

• Homework 15: Pages 179-181: 8-11, 28, 30, 32, 41 46. (You must use matrix methods MANUALLY WITHOUT a graphing calculator to solve 28, 32, 41, 46).

Page 30: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
Page 31: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
Page 32: Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,