Differentiability For

How To Tell If A Piecewise Function Is Differentiable

PL
accountshelp.org
7 min read
How To Tell If A Piecewise Function Is Differentiable
How To Tell If A Piecewise Function Is Differentiable

You're staring at a piecewise function. It has a sharp corner at x = 2, or maybe a jump at x = 0, and the question on the exam — or the problem set, or the code you're debugging — asks: Is this thing differentiable at the boundary?*

Most students freeze here. They know the derivative exists if the limit exists. But putting those two facts together at the exact point where the rule changes? They know piecewise functions are defined by different rules on different intervals. That’s where the points get lost.

Let’s clear up the confusion once and for all.

What Is Differentiability for a Piecewise Function

A piecewise function is just a function defined by multiple sub-functions, each applying to a specific interval of the domain. Think of the absolute value function: f(x) = x* for x ≥ 0* and f(x) = -x* for x < 0*. Two rules. One function.

Differentiability at a point means the derivative exists there. Formally, the limit of the difference quotient exists and is finite. For a piecewise function, the "point of interest" is almost always the boundary point — the x-value where the definition switches from one piece to the next.

Inside the open intervals? Because of that, easy. Also, you just differentiate the specific polynomial, trig function, or exponential rule that applies there. Standard calculus rules apply. The headache lives at the seams.

The Two Non-Negotiable Conditions

For a piecewise function to be differentiable at a boundary point x = c*, two things must be true. Miss one, and the answer is no.

  1. Continuity at x = c.* The function cannot have a jump, a hole, or an asymptote there. The left-hand limit, the right-hand limit, and the function value f(c)* must all be equal. If it’s not continuous, it’s automatically not differentiable. Full stop.
  2. Equal One-Sided Derivatives at x = c.* The slope approaching from the left must match the slope approaching from the right. The left-hand derivative f'₋(c)* must equal the right-hand derivative f'₊(c)*.

That’s the short version. The long version is where the work happens.

Why This Trips Everyone Up

Here’s the thing: continuity is necessary but not sufficient. This is the trap.

You see f(x) = |x|* at x = 0*. In practice, it’s continuous. The graph connects. No jump. But the left-hand derivative is -1. Think about it: the right-hand derivative is +1. They don't match. Which means there’s a corner. The derivative does not exist.

Students check continuity, see it passes, and write "Yes, differentiable." Wrong.

Conversely, sometimes the slopes do match, but the function values don't. Imagine a piecewise function where the left piece ends at y = 2* and the right piece starts at y = 3*, but both have slope 4 at the boundary. But the function jumps. In practice, the derivatives match! Not differentiable.

You need both. Every time. It's one of those things that adds up.

How to Check Differentiability Step by Step

Let’s walk through the actual workflow you should use on paper or in your head. That said, don't skip steps. The algebra is where errors hide.

Step 1: Identify the Boundary Points

Look at the domain intervals. Where do they meet?

  • f(x) = { x² for x < 1; 2x - 1 for x ≥ 1 }* → Boundary is x = 1*.
  • f(x) = { sin(x) for x ≤ 0; x + 1 for x > 0 }* → Boundary is x = 0*.

If there are multiple pieces, you have multiple boundaries. Check each one independently.

Step 2: Verify Continuity at the Boundary

Compute three things:

  • Left-hand limit: limₓ→c⁻ f(x) (Use the rule for x < c*)
  • Right-hand limit: limₓ→c⁺ f(x) (Use the rule for x > c* or x ≥ c*)
  • Function value: f(c) (Use the rule that includes* c, usually the or piece)

If these three numbers are not identical, stop. The function is not differentiable at c. Write "Not differentiable — discontinuous" and move on.

Example:* f(x) = { x + 2 for x < 1; 4 for x = 1; x² for x > 1 }* Left limit: 1 + 2 = 3. Here's the thing — three different numbers. Day to day, right limit: 1² = 1. Because of that, not differentiable. Even so, not continuous. f(1) = 4. Done.

Step 3: Compute the Left-Hand Derivative

If continuity passed, now find the derivative of the left piece (the rule for x < c*) and evaluate it at x = c*.

Don't plug c into the original function. Differentiate the expression first, then* plug in c.

For more on this topic, read our article on which of the following are contained in the nucleus or check out liquid in a liquid solution example.

