wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> 4xsquared - 40Floor(x) + 51 = 0
(Message started by: ThudanBlunder on Jan 14th, 2009, 4:14pm)

Title: 4xsquared - 40Floor(x) + 51 = 0
Post by ThudanBlunder on Jan 14th, 2009, 4:14pm
Find the number of real solutions to 4x2 - 40http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/lfloor.gifxhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/rfloor.gif + 51 = 0, where http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/lfloor.gifxhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/rfloor.gif represents the greatest integer less than x, also known as the integer part of x, and as floor(x).

Title: Re: 4xsquared - 40Floor(x) + 51 = 0
Post by 1337b4k4 on Jan 14th, 2009, 7:28pm
[hide]4

write x = u+5 for convenience,
plugging into the above we get
f(u) = 4uhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sup2.gif+ 40u - 40http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/lfloor.gifuhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/rfloor.gif- 49 or f(u) = 4uhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sup2.gif+40{u} - 49 = 0
since {u} goes between 0 and 1, we see that we only need concern ourselves with values of u between -7/2 and 7/2.
by hand, we consider values of the above function at the integers from -4 to 4 - these are easy to compute by hand since the fractional argument is 0 and the function is 4uhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sup2.gif- 49.

-4: 15
-3: -13
-2: -33
-1: -45
0: -49
1: -45
2: -33
3: -13
4: 15

1. its easy to see that the value of f(-3.00001) is approx f(-3) + 40.
2. Because the function is continuous over intervals of the form [k,k+1) where k is an integer, we can use the IMT to find roots.
3. f(u) is also strictly increasing inside these intervals, as the slope contribution of 4uhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sup2.gif(at most -32 to 32) is less than that of the contribution from 40{u} (40) in this range. Thus, we can also guarantee the existence of exactly one root in places that we find one.

By observation, we will find roots between x =2 and 3, 6 and 7, 7 and 8, and 8 and 9. Furthermore, by looking at the original eqaution we see that 4xhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sup2.gifmust be an integer at these roots, so with a little guess and check (with the aid of a for loop) we can find the exact roots, which are x = http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/surd.gif29/2 ~ 2.69 , http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/surd.gif189/2 ~ 6.87, http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/surd.gif229/2 ~ 7.57, http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/surd.gif269/2 ~ 8.20[/hide]



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board