SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Composition of Functions!
A REAL WORLD EXAMPLE
Let’s face it! Most Americans enjoy a great pair of jeans. And buying them on sale
seems like an awesome way to get more bang for your buck!
In our application we will look at the effect of two different deductions and
discounts, and determine which combination of deductions is better for the
consumer.
OUR ASSIGNMENT IS TO DETERMINE CARLTON’S COST TO PURCHASE A PAIR OF JEANS
WHEN HE PURCHASES A $50 PAIR OF JEANS BY :
a) USING ONLY THE STORE PROMOTION OF 20% OFF
b) USING ONLY THE $15 CUSTOMER REWARD COUPON
c) USING THE STORE PROMOTION OF 20% OFF AND THEN THE $15 COUPON
d) USING THE $15 OFF COUPON AND THEN THE STORE PROMOTION OF 20%
A) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF
JEANS IF HE USES ONLY THE 20% OFF STORE PROMOTION?
$𝟓𝟎 . 𝟐𝟎 = $𝟏𝟎
$𝟓𝟎 − $𝟏𝟎 = $𝟒𝟎
B) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF
HE USES ONLY THE $15 OFF CUSTOMER LOYALTY COUPON?
$𝟓𝟎 − $𝟏𝟓 = $𝟑𝟓
C) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF
HE USES THE 20% OFF STORE DISCOUNT AND THEN THE $15 COUPON?
ORIGINAL PRICE – 20% DISCOUNT – COUPON = COST
$𝟓𝟎 − 𝟓𝟎 . 𝟐𝟎 − 𝟏𝟓 = $𝟐𝟓
D) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF
HE USES THE $15 COUPON AND THEN THE 20% OFF STORE DISCOUNT?
ORIGINAL PRICE – COUPON – 20%
0FF THE REDUCED PRICE = COST
$𝟓𝟎 − $𝟏𝟓 − $𝟑𝟓 . 𝟐𝟎 =
$𝟓𝟎 − $𝟏𝟓 − $𝟕 = $𝟐𝟖
It DOES matter the order that the
discounts are applied.
How does this apply to what we will learn about composition of functions?
- Each discount is a function of the cost of the jeans. In one function we are reducing
the cost by 20%. In the other function we are subtracting $15 from the cost.
- When we use BOTH of these functions, the order that we apply them makes a
difference in the answer.
Composition of Functions – The BASICS
𝑓 𝑥 = 𝑥 − .20 𝑥
𝑔 𝑥 = 𝑥 − 15
This is a function of 20% off a price.
This is a function of $15 off a price.
𝑔 𝑓 𝑥 represents applying the 20% off discount first. Notice how the innermost function is the % off.
𝑓 𝑔 𝑥 represents applying the coupon first and then the 20% reduction. Notice how the inner most function
is the coupon.
Composition of Functions – The BASICS
𝑓 𝑥 = 𝑥 − .20 𝑥
𝑔 𝑥 = 𝑥 − 15
This is a function of 20% off a price.
This is a function of $15 off a price.
𝑔 𝑓 𝑥 = 𝑥 − .20 𝑥 − 15
𝑔 𝑓 𝑥 = .80𝑥 − 15
𝑓 𝑔 𝑥 = 𝑥 − 15 − .20 𝑥 − 15
𝑓 𝑔 𝑥 = 𝑥 − 15 − .20𝑥 + 3
𝑓 𝑔 𝑥 = .80𝑥 − 12

Weitere ähnliche Inhalte

Mehr von Dawniealaine

Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454
Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454
Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454Dawniealaine
 
Radian trig graph word problems
Radian trig graph word problemsRadian trig graph word problems
Radian trig graph word problemsDawniealaine
 
Review units 1 3 ocs fm with released items for midterm review
Review units 1   3 ocs fm with released items for midterm reviewReview units 1   3 ocs fm with released items for midterm review
Review units 1 3 ocs fm with released items for midterm reviewDawniealaine
 
Zombie apocalypse nc math 3
Zombie apocalypse nc math 3Zombie apocalypse nc math 3
Zombie apocalypse nc math 3Dawniealaine
 
Step functions nc math 3
Step functions nc math 3Step functions nc math 3
Step functions nc math 3Dawniealaine
 
Domain and range from graphs
Domain and range from graphsDomain and range from graphs
Domain and range from graphsDawniealaine
 
Intro to Quadratic Graphs with Angry Birds
Intro to Quadratic Graphs with Angry BirdsIntro to Quadratic Graphs with Angry Birds
Intro to Quadratic Graphs with Angry BirdsDawniealaine
 
Pythagorean theorem word problems for table time
Pythagorean theorem word problems for table timePythagorean theorem word problems for table time
Pythagorean theorem word problems for table timeDawniealaine
 
Navigating module 1
Navigating module 1Navigating module 1
Navigating module 1Dawniealaine
 
Unit circle trig graphs
Unit circle         trig graphsUnit circle         trig graphs
Unit circle trig graphsDawniealaine
 
Types of insurance
Types of insuranceTypes of insurance
Types of insuranceDawniealaine
 
Review challenge! units 1 thru 4 msl released questions
Review challenge! units 1 thru 4 msl released questionsReview challenge! units 1 thru 4 msl released questions
Review challenge! units 1 thru 4 msl released questionsDawniealaine
 

Mehr von Dawniealaine (13)

Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454
Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454
Reviewunits1 3ocsfmwithreleaseditemsformidtermreview-161023210454
 
