AI engineering glossary · Calculus optimisation

What is convex function?

Convex function: A function where the line segment between any two points on its graph lies on or above the graph, so it is bowl-shaped. Every local minimum of such a function is a global minimum, which makes gradient-based methods reliable and provably convergent.

Level: intermediateTopic: Calculus optimisation

Convex function: an example

f(x) = x^2 is convex. Linear regression with squared error is a convex problem, so gradient descent will find the best coefficients.

Related terms

More Calculus optimisation terms

Where you learn it

Convex function is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.