Second Derivative Calculator
Calculate the second derivative of a function for concavity and inflection point analysis. Enter values for instant results with step-by-step formulas.
Calculator
Adjust values & calculateFormula
The second derivative is found by differentiating the first derivative. For polynomials, apply the power rule twice. Concave up when f''(x) > 0, concave down when f''(x) < 0. Inflection points occur where f''(x) = 0 and concavity changes.
Last reviewed: December 2025
Worked Examples
Example 1: Cubic Polynomial Concavity Analysis
Example 2: Second Derivative Test for Extrema
Background & Theory
The Second Derivative Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Second Derivative Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Formula
f''(x) = d/dx[f'(x)] = d^2f/dx^2
The second derivative is found by differentiating the first derivative. For polynomials, apply the power rule twice. Concave up when f''(x) > 0, concave down when f''(x) < 0. Inflection points occur where f''(x) = 0 and concavity changes.
Worked Examples
Example 1: Cubic Polynomial Concavity Analysis
Problem: Find the second derivative, concavity, and inflection point for f(x) = 2x^3 - 6x^2 + 4x - 1 at x = 3.
Solution: f(x) = 2x^3 - 6x^2 + 4x - 1\nf'(x) = 6x^2 - 12x + 4\nf''(x) = 12x - 12\nf''(3) = 12(3) - 12 = 36 - 12 = 24\nSince f''(3) > 0, the function is concave up at x = 3\nInflection point: f''(x) = 0 => 12x - 12 = 0 => x = 1\nf(1) = 2 - 6 + 4 - 1 = -1, so inflection at (1, -1)
Result: f''(3) = 24 (Concave Up) | Inflection Point: (1, -1)
Example 2: Second Derivative Test for Extrema
Problem: For f(x) = x^3 - 3x^2 + 1, find and classify all critical points using the second derivative test.
Solution: f'(x) = 3x^2 - 6x = 3x(x - 2)\nCritical points: x = 0 and x = 2\nf''(x) = 6x - 6\nf''(0) = -6 < 0, so x = 0 is a local maximum, f(0) = 1\nf''(2) = 6 > 0, so x = 2 is a local minimum, f(2) = -3\nInflection point: f''(x) = 0 => x = 1
Result: Local max at (0, 1) | Local min at (2, -3) | Inflection at x = 1
Frequently Asked Questions
What is the second derivative and what does it tell you?
The second derivative is the derivative of the first derivative, representing the rate of change of the rate of change of a function. While the first derivative tells you the slope or velocity, the second derivative tells you how that slope is changing, which corresponds to acceleration in physics. A positive second derivative means the function is concave up (shaped like a cup), while a negative second derivative means the function is concave down (shaped like a cap). The second derivative is essential for determining whether critical points found by the first derivative are local maxima, local minima, or neither.
How do you find the second derivative of a polynomial?
To find the second derivative of a polynomial, apply the power rule twice. The power rule states that the derivative of ax^n is n times a times x^(n-1). For example, for f(x) = 3x^4 + 2x^3 - 5x^2 + x - 7, the first derivative is 12x^3 + 6x^2 - 10x + 1, and the second derivative is 36x^2 + 12x - 10. Each differentiation reduces the power of each term by one, so a cubic polynomial produces a linear second derivative and a quadratic polynomial produces a constant second derivative. Terms with x^1 disappear after the second derivative, and constant terms vanish after the first.
What are inflection points and how does the second derivative find them?
An inflection point is where a function changes its concavity, transitioning from concave up to concave down or vice versa. To find inflection points, set the second derivative equal to zero and solve for x, then verify that the concavity actually changes at those points. A zero second derivative is necessary but not sufficient for an inflection point because the concavity must actually switch sign. For example, f(x) = x^4 has a second derivative of 12x^2, which equals zero at x = 0, but there is no inflection point because the second derivative is positive on both sides. Inflection points are important in economics for identifying points of diminishing returns.
What is the second derivative test for local extrema?
The second derivative test is a method to classify critical points as local maxima or minima. First, find the critical points by setting the first derivative equal to zero. Then evaluate the second derivative at each critical point. If the second derivative is positive at that point, the function is concave up and the critical point is a local minimum. If the second derivative is negative, the function is concave down and the critical point is a local maximum. If the second derivative equals zero, the test is inconclusive and you must use the first derivative test instead. This test is faster than the first derivative test when the second derivative is easy to compute.
How does the second derivative relate to acceleration in physics?
In physics, if position is described by s(t), the first derivative s'(t) gives velocity, and the second derivative s''(t) gives acceleration. This is because velocity measures how position changes over time, and acceleration measures how velocity changes over time. Positive acceleration means the object is speeding up (if moving forward) or slowing down (if moving backward), while negative acceleration means the opposite. For example, an object in freefall has a position function s(t) = -4.9t^2 + v0t + s0, a velocity function s'(t) = -9.8t + v0, and a constant acceleration of s''(t) = -9.8 m/s^2, which is gravitational acceleration.
What is the second derivative of trigonometric functions?
The second derivatives of trigonometric functions follow cyclic patterns. The second derivative of sin(x) is -sin(x), and the second derivative of cos(x) is -cos(x). This means that differentiating sin(x) four times returns to sin(x), creating a cycle of period 4. For the general form a*sin(bx + c), the first derivative is a*b*cos(bx + c), and the second derivative is -a*b^2*sin(bx + c). This negative relationship between a trig function and its second derivative is the mathematical basis for simple harmonic motion, wave equations, and oscillatory systems in physics and engineering.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy