Tutorials › Calculus I › Turning Points In Stock And Cumulative Models

Calculus-Based Model Construction · Tutorial 1478 of 1495

Turning Points In Stock And Cumulative Models

Determine what a derivative’s sign says about turning points in a stock or cumulative quantity, and avoid treating a stationary point as automatically an extremum.

Advanced 11 min read

What You'll Learn

  • Define a local maximum and local minimum relative to a model’s domain.
  • Use positive-to-negative and negative-to-positive derivative changes as sufficient tests for extrema.
  • Apply Fermat’s theorem to identify a necessary condition at a differentiable interior extremum.
  • Distinguish a stock’s turning points from those of a cumulative quantity.
  • Recognize why a zero derivative or an extremum does not always imply a sign change.

Introduction

A stock records how much of something is present at a particular time: for example, the number of items in inventory or the amount of water in a reservoir. A turning point in a stock tells us when it changes direction, from rising to falling or from falling to rising. To locate such points, we examine the sign of the stock’s derivative.

A cumulative quantity is different: it records an amount accumulated over time. Its turning points depend on the rate at which that cumulative quantity changes, which need not be the same function as the stock itself. Keeping the quantity and its rate distinct is essential for interpreting a model correctly.

Local Extrema and Derivative Signs

Definition: Let \(f\) be defined on an interval containing an interior point \(c\). The function \(f\) has a local maximum at \(c\) if there is a \(\delta>0\) such that \(f(x)\le f(c)\) whenever \(x\) is in the domain and \(|x-c|<\delta\). A local minimum is defined by \(f(x)\ge f(c)\) in such a neighborhood. The extremum is strict if the corresponding inequality is strict whenever \(x\ne c\).

A stock \(S(t)\) is increasing where \(S'(t)>0\) and decreasing where \(S'(t)<0\). Therefore, a derivative changing from positive to negative at \(c\) guarantees a local maximum there; a change from negative to positive guarantees a local minimum. These are sufficient tests: when their conditions hold, the claimed extremum follows.

Theorem: Suppose \(f\) is continuous at \(c\), differentiable on each side of \(c\) in a neighborhood, and \(f'(x)>0\) just to the left of \(c\) while \(f'(x)<0\) just to the right. Then \(f\) has a strict local maximum at \(c\). Reversing the two signs gives a strict local minimum.

The reason is that a positive derivative makes the function increase on the left interval, and a negative derivative makes it decrease on the right interval. The Mean Value Theorem justifies each monotonicity claim: for two points in either interval, the difference in function values equals the derivative at an intermediate point multiplied by the difference in inputs. Continuity at \(c\) then gives the comparisons with \(f(c)\).

The sign-change tests are not necessary. A function can have a local extremum even if its derivative does not keep one sign on each side of that point. A different necessary condition applies when the function is differentiable at an interior extremum.

