Derivative of floor(x)

The derivative of floor(x) is not defined for every real number: undefined at integers.

Instant step-by-step solution for floor(x)

DerivativeIntermediate
Share this result
Share on X

Derivative of floor(x) Solve step-by-step for free: https://derivativecalculatorai.com/derivative-of-floor-x

Derivative

floor(x) → undefined at integers

Graph of the function and its derivative

f(x)

The solid curve is f. The dashed curve is f′. Vertical gaps are asymptotes or jumps, not extra zeros.

Why the derivative has this form

floor(x) is constant between integers and jumps by 1 at each integer. On each open interval (n, n+1) the slope is 0. At each integer the jump means the derivative does not exist: the difference quotient does not approach a single number. This calculator will not print a derivative for floor(x), because an unevaluated diff() is not an answer. The honest result is: 0 between integers, undefined at integers.

Apply the definition as a limit to floor(x). The form to remember, already simplified, is undefined.

Between consecutive integers the derivative is 0. At each integer the jump means the derivative does not exist.

At x = 1.5, substitute into the simplified form undefined. That number is the slope of floor(x) there; a secant over a small step in x lands next to it.

Worked derivative

  1. Write f(x) = floor(x).
  2. Apply the definition as a limit to floor(x). The form to remember, already simplified, is undefined.
  3. At x = 1.5, substitute into the simplified form undefined. That number is the slope of floor(x) there; a secant over a small step in x lands next to it.

Common mistakes

Answering 0

Printing 0 everywhere, including at the integers, hides the jumps. The derivative is 0 only on the flat steps, not at the endpoints.

Claiming floor(x) has a derivative at the bad point

Corners and jumps are exactly where a formula that works on each piece fails. State the pieces and then state the exception.

Frequently asked questions

What is the derivative of floor(x)?

undefined at integers. floor(x) is constant between integers and jumps by 1 at each integer. On each open interval (n, n+1) the slope is 0. At each integer the jump means the derivative does not exist: the difference quotient does not approach a single number. This calculator will not print a derivative for floor(x), because an unevaluated diff() is not an answer. The honest result is: 0 between integers, undefined at integers.

Which wrong answer shows up for floor(x)?

Printing 0 everywhere, including at the integers, hides the jumps. The derivative is 0 only on the flat steps, not at the endpoints.

Where is the derivative of floor(x) defined?

Between consecutive integers the derivative is 0. At each integer the jump means the derivative does not exist.