Convexity and stationary points

Problem

Compare f(w)=w2+2w+5f(w)=w^2+2w+5 and g(w)=w4w2g(w)=w^4-w^2. Identify stationary points and state which objective is convex on the real line.

Reveal answer or reference solution

ff has stationary point w=1w=-1 and is strictly convex because f(w)=2f''(w)=2. The stationary points of gg are w=0w=0 and w=±12w=\pm\frac{1}{\sqrt{2}}; gg is not globally convex because g(w)=12w22g''(w)=12w^2-2 is negative near zero.

Local history

Loading attempts saved in this browser…

Use with your agent

Share this URL and your attempt. Ask the agent to start with a clarifying question or the smallest useful hint.

Tutor me on https://mlprep.iwase.dev/machine-learning/optimization/original-ml-optimization/. If window.mlPrepAgent is available, read attempts for item original-ml-optimization before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record and read it back.

Appears in