Theorem (Fermat’s theorem): If \(f\) is differentiable at an interior point \(c\) where it has a local maximum or minimum, then \(f'(c)=0\). This condition is necessary, not sufficient: a zero derivative alone does not establish an extremum.

To see why the derivative must vanish, suppose first that \(c\) is a local maximum. For sufficiently small positive \(h\), \(f(c+h)-f(c)\le 0\), so the right difference quotient is nonpositive. For sufficiently small negative \(h\), \(f(c+h)-f(c)\le 0\), but division by \(h<0\) makes the left difference quotient nonnegative. If the derivative exists, the two one-sided limits agree. Their common value must therefore be both nonpositive and nonnegative, hence zero. At a local minimum the inequalities reverse, and the same conclusion follows.

Worked Example: A Stock Reaches a Local Maximum

Worked Example: Finding a Turning Point in Inventory

Suppose inventory, measured in items, is modeled for \(0\le t\le 5\) hours by \(S(t)=100+12t-3t^2\). Find and classify its interior turning point.

Differentiate the stock:

$$ S'(t)=12-6t. $$

Set the derivative equal to zero to find a stationary point:

$$ 12-6t=0 \quad\Longrightarrow\quad 6t=12 \quad\Longrightarrow\quad t=2. $$

For \(0\le t<2\), \(12-6t>0\), so the stock is increasing. For \(2<t\le5\), \(12-6t<0\), so the stock is decreasing. The derivative changes from positive to negative, which gives a local maximum at \(t=2\). Its value is

$$ S(2)=100+12(2)-3(2)^2 =100+24-12 =112\text{ items}. $$

Check by substitution into the derivative: \(S'(2)=12-6(2)=0\). Also, for every \(t\), \(S(t)=112-3(t-2)^2\), so \(S(t)\le112\), with equality at \(t=2\). This confirms the maximum directly.

Worked Example: A Cumulative Total Turns at Its Own Rate’s Sign Change

Worked Example: Classifying Extrema of a Cumulative Quantity

Let a cumulative quantity \(C(t)\), measured in units, have rate \(C'(t)=q(t)=(t-1)(t-3)\) on \(0\le t\le4\). Find and classify its interior turning points. The constant initial value of \(C\) is irrelevant to their locations.

The rate is zero at \(t=1\) and \(t=3\). Check its sign on the intervals between and around those times:

$$ q(0)=(-1)(-3)=3>0,\qquad q(2)=(1)(-1)=-1<0,\qquad q(4)=(3)(1)=3>0. $$

Since the factors change sign only at \(1\) and \(3\), \(q\) is positive before \(1\), negative between \(1\) and \(3\), and positive after \(3\). Thus \(C\) changes from increasing to decreasing at \(1\), giving a local maximum, and from decreasing to increasing at \(3\), giving a local minimum.

For a direct check, integrate the rate:

$$ C(t)=\frac{t^3}{3}-2t^2+3t+K, $$

where \(K\) is a constant. Differentiating gives \(C'(t)=t^2-4t+3=(t-1)(t-3)\), as specified. The critical values are

$$ C(1)=\frac{1}{3}-2+3+K=K+\frac{4}{3}, \qquad C(3)=9-18+9+K=K. $$

The first value is a local maximum and the second a local minimum. The additive constant shifts the cumulative total vertically but does not change its rate or the turning-point times.

Why a Stock’s Turning Point Need Not Be a Cumulative Turning Point

For any differentiable stock \(S(t)\), a turning point of the stock is about the sign of \(S'(t)\): the stock’s rate of change. For a cumulative quantity \(C(t)\), its turning points are about the sign of \(C'(t)\), its own rate. These rates are not automatically the same.

For example, suppose a cumulative total is formed by accumulating the stock itself, so that \(C'(t)=S(t)\). If the stock remains positive, then \(C\) is increasing, even when the stock has a local maximum. In the inventory example, \(S(t)=112-3(t-2)^2\) is positive throughout \(0\le t\le5\). Consequently, \(C'(t)=S(t)>0\) throughout that interval, so the cumulative total has no interior turning point there. The stock peaks at \(t=2\), but the cumulative total does not.

In another model, a cumulative total might accumulate a flow \(q(t)\), so \(C'(t)=q(t)\). Then the cumulative total turns when the flow changes sign, not merely when some related stock has a maximum or minimum. Always identify the quantity being differentiated before applying a sign test.

Key distinction: A stock \(S\) has a turning point when its rate \(S'\) supports a local extremum. A cumulative quantity \(C\) has a turning point when its own rate \(C'\) supports a local extremum. The stock and cumulative total can therefore turn at different times—or one can turn while the other does not.

Worked Example: An Extremum Without a Derivative Sign Change

Worked Example: A Strict Maximum with Oscillating Derivative

Define \(f(0)=0\) and, for \(x\ne0\), let \(f(x)=-x^2(2+\sin(1/x))\). Show that \(f\) has a strict local maximum at zero even though its derivative takes both signs arbitrarily close to zero.

Since \(-1\le\sin(1/x)\le1\), we have \(1\le2+\sin(1/x)\le3\). Thus, for every \(x\ne0\),

$$ f(x)=-x^2(2+\sin(1/x))<0=f(0). $$

This proves that zero is a strict local maximum; in fact, the inequality holds for every nonzero \(x\).

First check differentiability at zero using the difference quotient:

$$ \frac{f(h)-f(0)}{h} =-h\bigl(2+\sin(1/h)\bigr). $$

Its absolute value is at most \(3|h|\), which tends to zero as \(h\to0\). Therefore \(f'(0)=0\). For \(x\ne0\), the product and chain rules give

$$ f'(x)=-2x\bigl(2+\sin(1/x)\bigr)+\cos(1/x). $$

To verify that both signs occur arbitrarily close to zero, take \(x_n=1/(2\pi n)\) for positive integers \(n\). Then \(\sin(1/x_n)=0\), \(\cos(1/x_n)=1\), and \(f'(x_n)=1-4x_n\), which is positive for \(n\ge1\). Next take \(y_n=1/((2n+1)\pi)\). Then \(\sin(1/y_n)=0\), \(\cos(1/y_n)=-1\), and \(f'(y_n)=-1-4y_n<0\). Both sequences approach zero. Hence the derivative does not have a fixed positive sign on one side or a fixed negative sign there, despite the strict maximum.

This example confirms the distinction: the derivative sign-change test is sufficient, not necessary. Fermat’s theorem still applies, because \(f'(0)=0\).

Common Pitfalls

Pitfall 1: Treating a zero derivative as proof of a turning point. For \(g(t)=t^3\), \(g'(t)=3t^2\), so \(g'(0)=0\). But \(g(t)<0\) for \(t<0\) and \(g(t)>0\) for \(t>0\); zero is not a local maximum or minimum. A stationary point may fail to be an extremum.

Correction: Use the derivative’s signs on both sides to apply a sufficient sign-change test, or compare function values directly. Do not infer an extremum from \(f'(c)=0\) alone. Conversely, do not insist that a derivative must change sign in order for an extremum to exist; the oscillating example demonstrates why.

Pitfall 2: Using the stock’s rate to classify a cumulative total without checking what the total accumulates. The correct test for a cumulative quantity \(C\) uses \(C'\). If \(C'=S\), the relevant sign is the stock’s sign; if \(C'=q\), it is the flow’s sign. First write the model relationship, then analyze the appropriate derivative.

Finally, these tests concern interior points. At an endpoint of a time interval, a model may have a one-sided maximum or minimum even when the derivative does not vanish there. Fermat’s theorem requires an interior point, so it does not rule out endpoint extrema.

Check Your Understanding

Use the definitions and derivative-sign reasoning above to answer the following questions.

  1. If a stock’s derivative is positive just before \(t=c\) and negative just after, what kind of local extremum does the stock have at \(c\)?
  2. What does Fermat’s theorem say about the derivative at a differentiable interior local minimum? Does that condition alone guarantee a minimum?
  3. If \(C'(t)=S(t)\) and \(S(t)>0\) throughout an interval, can \(C\) have an interior local maximum there?
  4. Why does \(g(t)=t^3\) show that a zero derivative is not sufficient for a local extremum?
  5. Can a differentiable function have a strict local extremum even if its derivative takes both signs arbitrarily close to that point? Explain briefly.

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