ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Math Deficiency - I
    MD-001
    Progress0 / 38 topics
    Topics
    1. Sets: Definition, Representation, and Operations2. Relation and Function: Graphical Transformation of Functions3. Properties of Functions4. Composition and Inverses of Functions5. Domain and Range of Functions6. Maximum and Minimum Values of Functions7. Increasing and Decreasing Functions8. Zeros and Intercepts of Functions9. Piecewise Functions10. Continuity and Discontinuity of Functions11. Polynomials and Rational Functions12. Polynomial Long Division and Synthetic Division13. Solution of Rational Functions14. Absolute Valued Functions and Their Properties15. Asymptotes: Horizontal, Vertical, and Oblique16. Exponential Functions and Their Properties17. Logarithmic Functions and Their Properties18. Systems of Equations: Two Equations and Two Unknowns19. Systems of Equations: Three Equations and Three Unknowns20. Matrix Algebra: Addition, Subtraction, and Multiplication21. Row Operations and Row Echelon Forms22. Augmented Matrices23. Determinant of Matrices: 2x2 and Higher Order24. Cramer's Rule25. Inverse Matrices26. Series and Sequences27. Trigonometry: Angles in Radians and Degrees28. Right Triangle Trigonometry29. Law of Cosines and Sines30. Area of a Triangle31. Graphs of Trigonometric Functions32. Graphs of Inverse Trigonometric Functions33. Basic Trigonometric Identities34. Trigonometric Equations35. General Form of a Conic: Parabolas, Circles, Ellipses, and Hyperbolas36. Degenerate Conics37. Polar and Parametric Equations38. Polar and Rectangular Coordinates
    MD-001›Piecewise Functions
    Math Deficiency - ITopic 9 of 38

    Piecewise Functions

    11 minread
    1,953words
    Intermediatelevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time11 min
      Word count1,953
      Code examples0
      DifficultyIntermediate