Consider the function y(x)=x4−x3+2. It holds that
- y′(x)=4x3−3x2;
- y″(x)=12x2−6x.
Solving y″(x)=0 gives
12x2−6x=0⇔12x(x−12)=0⇔x=0 or x=12.
We distinguish the following cases:
- y″(x)≥0 for every x≤0;
- y″(x)=0 for x=0;
- y″(x)≤0 for every 0≤x≤12;
- y″(x)=0 for x=12;
- y″(x)≥0 for every x≥12.
Conclusion: y(x) is concave on the interval [0,12], y(x) is convex on the intervals (−∞,0] and [12,∞), and x=0 and x=12 are inflection points.