Concavity Explorer

Understanding the Shape of Functions

Convex (Concave Up) Animation

A sphere rolling in a concave up (convex) bowl settles at the minimum point

Concave (down) Animation

A sphere rolling off a concave (down) surface demonstrates instability at the maximum

Tangents to Concave Up (convex) Curve

The tangent always lies below the curve. The slope of the tangents increase from negative, through zero, to positive.

Tangents to Concave (down) Curve

The tangent always lies above the curve. The slope of the tangents decrease from positive, through zero, to negative.

Mathematics of Concave Up (convex) Functions

When the graph curves upward like a smile

Convexity image

Definition

A function y = f(x) is concave up (or convex) on an interval if the graph of the function lies above all of its tangent lines on that interval. Visually, the graph curves upward, resembling the shape of a bowl or the letter "U".

Key Insight: For a concave up (convex) function, the rate of change is increasing. As you move from left to right, the slope of the tangent line becomes steeper (more positive or less negative).

Graph and second derivative

For a concave up (convex) region of a curve the gradient of the curve/tangent changes from negative to positive. For this region the graph of the gradient (derivative) is increasing (from negative to positive). Hence the gradient curve has itself a positive gradient, that is, the second derivative is positive.

Second Derivative Test

The primary mathematical test for concavity uses the second derivative:

If f''(x) > 0 for all x in an interval, then f is concave up (convex) on that interval

The second derivative f''(x) measures the rate of change of the first derivative f'(x). When f''(x) is positive, the slope is increasing, creating the upward curve.

EXAMPLE: f(x) = x²

First derivative: f'(x) = 2x

Second derivative: f''(x) = 2

Since f''(x) = 2 > 0 for all x, the parabola y = x² is concave up (convex) everywhere. The vertex at (0,0) represents a minimum point.

Physical Interpretation

Think of the concave up (convex) bowl in the animation. When the sphere is placed anywhere in the bowl, gravity pulls it toward the lowest point. This represents a stable equilibrium—any small displacement results in a force that returns the object to the minimum.

In calculus terms, at a critical point where f'(x) = 0, if f''(x) > 0, then that point is a local minimum. The concave up shape ensures that nearby points have higher function values.

Comparison with Concave (down)

The key differences between concave up (convex) and concave (down) functions:

CONCAVE UP (Convex) (f''(x) > 0)

• Graph curves upward (∪ shape)

• Slope is increasing

• Critical points are local minima

• Stable equilibrium in physical systems

• Graph lies above tangent lines

CONCAVE (DOWN) (f''(x) < 0)

• Graph curves downward (∩ shape)

• Slope is decreasing

• Critical points are local maxima

• Unstable equilibrium in physical systems

• Graph lies below tangent lines

Inflection Points

A function changes from concave up (convex) to concave (down) (or vice versa) at an inflection point. At these points:

f''(x) = 0 and f''(x) changes sign

EXAMPLE: f(x) = x³

First derivative: f'(x) = 3x²

Second derivative: f''(x) = 6x

• When x < 0: f''(x) < 0 (concave (down))

• When x > 0: f''(x) > 0 (concave up (convex) )

The point (0,0) is an inflection point where concavity changes.

Mathematics of Concave (down) Functions

When the graph curves downward like a frown

Concavity image

Definition

A function y = f(x) is concave (down) on an interval if the graph of the function lies below all of its tangent lines on that interval. Visually, the graph curves downward, resembling an upside-down bowl or the letter "∩".

Key Insight: For a concave (down) function, the rate of change is decreasing.

Graph and second derivative

For a concave (down) region of a curve as as point moves from left on x-axis (negative) to right (positive) the gradient of the curve/tangent changes from positive to small positive to zero to increasing negative (or any part of that change in gradient if there is not a turning point along the interval). << visual examples here >> Alternatively, for this region the graph of the gradient (derivative) its value is decreasing (from positive to negative). << visual examples here >> Hence the gradient curve has itself a negative gradient, that is, the second derivative is negative.

Second Derivative Test

The mathematical test for concave (down) behaviour uses the second derivative:

If f''(x) < 0 for all x in an interval, then f is concave (down) on that interval

When f''(x) is negative, the first derivative f'(x) is decreasing. This means the slope of the function is getting less positive and/or more negative, causing the "cave" to point downward.

EXAMPLE: f(x) = -x²

First derivative: f'(x) = -2x

Second derivative: f''(x) = -2

Since f''(x) = -2 < 0 for all x, the inverted parabola y = -x² is concave (down) everywhere. The vertex at (0,0) represents a maximum point.

Physical Interpretation

Consider the concave (down) bowl in the animation (opening downward). When the sphere is placed on top, any slight disturbance causes it to roll away. This represents an unstable equilibrium—the sphere cannot remain at the peak and will naturally move toward lower positions.

In calculus, at a critical point where f'(x) = 0, if f''(x) < 0, then that point is a local maximum. The concave (down) shape ensures that nearby points have lower function values, making the critical point a peak rather than a valley.

Use of second derivative with turning points

Maximum, minimum or something else?

The Second Derivative Test for Extrema

Concavity is essential for classifying critical points:

Given a critical point c where f'(c) = 0:

If f''(c) > 0: concave up (convex) → local minimum at x = c
If f''(c) < 0: concave (down) → local maximum at x = c
If f''(c) = 0: test is inconclusive

This test provides a quick way to classify extrema without analyzing the first derivative on both sides of the critical point.

If the value of f '(c) is not zero but f ''(c) = 0 we can still deduce valuable information about the graph at x = c. See page: Summary of f ''(x) and curvature

Summary of f ''(x) and curvature

An overview of second derivatives, concavity, and inflection points

The Big Picture

The second derivative f''(x) tells us about the curvature or concavity of a function. It measures how the rate of change (first derivative) is itself changing.

Core Concept: While f'(x) tells us if a function is increasing or decreasing, f''(x) tells us if that rate of increase/decrease is itself speeding up or slowing down.

Sign of f''(x) and Concavity

f''(x) > 0 → CONCAVE up (convex) (∪ shape)
• The curve bends upward
• The slope f'(x) is increasing
• The graph lies above its tangent lines
• Examples: y = x², y = eˣ, y = x⁴
f''(x) < 0 → CONCAVE (DOWN) (∩ shape)
• The curve bends downward
• The slope f'(x) is decreasing
• The graph lies below its tangent lines
• Examples: y = -x², y = ln(x), y = -x⁴
f''(x) = 0 → POSSIBLE INFLECTION POINT
• Concavity may change at this point
• Must verify that f''(x) changes sign
• Could also be a "flat spot" in curvature without changing

Inflection Points: When Concavity Changes

An inflection point occurs where the curve changes from concave up to concave down (or vice versa).

Requirements for Inflection Point at x = a:

1. Function is continuous at x = a
2. f''(a) = 0 (or f'' is undefined)
3. f''(x) changes sign at x = a

Two Types:

Horizontal inflection: f'(a) = 0 and f''(a) = 0
  Example: f(x) = x³ at x = 0

Non-horizontal inflection: f'(a) ≠ 0 and f''(a) = 0
  Example: f(x) = x³ - 3x at x = 0

Quick Reference Table

Condition f'(a) f''(a) Classification
Standard minimum = 0 > 0 Local minimum
Standard maximum = 0 < 0 Local maximum
Flat minimum (x⁴) = 0 = 0 Local minimum (check f⁽⁴⁾ > 0)
Flat maximum (-x⁴) = 0 = 0 Local maximum (check f⁽⁴⁾ < 0)
Horizontal inflection (x³) = 0 = 0 Inflection point (f'' changes sign)
Sloped inflection ≠ 0 = 0 Inflection point (f'' changes sign)
Concave up region any > 0 Curve bends upward
Concave down region any < 0 Curve bends downward

Key Takeaways

Remember:
• f' tells you direction (increasing/decreasing)
• f'' tells you curvature (how direction is changing)
• f''(x) > 0 means curving up (∪), f''(x) < 0 means curving down (∩)
• f''(a) = 0 is a candidate for inflection, but must verify sign change
• Not all inflection points have horizontal tangents
• When second derivative test fails (f'' = 0), use alternatives