Differentiability Calculator

Differentiability Calculator





The Differentiability Calculator answers a question that trips up many calculus students: is this function actually differentiable at this point? Enter the left-hand derivative and the right-hand derivative at the point, say whether the function is continuous there, and the calculator tells you whether the function is differentiable — with the reasoning shown.

Differentiability is stricter than it looks. A function can be perfectly well-defined and continuous at a point yet fail to be differentiable there — the absolute value function at x = 0 is the famous example. The graph has a sharp corner: coming from the left the slope is −1, coming from the right it is +1, and no single tangent line can represent both. The calculator formalizes this test.

The rule the calculator applies is the standard one from every calculus textbook: a function is differentiable at a point if and only if it is continuous there and its left-hand and right-hand derivatives are equal. Both conditions must hold. Miss either one and differentiability fails.

This guide explains what differentiability means, why both conditions are needed, how to use the calculator, and walks through two fully worked examples — the corner of |x| and the smooth parabola x². You will also learn about cusps and vertical tangents, why continuity alone is not enough, and get answers to fifteen frequently asked questions.

What Does It Mean to Be Differentiable?

A function is differentiable at a point if its derivative exists there — equivalently, if the graph has a single well-defined tangent line at that point. Zoom in on a differentiable function and it looks increasingly like a straight line; zoom in on a non-differentiable point and the kink, corner, or break never smooths out, no matter the magnification.

Differentiability is a local property: it is assessed one point at a time. A function can be differentiable everywhere except at isolated trouble spots. The absolute value function is differentiable at every x except 0; a piecewise function might be smooth everywhere except at its joints. The calculator tests one point per run — enter new values to probe other locations.

Why does it matter? Differentiability is the license that lets calculus operate. Theorems like the Mean Value Theorem require it; optimization methods assume it; physics models that differentiate position to get velocity silently depend on it. Knowing how to test for it — rather than assuming it — is what separates careful mathematics from wishful thinking.

The Two Conditions: Smoothness and Continuity

Condition one is matching one-sided derivatives. The left-hand derivative is the slope approached from values slightly less than the point; the right-hand derivative is the slope from slightly greater values. If these disagree, the graph turns a corner and no single tangent exists. The calculator compares the two numbers you enter and reports a mismatch immediately.

Condition two is continuity at the point. A function with a jump discontinuity cannot be differentiable there: the graph is broken, so no tangent line can sit on it. This is why the calculator asks about continuity separately — equal one-sided derivatives mean nothing if the function itself leaps at the point.

Logically, differentiability implies continuity (a differentiable function is always continuous), but continuity does not imply differentiability. The calculator’s two-step logic mirrors this: first it checks the derivatives match, then it checks continuity, and only a pass on both yields “differentiable.” Either failure produces a specific explanation of which condition broke.

How to Use the Differentiability Calculator

You supply the mathematical facts; the calculator applies the test. Here is the procedure.

  1. Enter the left-hand derivative — the slope approaching the point from the left. For |x| at 0, this is −1.
  2. Enter the right-hand derivative — the slope approaching from the right. For |x| at 0, this is 1.
  3. Select whether the function is continuous at the point: “Yes” if the graph has no jump or break there, “No” otherwise.
  4. Click Calculate. The tool echoes both derivative values and states whether the function is differentiable, with the reason.
  5. Click Reset to test another point.

Finding the one-sided derivatives is the real mathematical work — the calculator does not compute them from a formula; you determine them from the function’s definition (often from its left and right pieces) and enter the results. The tool’s job is applying the differentiability test flawlessly once the facts are in.

Worked Example 1: f(x) = |x| at x = 0 — Not Differentiable

The absolute value function is the textbook non-differentiable example. To its left of 0, |x| = −x, a line of slope −1, so the left-hand derivative is −1. To the right, |x| = x, a line of slope +1, so the right-hand derivative is +1. The function is continuous at 0 (the two pieces meet at the origin). Enter l = −1, r = 1, continuity = yes.

The calculator compares −1 and 1: they differ, so it reports “No – left and right derivatives differ”. The corner at the origin is a genuine kink — zoom in as far as you like and the V-shape persists. No single tangent line exists, so no derivative exists at 0, even though the function is continuous and perfectly well-behaved everywhere else.

This example is worth memorizing because it destroys the most common misconception in one stroke: continuity does not guarantee differentiability. Whenever you are tempted to assume a continuous function can be differentiated, picture the corner of |x| and check the one-sided derivatives instead.

Worked Example 2: f(x) = x² at x = 1 — Differentiable

