Let f ( x ) = ∣ x − a ∣ and g ( x ) = 2 f ( x ) 2 − f ( x ) + 3 . Find the minimum possible value of g ( x ) .
Notation: ∣ ⋅ ∣ denotes the absolute value function .
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.
Note that f ( x ) = ∣ x − a ∣ ≥ 0 is symmetrical about x = a , where f ( a ) = 0 . If we let u = x − a , then f ( u ) = ∣ u ∣ which is an even function. Then to consider the minimum of g ( x ) , we need only to consider for u ≥ 0 .
g ( x ) ⟹ min ( g ( x ) ) = 2 f ( x ) 2 − f ( x ) + 3 = 2 f ( u ) 2 − f ( u ) + 3 = 2 ∣ u ∣ 2 − ∣ u ∣ + 3 = 2 u 2 − u + 3 = 2 ( u − 4 1 ) − 8 1 + 3 = 3 − 8 1 = 2 . 8 7 5 Considering for u ≥ 0 when u = 4 1
g ( x ) = 2 ( ∣ x − a ∣ ) 2 − ∣ x − a ∣ + 3
g ′ ( x ) = 4 ∣ x − a ∣ ⋅ x − a ∣ x − a ∣ − x − a ∣ x − a ∣
Set g ′ ( x ) = 0 and factor:
0 = x − a ∣ x − a ∣ ( 4 ∣ x − a ∣ − 1 )
1 = 4 ∣ x − a ∣
4 1 = ∣ x − a ∣
This is only true if and only if
x − a = 4 1
or
x − a = − 4 1
In our case, both equations will be correct because f ( x ) = ∣ x − a ∣ is a transformation of a linear function. This means if we undo the absolute value, then we will get x − a which is a linear function defined for all x and y. This means there will be an instance where x − a = − 4 1 and where x − a = 4 1 .
Solving both expressions tells us that
g ′ ( x ) = 0 if x = a + 4 1 or x = a − 4 1
Note: g ′ ( x ) is undefined at x = a
We can use the First Derivative Test to determine that x = a − 4 1 and x = a + 4 1 are minimums of g ( x ) . We can plug both of these values into g ( x ) and see which output is smaller.
g ( x ) = 2 ( ∣ x − a ∣ ) 2 − ∣ x − a ∣ + 3
Note: ( ∣ x − a ∣ ) 2 = ( x − a ) 2
g ( a − 4 1 ) = 2 ( a − 4 1 − a ) 2 − ∣ a − 4 1 − a ∣ + 3
= 2 ⋅ ( 4 − 1 ) 2 − ∣ − 4 1 ∣ + 3
= 1 6 2 − 4 1 + 3
= 1 6 2 − 4 + 4 8
= 1 6 4 6
= 2 . 8 7 5
And if you plug a + 4 1 into g ( x ) , you will actually get the same answer.
Thus, the minimum possible output of g ( x ) is 2 . 8 7 5
Problem Loading...
Note Loading...
Set Loading...
The value of a is irrelevant because extreme values are not affected by horizontal translation. Let's pick a = 0 for convenience and study g ( x ) = 2 ∣ x ∣ 2 − ∣ x ∣ + 3 = 2 x 2 − ∣ x ∣ + 3 .
Let's now search for critical points. We know that ∣ x ∣ is not differentiable at x = 0 so we should consider it. g ( 0 ) = 3 . Otherwise, we may restrict the function to the open set R − { 0 } and study it normally, remembering that ∣ x ∣ ′ = s g n ( x ) .
g ′ ( x ) = 0 4 x − s g n ( x ) = 0 4 x = s g n ( x ) 4 ∣ x ∣ = 1 ∣ x ∣ = 4 1
To go from the third to the fourth line I divided both sides by s g n ( x ) . So the other critical points are 4 − 1 , 4 1 . Evaluating at these points (symmetry means we only need to check one) we get f ( 4 1 ) = 3 − 8 1 which we know is smaller than 3 so it is our minimum.