Tutorials › AP Calculus › Endpoint Derivatives on Restricted Domains

Differentiability and Continuity · Tutorial 111 of 999

Endpoint Derivatives on Restricted Domains

Use the limit from the side contained in the domain to calculate endpoint derivatives and distinguish them from ordinary two-sided derivatives at interior points.

Beginner 9 min read

What You'll Learn

  • Define right-hand derivatives at left endpoints and left-hand derivatives at right endpoints
  • Rewrite endpoint difference quotients using positive increments
  • Calculate endpoint derivatives directly from their defining limits
  • Distinguish an endpoint derivative from the two-sided derivative test at an interior point
  • Recognize when an endpoint quotient has no finite limit

Why Endpoints Need a Separate Derivative Test

At an interior point of a function’s domain, nearby inputs are available on both sides. The usual derivative limit therefore compares the function’s change to the left and to the right. At an endpoint of a restricted domain, one of those sides is missing: the function may only be defined for inputs to the right of a left endpoint, or to the left of a right endpoint.

The derivative idea still makes sense there, provided we use only inputs that belong to the domain. We take a one-sided difference-quotient limit from inside the domain. This is called an endpoint derivative or a one-sided derivative at an endpoint.

Key idea: At an endpoint, approach from the side on which the function is defined. A finite one-sided limit gives an endpoint derivative; a two-sided limit is not required there.

Definitions on a Closed Interval

Suppose \(f\) is defined on an interval \([a,b]\), where \(a<b\). The left endpoint \(a\) has domain points immediately to its right, and the right endpoint \(b\) has domain points immediately to its left.

Definition: The right-hand derivative of \(f\) at \(a\) is the finite limit, if it exists, $$ f'_+(a)=\lim_{x\to a^+}\frac{f(x)-f(a)}{x-a}. $$ The left-hand derivative of \(f\) at \(b\) is the finite limit, if it exists, $$ f'_-(b)=\lim_{x\to b^-}\frac{f(x)-f(b)}{x-b}. $$

“Finite” matters: a limit that grows without bound, or fails to settle to a single real number, does not define an endpoint derivative. The formulas use the endpoint value \(f(a)\) or \(f(b)\), so the function must be defined at the endpoint as well as on the inward side.

These definitions extend to other restricted domains when the domain contains an interval immediately to the inward side of the endpoint. They do not provide a derivative at a point merely because it is called a boundary point: there must be domain inputs approaching from the relevant side.

Why the Inward Difference Quotient Has This Form

The endpoint formulas are the ordinary difference quotient with the input restricted to the available side. To see the direction and sign explicitly, set \(x=a+h\) at a left endpoint, where \(h>0\). Then \(x\) approaches \(a\) from the right, and \(x-a=h\). At a right endpoint, set \(x=b-h\), again with \(h>0\). Now \(x\) approaches \(b\) from the left, and \(x-b=-h\).

1
At the left endpoint.
Substitute \(x=a+h\), with \(h>0\), into the difference quotient. The denominator is \(x-a=h\), so the right-hand derivative is \(\displaystyle\lim_{h\to0^+}\frac{f(a+h)-f(a)}{h}\).
2
At the right endpoint.
Substitute \(x=b-h\), with \(h>0\). The denominator is \(x-b=-h\), so the left-hand derivative is \(\displaystyle\lim_{h\to0^+}\frac{f(b-h)-f(b)}{-h}\).
3
Keep the sign in the denominator.
At the right endpoint, \(x-b\) is negative for inward inputs \(x<b\). Replacing it by \(h\) without also changing the numerator’s orientation changes the sign of the quotient.

This substitution gives equivalent forms of the definitions, not a new derivative rule. It is useful because the positive increment \(h\) makes clear which direction the input is approaching from.

Endpoint Derivatives Versus Interior Derivatives

At an interior point \(c\), the function has domain inputs on both sides in a sufficiently small interval around \(c\). The ordinary derivative exists if the two-sided limit \(\displaystyle\lim_{x\to c}\frac{f(x)-f(c)}{x-c}\) exists as a finite real number. Equivalently, the left-hand and right-hand difference-quotient limits must both exist and have the same value.

At the left endpoint of \([a,b]\), only the right-hand limit is required by the endpoint convention. At the right endpoint, only the left-hand limit is required. There is no two-sided derivative test at an endpoint of the restricted domain, because the quotient cannot be formed from both sides using inputs in the domain.

LocationInputs usedDerivative test
Interior point \(c\)Inputs to the left and right of \(c\)A finite two-sided difference-quotient limit
Left endpoint \(a\)Inputs to the right of \(a\)A finite right-hand difference-quotient limit
Right endpoint \(b\)Inputs to the left of \(b\)A finite left-hand difference-quotient limit

