50
A Nickel and Dime Example David Strong Pepperdine University

A Nickel and Dime Example - Pepperdine University

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Nickel and Dime Example - Pepperdine University

A Nickel and Dime Example

David Strong

Pepperdine University

Page 2: A Nickel and Dime Example - Pepperdine University

A Nickel and Dime Example

David Strong

Pepperdine University

(Actually nickels and pennies)

Page 3: A Nickel and Dime Example - Pepperdine University

Where used?

• First or second day of class.

• In discrete math (including linear algebra) for business students

• Also used in “real” linear algebra

• This talk is basically what students see in class

Page 4: A Nickel and Dime Example - Pepperdine University

Example: coins

• Given some coins, say 15 pennies and 6 nickels, determine how many pennies and nickels are needed to satisfy one, two or all three of the given conditions:

– The total number of coins you have is 6.

– You have five times as many pennies as nickels.

– Your coins add up to a total of 30 cents.

• Use your handout.

Page 5: A Nickel and Dime Example - Pepperdine University
Page 6: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

Pennies/Nickels

Page 7: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

Pennies/Nickels

Page 8: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

Pennies/Nickels

Page 9: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

5/1

Pennies/Nickels

Page 10: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

5/1

Pennies/Nickels

Page 11: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

5/1

0/6

Pennies/Nickels

Page 12: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

5/1

0/6

15/3

Pennies/Nickels

Page 13: A Nickel and Dime Example - Pepperdine University

0/6, 1/5, 2/4, 3/3, 4/2, 5/1, …

0/0, 5/1, 10/2, 15/3, …

0/6, 5/5, 10/4, 15/3, …

5/1

0/6

15/3

???

Pennies/Nickels

Page 14: A Nickel and Dime Example - Pepperdine University

Restrictions/relationships = Equations

• Each restriction (relationship between unknowns) corresponds to an equation.

• Where: p is number of pennies

n is number of nickels

Restriction/relationship Equation

Total number of coins is 6.

Five times as many pennies as nickels.

Coins add up to 30 cents. 305

05

6

np

np

np

Page 15: A Nickel and Dime Example - Pepperdine University

Functions vs. relationships

• Sometimes there is simply a relationship between the two values (variables). That is, one value is not really a function of the other. This is the case for the pennies and nickels equations.

• Sometimes one value (variable) really is a function of the other, in which case we can solve for one variable in terms of the other. We can do that here as well.

Page 16: A Nickel and Dime Example - Pepperdine University

Equations in standard form

305

05

6

np

np

np

Page 17: A Nickel and Dime Example - Pepperdine University

305

5

6

np

np

np

Equations with p in terms of n

305

05

6

np

np

np

Page 18: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

6

6

5151

pn

pn

pn

Equations with n in terms of p

Page 19: A Nickel and Dime Example - Pepperdine University

Equations in standard form

305

05

6

np

np

np

Page 20: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• Each unknown is a degree of freedom, each equation is a restriction.

• In general, if there are the same number of equations (restrictions, conditions) as unknowns (variables), then there is one solution.

Page 21: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• Each unknown is a degree of freedom, each equation is a restriction.

• In general, if there are the same number of equations (restrictions, conditions) as unknowns (variables), then there is one solution.

• Example: since an equation with two variables is a line, then two equations with two variables are two lines, and usually two lines intersect at a single point: the single solution. So if there are two equations each with two variables, there will generally be a single solution.

Page 22: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations For n = 2

Page 23: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m = n 1 Just right

For n = 2

Page 24: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m = n 1 Just right

For n = 2

Page 25: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m > n 0 Too many

m = n 1 Just right

For n = 2

Page 26: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m > n 0 Too many

m = n 1 Just right

For n = 2

Page 27: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m > n 0 Too many

m = n 1 Just right

m < n Not enough

For n = 2

Page 28: A Nickel and Dime Example - Pepperdine University

Number of equations vs. number of unknowns

• In general, where

m = number of equations

n = number of unknowns

then:

m vs. n # solutions # equations

m > n 0 Too many

m = n 1 Just right

m < n Not enough

For n = 2

Page 29: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 30: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 31: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 32: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 33: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 34: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 35: A Nickel and Dime Example - Pepperdine University

No solution!

305

05

6

np

np

np

Page 36: A Nickel and Dime Example - Pepperdine University

305

05

6

np

np

np

Page 37: A Nickel and Dime Example - Pepperdine University

3051

051

611

2440

660

611

610

110

611

500

110

50123

21

RR

RR

305

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

Page 38: A Nickel and Dime Example - Pepperdine University

3051

051

611

2440

660

611

610

110

611

500

110

501

0p + 0n = 5. No solution.

305

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 39: A Nickel and Dime Example - Pepperdine University

3051

051

611

2440

660

611

610

110

611

500

110

501

0p + 0n = 5. No solution.

305

05

6

np

np

np

What if we change 30 to 10?

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 40: A Nickel and Dime Example - Pepperdine University

3051

051

611

2440

660

611

610

110

611

500

110

501

0p + 0n = 5. No solution.

What if we change 30 to 10?

105

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 41: A Nickel and Dime Example - Pepperdine University

3051

051

611

2440

660

611

610

110

611

500

110

501

105

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 42: A Nickel and Dime Example - Pepperdine University

1051

051

611

440

660

611

110

110

611

000

110

501

105

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 43: A Nickel and Dime Example - Pepperdine University

1051

051

611

440

660

611

110

110

611

000

110

501

0p + 0n = 0. This is OK.

105

05

6

np

np

np

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 44: A Nickel and Dime Example - Pepperdine University

1051

051

611

440

660

611

110

110

611

000

110

501

0p + 0n = 0. This is OK.

105

05

6

np

np

np

p = 5n = 1

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 45: A Nickel and Dime Example - Pepperdine University

1051

051

611

440

660

611

110

110

611

000

110

501

0p + 0n = 0. This is OK.

105

05

6

np

np

np

p = 5n = 1

Check!

13

12

RR

RR

3

2

4161

R

R

23

21

RR

RR

Page 46: A Nickel and Dime Example - Pepperdine University

Students come up with examples (with three unknowns)

Nosolution

One solution

Infinite solutions

# equations <

# unknowns

# equations =

# unknowns

# equations >

# unknowns

Page 47: A Nickel and Dime Example - Pepperdine University

Concepts discovered and discussed

• Restrictions/relationships equations• Functions vs. equations (variables vs. unknowns)• Standard form vs. slope-intercept form• Number of equations (restrictions) vs. number of

unknowns (freedom): – Typical number of solutions– Exceptions

• In standard form, coefficients determine slope and right hand side determines y- (or x-) intercept

• Gaussian elimination is driven by coefficients, not by right hand side

• Systems of linear equations have 0, 1 or ∞ solutions

Page 48: A Nickel and Dime Example - Pepperdine University

Concepts discovered and discussed

• Restrictions/relationships equations• Functions vs. equations (variables vs. unknowns)• Standard form vs. slope-intercept form• Number of equations (restrictions) vs. number of

unknowns (freedom): – Typical number of solutions– Exceptions

• In standard form, coefficients determine slope and right hand side determines y- (or x-) intercept

• Gaussian elimination is driven by coefficients, not by right hand side

• Systems of linear equations have 0, 1 or ∞ solutions

Page 49: A Nickel and Dime Example - Pepperdine University

Concepts discovered and discussed

• Restrictions/relationships equations• Functions vs. equations (variables vs. unknowns)• Standard form vs. slope-intercept form• Number of equations (restrictions) vs. number of

unknowns (freedom): – Typical number of solutions– Exceptions

• In standard form, coefficients determine slope and right hand side determines y- (or x-) intercept

• Gaussian elimination is driven by coefficients, not by right hand side

• Systems of linear equations have 0, 1 or ∞ solutions• All with a simple 15-minute example

Page 50: A Nickel and Dime Example - Pepperdine University

Thanks for your interest.