SOLUTION: Solve the equation [x² + 2x + 5] - [x + 1] = 6, where the symbol [ ] denotes the greatest integer function (floor function).

Algebra ->  Complex Numbers Imaginary Numbers Solvers and Lesson -> SOLUTION: Solve the equation [x² + 2x + 5] - [x + 1] = 6, where the symbol [ ] denotes the greatest integer function (floor function).       Log On


   



Question 1210380: Solve the equation [x² + 2x + 5] - [x + 1] = 6, where the symbol [ ] denotes the greatest integer function (floor function).

Answer by ikleyn(52748) About Me  (Show Source):
You can put this solution on YOUR website!
.
Solve the equation [x² + 2x + 5] - [x + 1] = 6, where the symbol [ ] denotes
the greatest integer function (floor function).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For clarity, I will write this equation in this form

    floor(x^2 + 2x + 5) - floor(x+1) = 6.    (1)


I will solve it step by step.



(1)  x^2 + 2x + 5 = (x+1)^2 + 4.


     Therefore,  floor(x^2 + 2x + 5) = floor((x+1)^2 + 4).

     Next, it is clear that  floor((x+1)^2+4) = floor((x+1)^2) + 4.


     Therefore, equation (1) is equivalent to 

         floor((x+1)^2) + 4 - floor(x+1) = 6,

     or

         floor((x+1)^2 - floor(x+1) = 2.



(2)  Now I will introduce new variable  u = x+1  to simplify writing.

     So, now an equation to solve is

         floor(u^2) - floor(u) = 2.    (2)



(3)  For what will follow, it is convenient to look at the plot of the functions  

          u --> y = floor(u^2) - floor(u)  and  y = 2.


     These functions are shown in the plot  https://www.desmos.com/calculator/9eg9wmaonb



(4)  In the interval  -1 < u < 0,  floor(u^2) = 0  and  floor(u) = -1,  so  floor(u^2) - floor(u) = 0 - (-1) = 1,

                                    which means that there are no solutions to equation (2) in this interval.



(5)  At point u = -1,  floor(u^2) = 1;  floor(u) = -1,  so  floor(u^2) - floor(u) = 1 - (-1) = 2,

                                    which means that u = -1  is a solution to equation (2).



(5)  In the interval  -2 < u < -1,  floor(u^2)  has values 1 or 2 or 3;   floor(u) = -2,  

         so  floor(u^2) - floor(u)  has values 3, or 4, or 5, 

                                    which means that there are no solutions to equation (2) in this interval.


                    At this point, it is clear that there is no sense to analyze further 
                    for negative 'u' lesser than  -2, because there are no solutions to equation (2) there.



(6)  In the interval  0 < u < 1,  floor(u^2) has value 0;  floor(u)  has value 0, so  floor(u^2) - floor(u) = 0 - 0 = 0,

                                    which means that there are no solutions to equation (2) in this interval.



(7)  At point u = 1,  floor(u^2) = 1;  floor(u) = 1,  so  floor(u^2) - floor(u) = 1 - 1 = 0,

                                    which means that u = 1  is not a solution to equation (2).



(8)  In the interval  1 < u < sqrt%282%29,  floor(u^2)  has value1 1;   floor(u) = 1,  

         so  floor(u^2) - floor(u) = 1 - 1 = 0, 

                                    which means that there are no solutions to equation (2) in this interval.



(9)  At point u = sqrt%282%29,  floor(u^2) = 2;  floor(u) = 1,  so  floor(u^2) - floor(u) = 2 - 1 = 1,

                                    which means that u = sqrt%282%29  is not a solution to equation (2).



(10)  In the interval  sqrt%282%29 < u < sqrt%283%29,  floor(u^2)  has value 2;   floor(u) = 1,  

         so  floor(u^2) - floor(u) = 2 - 1 = 1, 

                                    which means that there are no solutions to equation (2) in this interval.



(11)  At point u = sqrt%283%29,  floor(u^2) = 3;  floor(u) = 1,  so  floor(u^2) - floor(u) = 3 - 1 = 2,

                                    which means that u = sqrt%283%29  is a solution to equation (2).



(12)  In the interval  sqrt%283%29 <= u < 2,  floor(u^2)  has value 3;   floor(u) = 1,  

         so  floor(u^2) - floor(u) = 3 - 1 = 2, 

                                    which means that all this interval is the solution to equation (2).



(13)  At point u = 2,  floor(u^2) = 4;  floor(u) = 2,  so  floor(u^2) - floor(u) = 4 - 2 = 2,

                                    which means that u = 2  is a solution to equation (2).



(14)  In the interval  2 < u < sqrt%285%29,  floor(u^2)  has value 4;   floor(u) = 2,  

         so  floor(u^2) - floor(u) = 4 - 2 = 2, 

                                    which means that all this interval is the solution to equation (2).



(15)  At point u = sqrt%285%29,  floor(u^2) = 5;  floor(u) = 2,  so  floor(u^2) - floor(u) = 5 - 2 = 3,

                                    which means that u = sqrt%285%29  is not a solution to equation (2).


                    At this point, it is clear that there is no sense to analyze further 
                    for positive 'u' greater than  sqrt%285%29, because there are no solutions to equation (2) there.



At this point, we can summarize the solution set for variable u:  it is  the union of sets of real numbers  

    < -1 >  U  [ sqrt%283%29 <= u < sqrt%285%29 ).


Now we can return to variable x and to describe the solution set for the given equation (1) in terms of x.  It is

    < -2 >  U  [ sqrt%283%29-1 <= x < sqrt%285%29-1 ).    <<<---===  ANSWER

Thus the problem is solved completely.


/////////////////////////////////////////////////////


What to do if in the future you will get a similar problem ?

First, make a plot using an advanced computer plotting tool like DESMOS:
it will tell you a lot about the possible solution.

Then start analyze, and pay a special attention analyzing all possible relevant intervals
and all possible points of discontinuity of the floor function at every term in the equation.


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


The Google AI solution for this problem under the link

https://www.google.com/search?q=Solve+the+equation+%5Bx%C2%B2+%2B+2x+%2B+5%5D+-+%5Bx+%2B+1%5D+%3D+6%2C+where+the+symbol+%5B+%5D+denotes+the+greatest+integer+function+(floor+function).&rlz=1C1CHBF_enUS1071US1071&oq=Solve+the+equation+%5Bx%C2%B2+%2B+2x+%2B+5%5D+-+%5Bx+%2B+1%5D+%3D+6%2C+where+the+symbol+%5B+%5D+denotes+the+greatest+integer+function+(floor+function).&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRg9MgYIAhBFGDzSAQkyNDU4ajBqMTWoAgiwAgHxBc1B77cLzH-J&sourceid=chrome&ie=UTF-8

of today, 8/19/2025, misses the value x = -2, which satisfies the given equation --- so, their answer and their analysis are INCOMPLETE.

I reported to them about this default via their feedback system.