Notation:* f'₋(c)* = limₕ→₀⁻ [f(c+h) - f(c)] / h Practical shortcut:* Find f'ₗₑfₜ(x), then compute f'ₗₑfₜ(c).

Step 4: Compute the Right-Hand Derivative

Same process. Differentiate the right piece (the rule for x > c* or x ≥ c*), then evaluate at x = c*.

Notation:* f'₊(c)* = limₕ→₀⁺ [f(c+h) - f(c)] / h Shortcut:* Find f'ᵣᵢgₕₜ(x), then compute f'ᵣᵢgₕₜ(c).

Step 5: Compare

  • If f'₋(c) = f'₊(c)* → Differentiable at c. The derivative f'(c)* equals this common value.
  • If f'₋(c) ≠ f'₊(c)* → Not differentiable at c. It’s a corner (if finite slopes differ) or a cusp (if slopes go to ±∞).

A Worked Example

Let’s do f(x) = { x² + 1 for x ≤ 2; 4x - 3 for x > 2 }* at x = 2*.

Continuity check: Left limit (using top rule): 2² + 1 = 5. Right limit (using bottom rule): 4(2) - 3 = 5. f(2) (top rule includes equality): 5. All 5. Continuous. ✅

Left-hand derivative: Derivative of x² + 1* is 2x. Evaluate at 2: 2(2) = 4. So f'₋(2) = 4*.

Right-hand derivative: Derivative of 4x - 3 is 4. Evaluate at 2: 4. So f'₊(2) = 4*.

Compare: 4 = 4. ✅ Result: Differentiable at

x = 2. The derivative f'(2) = 4.

Common Pitfalls to Avoid

Mistake #1: Skipping the continuity check Some students jump straight to computing derivatives. If a function isn't continuous at a point, it cannot be differentiable there. Always check continuity first—it saves time and prevents incorrect conclusions.

Mistake #2: Using the wrong piece for f(c) When evaluating f(c), use the rule that includes the boundary point. In f(x) = { x² for x < 1; 2x - 1 for x ≥ 1 }, we use 2x - 1 for f(1), not x².

Mistake #3: Forgetting to differentiate before substituting To find f'₋(c), first differentiate the left piece, then substitute c. Don't substitute c into the original function and then try to find the derivative—that won't give you the derivative at c.

Mistake #4: Misidentifying which piece is "left" and "right" The left piece applies for x < c; the right piece applies for x > c or x ≥ c. Keep this straight when setting up your calculations.

When Differentiability Fails

Understanding why a function fails to be differentiable helps deepen your mathematical intuition:

Jump discontinuities: When left and right limits of f(x) differ, the function has a "break" or "jump." No derivative exists.

Corners: When f(x) is continuous but the left and right derivatives have different finite values, the graph makes a sharp turn. Think of |x| at x = 0.

Cusps: When one or both one-sided derivatives approach ±∞, creating a pointy tip. Here's one way to look at it: f(x) = x^(2/3) at x = 0.

Vertical tangents: When both one-sided derivatives approach ±∞ (or +∞ and -∞), the tangent line is vertical, and the derivative is undefined.

Practice Makes Perfect

Try these on your own:

  1. f(x) = { x³ for x ≤ 0; x² for x > 0 }
  2. f(x) = { √x for x ≥ 0; x for x < 0 }

Work through each step methodically. Check continuity, compute both one-sided derivatives, and compare.

Final Thoughts

Differentiability is a subtle but crucial concept that bridges the gap between continuity and smoothness. By following this systematic approach—checking continuity first, then computing and comparing one-sided derivatives—you'll develop a reliable method for analyzing piecewise functions.

Remember: differentiability is about local behavior at a specific point, not global behavior across the entire domain. A function can be differentiable at some points and not others, even within the same function. This piecewise analysis gives you the tools to make those precise distinctions.

Master these techniques, and you'll find that many seemingly complex problems become straightforward applications of methodical reasoning. The key is patience with each algebraic step and never skipping the verification process. Mathematics rewards thoroughness.

New

Latest Posts

Related

Related Posts

Thank you for reading about How To Tell If A Piecewise Function Is Differentiable. We hope this guide was helpful.

Share This Article

X Facebook WhatsApp
← Back to Home
AC

accountshelp

Staff writer at accountshelp.org. We publish practical guides and insights to help you stay informed and make better decisions.