22
$\begingroup$

Looking for something beyond a contrived textbook problem concerning jelly beans or equations that do not represent anything concrete. Not just a piecewise function for its own sake. Anyone?

  • 1
    @JackO$f$All Just a heads up, you can choose to "accept" an answer by clicking the check mark to the left of an answer. Some may choose not to write an answer if we do not know if it helps you or not (which accepting can be an indicator of helpfulness - but not the only one.)2012-06-05

18 Answers 18

0

The free-fall acceleration on and in the earth must be modeled piece-wise, even in the simplest model of constant density.

28

I always thought the horizontal distance from a wall to an object is a good example of a piecewise continuous function (of the height):

enter image description here

Here the various red lines show the various distances and the green line marks the point of discontinuity.

25

Computing income taxes in a bracketed system.

18

Cab fares are a piecewise constant function of distance travelled.

  • 1
    They charge for time, too!2012-06-05
14

The classic example is friction---say for a block sitting on a rough horizontal plane and subject to a continuously increasing horizontal force. The frictional force rises steadily to match the applied force, and then it drops back a bit to a constant value when the block begins to slide.

  • 0
    @JackOfAll: Yes.2014-09-17
10

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.)

Then,

$C(x) = 5p |x\le5$ or $C(x) = 5p + (x-5)\cdot\frac{1}{2}p|x>5$

  • 2
    Are we assuming that the customer is not allowed to buy one item at the price $p$?2016-04-28
9

How about a monthly mobile phone plan? Your cost is constant (maybe $50/month) as long as you stay under the allotted minutes (maybe 1000/month), but then you are charged per minute after.

6

Shock waves. Properties of materials before and after phase transitions.

  • 1
    Hyperphysics has a graph showing the piecewise nature of temperature vs energy across phase changes. http://hyperphysics.phy-astr.gsu.edu/hbase/thermo/phase.html2012-06-05
5

Any disturbed physical system. If you're dealing with circuits you'll often want to solve an equation that involves switches. E.g, letting a capacitor charge for 1 ms and then switching the connection to a closed loop where it discharges. That switch naturally gives a piecewise-defined function. Similar ideas go for physical systems involving collisions, such as a bouncing ball. They come up all the time.

4

Depth of a swimming pool as function of the distance from one end:

enter image description here

3

As Wim mentions in the comments, piecewise polynomials are used a fair bit in applications. In designing profiles and shapes for cars, airplanes, and other such devices, one usually uses pieces of Bézier or B-spline curves (or surfaces) during the modeling process, for subsequent machining. In fact, the continuity/smoothness conditions for such curves (usually continuity up to the second derivative) are important here, since during machining, an abrupt change in the curvature can cause the material for the modeling, the mill, or both, to crack (remembering that velocity and acceleration are derivatives of position with respect to time might help to understand why you want smooth curves during machining).

2

Postal rates (as a function of weight, in ounces):

enter image description here

Look at the price of a $1.9$ oz letter, then $1.99$ oz letter, then $2.01$ oz letter, etc.

1

Piecewise constant functions come up all the time in the design and analysis of digital circuits (see square waves, for example). The finite element method is a very widely used technique that approximates solutions of differential equations as piecewise linear functions.

0

What about the travel time to a fixed destination in a scheduled public transport system? It is a piecewise linear function of the departure time with slope $-1$.

0

Bussiness is a good example. The increase in salary shows a piecewise function.

0

I liked the rates in a parking garage as a step function or there is the wages at a job - when you include overtime you have a piecewise function of your pay as a function of the hours you worked.