0 votes 0 votes Show that x2 + 5x + 11 is O(x2) LavTheRawkstar asked Jun 26, 2016 • edited Nov 17, 2016 by LavTheRawkstar LavTheRawkstar 462 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes If we consider this polynomial , f(x) = x2 + 5x + 11 Then clearly for all x>1 , 5x + 11 < x2 which means f(x) <= x2 + x2 and therefore f(x) <= 2x2 for all x > 1. Therefore, the polynomial f(x) is O(x^2), which is an upper bound . Kapil answered Jun 26, 2016 • selected Jun 26, 2016 by LavTheRawkstar Kapil comment Share Follow See all 4 Comments See all 4 4 Comments reply Sushant Gokhale commented Sep 12, 2016 reply Follow Share @Kapil. I think your line of reasoning isnt appropriate. I think it should be like this: Lets assume that x2 + 5x +11 is O(x2). Thus, x2 + 5x +11 <= c1.(x2) where c1 is some positive constant (as per big-O def.) Thus, 5x +11 <= c1.(x2) Now, there should be constriant on both c1 and value of x to decide if the above statement is true. For c1=1 and from x>=7, above statement holds true. There can be other values as well. If we want for x>1, we can have c1 =1000 or something like this. 2 votes 2 votes LavTheRawkstar commented Sep 12, 2016 reply Follow Share Kapil sir i am also waiting eagerly for the reply. 0 votes 0 votes LavTheRawkstar commented Nov 17, 2016 i edited by LavTheRawkstar Nov 17, 2016 reply Follow Share here c1 will be equal to 7 as far my teacher teachings are concerned and my mind is concerned? correct me if i am wrong? 0 votes 0 votes LavTheRawkstar commented Nov 17, 2016 reply Follow Share and x should be greater than equal to 1 ? 0 votes 0 votes Please log in or register to add a comment.