Differentiability Calculator – Check if a Function is Differentiable


Differentiability Calculator

Determine if a function is differentiable at a specific point by analyzing its left-hand and right-hand derivatives.

Check a Function’s Differentiability


Enter a function of x. Use standard JavaScript syntax, e.g., Math.pow(x, 2), Math.abs(x), Math.sin(x).
Please enter a valid function.


Please enter a valid number.


Enter a function and point to see the result.

Left-Hand Derivative

Right-Hand Derivative

Absolute Difference

A function f(x) is differentiable at a point x = a if and only if the left-hand derivative equals the right-hand derivative. This calculator approximates these one-sided derivatives using the limit definition:

LHD = lim (h→0⁻) [f(a+h) – f(a)] / h

RHD = lim (h→0⁺) [f(a+h) – f(a)] / h


x (Approaching a) f(x)
Table showing the function’s values as x approaches the point ‘a’ from both sides.

A graph of the function f(x) around the point being tested for differentiability.

What is a Differentiability Calculator?

A differentiability calculator is a digital tool designed to determine whether a given mathematical function is differentiable at a specific point. Differentiability is a core concept in calculus that essentially asks: “Does the function have a well-defined, non-vertical tangent line at this point?”. For a function to be differentiable, its graph must be “smooth” and cannot have any sharp corners, cusps, breaks, or vertical tangents. This online tool automates the process by checking the fundamental condition for differentiability: the equality of the left-hand and right-hand derivatives.

This type of calculator is invaluable for students, educators, and professionals in STEM fields. It provides instant feedback, helping users understand why a function like f(x) = |x| is continuous but not differentiable at x=0. By using a differentiability calculator, one can quickly verify homework, explore complex functions, and gain a deeper intuition for the relationship between continuity, differentiability, and the graphical representation of functions.

Common Misconceptions

A frequent misunderstanding is that if a function is continuous at a point, it must also be differentiable there. This is not true. Continuity is a necessary condition for differentiability, but not a sufficient one. The classic example is the absolute value function, f(x) = |x|, which is continuous everywhere but has a sharp corner at x=0, making it non-differentiable at that specific point. Our differentiability calculator clearly demonstrates this by showing that its left-hand derivative (-1) does not equal its right-hand derivative (+1).

Differentiability Formula and Mathematical Explanation

The concept of differentiability is formally defined using limits. A function f(x) is said to be differentiable at a point x = a if the following limit, which defines the derivative f'(a), exists:

f'(a) = lim h→0 (f(a + h) – f(a)) / h

For this two-sided limit to exist, the one-sided limits from the left and right must exist and be equal. These are known as the left-hand derivative (LHD) and the right-hand derivative (RHD).

  • Left-Hand Derivative (LHD): The limit as h approaches 0 from the negative side. It tells us the slope of the tangent line as we approach the point from the left. LHD = lim h→0⁻ (f(a + h) – f(a)) / h
  • Right-Hand Derivative (RHD): The limit as h approaches 0 from the positive side. It gives the slope of the tangent line as we approach from the right. RHD = lim h→0⁺ (f(a + h) – f(a)) / h

A function is differentiable at a if and only if LHD = RHD. The differentiability calculator works by computing numerical approximations of these two limits.

Variables Table

Variable Meaning Unit Typical Range
f(x) The function being evaluated. Varies Any valid mathematical expression
a The specific point where differentiability is checked. Varies Any real number
h An infinitesimally small change in x used for the limit. Varies A value very close to zero (e.g., 10-9)
LHD/RHD Left/Right-Hand Derivative. Slope Any real number or undefined

Practical Examples

Example 1: A Smooth, Differentiable Function

Let’s use the differentiability calculator to test the function f(x) = x² at the point x = 2.

  • Input Function: Math.pow(x, 2)
  • Input Point (a): 2

Calculator Output:

  • Left-Hand Derivative: ≈ 4.00
  • Right-Hand Derivative: ≈ 4.00
  • Result: The function is differentiable at x = 2.

Interpretation: Since the left-hand and right-hand derivatives are equal, the function has a well-defined tangent slope of 4 at x=2. The graph is smooth at this point.

Example 2: A Function with a Sharp Corner

Now, let’s test the absolute value function f(x) = |x| at the point x = 0, a classic case of non-differentiability.

  • Input Function: Math.abs(x)
  • Input Point (a): 0

Calculator Output:

  • Left-Hand Derivative: -1.00
  • Right-Hand Derivative: 1.00
  • Result: The function is NOT differentiable at x = 0.