Some definitions reserve “differentiable” for points where a two-sided derivative is available. In the common closed-interval convention, one says a function is differentiable on \([a,b]\) when it has the ordinary derivative at interior points and the appropriate one-sided derivatives at the endpoints. The important point is to state which convention is being used. In either convention, the endpoint calculation itself uses the inward one-sided limit.

Worked Endpoint Calculations

Worked Example: Derivatives at Both Ends of a Restricted Interval

Let \(f(x)=x^2+3x+1\) on \([0,2]\). Calculate its endpoint derivatives.

At the left endpoint, \(f(0)=1\). For \(h>0\),

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

Therefore,

$$ f'_+(0)=\lim_{h\to0^+}(h+3)=3. $$

Check: the expression \(h+3\) is exactly the original inward difference quotient after simplification, and it approaches \(3\) as the allowed increment approaches \(0\).

At the right endpoint, \(f(2)=4+6+1=11\). Write an inward input as \(2-h\), with \(h>0\). Then

$$ f(2-h)=(2-h)^2+3(2-h)+1 =4-4h+h^2+6-3h+1 =11-7h+h^2. $$

The denominator for this input is \((2-h)-2=-h\), so

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

Thus \(f'_-(2)=\displaystyle\lim_{h\to0^+}(7-h)=7\). Check: the inward quotient simplifies to \(7-h\), whose limit is \(7\); the negative denominator at this endpoint has been retained.

Worked Example: A Rational Function at a Left Endpoint

Let \(g(x)=\dfrac{1}{1+x}\) on \([0,2]\). Find the right-hand derivative at \(x=0\) directly from the definition.

First, \(g(0)=1\). For \(h>0\),

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

Taking the inward limit gives

$$ g'_+(0)=\lim_{h\to0^+}-\frac{1}{1+h}=-1. $$

Check: substituting the simplified quotient back into the defining expression preserves its value for every \(h>0\), and that expression approaches \(-1\). The endpoint derivative is therefore finite and equals \(-1\).

Worked Example: A Quotient Without a Finite Endpoint Derivative

Define \(q\) on \([0,1]\) by \(q(0)=0\) and \(q(x)=1\) for \(x>0\). Does \(q\) have a right-hand derivative at \(0\)?

For every \(h>0\), \(q(h)=1\), so the endpoint difference quotient is

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

As \(h\to0^+\), \(1/h\) increases without bound. It does not approach a finite real number, so \(q'_+(0)\) does not exist as an endpoint derivative.

Check: for any positive number \(M\), choosing \(0<h<1/M\) gives \(1/h>M\). Thus the quotient cannot approach a finite value, confirming that the endpoint derivative does not exist.

A Common Mistake: Demanding a Two-Sided Limit

For \(f(x)=x^2\) restricted to \([0,1]\), consider the left endpoint \(0\). A common incorrect conclusion is: “The derivative does not exist because there are no domain inputs less than \(0\), so a two-sided limit cannot be taken.” That applies the interior-point test where the endpoint test is needed.

The correct calculation uses the available side. Since \(f(0)=0\), for \(h>0\),

$$ \frac{f(0+h)-f(0)}{h} = \frac{h^2-0}{h} = h, \qquad \lim_{h\to0^+}h=0. $$

Therefore the right-hand endpoint derivative is \(f'_+(0)=0\). The conclusion is not that a two-sided derivative has been evaluated on \([0,1]\). It is that the inward one-sided derivative exists. If the function were instead given on a larger domain, a two-sided derivative would be a separate test based on that larger domain.

What to Check in an Endpoint Problem

Before calculating, identify the endpoint and the side that remains inside the domain. Then use the corresponding endpoint value and keep the denominator \(x-a\) or \(x-b\) consistent with the chosen input. Finally, check that the quotient approaches a finite real number. A one-sided limit that diverges or oscillates is not an endpoint derivative.

Endpoint derivatives provide a precise way to discuss instantaneous change at the boundary of a restricted domain. They also prevent a common confusion: a function can have a well-defined inward rate of change at an endpoint even though the two-sided derivative test cannot be applied there. At interior points, the two-sided criterion remains essential; at endpoints, the domain determines the appropriate one-sided test.

Check Your Understanding

For each question, identify the relevant one-sided limit before evaluating it.

  1. For \(f(x)=x^2-2x\) on \([0,3]\), write the difference quotient for the right-hand derivative at \(0\).
  2. For the same function, write the inward difference quotient at the right endpoint \(3\), using \(h>0\).
  3. If an endpoint quotient approaches \(-4\) from the inward side, what is the endpoint derivative?
  4. Why is a two-sided derivative test not required at the left endpoint of a restricted interval?
  5. Does a quotient that increases without bound as the inward increment approaches \(0\) define a finite endpoint derivative? Explain.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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
Clinical Biostats