Second Derivative Calculator
Enter a function of x to compute f''(x). Optionally enter a value of x to evaluate the second derivative numerically.
What is a second derivative?
The second derivative tells you how the rate of change is changing. If the first derivative f'(x) is slope, then the second derivative f''(x) is how that slope bends. In graph terms, it helps describe concavity:
- If f''(x) > 0, the graph is concave up (cup-shaped).
- If f''(x) < 0, the graph is concave down (cap-shaped).
- If f''(x) = 0, the point may be an inflection point (but you still need to verify).
How to use this calculator
1) Enter your function
Type any function in terms of x, such as x^3, sin(x), ln(x), or combinations like x^2*cos(x).
2) Optionally provide an x-value
If you want a numeric answer, enter an x-value. You can use plain numbers like 2 or expressions like pi/3.
3) Click calculate
The calculator returns your original function, first derivative, second derivative, and (if x is provided) the evaluated value.
Why second derivatives matter
Second derivatives show up in calculus, optimization, economics, machine learning, and physics. They help you understand whether changes are speeding up or slowing down.
- Optimization: classify critical points as local min/max using the second derivative test.
- Physics: if position is s(t), then s''(t) is acceleration.
- Economics: curvature of cost, utility, or production functions.
- Engineering: curvature and stability behavior in models.
Common function syntax supported
- Powers: x^5, x^(1/2)
- Trigonometric: sin(x), cos(x), tan(x)
- Exponential: e^x, exp(x)
- Logarithmic: ln(x), log(x)
- Mixed: x^2*sin(x) + 4*ln(x)
Quick examples
Example A: Polynomial
For f(x) = x^4 - 3x^2 + 2:
f'(x) = 4x^3 - 6x
f''(x) = 12x^2 - 6
Example B: Trigonometric + quadratic
For f(x) = sin(x) + x^2:
f'(x) = cos(x) + 2x
f''(x) = -sin(x) + 2
Example C: Logarithmic
For f(x) = ln(x):
f'(x) = 1/x
f''(x) = -1/x^2 (for x > 0)
Troubleshooting
- Use parentheses clearly: sin(x^2) not sin x^2.
- Use explicit multiplication: 2*x not 2x.
- Check domain restrictions (for example, ln(x) requires x > 0).
- If the function is non-differentiable at a point (like abs(x) at 0), symbolic results may be piecewise or undefined there.
This tool is designed for fast practice and concept checks. For coursework, always show intermediate steps and reasoning when required by your instructor.