Skip to main content

Question 11.4

Solutions

TZ
leumasicOfficial

2 months ago

a) We can assert that ff has a global minimum since it is a polynomial of even degree with a positive leading coefficient. A thorough analysis of why this is true first comes from realizing that

limxf(x)=limxf(x)=.\lim_{x \to \infty} f(x) = \lim_{x \to -\infty} f(x) = \infty.

This means that for any M>0M > 0, there exists δ>0\delta > 0 such that

xR,x>δ    f(x)>M.\forall x \in \mathbb{R}, \quad |x| > \delta \implies f(x) > M.

Let M=f(0)M = f(0). Then,

xR,x>δ    f(x)>f(0).\forall x \in \mathbb{R}, \quad |x| > \delta \implies f(x) > f(0).

Now consider the interval [M,M][-M, M]. We know that ff is continuous over this interval (since ff is a sum of continuous functions) and therefore it attains a minimum value at f(c)f(c) for some point c[M,M]c \in [-M, M]. Hence,

x[M,M],f(c)f(x)\forall x \in [-M, M], \quad f(c) \le f(x)

and

x[M,M],f(c)f(0)<f(x).\forall x \notin [-M, M], \quad f(c) \le f(0) < f(x).

Hence, f(c)f(x)f(c) \le f(x) for all xx and therefore cc is the global minimum point of ff.

We can now apply the interior extremum theorem to the interval (M,M)(-M, M) over which cc is a minimum point and at which ff is also differentiable, being a polynomial, and get

f(c)=0    i=1n2(cai)=0    nc=i=1nai    c=i=1nain.\begin{align*} f'(c) = 0 &\implies \sum_{i=1}^n 2(c - a_i) = 0 \\ &\implies nc = \sum_{i=1}^n a_i \\ &\implies c = \frac{\sum_{i=1}^n a_i}{n}. \end{align*}

b) Spivak gives us the hint of considering f(y)f(x)f(y) - f(x) for x[aj1,aj]x \in [a_{j-1}, a_j] and y[aj,aj+1]y \in [a_j, a_{j+1}]. The expression gives

f(y)f(x)=i=1nyaii=1nxai=i=1n(yaixai).\begin{align*} f(y) - f(x) &= \sum_{i=1}^n |y - a_i| - \sum_{i=1}^n |x - a_i| \\ &= \sum_{i=1}^n \left(|y - a_i| - |x - a_i|\right). \end{align*}

Notice that for ij+1i \ge j + 1,

yaixai=(yx)|y - a_i| - |x - a_i| = -(y - x)

and for ij1i \le j - 1,

yaixai=yx.|y - a_i| - |x - a_i| = y - x.

Thus,

f(y)f(x)=(j1)(yx)(nj)(yx)+xajyajf(y) - f(x) = (j - 1)(y - x) - (n - j)(y - x) + |x - a_j| - |y - a_j|

and therefore

f(y)f(x)=(2jn1)(yx)+xajyaj.f(y) - f(x) = (2j - n - 1)(y - x) + |x - a_j| - |y - a_j|.

Now if xaj=yaj|x - a_j| = |y - a_j|, then

f(y)f(x)=(2jn1)(yx).f(y) - f(x) = (2j - n - 1)(y - x).

Notice that for odd values of nn, the difference is negative for j<n+12j < \frac{n+1}{2}, 00 at the midpoint, and positive for j>n+12j > \frac{n+1}{2}. In this case the minimum value is

f(an+12).f\left(a_{\frac{n+1}{2}}\right).

For even values of nn, we notice the same decreasing and increasing function pattern but over jn2j \le \frac{n}{2} and j>n2j > \frac{n}{2} respectively. This hints at the minimum being within the interval [an2,an2+1]\left[a_{\frac{n}{2}}, a_{\frac{n}{2} + 1}\right]. In fact, if x,y[an2,an2+1]x, y \in \left[a_{\frac{n}{2}}, a_{\frac{n}{2} + 1}\right] and xyx \le y then

yajxaj={yx,jn2,(yx),j>n2.|y - a_j| - |x - a_j| = \begin{cases} y - x, & j \le \frac{n}{2}, \\ -(y - x), & j > \frac{n}{2}. \end{cases}

Hence,

f(y)f(x)=i=1nyaixai=n2(yx)+n2((yx))=0.\begin{align*} f(y) - f(x) &= \sum_{i=1}^n |y - a_i| - |x - a_i| \\ &= \frac{n}{2}(y - x) + \frac{n}{2} (-(y - x)) \\ &= 0. \end{align*}

Thus, for even values of nn we conclude that the minimum value is f(z)f(z) for z[an2,an2+1]z \in \left[a_{\frac{n}{2}}, a_{\frac{n}{2} + 1}\right].

c) We have that

f(x)=sign(x)(1+x)2sign(xa)(1+xa)2f'(x) = -\frac{\operatorname{sign}(x)}{(1 + |x|)^2} - \frac{\operatorname{sign}(x - a)}{(1 + |x - a|)^2}

for x0x \ne 0 and xax \ne a. Consider now its critical points:

f(x)=0    sign(x)(1+x)2=sign(xa)(1+xa)2.f'(x) = 0 \implies \frac{\operatorname{sign}(x)}{(1 + |x|)^2} = -\frac{\operatorname{sign}(x - a)}{(1 + |x - a|)^2}.

We see that ff has critical points neither for x<0x < 0 nor for x>ax > a. For 0<x<a0 < x < a, we have

f(x)=0    1(1+x)2=1(1+xa)2    x=xa    x2=(xa)2    x2=x22ax+a2    x=a2.\begin{align*} f'(x) = 0 &\implies \frac{1}{(1 + |x|)^2} = \frac{1}{(1 + |x - a|)^2} \\ &\implies |x| = |x - a| \\ &\implies x^2 = (x - a)^2 \\ &\implies x^2 = x^2 - 2ax + a^2 \\ &\implies x = \frac{a}{2}. \end{align*}

The values of ff at notable points include

f(0)=1+11+a,f(0) = 1 + \frac{1}{1 + a},f(a2)=11+a2+11+a2=42+a,f\left(\frac{a}{2}\right) = \frac{1}{1 + \frac{a}{2}} + \frac{1}{1 + \frac{a}{2}} = \frac{4}{2 + a},f(a)=11+a+1.f(a) = \frac{1}{1 + a} + 1.

Since ff' is positive for x<0x < 0, negative for 0<x<a20 < x < \frac{a}{2}, positive again for a2<x<a\frac{a}{2} < x < a, and negative again for x>ax > a, then the maximum value of ff is

11+a+1.\frac{1}{1 + a} + 1.
0
Submit a solution
Optional • Markdown

Sign in to share your solution for this question.

Sign in

Navigate

Q 11.4

Navigate

Q 11.4