k is uniformly chosen from the interval [ − 5 , 5 ] . Let p be the probability that the quadratic f ( x ) = x 2 + k x + 1 has both roots between -2 and 4. What is the value of ⌊ 1 0 0 0 p ⌋ ?
Details and assumptions
Greatest Integer Function: ⌊ x ⌋ : R → Z refers to the greatest integer less than or equal to x . For example ⌊ 2 . 3 ⌋ = 2 and ⌊ − 3 . 4 ⌋ = − 4 .
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.
All other solutions tried to approach this problem using the quadratic roots formula, and made numerous mistakes along the way.
Common mistakes.
Claiming that solving k 2 − 4 ≤ 8 + k is equivalent to squaring both sides to obtain − 4 . 2 5 ≤ k . This is not true. The solution to the inequality is 4 1 7 ≤ k ≤ − 2 ∪ 2 ≤ k .
Claiming that it is sufficient to solve for the exact values 4 = 2 − k + k 2 − 4 ⇒ k = 2 5 without explaining why this would gives the domain that we are interested in.
Not flipping the sign of the inequality when multiplying by − 1 .
Log in to reply
In the domain of probability you included -5 and 5 but in solution did not had [ ] brackets in all the range so you lose some no.'s . So probability should be [274.999999999...]=274
Log in to reply
Nope. The number 5 occurs with 0 probability, and hence whether it's included or not, doesn't affect the probability. In fact, we could remove a countable number of these values, and still end up with the same probability. Check out this problem .
Furthermore, check out is 0 . 9 9 9 … = 1 ?
Note: 5 is included but -5 isn't
It is given in question" between" so equality does not holds in 2.5 and -17/4.
We note that the given function always has a positive leading coefficient, so the quadratic is a parabola that opens upwards. As such, for the quadratic to have roots between -2 and 4, it is necessary and sufficient to satisfy the following 4 conditions:
It must have real roots. Hence Discriminant ≥ 0 ⇒ k 2 − 4 ≥ 0 ⇒ k ≤ − 2 or k ≥ 2 .
f ( − 2 ) ≥ 0 . Hence ⇒ 4 − 2 k + 1 ≥ 0 ⇒ k ≤ 2 5
f ( 4 ) ≥ 0 . Hence ⇒ 1 6 + 4 k + 1 ≥ 0 ⇒ k ≥ 4 − 1 7
The vertex of the parabola must lie between -2 and 4. Hence − 2 ≤ 2 − k ≤ 4 ⇒ − 8 ≤ k ≤ 4 .
Putting these together we have two possible intervals for k : − 4 1 7 ≤ k ≤ − 2 and 2 ≤ k ≤ 2 5 .
Hence, the probability is p = 5 − ( − 5 ) ( − 2 − ( − 4 1 7 ) ) + ( 2 5 − 2 ) = 1 0 4 1 1 = . 2 7 5 . Thus ⌊ 1 0 0 0 p ⌋ = 2 7 5 .
The roots of f ( x ) by the quadratic formula is 2 − k ± k 2 − 4 . So, we must have − 2 ≤ 2 − k − k 2 − 4 ≤ 4 ⇒ 2 ≤ k ≤ 2 . 5 or k ≤ − 2 and − 2 ≤ 2 − k + k 2 − 4 ≤ 4 ⇒ 2 ≤ k or − 4 . 2 5 ≤ k ≤ − 2 . Combining these 2 inequalities, we get − 4 . 7 5 ≤ k ≤ − 2 or 2 ≤ k ≤ 2 . 5 . Then p = 5 − ( − 5 ) ( 2 . 5 − 2 ) + ( − 2 − ( − 4 . 2 5 ) ) = 1 0 2 . 7 5 . Therefore, ⌊ 1 0 0 0 p ⌋ = 2 7 5 .
The two roots of f ( x ) = x 2 + k x + 1 are 2 − k ± k 2 − 4 . We need these to be real, so k ≥ 2 or k ≤ − 2 . If they are real, then they must be between − 2 and 4 , so − 2 ≤ 2 − k ± k 2 − 4 ≤ 4 . Rearranging, we get that − 4 + k ≤ ± k 2 − 4 ≤ k + 8 . We only need to consider k − 4 ≤ − k 2 − 4 and k 2 − 4 ≤ k + 8 , because the other cases are true if these two are true. Solving the first inequality, we get that k ≤ 2 5 , and solving the second inequality, we get that k ≥ − 4 1 7 . Thus x ∈ [ − 4 1 7 , − 2 ] ∪ [ 2 , 2 5 ] , so p = 4 0 1 1 , so ⌊ 1 0 0 0 p ⌋ = 2 7 5 .
From x 2 + k x + 1 = 0 , we get x = 2 − k ± k 2 − 4 . From the roots are between − 2 and 4 , we conclude that − 4 < − k ± k 2 − 4 < 8 , and therefore k 2 − 4 > k − 4 , k 2 − 4 > − ( k + 8 ) , k 2 − 4 < 4 − k and k 2 − 4 < k + 8 .
Now, consider 4 cases.
Case 1 : − 5 ≤ k ≤ − 2
Then k − 4 ≤ − ( k + 8 ) , k + 8 ≤ 4 − k . Thus, we just need to consider k 2 − 4 > − ( k + 8 ) , k 2 − 4 < k + 8 . The first inequality clearly holds since in [ − 5 , 5 ] , − ( k + 8 ) < 0 ≤ k 2 − 4 , and the second holds if and only if − 4 1 7 ≤ k ≤ − 2 . Since both sides of the second inequality is nonnegative, we can square both sides and conclude that k ≥ − 4 1 7 , and thus the conclusion that if − 5 ≤ k ≤ − 2 , then − 4 1 7 ≤ k ≤ − 2 .
Case 2 : − 2 < k < 2
Then the discriminant, k 2 − 4 = ( k + 2 ) ( k − 2 ) < 0 ⇒ x 2 + k x + 1 = 0 has no real roots, which is a contradiction.
Case 3 : 2 ≤ k < 4
Since k − 4 > − ( k + 8 ) , k + 8 > 4 − k , and so we just need to consider k − 4 < k 2 − 4 < 4 − k . The LHS follows from k 2 − 4 ≥ 0 > k − 4 , since k < 4 . And the RHS holds if and only if 2 ≤ k < 2 5 , since by 4 − k , k 2 − 4 ≥ 0 and so we can square both sides to conclude 2 ≤ k < 2 5 ( k ≥ 2 ) is from the assumption.
Case 4 : 4 ≤ k ≤ 5
Since k − 4 > − ( k + 8 ) , k + 8 > 4 − k , and so we again just need to consider k − 4 < k 2 − 4 < 4 − k . But this time the RHS doesn't hold since k 2 − 4 ≥ 0 ≥ 4 − k , by k ≥ 4 , which is a contradiction and thus we have no solution.
In conclusion, the solutions are − 4 1 7 ≤ k ≤ − 2 and 2 ≤ k < 2 5 .
Now, it is now trivial to compute that ⌊ 1 0 0 0 p ⌋ = 2 7 5 .
the roots of the equation X^2+kX+1=0 is (-k+(k^2-4)^.5)/2 & (-k-(k^2-4)^.5)/2 the roots are between -2 and 4 . there fore we have k-4 less equal (k^2-4)^.5 less equal k+8 . and k-4 less equal -(k^2-4)^.5 less equal k+8 . now we can easily find out the solution of k for the real roots . the solution is -4.25 less equal k less equal -2 and 2 less equal k less equal 2.5 . hence the total length of interval where we can find k is (4.25-2) + (2.5-2) =2.75 the function f(x) defined in the closed interval -5 to 5 . the length of the interval is (5+5)=10. therefore the required probability is 2.75/10 ie 275/1000. hence the answer is (275/1000)*1000 = 275 .
=
f(x)=x2+kx+1. roots of this equation are (-k+/-√(k^2-4))/2. For least k value the root must be less than 4 thus (-k+/-√(k^2-4))/2=4 gives least k, similarly (-k+/-√(k^2-4))/2=-2 gives highest k ,solving those equations for k we get least value of k as -4.25 and highest value of k as 2.5. If the k value is between -2 and 2 then roots becomes imaginary ( k^2<4). So the actual k values are -4.25 to -2 and 2 to 2.5 .Thus constituting 2.75 (-2-(-4.25)+2.5-2=2.75). The overall interval is [−5,5] ,constituting 10(5-(-5)). Thus p=(2.75)/10 and ⌊1000p⌋=275
If we look at the problem from a graphical and calculus point of view........ The conditions just boils down to the quadratic function having a minima at x say m for which m lies between (-2,4) And also the vertex of the parabola to lie in the lower side of the coordinate plane . now this condition is given by f(m) < 0. Now f'(x) =0 for x= -k/2. Or m=-k/2 So the first condition is given by. f(-k/2) <0 . And also the sign of f(-2) and f(4) must be the same(in this case positive). So we get our second condition. Plug these together to find that k lies in (-4.25, -2) U (2, 2.5). Giving us the probability as 275/1000.
I think the answer may be slightly flawed. Correct me if I'm wrong on this because I'm curious. Since the question asks for the floor function of 1000p, I think the probability should drop to 274. But, then again, since we are essentially looking at an infinite / continuous range of values, .999999999999999999 repeating =1 so rip. ^Somebody explain this better lol/. I'm mixed with opinions. Help
Let Z be the roots of the quadratic f(x).
2 − k ± k 2 − 4
We are asked to find P[-2 < Z < 4].
P [ − 2 < Z < 4 ] = P [ − 2 < 2 − k ± k 2 − 4 < 4 ] for -2<Z<-1 or 1<Z<4
P [ − 2 < Z < 4 ] = P [ − 2 < 2 − k − k 2 − 4 < − 1 ] + P [ 1 < 2 − k + k 2 − 4 < 4 ]
We can solve K by solving the left side and the right side of the inequality separately.
ie. 2 − k − k 2 − 4 < − 1
k + k 2 − 4 > 2
k 2 − 4 > k 2 − 4 k + 4
k > 2
After applying to all sides, we arrive at the following:
P [ − 2 < Z < 4 ] = P [ 2 < K < 2 . 5 ] + P [ − 4 . 2 5 < K < − 2 ]
The probability density function of the continuous uniform distribution is: f ( x ) = { b − a 1 0 a ≤ x ≤ b x < a o r x > b
P [ 2 < K < 2 . 5 ] = ∫ 2 2 . 5 5 − ( − 5 ) 1 d x = 0 . 0 5
P [ − 4 . 2 5 < K < − 2 ] = ∫ − 4 . 2 5 − 2 5 − ( − 5 ) 1 d x = 0 . 2 2 5
P [ − 2 < Z < 4 ] = 0 . 0 5 + 0 . 2 2 5 = 0 . 2 7 5
⌊ 1 0 0 0 ∗ 0 . 2 7 5 ⌋ = 2 7 5
First, we note that the roots are: 2 − k ± k 2 − 4 . Since it must have two roots, k 2 − 4 ≥ 0 , therefore − 2 < k < 2 .
Next we note also that − 2 ≤ 2 − k ± k 2 − 4 ≤ 4 or − 4 ≤ − k ± k 2 − 4 ≤ 8 . Since k 2 − 4 is positive, it is equivalent to saying − 4 ≤ − k − k 2 − 4 and − k + k 2 − 4 ≤ 8 .
For − 4 ≤ − k − k 2 − 4 , which is equivalent to k 2 − 4 ≤ 4 − k , since k 2 − 4 is positive, we can square both sides to get the final inequality k ≤ 2 . 5 .
For − k + k 2 − 4 ≤ 8 , which is equivalent to k 2 − 4 ≤ 8 − k , since k 2 − 4 is positive, we can square both sides to get the final inequality − 4 . 2 5 ≤ k .
Combining the above three inequality, we have: − 4 . 2 5 ≤ k < − 2 or 2 < k ≤ 2 . 5 , giving us the total interval length of 2 . 7 5 . So the probability is p = 1 0 2 . 7 5 = 0 . 2 7 5 , therefore ⌊ 1 0 0 0 p ⌋ = 2 7 5
x = 2 − k ± k 2 − 4 so we can find the maximum and minimum of k along the interval [-5,5]
4 = 2 − k + k 2 − 4 ⇒ k = 2 5
− 2 = 2 − k − k 2 − 4 ⇒ k = − 4 1 7
But to keep the roots real, k 2 − 4 ≥ 0 ⇒ k ≥ 2 or k ≤ − 2
Thus the valid values is − 4 1 7 ≤ k ≤ − 2 and 2 ≤ k ≤ 2 5
− 2 + 4 1 7 + 2 5 − 2 = 4 1 1 ⇒ 4 1 1 ∗ 1 0 0 = 2 7 5
And the floor of that is still 2 7 5
Determinant=k^2-4 \geq 0 Thus k \geq 2 or k \leq -2. As both roots are in between -2 and 4, -2 \leq \frac{-k \pm \sqrt{k^2-4}}{2} \leq 4. i.e. k-4 \leq \pm \sqrt{k^2-4} \leq k+8 Now we consider the 2 cases k \geq 2 and k \leq -2 separately. Case 1: If 2 \leq k \leq 5, then \pm \sqrt{k^2-4} \leq k+8 is always true for all k as the minimum value of k+8 (which is 10) is greater than the largest value of \pm \sqrt{k^2-4}. Similarly k-4 \leq \sqrt{k^2-4} is always true for all k in the interval of [2,5]. The only sub-case left is k-4 \leq -\sqrt{k^2-4}, which is 4-k \geq \sqrt{k^2-4} in other words. Notice that k /leq 4 in this case. Solving this inequality by taking square of both sides, we obtain the following solution 2 \leq k \leq 2.5. Case 2: If -5 \leq k \leq -2, similarly we can conclude that both k-4 \leq \pm \sqrt{k^2-4} and -\sqrt{k^2-4} \leq k+8 are always true for all k in the interval of [-5,-2]. The only sub-case left is \sqrt{k^2-4} \leq k+8. This can be solved by taking the square of both sides and the following solution is obtained: -4.25 \leq k \leq -2. Therefore p= \frac {(2.5-2) + (-2-(-4.25))}{5-(-5)}=0.275 Hence, 1000p=275
The roots of f ( x ) is 2 − k ± k 2 − 4 . So, we must have − 2 ≤ 2 − k + k 2 − 4 and 4 ≥ 2 − k − k 2 − 4 ,then we will have k ≤ 2 . 5 and k ≥ − 4 . 2 5 . But we must have k 2 ≥ 4 to obtain real roots. So, k ≥ 2 and k ≤ − 2 . The probability is 5 − ( − 5 ) ( 2 . 5 − 2 ) + [ − 2 − ( − 4 . 2 5 ) ] = 1 0 2 . 7 5 . Therefore, ⌊ 1 0 0 0 p ⌋ = ⌊ 1 0 0 0 ⋅ 1 0 2 . 7 5 ⌋ = 2 7 5 .Done.
Problem Loading...
Note Loading...
Set Loading...
1) For roots to be real k 2 − 4 ≥ 0 which gives k ≥ 2 or k ≤ − 2
2) Value of f ( x ) should be positive at x = − 2 and x = 4 which gives conditions k ≤ 2 . 5 & k ≥ − 4 . 2 5 respectively.
3) Vertex of parabola must be between -2 and 4, which gives 4 > k > − 8 .
From the above conditions k belongs to [ − 4 . 2 5 , − 2 ] ∪ [ 2 , 2 . 5 ] . Hence, Length of k = 2 . 7 5 , which gives p = 1 0 2 . 7 5 , ⌊ 1 0 0 0 p ⌋ = 2 7 5 .
[Latex edits - Calvin]