Interpretation: The differentiability calculator shows that the slope from the left is -1, while the slope from the right is +1. Because these are not equal, the derivative is undefined at x=0, which corresponds to the sharp corner on the graph.

How to Use This Differentiability Calculator

Using this tool is straightforward. Follow these steps to check if your function is differentiable at a given point.

  1. Enter the Function: In the “Function f(x)” field, type the function you want to analyze. You must use JavaScript’s `Math` object for mathematical operations (e.g., `Math.pow(x, 3)` for x³, `Math.sin(x)`, `Math.abs(x)`).
  2. Specify the Point: In the “Point to Check (x = a)” field, enter the numerical value of the point at which you want to test for differentiability.
  3. Read the Results: The calculator will update automatically.
    • The Primary Result box will give you a clear “differentiable” or “not differentiable” conclusion.
    • The Intermediate Values show the calculated left-hand and right-hand derivatives, allowing you to see exactly why the function is or isn’t differentiable.
    • The Table and Chart provide a visual and numerical context, showing the function’s behavior around the test point.
  4. Reset or Copy: Use the “Reset” button to return to the default example or the “Copy Results” button to save a summary of your findings.

Key Factors That Affect Differentiability

Several features of a function’s graph can cause it to be non-differentiable at a point. A differentiability calculator helps identify these by detecting unequal one-sided derivatives.

  1. Continuity: First and foremost, a function must be continuous at a point to be differentiable there. If there is a break, jump, or hole in the graph (a discontinuity), the derivative cannot exist.
  2. Sharp Corners or Cusps: These occur where the slope of the graph changes abruptly. The left-hand derivative and the right-hand derivative will exist, but they will not be equal. The function f(x) = |x| at x=0 is a prime example of a corner.
  3. Vertical Tangents: A function is not differentiable at a point where its tangent line is vertical. This is because the slope of a vertical line is undefined. For example, the function f(x) = x^(1/3) has a vertical tangent at x=0.
  4. Oscillation: Highly oscillatory functions, such as f(x) = x * sin(1/x) near x=0, can be continuous but not differentiable because the slope does not approach a single, finite value.
  5. Domain Endpoints: A function can’t have a two-sided derivative at an endpoint of its domain because you can only approach the point from one side. One-sided differentiability can still be discussed, however.
  6. Piecewise Function Boundaries: For piecewise-defined functions, differentiability must be checked at the boundary points. Not only must the function pieces meet (continuity), but their slopes (derivatives) must also be identical at the meeting point.

Frequently Asked Questions (FAQ)

1. What is the difference between continuous and differentiable?

Differentiability implies continuity, but continuity does not imply differentiability. A continuous function can be drawn without lifting your pen. A differentiable function is a continuous function that is also “smooth,” meaning it has no sharp corners, cusps, or vertical tangents.

2. Why isn’t f(x) = |x| differentiable at x = 0?

At x=0, the slope approaching from the left is -1, while the slope approaching from the right is +1. Since the left-hand derivative does not equal the right-hand derivative, the function is not differentiable at that point. Our differentiability calculator confirms this.

3. Can a function be differentiable everywhere?

Yes. Many common functions, such as polynomials (e.g., f(x) = x³ + 2x – 5), exponential functions (e.g., f(x) = e^x), and the sine and cosine functions, are differentiable for all real numbers.

4. How does this differentiability calculator handle the limit calculation?

This calculator does not perform symbolic differentiation. Instead, it approximates the limit by using a very small value for ‘h’ (e.g., 10-9). It calculates `(f(a + h) – f(a)) / h` for the RHD and `(f(a) – f(a – h)) / h` for the LHD and compares the results.

5. What does an “undefined” derivative mean?

An undefined derivative at a point means the function is not differentiable there. This can be due to a discontinuity, a sharp corner, or a vertical tangent line at that point.

6. Is a function differentiable at a hole?

No. A hole is a type of discontinuity. Since a function must be continuous to be differentiable, it cannot be differentiable at a hole.

7. Can a computer perfectly check for differentiability?

A numerical tool like this differentiability calculator is extremely accurate for most functions but relies on approximation. Symbolic algebra systems can prove differentiability with more rigor but may struggle with very complex or strangely defined functions.

8. What is the graphical meaning of a derivative?

Geometrically, the derivative of a function at a point is the slope of the tangent line to the function’s graph at that same point. It represents the instantaneous rate of change of the function.

© 2026 Differentiability Calculator Services. All rights reserved. For educational purposes only.


Leave a Reply

Your email address will not be published. Required fields are marked *