Salta al contenuto
Note per Studenti Convex and Concave Functions - Inflection Points Report

Convex and Concave Functions - Inflection Points

In questa pagina 6

Prerequisites: higher derivatives, Monotonicity and the Sign of the DerivativeFor f continuous on [a,b] and differentiable in ]a,b[: f is increasing iff f' >= 0 and decreasing iff f' <= 0; strictly increasing iff f' >= 0 and f' vanishes on no interval (f' > 0 except at isolated points is enough, as for x^3); a sign change of f' from plus to minus gives a strict relative maximum and from minus to plus a strict relative minimum; these are sufficient conditions only.Monotonicity and the Sign of the Derivative →, Rolle's and Lagrange's TheoremsRolle: f continuous on [a,b], differentiable in ]a,b[, f(a) = f(b) implies f'(c) = 0 for some c; Lagrange (mean value theorem): without f(a) = f(b), f'(c) equals the slope of the chord. Consequence: on an interval f is constant if and only if f' = 0, while on a non-interval set f is only piecewise constant (arctan x + arctan(1/x)).Rolle's and Lagrange's Theorems → (equation of the chord).

The second derivative tells which way the graph bends.

Definition

Definition (convex and concave). Let f:(a,b)→Rf: (a, b) \to \mathbb{R}, (a,b)(a, b) any interval. If for all x1<x2x_1 < x_2 in (a,b)(a, b)

  1. f(x)≤f(x1)+f(x2)−f(x1)x2−x1(x−x1)f(x) \le f(x_1) + \dfrac{f(x_2) - f(x_1)}{x_2 - x_1}(x - x_1) for all x∈[x1,x2]x \in [x_1, x_2], ff is convex (strictly convex if << for x∈ ]x1,x2[x \in \,]x_1, x_2[);
  2. f(x)≥f(x1)+f(x2)−f(x1)x2−x1(x−x1)f(x) \ge f(x_1) + \dfrac{f(x_2) - f(x_1)}{x_2 - x_1}(x - x_1) for all x∈[x1,x2]x \in [x_1, x_2], ff is concave (strictly concave if >>).

The right-hand side is the line through P1=(x1,f(x1))P_1 = (x_1, f(x_1)) and P2=(x2,f(x2))P_2 = (x_2, f(x_2)), the chord. So:

  • convex: every chord lies above (or on) the graph, a cup shape ∪\cup;
  • concave: every chord lies below the graph, a dome shape ∩\cap.

Examples. x2x^2 and exe^x are strictly convex; −x2-x^2 and log⁡x\log x strictly concave; ∣x∣|x| is convex but not strictly (on x≥0x \ge 0 the chord coincides with the graph); ax2+bx+cax^2 + bx + c is strictly convex if a>0a > 0, strictly concave if a<0a < 0.

Immediate facts: ff is concave iff −f-f is convex; the functions ax+bax + b are the only ones that are both convex and concave.

Equivalent definition with a parameter

Every point of [x1,x2][x_1, x_2] is x=(1−t)x1+tx2x = (1 - t)x_1 + t x_2, t∈[0,1]t \in [0, 1]. Then ff is convex iff f((1−t)x1+tx2)≤(1−t)f(x1)+tf(x2)∀t∈[0,1]f\big((1 - t)x_1 + t x_2\big) \le (1 - t)f(x_1) + t f(x_2) \qquad \forall t \in [0, 1] (strictly with << for t∈ ]0,1[t \in \,]0, 1[); concave with ≥\ge. Example: x2x^2, x1=0x_1 = 0, x2=2x_2 = 2, t=12t = \frac12: f(1)=1≤12f(0)+12f(2)=2f(1) = 1 \le \frac12 f(0) + \frac12 f(2) = 2.

Properties

Theorem 1 (regularity, without proof). If f:(a,b)→Rf: (a, b) \to \mathbb{R} is convex or concave, then ff is continuous at each interior point, and at each interior x0x_0 the one-sided derivatives f′(x0±)f'(x_0^\pm) exist and are finite. So at every interior point ff is differentiable or has a corner.

Example: ∣x∣|x| is convex, with a corner at 00. A convex function cannot have jumps, cusps or vertical-tangent inflections at interior points (at the endpoints anything can happen).

Theorem 2 (characterisation). Let ff be continuous on (a,b)(a, b) and differentiable in ]a,b[]a, b[. The following are equivalent:

  1. ff is convex;
  2. for all x0,x∈ ]a,b[x_0, x \in \,]a, b[: f(x)≥f(x0)+f′(x0)(x−x0)f(x) \ge f(x_0) + f'(x_0)(x - x_0), i.e. the graph lies above every tangent;
  3. f′f' is increasing in ]a,b[]a, b[.

If ff is also twice differentiable in ]a,b[]a, b[, they are equivalent to 4. f′′(x)≥0f''(x) \ge 0 for all x∈ ]a,b[x \in \,]a, b[.

For concave: ≤\le in 2 (graph below tangents), f′f' decreasing, f′′≤0f'' \le 0.

Example. f=exf = e^x has f′′=ex>0f'' = e^x > 0, so it is convex, and the graph lies above the tangent at 00: ex≥1+xe^x \ge 1 + x.

Why 3   ⟺  \iff 4. It is the monotonicity test applied to f′f': f′f' is increasing iff (f′)′=f′′≥0(f')' = f'' \ge 0.

f′′>0f'' > 0 suffices but is not necessary

If f′′>0f'' > 0 on ]a,b[]a, b[, ff is strictly convex (f′f' strictly increasing). But f(x)=x4f(x) = x^4 is strictly convex although f′′(x)=12x2f''(x) = 12x^2 vanishes at 00: f′=4x3f' = 4x^3 is strictly increasing, with an isolated zero.

Inflection points

Definition. Let ff be continuous on ]x0−δ,x0+δ[]x_0 - \delta, x_0 + \delta[. If ff is convex on ]x0−δ,x0[]x_0 - \delta, x_0[ and concave on ]x0,x0+δ[]x_0, x_0 + \delta[, or vice versa, x0x_0 is an inflection point.

Example. x3x^3, f′′=6xf'' = 6x: concave for x<0x < 0, convex for x>0x > 0, so 00 is an inflection.

At an inflection the derivative, if it exists, may be any number (also 00, as for x3x^3) or ±∞\pm\infty (as for x3\sqrt[3]{x} at 00, a vertical-tangent inflection). Where ff is convex the tangent lies below the graph, where concave above: at an inflection the graph crosses the tangent.

Theorem 3 (necessary condition). Let ff be differentiable in ]a,b[]a, b[. If x0x_0 is an inflection point and f′′(x0)f''(x_0) exists, then f′′(x0)=0f''(x_0) = 0.

Proof. Suppose ff concave on the left and convex on the right. By Theorem 2, f′f' is decreasing on the left and increasing on the right: x0x_0 is a relative minimum of f′f'. f′f' is differentiable at the interior point x0x_0, so Fermat's theorem applied to f′f' gives f′′(x0)=0f''(x_0) = 0. ■\blacksquare

Only necessary. x4x^4 has f′′(0)=0f''(0) = 0 but 00 is not an inflection (convex on both sides). To find inflections study the sign of f′′f'', not only its zeros.

Use in curve sketching

  1. Compute f′′f'' where it exists.
  2. Study its sign: f′′>0f'' > 0 convex, f′′<0f'' < 0 concave.
  3. Inflections are the points of the domain, where ff is continuous, at which the sign of f′′f'' changes.

Summary table

convex (∪\cup) concave (∩\cap)
chords above the graph below the graph
tangents below the graph above the graph
f′f' increasing decreasing
f′′f'' ≥0\ge 0 ≤0\le 0
examples x2x^2, exe^x, ∣x∣\lvert x\rvert −x2-x^2, log⁡x\log x, x\sqrt x

Common mistakes

  • Calling a point with f′′(x0)=0f''(x_0) = 0 an inflection: f′′f'' must change sign (x4x^4).
  • Mixing up convex and concave: convex is cup-shaped, with f′′≥0f'' \ge 0.
  • Forgetting inflections where f′′f'' does not exist: x3\sqrt[3]{x} at 00.

Versione ripasso

Definition. ff is convex on an interval if every chord lies above the graph: f((1−t)x1+tx2)≤(1−t)f(x1)+tf(x2)f((1 - t)x_1 + tx_2) \le (1 - t)f(x_1) + tf(x_2) for t∈[0,1]t \in [0, 1]. Concave: reversed. Strict: strict inequalities. ff concave iff −f-f convex; only ax+bax + b is both.

Regularity. Convex or concave implies continuous and finite f′(x0±)f'(x_0^\pm) at interior points (∣x∣|x| has a corner).

Characterisation. For ff continuous and differentiable: convex   ⟺  \iff graph above every tangent f(x)≥f(x0)+f′(x0)(x−x0)f(x) \ge f(x_0) + f'(x_0)(x - x_0)   ⟺  \iff f′f' increasing   ⟺  \iff f′′≥0f'' \ge 0 (if twice differentiable). Example: ex≥1+xe^x \ge 1 + x.

f′′>0f'' > 0 gives strict convexity, but x4x^4 is strictly convex with f′′(0)=0f''(0) = 0.

Inflection. ff changes convexity at x0x_0. If f′′(x0)f''(x_0) exists, f′′(x0)=0f''(x_0) = 0 (proof: x0x_0 is an extremum of f′f', Fermat). Not sufficient: x4x^4. Need a sign change of f′′f''. Examples: x3x^3 (horizontal tangent), x3\sqrt[3]{x} (vertical tangent, f′′f'' does not exist).

convex concave
chords above below
tangents below above
f′f' increasing decreasing
f′′f'' ≥0\ge 0 ≤0\le 0

Typical mistakes. f′′(x0)=0f''(x_0) = 0 without sign change; mixing convex and concave; missing inflections where f′′f'' does not exist.

Teoria collegata