Piecewise Functions

Definition

Definition of Piecewise Functions

A function that is defined by different analytical expressions in different parts of its domain is called a piecewise function.

Characteristics

Piecewise functions have the following characteristics:

  • Domain Partitioning: The domain is divided into several intervals
  • Different Expressions: Each interval corresponds to an expression
  • Breakpoint Handling: Continuity at interval boundaries needs special attention
  • Piecewise Analysis: Function properties need to be analyzed piecewise

Construction Methods

The construction of piecewise functions usually follows these steps:

  1. Determine Domain: Clarify the function’s domain
  2. Divide Intervals: Partition the domain into different intervals based on conditions
  3. Choose Expressions: Select appropriate expressions for each interval
  4. Handle Breakpoints: Ensure function definition and continuity at breakpoints

Common Examples

Absolute Value Function

f(x)=∣x∣={x,x≥0−x,x<0f(x) = |x| = \begin{cases} x, & x \geq 0 \\ -x, & x < 0 \end{cases}

Sign Function

f(x)=sgn(x)={1,x>00,x=0−1,x<0f(x) = \text{sgn}(x) = \begin{cases} 1, & x > 0 \\ 0, & x = 0 \\ -1, & x < 0 \end{cases}

Floor Function

f(x)=[x]=the greatest integer less than or equal to xf(x) = [x] = \text{the greatest integer less than or equal to } x

Notes

  • Breakpoint Definition: The value of piecewise functions at breakpoints must be explicit
  • Continuity: Piecewise functions may be discontinuous at certain points
  • Property Analysis: Properties of piecewise functions need piecewise discussion
  • Graph Drawing: When drawing piecewise function graphs, pay attention to segment connections

Property Analysis of Piecewise Functions

Continuity

The continuity of piecewise functions at breakpoints requires special attention:

  • If left and right limits are equal and equal to the function value, then continuous
  • Otherwise the function is discontinuous at that point

Differentiability

The differentiability of piecewise functions at breakpoints:

  • Check if left and right derivatives are equal
  • If equal, then differentiable at that point
  • Otherwise not differentiable at that point

Exercises

Exercise 1

Construct a piecewise function f(x)f(x) such that:

  • When x≥0x \geq 0, f(x)=x2f(x) = x^2
  • When x<0x < 0, f(x)=−xf(x) = -x
piecewise functionconstruction

Approach: Construct the piecewise function according to the given conditions.

Steps:

  1. According to the conditions, use x2x^2 when x≥0x \geq 0
  2. Use −x-x when x<0x < 0
  3. At the breakpoint x=0x = 0, f(0)=02=0f(0) = 0^2 = 0

Answer:

f(x)={x2,x≥0−x,x<0f(x) = \begin{cases} x^2, & x \geq 0 \\ -x, & x < 0 \end{cases}

Exercise 2

Determine the continuity of the piecewise function f(x)={x2,x≥0−x,x<0f(x) = \begin{cases} x^2, & x \geq 0 \\ -x, & x < 0 \end{cases} at x=0x = 0.

piecewise functioncontinuity

Approach: Need to check the left limit, right limit, and function value at x=0x = 0.

Steps:

  1. Calculate left limit: lim⁡x→0−f(x)=lim⁡x→0−(−x)=0\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (-x) = 0
  2. Calculate right limit: lim⁡x→0+f(x)=lim⁡x→0+x2=0\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} x^2 = 0
  3. Function value: f(0)=02=0f(0) = 0^2 = 0
  4. Since left limit, right limit, and function value are all equal, the function is continuous at x=0x = 0.

Answer:

The function is continuous at x=0x = 0.

Exercise 3

Construct a piecewise function f(x)f(x) such that:

  • When x>1x > 1, f(x)=1x−1f(x) = \frac{1}{x-1}
  • When x≤1x \leq 1, f(x)=x2f(x) = x^2
piecewise functionconstructioncontinuity

Approach: Construct the piecewise function according to the given conditions.

Steps:

  1. According to the conditions, use 1x−1\frac{1}{x-1} when x>1x > 1
  2. Use x2x^2 when x≤1x \leq 1
  3. At the breakpoint x=1x = 1, f(1)=12=1f(1) = 1^2 = 1

Answer:

f(x)={1x−1,x>1x2,x≤1f(x) = \begin{cases} \frac{1}{x-1}, & x > 1 \\ x^2, & x \leq 1 \end{cases}

Note: This function is discontinuous at x=1x = 1 because the left limit is 11 and the right limit is +∞+\infty.


Summary

Symbols Appearing in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
f(x)f(x)Mathematical symbolf of xFunction notation, representing a function with xx as the independent variable
∥x∥\|x\|Mathematical Symbolabsolute value of xRepresents the absolute value of xx
sgn(x)\text{sgn}(x)Mathematical symbolsign of xSign function
[x][x]Mathematical symbolfloor of xFloor function, the greatest integer less than or equal to xx
lim⁡\limMathematical symbollimitLimit symbol
x→0−x \to 0^-Mathematical symbolx approaches zero from leftxx approaches 0 from the left
x→0+x \to 0^+Mathematical symbolx approaches zero from rightxx approaches 0 from the right

Found an issue with this content?

Tell us what could be improved.