Tutorials › Calculus I › Corners and Unequal One-Sided Slopes

The Derivative from First Principles · Tutorial 356 of 1495

Corners and Unequal One-Sided Slopes

Use one-sided difference quotients to tell a genuine corner with unequal finite slopes from a point where the function is discontinuous.

Intermediate 9 min read

What You'll Learn

  • Define left- and right-hand derivatives at an interior point.
  • Compute each one-sided derivative directly from its difference quotient.
  • Recognize a corner as a continuous point with unequal finite one-sided slopes.
  • Use the one-sided derivative test to determine whether a two-sided derivative exists.
  • Explain why a discontinuity cannot have finite one-sided derivatives based at the function’s value.

When a Point Has Two Different Slopes

A graph can be continuous at a point and still fail to have a derivative there. One common reason is a corner: the graph approaches the point with one finite slope from the left and a different finite slope from the right.

To diagnose this situation, calculate two limits separately. The left-hand derivative describes the rate of change as the input approaches the point from smaller values; the right-hand derivative describes the rate from larger values. If both limits exist and are finite but unequal, there is a corner, not a single derivative.

It is important to distinguish this from a discontinuity. A jump or other break in the function is not a corner merely because the graph changes direction nearby. The one-sided difference quotients are based on the actual value \(f(a)\), and a mismatch between that value and the nearby function values can prevent a finite one-sided slope.

One-Sided Derivatives

Let \(f\) be defined on an open interval containing \(a\). For \(h\ne 0\), the difference quotient at \(a\) is \(\frac{f(a+h)-f(a)}{h}\). The left- and right-hand derivatives are the corresponding one-sided limits, when they exist as finite real numbers.

Definition: The left-hand derivative of \(f\) at \(a\) is \(f'_-(a)=\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}\), if this limit exists as a finite real number. The right-hand derivative is \(f'_+(a)=\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}\), if this limit exists as a finite real number. Here \(h\to0^-\) means \(h\) approaches zero through negative values, and \(h\to0^+\) means it approaches through positive values.

Both quotients use the same value \(f(a)\). Only the side from which \(h\) approaches zero changes. This matters especially for piecewise-defined functions: the formula on each side may differ, but the numerator always subtracts the function’s value at the point itself.

When both one-sided derivatives exist and are finite, the one-sided derivative test says that the ordinary two-sided derivative exists exactly when they are equal. Thus, unequal finite one-sided derivatives rule out a derivative at \(a\).

What Counts as a Corner?

Definition: In this tutorial, a corner at \(a\) means that \(f\) is continuous at \(a\), both \(f'_-(a)\) and \(f'_+(a)\) exist as finite real numbers, and \(f'_-(a)\ne f'_+(a)\). The two one-sided slopes are finite, but they do not combine into one derivative.

Continuity is part of this definition because a corner is a meeting of two finite-slope pieces at a shared point. If the function jumps instead, the graph does not meet there continuously; that is a different kind of failure. We will see below why a discontinuity also prevents finite one-sided derivatives defined using \(f(a)\).

Geometrically, the slopes of the two pieces describe the directions in which the graph arrives at and leaves the point. Equal slopes allow a single slope to describe both sides. Unequal finite slopes produce a sharp change in direction.

Worked Example: The Absolute-Value Corner

Worked Example: Finding the Slopes of \(f(x)=|x|\) at Zero

Let \(f(x)=|x|\) and \(a=0\). First, \(f(0)=|0|=0\). For \(h<0\), \(|h|=-h\), so the left difference quotient is

$$ \frac{f(0+h)-f(0)}{h} = \frac{|h|-0}{h} = \frac{-h}{h} = -1. $$