Radian trig graph word problems
Radian trig graph word problemsRadian trig graph word problems
Radian trig graph word problems
 
Review units 1 3 ocs fm with released items for midterm review
Review units 1   3 ocs fm with released items for midterm reviewReview units 1   3 ocs fm with released items for midterm review
Review units 1 3 ocs fm with released items for midterm review
 
Zombie apocalypse nc math 3
Zombie apocalypse nc math 3Zombie apocalypse nc math 3
Zombie apocalypse nc math 3
 
Step functions nc math 3
Step functions nc math 3Step functions nc math 3
Step functions nc math 3
 
Domain and range from graphs
Domain and range from graphsDomain and range from graphs
Domain and range from graphs
 
Intro to Quadratic Graphs with Angry Birds
Intro to Quadratic Graphs with Angry BirdsIntro to Quadratic Graphs with Angry Birds
Intro to Quadratic Graphs with Angry Birds
 
Pythagorean theorem word problems for table time
Pythagorean theorem word problems for table timePythagorean theorem word problems for table time
Pythagorean theorem word problems for table time
 
Unit 4 Review
Unit 4 ReviewUnit 4 Review
Unit 4 Review
 
Navigating module 1
Navigating module 1Navigating module 1
Navigating module 1
 
Unit circle trig graphs
Unit circle         trig graphsUnit circle         trig graphs
Unit circle trig graphs
 
Types of insurance
Types of insuranceTypes of insurance
Types of insurance
 
Review challenge! units 1 thru 4 msl released questions
Review challenge! units 1 thru 4 msl released questionsReview challenge! units 1 thru 4 msl released questions
Review challenge! units 1 thru 4 msl released questions
 

Kürzlich hochgeladen

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Kürzlich hochgeladen (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

Composition of functions a basic application introduction

  • 1. Composition of Functions! A REAL WORLD EXAMPLE
  • 2. Let’s face it! Most Americans enjoy a great pair of jeans. And buying them on sale seems like an awesome way to get more bang for your buck!
  • 3. In our application we will look at the effect of two different deductions and discounts, and determine which combination of deductions is better for the consumer.
  • 4. OUR ASSIGNMENT IS TO DETERMINE CARLTON’S COST TO PURCHASE A PAIR OF JEANS WHEN HE PURCHASES A $50 PAIR OF JEANS BY : a) USING ONLY THE STORE PROMOTION OF 20% OFF b) USING ONLY THE $15 CUSTOMER REWARD COUPON c) USING THE STORE PROMOTION OF 20% OFF AND THEN THE $15 COUPON d) USING THE $15 OFF COUPON AND THEN THE STORE PROMOTION OF 20%
  • 5. A) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF HE USES ONLY THE 20% OFF STORE PROMOTION? $𝟓𝟎 . 𝟐𝟎 = $𝟏𝟎 $𝟓𝟎 − $𝟏𝟎 = $𝟒𝟎
  • 6. B) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF HE USES ONLY THE $15 OFF CUSTOMER LOYALTY COUPON? $𝟓𝟎 − $𝟏𝟓 = $𝟑𝟓
  • 7. C) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF HE USES THE 20% OFF STORE DISCOUNT AND THEN THE $15 COUPON? ORIGINAL PRICE – 20% DISCOUNT – COUPON = COST $𝟓𝟎 − 𝟓𝟎 . 𝟐𝟎 − 𝟏𝟓 = $𝟐𝟓
  • 8. D) WHAT WILL CARLTON’S COST BE TO PURCHASE A $50 PAIR OF JEANS IF HE USES THE $15 COUPON AND THEN THE 20% OFF STORE DISCOUNT? ORIGINAL PRICE – COUPON – 20% 0FF THE REDUCED PRICE = COST $𝟓𝟎 − $𝟏𝟓 − $𝟑𝟓 . 𝟐𝟎 = $𝟓𝟎 − $𝟏𝟓 − $𝟕 = $𝟐𝟖
  • 9. It DOES matter the order that the discounts are applied. How does this apply to what we will learn about composition of functions? - Each discount is a function of the cost of the jeans. In one function we are reducing the cost by 20%. In the other function we are subtracting $15 from the cost. - When we use BOTH of these functions, the order that we apply them makes a difference in the answer.
  • 10. Composition of Functions – The BASICS 𝑓 𝑥 = 𝑥 − .20 𝑥 𝑔 𝑥 = 𝑥 − 15 This is a function of 20% off a price. This is a function of $15 off a price. 𝑔 𝑓 𝑥 represents applying the 20% off discount first. Notice how the innermost function is the % off. 𝑓 𝑔 𝑥 represents applying the coupon first and then the 20% reduction. Notice how the inner most function is the coupon.
  • 11. Composition of Functions – The BASICS 𝑓 𝑥 = 𝑥 − .20 𝑥 𝑔 𝑥 = 𝑥 − 15 This is a function of 20% off a price. This is a function of $15 off a price. 𝑔 𝑓 𝑥 = 𝑥 − .20 𝑥 − 15 𝑔 𝑓 𝑥 = .80𝑥 − 15 𝑓 𝑔 𝑥 = 𝑥 − 15 − .20 𝑥 − 15 𝑓 𝑔 𝑥 = 𝑥 − 15 − .20𝑥 + 3 𝑓 𝑔 𝑥 = .80𝑥 − 12