fbpx
Wikipedia

Piecewise

In mathematics, a piecewise-defined function (also called a piecewise function, a hybrid function, or definition by cases) is a function defined by multiple sub-functions, where each sub-function applies to a different interval in the domain.[1][2][3] Piecewise definition is actually a way of expressing the function, rather than a characteristic of the function itself.

Plot of the piecewise linear function

A distinct, but related notion is that of a property holding piecewise for a function, used when the domain can be divided into intervals on which the property holds. Unlike for the notion above, this is actually a property of the function itself. A piecewise linear function (which happens to be also continuous) is depicted as an example.

Notation and interpretation edit

 
Graph of the absolute value function,  

Piecewise functions can be defined using the common functional notation, where the body of the function is an array of functions and associated subdomains. These subdomains together must cover the whole domain; often it is also required that they are pairwise disjoint, i.e. form a partition of the domain.[4] In order for the overall function to be called "piecewise", the subdomains are usually required to be intervals (some may be degenerated intervals, i.e. single points or unbounded intervals). For bounded intervals, the number of subdomains is required to be finite, for unbounded intervals it is often only required to be locally finite. For example, consider the piecewise definition of the absolute value function:[2]

 

For all values of   less than zero, the first sub-function ( ) is used, which negates the sign of the input value, making negative numbers positive. For all values of   greater than or equal to zero, the second sub-function ( ) is used, which evaluates trivially to the input value itself.

The following table documents the absolute value function at certain values of  :

x f(x) Sub-function used
−3 3  
−0.1 0.1  
0 0  
1/2 1/2  
5 5  

In order to evaluate a piecewise-defined function at a given input value, the appropriate subdomain needs to be chosen in order to select the correct sub-function—and produce the correct output value.

Continuity and differentiability of piecewise-defined functions edit

 
Plot of the piecewise-quadratic function   Its only discontinuity is at  .

A piecewise-defined function is continuous on a given interval in its domain if the following conditions are met:

  • its sub-functions are continuous on the corresponding intervals (subdomains),
  • there is no discontinuity at an endpoint of any subdomain within that interval.

The pictured function, for example, is piecewise-continuous throughout its subdomains, but is not continuous on the entire domain, as it contains a jump discontinuity at  . The filled circle indicates that the value of the right sub-function is used in this position.

For a piecewise-defined function to be differentiable on a given interval in its domain, the following conditions have to fulfilled in addition to those for continuity above:

  • its sub-functions are differentiable on the corresponding open intervals,
  • the one-sided derivatives exist at all intervals' endpoints,
  • at the points where two subintervals touch, the corresponding one-sided derivatives of the two neighboring subintervals coincide.

Applications edit

In applied mathematical analysis, "piecewise-regular" functions have been found to be consistent with many models of the human visual system, where images are perceived at a first stage as consisting of smooth regions separated by edges.[5] In particular, shearlets have been used as a representation system to provide sparse approximations of this model class in 2D and 3D.

Common examples edit

See also edit

References edit

  1. ^ "Piecewise Functions". www.mathsisfun.com. Retrieved 2020-08-24.
  2. ^ a b c d Weisstein, Eric W. "Piecewise Function". mathworld.wolfram.com. Retrieved 2020-08-24.
  3. ^ "Piecewise functions". brilliant.org. Retrieved 2020-09-29.
  4. ^ A feasible weaker requirement is that all definitions agree on intersecting subdomains.
  5. ^ Kutyniok, Gitta; Labate, Demetrio (2012). "Introduction to shearlets" (PDF). Shearlets. Birkhäuser: 1–38. Here: p.8

