The Maths You Actually NeedLesson 24 of 76

Module 3 · Change, slopes and the walk downhill

Convexity, and why nobody promises anything about deep networks

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalCompute a partial derivative and a chain-rule derivative by hand, trace a gradient backwards through a two-layer network and say where the memory goes, and diagnose from a loss curve and a gradient-norm plot whether the learning rate, the curvature or a vanishing gradient is the cause.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

The shape that comes with a guarantee

A function is convex if the straight line between any two points on its graph lies on or above the graph: a bowl, with no dents. The reason anyone cares is a guarantee: a convex function has exactly one minimum region, and gradient descent with a sensible step size will find it, from any starting point. No luck involved, no initialisation to tune.

Convex problems include linear regression with squared loss, logistic regression, support vector machines, and lasso and ridge regression. This is why those methods are so reliable: run the fit twice on the same data and you get the same answer, because there is only one answer to get.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Convexity, and why nobody promises anything about deep networks’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/convexity-and-local-minima (Accessed: 27 November 2026).