ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalMD-001Piecewise Functions
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    MD-001

    Math Deficiency - I

    Progress0 / 38 done
    Topics38
    1Definition, Representation, and Operations
    2Graphical Transformation of Functions3Properties of Functions4Composition and Inverses of Functions5Domain and Range of Functions6Maximum and Minimum Values of Functions7Increasing and Decreasing Functions8Zeros and Intercepts of Functions9Piecewise Functions10Continuity and Discontinuity of Functions11Polynomials and Rational Functions12Polynomial Long Division and Synthetic Division13Solution of Rational Functions14Absolute Valued Functions and Their Properties
    15Horizontal, Vertical, and Oblique16Exponential Functions and Their Properties17Logarithmic Functions and Their Properties
    18Two Equations and Two Unknowns19Three Equations and Three Unknowns
    20Addition, Subtraction, and Multiplication21Row Operations and Row Echelon Forms22Augmented Matrices
    232x2 and Higher Order24Cramer's Rule25Inverse Matrices26Series and Sequences
    27Angles in Radians and Degrees28Right Triangle Trigonometry29Law of Cosines and Sines30Area of a Triangle31Graphs of Trigonometric Functions32Graphs of Inverse Trigonometric Functions33Basic Trigonometric Identities34Trigonometric Equations
    35Parabolas, Circles, Ellipses, and Hyperbolas36Degenerate Conics37Polar and Parametric Equations38Polar and Rectangular Coordinates
    11 min read
    Topic 9 of 38
    Topic Study Note Illustration
    09

    Piecewise Functions

    A piecewise function is a function that is defined by different expressions or formulas for different intervals of its domain. Each "piece" of the function applies to...

    Piecewise Functions

    A piecewise function is a function that is defined by different expressions or formulas for different intervals of its domain. Each "piece" of the function applies to a specific part of the domain, and the function is evaluated differently depending on which part of the domain xxx belongs to.


    1. Definition of Piecewise Functions

    A piecewise function is a function that has different rules (or formulas) for different intervals of its domain. The function is defined by multiple expressions, each of which applies to a specific range of input values.

    A piecewise function can be written in the following general form:

    f(x)={f1(x)if x∈I1f2(x)if x∈I2⋮fn(x)if x∈Inf(x) = \begin{cases} f_1(x) & \text{if } x \in I_1 \\ f_2(x) & \text{if } x \in I_2 \\ \vdots \\ f_n(x) & \text{if } x \in I_n \end{cases}f(x)=⎩⎨⎧​f1​(x)f2​(x)⋮fn​(x)​if x∈I1​if x∈I2​if x∈In​​

    Where:

    • f1(x),f2(x),…,fn(x)f_1(x), f_2(x), \ldots, f_n(x)f1​(x),f2​(x),…,fn​(x) are different expressions or formulas for the function, each applying to a specific interval I1,I2,…,InI_1, I_2, \ldots, I_nI1​,I2​,…,In​ of the domain.

    Each expression applies to a specific interval of the input xxx, and the domain is divided into pieces, hence the name "piecewise function."


    2. How to Read Piecewise Functions

    To evaluate a piecewise function, you must:

    1. Identify the interval where the input xxx lies.
    2. Use the corresponding formula for that interval to calculate the value of the function.

    For example, if the piecewise function is defined as:

    f(x)={x2if x≤12x+1if x>1f(x) = \begin{cases} x^2 & \text{if } x \leq 1 \\ 2x + 1 & \text{if } x > 1 \end{cases}f(x)={x22x+1​if x≤1if x>1​

    To evaluate f(x)f(x)f(x) for a particular xxx:

    • If x≤1x \leq 1x≤1, use the formula f(x)=x2f(x) = x^2f(x)=x2.
    • If x>1x > 1x>1, use the formula f(x)=2x+1f(x) = 2x + 1f(x)=2x+1.

    3. Example of a Piecewise Function

    Consider the piecewise function:

    f(x)={3x+2if x<−1−x+1if −1≤x<2x2if x≥2f(x) = \begin{cases} 3x + 2 & \text{if } x < -1 \\ -x + 1 & \text{if } -1 \leq x < 2 \\ x^2 & \text{if } x \geq 2 \end{cases}f(x)=⎩⎨⎧​3x+2−x+1x2​if x<−1if −1≤x<2if x≥2​
    • For x<−1x < -1x<−1, use the formula f(x)=3x+2f(x) = 3x + 2f(x)=3x+2.
    • For −1≤x<2-1 \leq x < 2−1≤x<2, use the formula f(x)=−x+1f(x) = -x + 1f(x)=−x+1.
    • For x≥2x \geq 2x≥2, use the formula f(x)=x2f(x) = x^2f(x)=x2.

    Example Evaluations:

    • If x=−2x = -2x=−2, since −2<−1-2 < -1−2<−1, we use f(x)=3x+2f(x) = 3x + 2f(x)=3x+2:

      f(−2)=3(−2)+2=−6+2=−4f(-2) = 3(-2) + 2 = -6 + 2 = -4f(−2)=3(−2)+2=−6+2=−4
    • If x=0x = 0x=0, since −1≤0<2-1 \leq 0 < 2−1≤0<2, we use f(x)=−x+1f(x) = -x + 1f(x)=−x+1:

      f(0)=−(0)+1=1f(0) = -(0) + 1 = 1f(0)=−(0)+1=1
    • If x=3x = 3x=3, since x≥2x \geq 2x≥2, we use f(x)=x2f(x) = x^2f(x)=x2:

      f(3)=(3)2=9f(3) = (3)^2 = 9f(3)=(3)2=9

    4. Graphing Piecewise Functions

    To graph a piecewise function, follow these steps:

    1. Identify the intervals where each piece of the function is defined.
    2. Plot each piece of the function on its respective interval.
    3. Check for continuity: Ensure that there are no gaps or jumps between the pieces at the boundary points.
    • Closed endpoints (e.g., x=−1x = -1x=−1 in −1≤x<2-1 \leq x < 2−1≤x<2) mean the point is included in the interval.
    • Open endpoints (e.g., x=2x = 2x=2 in x≥2x \geq 2x≥2) mean the point is not included in the interval.
    • If the function transitions from one formula to another at the boundary, check if the limit from both sides matches to determine whether there is a jump discontinuity or if the function is continuous.

    Example:

    For the piecewise function:

    f(x)={2x+1if x<0x2if x≥0f(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases}f(x)={2x+1x2​if x<0if x≥0​
    • For x<0x < 0x<0, the function is a straight line with slope 2, intersecting the y-axis at (0,1)(0, 1)(0,1).
    • For x≥0x \geq 0x≥0, the function is a parabola opening upwards, starting at the origin.

    5. Special Types of Piecewise Functions

    1. Step Functions: These are piecewise functions where each piece is a constant. For example:

      f(x)={1if x<02if x≥0f(x) = \begin{cases} 1 & \text{if } x < 0 \\ 2 & \text{if } x \geq 0 \end{cases}f(x)={12​if x<0if x≥0​

      This function "jumps" from 1 to 2 at x=0x = 0x=0.

    2. Absolute Value Functions: These are often expressed as piecewise functions, as the absolute value function has two different expressions for positive and negative inputs. For example:

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

    6. Continuity and Discontinuity in Piecewise Functions

    • A piecewise function can be continuous or discontinuous at the boundaries between pieces.
    • Continuity: The function is continuous at a boundary if the two one-sided limits match at that point.
    • Discontinuity: A function has a discontinuity (often a "jump") at a boundary if the one-sided limits do not match.

    Example of a Continuous Piecewise Function:

    f(x)={x+1if x<2x+1if x≥2f(x) = \begin{cases} x + 1 & \text{if } x < 2 \\ x + 1 & \text{if } x \geq 2 \end{cases}f(x)={x+1x+1​if x<2if x≥2​

    In this case, the function is continuous because both pieces are the same, so there's no jump or break at x=2x = 2x=2.

    Example of a Discontinuous Piecewise Function:

    f(x)={x+1if x<2x−3if x≥2f(x) = \begin{cases} x + 1 & \text{if } x < 2 \\ x - 3 & \text{if } x \geq 2 \end{cases}f(x)={x+1x−3​if x<2if x≥2​

    In this case, there's a jump discontinuity at x=2x = 2x=2, as lim⁡x→2−f(x)=3\lim_{x \to 2^-} f(x) = 3limx→2−​f(x)=3 and lim⁡x→2+f(x)=−1\lim_{x \to 2^+} f(x) = -1limx→2+​f(x)=−1.


    7. Summary of Key Concepts

    Concept Description
    Piecewise Function A function defined by different expressions on different intervals.
    How to Evaluate Identify the correct interval for xxx, then apply the corresponding expression.
    Graphing Piecewise Functions Plot each piece of the function over its interval and check for continuity.
    Continuity A piecewise function is continuous at a boundary if the one-sided limits match.
    Discontinuity A piecewise function has a jump discontinuity if the one-sided limits do not match.

    Conclusion

    Piecewise functions are used to describe situations where a rule or formula changes based on the input value. They are essential for modeling real-world phenomena that behave differently in different conditions, such as tax brackets, shipping rates, and certain physical processes. Understanding how to define, evaluate, and graph piecewise functions is key to solving problems involving such situations.

    ← Previous topic 8
    Zeros and Intercepts of Functions
    Next topic 10 →
    Continuity and Discontinuity of Functions

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    11mremaining
    2.0kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Math Deficiency - I