Calculus with "a" Non-Smooth Function

Calculus Level 3

Let f ( x ) = x a f(x)= |x-a| and g ( x ) = 2 f ( x ) 2 f ( x ) + 3 g(x)= 2f(x)^2-f(x)+3 . Find the minimum possible value of g ( x ) g(x) .

Notation: |\cdot| denotes the absolute value function .


The answer is 2.875.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Leonel Castillo
Jul 4, 2018

The value of a a is irrelevant because extreme values are not affected by horizontal translation. Let's pick a = 0 a = 0 for convenience and study g ( x ) = 2 x 2 x + 3 = 2 x 2 x + 3 g(x) = 2|x|^2 - |x| + 3 = 2x^2 - |x| + 3 .

Let's now search for critical points. We know that x |x| is not differentiable at x = 0 x=0 so we should consider it. g ( 0 ) = 3 g(0) = 3 . Otherwise, we may restrict the function to the open set R { 0 } \mathbb{R} - \{ 0 \} and study it normally, remembering that x = s g n ( x ) |x|' = sgn(x) .

g ( x ) = 0 4 x s g n ( x ) = 0 4 x = s g n ( x ) 4 x = 1 x = 1 4 g'(x) = 0 \\ 4x - sgn(x) = 0 \\ 4x = sgn(x) \\ 4|x| = 1 \\ |x| = \frac{1}{4}

To go from the third to the fourth line I divided both sides by s g n ( x ) sgn(x) . So the other critical points are 1 4 , 1 4 \frac{-1}{4}, \frac{1}{4} . Evaluating at these points (symmetry means we only need to check one) we get f ( 1 4 ) = 3 1 8 f \left( \frac{1}{4} \right) = 3 - \frac{1}{8} which we know is smaller than 3 3 so it is our minimum.

Note that f ( x ) = x a 0 f(x) = |x-a| \ge 0 is symmetrical about x = a x=a , where f ( a ) = 0 f(a)=0 . If we let u = x a u=x-a , then f ( u ) = u f(u) = |u| which is an even function. Then to consider the minimum of g ( x ) g(x) , we need only to consider for u 0 u \ge 0 .

g ( x ) = 2 f ( x ) 2 f ( x ) + 3 = 2 f ( u ) 2 f ( u ) + 3 = 2 u 2 u + 3 Considering for u 0 = 2 u 2 u + 3 = 2 ( u 1 4 ) 1 8 + 3 min ( g ( x ) ) = 3 1 8 = 2.875 when u = 1 4 \begin{aligned} g(x) & = 2f(x)^2 - f(x) + 3 \\ & = 2f(u)^2 - f(u) + 3 \\ & = 2|u|^2 - |u| + 3 & \small \color{#3D99F6} \text{Considering for }u \ge 0 \\ & = 2u^2 - u + 3 \\ & = 2\left(u-\frac 14\right) - \frac 18 + 3 \\ \implies \min (g(x)) & = 3 - \frac 18 = \boxed{2.875} & \small \color{#3D99F6} \text{when }u = \frac 14 \end{aligned}

Zachary Stewart
Jul 1, 2018

g ( x ) = 2 ( x a ) 2 g(x)= 2(\mid x-a \mid)^2 - x a \mid x-a \mid + + 3 3

g ( x ) g'(x) = = 4 x a 4\mid x-a \mid \cdot x a x a \frac{\mid x-a \mid}{x-a} - x a x a \frac{\mid x-a \mid}{x-a}

Set g ( x ) = 0 g'(x)=0 and factor:

0 0 = = x a x a \frac{\mid x-a \mid}{x-a} ( 4 x a 4\mid x-a \mid 1 -1 )

1 1 = = 4 x a 4\mid x-a \mid

1 4 \frac{1}{4} = = x a \mid x-a \mid

This is only true if and only if

x a x-a = = 1 4 \frac{1}{4}

or

x a x-a = = 1 4 -\frac{1}{4}

In our case, both equations will be correct because f ( x ) = x a f(x)=\mid x-a \mid is a transformation of a linear function. This means if we undo the absolute value, then we will get x a x-a which is a linear function defined for all x and y. This means there will be an instance where x a = 1 4 x-a=-\frac{1}{4} and where x a = 1 4 x-a=\frac{1}{4} .

Solving both expressions tells us that

g ( x ) = 0 g'(x)=0 if x = a + 1 4 x=a+ \frac{1}{4} or x = a 1 4 x=a- \frac{1}{4}

Note: g ( x ) g'(x) is undefined at x = a x=a

We can use the First Derivative Test to determine that x = a 1 4 x=a-\frac{1}{4} and x = a + 1 4 x=a+\frac{1}{4} are minimums of g ( x ) g(x) . We can plug both of these values into g ( x ) g(x) and see which output is smaller.

g ( x ) = 2 ( x a ) 2 g(x)= 2(\mid x-a \mid)^2 - x a \mid x-a \mid + + 3 3

Note: ( x a ) 2 = ( x a ) 2 (\mid x-a \mid)^2 = (x-a)^2

g ( a 1 4 ) = 2 ( a 1 4 a ) 2 g(a-\frac{1}{4})= 2(a-\frac{1}{4}-a)^2 - a 1 4 a \mid a-\frac{1}{4}-a \mid + + 3 3

= = 2 ( 1 4 ) 2 1 4 + 3 2 \cdot (\frac{-1}{4})^2 - \mid -\frac{1}{4} \mid + 3

= = 2 16 1 4 + 3 \frac{2}{16} -\frac{1}{4} + 3

= = 2 4 + 48 16 \frac{2-4+48}{16}

= = 46 16 \frac{46}{16}

= = 2.875 2.875

And if you plug a + 1 4 a+\frac{1}{4} into g ( x ) g(x) , you will actually get the same answer.

Thus, the minimum possible output of g ( x ) g(x) is 2.875 \boxed{2.875}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...