Second derivative
A second derivative is the derivative of a function’s first derivative with respect to the same variable, describing how its rate of change varies.
Geometry for Programmers
A second derivative is the derivative of a first derivative and measures the rate of change of a function's slope or tangent direction.
- How it is used
- Connects curve curvature and C2 smoothness to programmable geometric design.
- How deep it goes
- Explains repeated symbolic differentiation, curvature continuity, and polynomial constraints without deriving the curvature formula.
- Examples
- Uses SymPy differentiation of a quadratic, road corners, lines and circles, and constrained polynomial graphs.
- What you can do after
- Apply it via SymPy and polynomial equations to inspect curvature-related behavior and impose derivative constraints.
Read how Geometry for Programmers explains second derivative →
Ensemble Methods for Machine Learning
A second derivative is the derivative of a function's first derivative and describes its local curvature with respect to a variable.
- How it is used
- Guides Newton optimization and supplies Hessian-based weights for Newton boosting.
- How deep it goes
- Explains repeated differentiation, Hessian representation, quadratic approximation, and Newton updates with an implemented example.
- Examples
- Uses the Branin function, logistic loss, and Hessian-weighted residuals to illustrate curvature and optimization.
- What you can do after
- Build it from scratch by computing gradients, Hessians, Newton directions, updates, and convergence checks.
Read how Ensemble Methods for Machine Learning explains second derivative →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
A second derivative measures how the rate of change of a function itself changes with respect to its input.
- How it is used
- Supports faster, curvature-aware optimization in gradient boosting.
- How deep it goes
- Explains curvature, Newton-style updates, and Hessian effects, but does not derive the approximation mathematically.
- Examples
- Uses squared-error boosting and a NewtonianGradientBoosting implementation with Hessian-scaled tree updates.
- What you can do after
- Apply it via Newton-style gradient boosting to adjust update sizes using objective curvature.
Related concepts
- curvaturemeasures · Curvature is a measure of how a curve or surface bends locally, or, for a function, how its slope changes across its input space.
- derivativekind of · A derivative is a mathematical quantity that measures the instantaneous rate of change of a function with respect to an input variable.
- tangent planemeasures · A tangent plane is the plane that locally best approximates a smooth surface at a specified point.
- convexitymeasures · Convexity is the property of a set containing the line segment between any two of its points, or of a function whose value between two points is no greater than the linear interpolation of its endpoint values.
- Newton boostinguses · Newton boosting is a boosting approach that uses first- and second-order loss information to construct successive learners.
- Taylor seriesused by · A Taylor series is a power series whose coefficients are determined by a function’s derivatives evaluated at a specified expansion point.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


