Concavity Calculator

Determine the concavity of any function at a given point using the second derivative test. Enter your coefficient and power, and this calculator computes f(x), f'(x), and f''(x) to tell you exactly whether the curve is concave up or concave down at x.

Understanding Concavity and the Second Derivative

Concavity is one of the most important concepts in differential calculus. While the first derivative tells you whether a function is increasing or decreasing, the second derivative tells you how it is increasing or decreasing — is the rate of change itself speeding up or slowing down?

A function f(x) is concave up on an interval when f''(x) > 0. Geometrically, the graph curves upward like the inside of a bowl. Tangent lines lie below the curve, and if the function has a critical point there, it is a local minimum.

A function is concave down when f''(x) < 0. The graph curves downward like the top of a hill. Tangent lines lie above the curve, and critical points in this region are local maxima.

The transition between concave up and concave down — where f''(x) = 0 and the sign changes — marks an inflection point. Classic examples include f(x) = x³ at x = 0, where the curve switches from concave down to concave up.

How to Find Concavity Step-by-Step

For a power function f(x) = cxⁿ, the process is mechanical:

  1. First derivative: f'(x) = c·n·xⁿ⁻¹
  2. Second derivative: f''(x) = c·n·(n-1)·xⁿ⁻²
  3. Evaluate at x: Substitute your x value into f''(x)
  4. Interpret: f''(x) > 0 → concave up; f''(x) < 0 → concave down; f''(x) = 0 → check further

Example: For f(x) = 2x³ at x = 1:

  • f'(x) = 6x²
  • f''(x) = 12x
  • f''(1) = 12 > 0 → concave up at x = 1

At x = -1: f''(-1) = -12 < 0 → concave down at x = -1. The inflection point is at x = 0 where f''(0) = 0.

Applications of Concavity in Mathematics and Beyond

Concavity analysis is essential in optimization problems. In calculus courses, you use it to classify critical points found from the first derivative. In economics, a concave down revenue function signals diminishing returns — each additional unit sold adds less revenue than the previous. A concave up cost function means costs accelerate with production volume.

In statistics, concavity determines whether a function is convex or concave, which affects optimization algorithms. Gradient descent methods in machine learning rely on the loss function's curvature to converge efficiently. Convex functions (concave up everywhere) guarantee that any local minimum is a global minimum — a property exploited in convex optimization.

Physics uses concavity in potential energy analysis: a concave up potential energy curve at an equilibrium point indicates stable equilibrium (the object returns after small displacements). Concave down indicates unstable equilibrium.

For a complete analysis of any polynomial or transcendental function, combine concavity with critical points (from f'(x) = 0) to produce a full curve sketch showing increasing/decreasing intervals, local extrema, and inflection points.

Frequently Asked Questions

What is concavity in calculus?

Concavity describes the curvature direction of a function. A function is concave up on an interval where its second derivative f''(x) > 0 — the curve bends like a bowl. It is concave down where f''(x) < 0 — the curve bends like an arch.

How do you determine concavity?

Take the second derivative of the function. If f''(x) > 0 at a point, the function is concave up there. If f''(x) < 0, it is concave down. If f''(x) = 0, that point is a candidate inflection point — verify by checking sign change.

What is an inflection point?

An inflection point is where the concavity changes — from concave up to concave down or vice versa. At an inflection point, f''(x) = 0 or is undefined, and f'' must change sign on either side.

What is the second derivative test for concavity?

For a critical point where f'(c) = 0: if f''(c) > 0, the point is a local minimum (concave up). If f''(c) < 0, it is a local maximum (concave down). If f''(c) = 0, the test is inconclusive.

Can a function be concave up everywhere?

Yes. Functions like f(x) = x² or f(x) = eˣ are concave up everywhere because their second derivative is always positive. These are called convex functions in optimization.

How does this calculator compute concavity for cxⁿ?

For f(x) = cxⁿ, the first derivative is f'(x) = cnxⁿ⁻¹ and the second derivative is f''(x) = cn(n-1)xⁿ⁻². The calculator evaluates f''(x) at your specified x value and reports whether the result is positive (concave up) or negative (concave down).