70.5k views
2 votes
Hello, I need to answer this question for an assignment. "What is a real-world example where a piecewise function might be used?"

User Jacoblaw
by
5.8k points

1 Answer

2 votes

Given:

The piecewise function.

Required:

What is a real-world example where a piecewise function might be used?"

Step-by-step explanation:

A piecewise-defined function is a function defined by multiple sub-functions, where each sub-function applies to a different interval in the domain.

The example is:

Something like "buy 5, and get each one after that at half price" say at a grocery store or clothing store. For example, let C(x) be the cost of the item for the consumer and p(x) be the price (assume it is constant.)


C(x)=5p|x\leq5\text{ }or\text{ }C(x)=5p+(x-5)\cdot(1)/(2)|x>5

Answer:

Completed the answer.

User Johira Afzali
by
5.2k points