Now the smooth case. For f(x) = x², the derivative is f′(x) = 2x everywhere it exists. Approaching x = 1 from the left, the slope tends to 2; from the right, it also tends to 2. The parabola has no breaks, so continuity = yes. Enter l = 2, r = 2, continuity = yes.

The calculator finds the one-sided derivatives equal and continuity confirmed, reporting “Yes – differentiable at the point”. The tangent line y − 1 = 2(x − 1) touches the parabola cleanly at (1, 1), and zooming in shows the curve flattening into that line — the visual signature of differentiability.

In fact x² is differentiable at every real x, with matching one-sided derivatives of 2x throughout. Contrast this with Example 1: same continuity, different outcome — the difference is entirely in whether the left and right slopes agree. That comparison is the whole lesson in miniature.

Corners, Cusps, and Vertical Tangents

Corners like |x| are only one failure mode. A cusp — as in f(x) = x2/3 at 0 — has one-sided derivatives shooting to −∞ and +∞, a sharper point than a corner. A vertical tangent — as in f(x) = x1/3 at 0 — has both one-sided derivatives infinite with the same sign; the graph is continuous and smooth-looking but infinitely steep, so no finite derivative exists.

Discontinuities are the other family: jump discontinuities (piecewise functions whose pieces do not meet), removable discontinuities (a single hole), and infinite discontinuities (vertical asymptotes). At any of these, select “No” for continuity in the calculator and it correctly reports non-differentiability regardless of the derivative values.

A practical tip: sketch the graph first. Corners, cusps, vertical tangents, and breaks are all visible to the eye, and the sketch tells you which condition to suspect before you compute anything. The calculator then confirms your suspicion with the formal test — eye plus logic beats either alone.

Continuity Is Necessary but Not Enough

This asymmetry deserves emphasis because exams love it. Every differentiable function is continuous — differentiation cannot happen across a break. But plenty of continuous functions are not differentiable: |x| at 0, x2/3 at 0, and any function with a corner, cusp, or vertical tangent. Continuity opens the door; matching one-sided derivatives walk through it.

The calculator’s logic encodes exactly this: it checks derivative agreement first, then continuity, requiring both. If you ever wonder which condition failed for a tricky function, run the test mentally in the same order — it is the order textbooks present, and it matches the logical structure of the definition.

One subtle case: a function can have matching one-sided derivatives yet still fail continuity — imagine two line segments with the same slope but a vertical gap between them. The calculator catches this: equal derivatives but continuity = no gives “not continuous at the point.” Always answer the continuity question honestly; it is doing real work.

Testing Piecewise Functions Point by Point

Piecewise functions are where the differentiability test earns its keep, because their joints are the most common trouble spots in introductory calculus. A typical example: f(x) = x2 for x ≤ 1 and f(x) = 2x − 1 for x > 1. At the joint x = 1, differentiate the left piece to get 2x → 2, and the right piece to get 2. Both one-sided derivatives equal 2, and the pieces meet at f(1) = 1, so the function is differentiable at the joint — the two formulas blend seamlessly.

Change the right piece to f(x) = 3x − 2 for x > 1 and the story flips. The right-hand derivative becomes 3 while the left stays 2: a corner, not differentiable, even though both pieces meet at (1, 1) and the function is continuous. This is the pattern to internalize — continuity checks the meeting, derivatives check the blending — and the calculator runs exactly that two-part interrogation.

When testing a piecewise joint, always compute from the correct side’s formula: the left-hand derivative comes from differentiating the left branch and evaluating at the joint, never from the right branch. Students who differentiate the wrong branch get matching numbers by accident and falsely conclude differentiability. Label each one-sided derivative with its source branch as you work, enter both into the calculator, answer continuity honestly, and the verdict is trustworthy.

Tips for Testing Differentiability

Approach each point methodically and the test becomes routine.

  1. Sketch before you compute. A quick graph reveals corners, cusps, and breaks instantly and tells you which condition is likely to fail.
  2. Find one-sided derivatives from the pieces. For piecewise functions, differentiate the left formula for the left-hand derivative and the right formula for the right-hand derivative, then evaluate each at the point.
  3. Check continuity separately and honestly. Ask: do the left and right pieces actually meet? A gap of any size means “No,” even if the slopes match.
  4. Memorize |x| at 0 as your counterexample. Whenever someone claims continuity implies differentiability, this single example refutes it — keep it ready.
  5. Watch for infinite slopes. Vertical tangents and cusps fail differentiability even though the graph looks unbroken; the one-sided derivatives are infinite, not equal finite numbers.
  6. Test every suspicious point individually. Differentiability is local. A function can pass at x = 1 and fail at x = 0 — run the calculator once per point and never generalize from one test.

