If x 0 is the value of x such that the expression 2 0 x + 3 + 2 0 − 3 x attains its maximum over the reals, find ⌊ 1 0 4 ⋅ x 0 ⌋ .
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.
the first solution was brute force using an algorithm ....but suddenly i remember how to get the max value so i do the same solution .....sometimes dealing with symbols is much better than dealing with Semicolons .
Since we just featured the Cauchy Schwarz Inequality Wiki , let me point out an algebraic way of solving this.
2 0 x + 3 + 2 0 − 3 x = 3 1 6 0 x − 9 + 2 0 1 4 0 0 − 6 0 x ≤ ( 3 1 + 2 0 1 ) ( 6 0 x − 9 + 4 0 0 − 6 0 x ) = 6 0 2 3 × 4 0 9
Equality occurs when:
3 1 6 0 x − 9 = 2 0 1 4 0 0 − 6 0 x
which gives us 1 8 0 x − 2 7 = 8 0 0 0 − 1 2 0 0 x ⇒ x = 1 3 8 0 7 9 7 3 .
This approach easily generalizes and teaches us how to deal with f ( x ) + g ( x ) where f ( x ) , g ( x ) are linear functions which have slopes of different signs.
This is beautiful, Calvin. Thank you again!
f ′ ( x ) = 2 × ( 2 0 x + 3 ) 2 0 − 2 × ( 2 0 − 3 x ) 3 2 0 × 2 × ( 2 0 − 3 x ) − 3 × 2 × ( 2 0 x + 3 ) = 0 2 0 × 2 × ( 2 0 − 3 x ) = 3 × 2 × ( 2 0 x + 3 ) 4 0 0 × ( 2 × ( 2 0 − 3 x ) ) = 9 ( 2 ∗ ( 2 0 x + 3 ) ) 4 0 0 × ( 2 0 − 3 x ) = 9 × ( 2 0 x + 3 ) 8 0 0 0 − 1 2 0 0 × x = 1 8 0 × x + 2 7 ( 1 2 0 0 + 1 8 0 ) x = 8 0 0 0 − 2 7 x 0 = 1 2 0 0 + 1 8 0 8 0 0 0 − 2 7 f M A X = 2 0 × x 0 + 3 + 2 0 − 3 × x 0 ⇒ ⌊ 1 0 4 ⋅ x 0 ⌋ = 5 7 7 7 5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
This is a Calculus question, not a Computer Science one.
Well, I made it one. :P
Problem Loading...
Note Loading...
Set Loading...
Let y = ( 2 0 x + 3 ) 2 1 + ( 2 0 − 3 x ) 2 1 .
⇒ d x d y = 2 1 ( 2 0 x + 3 ) 2 1 − 1 ( 2 0 ) + 2 1 ( 2 0 − 3 x ) 2 1 − 1 ( − 3 )
= 2 0 x + 3 1 0 − 2 2 0 − 3 x 3 = 2 2 0 x + 3 2 0 − 3 x 2 0 2 0 − 3 x − 3 2 0 x + 3
We know that y is maximum, when d x d y = 0 , that is when:
2 0 2 0 − 3 x − 3 2 0 x + 3 = 0 ⇒ 2 0 2 0 − 3 x = 3 2 0 x + 3
⇒ 4 0 0 ( 2 0 − 3 x ) = 9 ( 2 0 x + 3 ) ⇒ 8 0 0 0 − 1 2 0 0 x = 1 8 0 x + 2 7
⇒ 1 3 8 0 x = 7 9 7 3 ⇒ x = 1 3 8 0 7 9 7 3
⇒ x = 5 . 7 7 7 5 3 6 2 3 2 ⇒ ⌊ 1 0 4 ˙ x 0 ⌋ = 5 7 7 7 5