piecewise, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, march, 2017, lea. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Piecewise news newspapers books scholar JSTOR March 2017 Learn how and when to remove this template message In mathematics a piecewise defined function also called a piecewise function a hybrid function or definition by cases is a function defined by multiple sub functions where each sub function applies to a different interval in the domain 1 2 3 Piecewise definition is actually a way of expressing the function rather than a characteristic of the function itself Plot of the piecewise linear function f x 3 x if x 3 x 3 if 3 x 0 3 2 x if 0 x 3 0 5 x 4 5 if 3 x displaystyle f x left begin array lll 3 x amp text if amp x leq 3 x 3 amp text if amp 3 leq x leq 0 3 2x amp text if amp 0 leq x leq 3 0 5x 4 5 amp text if amp 3 leq x end array right A distinct but related notion is that of a property holding piecewise for a function used when the domain can be divided into intervals on which the property holds Unlike for the notion above this is actually a property of the function itself A piecewise linear function which happens to be also continuous is depicted as an example Contents 1 Notation and interpretation 2 Continuity and differentiability of piecewise defined functions 3 Applications 4 Common examples 5 See also 6 ReferencesNotation and interpretation edit nbsp Graph of the absolute value function y x displaystyle y x nbsp Piecewise functions can be defined using the common functional notation where the body of the function is an array of functions and associated subdomains These subdomains together must cover the whole domain often it is also required that they are pairwise disjoint i e form a partition of the domain 4 In order for the overall function to be called piecewise the subdomains are usually required to be intervals some may be degenerated intervals i e single points or unbounded intervals For bounded intervals the number of subdomains is required to be finite for unbounded intervals it is often only required to be locally finite For example consider the piecewise definition of the absolute value function 2 x x if x lt 0 x if x 0 displaystyle x begin cases x amp text if x lt 0 x amp text if x geq 0 end cases nbsp For all values of x displaystyle x nbsp less than zero the first sub function x displaystyle x nbsp is used which negates the sign of the input value making negative numbers positive For all values of x displaystyle x nbsp greater than or equal to zero the second sub function x displaystyle x nbsp is used which evaluates trivially to the input value itself The following table documents the absolute value function at certain values of x displaystyle x nbsp x f x Sub function used 3 3 x displaystyle x nbsp 0 1 0 1 x displaystyle x nbsp 0 0 x displaystyle x nbsp 1 2 1 2 x displaystyle x nbsp 5 5 x displaystyle x nbsp In order to evaluate a piecewise defined function at a given input value the appropriate subdomain needs to be chosen in order to select the correct sub function and produce the correct output value Continuity and differentiability of piecewise defined functions edit nbsp Plot of the piecewise quadratic function f x x 2 if x lt 0 707 1 5 x 1 414 2 if 0 707 x displaystyle f x left begin array lll x 2 amp text if amp x lt 0 707 1 5 x 1 414 2 amp text if amp 0 707 leq x end array right nbsp Its only discontinuity is at x 0 0 707 displaystyle x 0 0 707 nbsp A piecewise defined function is continuous on a given interval in its domain if the following conditions are met its sub functions are continuous on the corresponding intervals subdomains there is no discontinuity at an endpoint of any subdomain within that interval The pictured function for example is piecewise continuous throughout its subdomains but is not continuous on the entire domain as it contains a jump discontinuity at x 0 displaystyle x 0 nbsp The filled circle indicates that the value of the right sub function is used in this position For a piecewise defined function to be differentiable on a given interval in its domain the following conditions have to fulfilled in addition to those for continuity above its sub functions are differentiable on the corresponding open intervals the one sided derivatives exist at all intervals endpoints at the points where two subintervals touch the corresponding one sided derivatives of the two neighboring subintervals coincide Applications editIn applied mathematical analysis piecewise regular functions have been found to be consistent with many models of the human visual system where images are perceived at a first stage as consisting of smooth regions separated by edges 5 In particular shearlets have been used as a representation system to provide sparse approximations of this model class in 2D and 3D Common examples editPiecewise linear function a function composed of line segments Step function a function composed of constant sub functions Boxcar function Heaviside step function 2 Sign function Absolute value 2 Triangular function Broken power law a function composed of power law sub functions Spline a function composed of polynomial sub functions possessing a high degree of smoothness at the places where the polynomial pieces connect B spline PDIFF f x exp 1 1 x 2 x 1 1 0 otherwise displaystyle f x begin cases exp left frac 1 1 x 2 right amp x in 1 1 0 amp text otherwise end cases nbsp and some other common Bump functions These are infinitely differentiable but analyticity holds only piecewise Continuous functions in the reals need not be bounded or uniformly continuous but are always piecewise bounded and piecewise uniformly continuous See also editPiecewise linear continuation nbsp Wikibooks has a book on the topic of Gnuplot Piecewise defined functionsReferences edit Piecewise Functions www mathsisfun com Retrieved 2020 08 24 a b c d Weisstein Eric W Piecewise Function mathworld wolfram com Retrieved 2020 08 24 Piecewise functions brilliant org Retrieved 2020 09 29 A feasible weaker requirement is that all definitions agree on intersecting subdomains Kutyniok Gitta Labate Demetrio 2012 Introduction to shearlets PDF Shearlets Birkhauser 1 38 Here p 8 Retrieved from https en wikipedia org w index php title Piecewise amp oldid 1191096245, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.