Frequently Asked Questions

1. What does the Differentiability Calculator check?

It applies the standard two-part test: are the left-hand and right-hand derivatives equal at the point, and is the function continuous there? You enter the two one-sided derivative values and the continuity answer; it reports whether the function is differentiable and which condition decided it.

2. What is the difference between continuity and differentiability?

Continuity means the graph has no breaks — you can draw it without lifting the pen. Differentiability additionally requires a single well-defined tangent, i.e., no corners or cusps. Every differentiable function is continuous, but continuous functions like |x| at 0 can fail to be differentiable.

3. What are left-hand and right-hand derivatives?

The left-hand derivative is the limit of the slope approaching the point from smaller x-values; the right-hand derivative approaches from larger x-values. When they exist and agree, the (two-sided) derivative exists and equals their common value. When they disagree, the graph has a corner.

4. Why is |x| not differentiable at 0?

Its left-hand derivative is −1 (the line y = −x approaching from the left) and its right-hand derivative is +1 (the line y = x from the right). Since −1 ≠ 1, no single tangent line exists at the origin, so the derivative does not exist there — despite the function being continuous.

5. Can a function be differentiable at a point but not continuous there?

No. Differentiability implies continuity — it is a theorem. If a function has a jump, hole, or asymptote at a point, it cannot be differentiable there. The calculator enforces this: answering “No” to continuity always yields “not differentiable.”

6. What is a cusp?

A cusp is a sharp point where the one-sided derivatives approach opposite infinities, like f(x) = x^(2/3) at x = 0. It is pointier than a corner. Cusps fail differentiability because the one-sided derivatives are not equal finite numbers.

7. What is a vertical tangent?

A point where the graph is continuous but infinitely steep, like f(x) = x^(1/3) at x = 0. Both one-sided derivatives are infinite, so no finite derivative exists. The function is smooth to the eye but not differentiable in the technical sense.

8. How do I find one-sided derivatives?

For piecewise functions, take the formula valid just left of the point, differentiate it, and evaluate at the point for the left-hand derivative; repeat with the right-side formula. For familiar functions, use known derivative rules on each side separately.

9. Is x² differentiable everywhere?

Yes. Its derivative 2x exists at every real number, so the left-hand and right-hand derivatives match (both equal 2x₀) at every point, and the parabola is continuous everywhere. Enter any matching pair with continuity “yes” and the calculator confirms.

10. What does “differentiable” mean graphically?

It means the graph has a single tangent line at the point — zooming in makes the curve look like a straight line. Corners, cusps, and breaks never flatten out under magnification, which is the visual test for non-differentiability.

11. Do I need both conditions or is one enough?

Both are required. Equal one-sided derivatives with a discontinuity still fail (imagine same-slope segments with a gap), and continuity with mismatched one-sided derivatives fails (the |x| corner). The calculator checks them in order and names the failure.

12. Can a function be differentiable at only one point?

Yes. Classic examples like f(x) = x²·sin(1/x) (with f(0) = 0) are differentiable at 0 but badly behaved nearby. Differentiability is assessed point by point, which is why the calculator tests a single location per run.

13. Why does differentiability matter in practice?

Optimization, physics simulations, and machine learning all differentiate functions freely — gradient descent, for instance, follows derivatives downhill. Those methods assume differentiability; applying them at a kink can produce garbage, so knowing how to test for it keeps applied work honest.

14. What should I enter if a one-sided derivative is infinite?

The calculator expects finite numbers, so an infinite one-sided slope means the test already fails — a vertical tangent or cusp is not differentiable. You can note the failure directly without running the tool, since equal finite values are required.

15. Is this calculator free?

Yes. Free, unlimited, no sign-up, running in your browser. Test as many points and functions as your homework demands.

CONCLUSION

The Differentiability Calculator distills a subtle concept into a clean two-step test: do the left-hand and right-hand derivatives agree, and is the function continuous at the point? Only two yeses mean differentiable. The |x| corner shows why continuity alone is not enough, the x² parabola shows what success looks like, and the failure catalog — corners, cusps, vertical tangents, breaks — gives you a mental checklist for every suspicious point you will ever meet. Keep the test local, sketch first, answer the continuity question honestly, and differentiability will stop feeling like a technicality and start feeling like what it is: the precise statement of “smooth enough to have a tangent.”