It follows that \(f'_-(0)=\lim_{h\to0^-}(-1)=-1\). For \(h>0\), \(|h|=h\), and therefore

$$ \frac{f(0+h)-f(0)}{h} = \frac{|h|-0}{h} = \frac{h}{h} = 1. $$

Thus \(f'_+(0)=\lim_{h\to0^+}1=1\). The function is continuous at zero because \(\lim_{x\to0}|x|=0=f(0)\). Its one-sided derivatives are finite but unequal, so it has a corner at zero and is not differentiable there.

Check: The left-hand formula for the function is \(-x\), whose slope is \(-1\); the right-hand formula is \(x\), whose slope is \(1\). These agree with the difference-quotient limits.

Worked Example: A Piecewise Join with Unequal Slopes

Worked Example: Testing a Join at \(x=1\)

Consider the function

$$ f(x)= \begin{cases} x^2, & x\le 1,\\ 3x-2, & x>1. \end{cases} $$

At the join, the first branch gives \(f(1)=1^2=1\). For \(h<0\), the input \(1+h\) is less than \(1\), so use the quadratic branch:

$$ \frac{f(1+h)-f(1)}{h} = \frac{(1+h)^2-1}{h} = \frac{1+2h+h^2-1}{h} = \frac{2h+h^2}{h} = 2+h. $$

Taking \(h\to0^-\) gives \(f'_-(1)=2\). For \(h>0\), use the linear branch. Since \(f(1+h)=3(1+h)-2=1+3h\),

$$ \frac{f(1+h)-f(1)}{h} = \frac{(1+3h)-1}{h} = \frac{3h}{h} = 3. $$

Taking \(h\to0^+\) gives \(f'_+(1)=3\). The function is continuous at the join: the left-hand values approach \(1\), the right-hand values approach \(3(1)-2=1\), and \(f(1)=1\). The one-sided slopes are finite and unequal, so \(x=1\) is a corner.

Check: The derivative of \(x^2\) at \(1\) is \(2(1)=2\), and the slope of \(3x-2\) is \(3\). These agree with the direct one-sided computations.

Why a Discontinuity Cannot Be a Finite-Slope Corner

The difference quotient itself explains why continuity is necessary for a corner. Suppose a one-sided derivative at \(a\) exists as a finite number \(L\). On that same side, write the change in function value as

$$ f(a+h)-f(a) = h\left(\frac{f(a+h)-f(a)}{h}\right). $$

As \(h\) approaches zero from that side, the quotient approaches \(L\), so it remains bounded near zero. The factor \(h\) approaches zero. Their product therefore approaches zero, which means \(f(a+h)\) approaches \(f(a)\) from that side. Thus a finite one-sided derivative based at \(f(a)\) requires the function to approach its value from that side. If there is a jump on that side, the one-sided derivative cannot be finite.

For a corner, both one-sided derivatives are finite. Applying this reasoning from each side shows that the function approaches \(f(a)\) from both sides. The function is consequently continuous at \(a\). A discontinuity and a corner, as defined here, are distinct diagnoses.

Worked Example: A Jump, Not a Corner

Worked Example: A Discontinuous Join at Zero

Define

$$ f(x)= \begin{cases} x, & x<0,\\ x+1, & x\ge 0. \end{cases} $$

At zero, the second branch gives \(f(0)=0+1=1\). As \(x\to0^-\), the first branch approaches \(0\), while as \(x\to0^+\), the second branch approaches \(1\). The two one-sided limits differ, so the function is discontinuous at zero.

Now calculate the difference quotients. If \(h<0\), then \(f(h)=h\), and

$$ \frac{f(0+h)-f(0)}{h} = \frac{h-1}{h} = 1-\frac{1}{h}. $$

As \(h\to0^-\), \(\frac{1}{h}\to-\infty\), so \(1-\frac{1}{h}\to+\infty\). There is no finite left-hand derivative. If \(h>0\), then \(f(h)=h+1\), giving

$$ \frac{f(0+h)-f(0)}{h} = \frac{(h+1)-1}{h} = \frac{h}{h} = 1. $$

The right-hand derivative is \(1\), but having one finite one-sided derivative is not enough for a corner. Since the function is discontinuous and the left-hand quotient has no finite limit, zero is not a corner.

Check: The left branch approaches \(0\), not \(f(0)=1\); this nonzero difference in function values is the constant \(-1\) in the left numerator. Dividing that term by \(h\) produces the unbounded term \(-1/h\), as the calculation shows.

A Common Mistake: Using One Formula on Both Sides

For \(f(x)=|x|\), a tempting but incorrect calculation is to write \(|h|=h\) and conclude that the difference quotient at zero is \(h/h=1\). This identity applies only when \(h>0\). When \(h<0\), the correct identity is \(|h|=-h\), so the quotient is \((-h)/h=-1\). The two sides must be evaluated under their respective sign conditions; using a single branch for both sides hides the corner.

Another error is to call any point where the derivative fails to exist a corner. The one-sided limits must be checked: a corner requires continuity and two finite, unequal one-sided derivatives. A discontinuity, an infinite one-sided slope, or a failure of a one-sided limit is not classified as a corner by this definition.

A Reliable Diagnostic

1
Find the point value.
Determine \(f(a)\) from the definition of the function, including which branch applies at the join.
2
Form the left quotient.
Use the formula valid for \(h<0\), and simplify \(\frac{f(a+h)-f(a)}{h}\) before taking the limit.
3
Form the right quotient.
Use the formula valid for \(h>0\), keeping the same point value \(f(a)\) in the numerator.
4
Classify the point.
If both limits are finite and unequal, check that the function is continuous at \(a\); then it is a corner. If the function is discontinuous, it is not a corner.

This method separates three questions that are easy to confuse: whether the function is continuous at the point, whether each one-sided slope exists as a finite number, and whether those slopes agree. A corner occurs only when the function is continuous, both slopes are finite, and the slopes differ.

Check Your Understanding

For each question, use the one-sided difference quotient where needed and state the conditions supporting your conclusion.

  1. For \(f(x)=|x-2|\), calculate the left- and right-hand derivatives at \(x=2\). Is the point a corner?
  2. For \(g(x)=\begin{cases}2x+1,&x\le 0,\\-x+1,&x>0,\end{cases}\) find \(g'_-(0)\) and \(g'_+(0)\), and classify the point.
  3. Why must a corner, under the definition in this tutorial, be a point of continuity?
  4. For \(p(x)=\begin{cases}x,&x<1,\\x+2,&x\ge1,\end{cases}\) identify \(p(1)\) and the two one-sided limits of the function at \(1\). Is \(1\) a corner?
  5. In the calculation for \(|h|/h\), which expression applies when \(h<0\), and why can the \(h>0\) expression not be used on the left?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon