0
$\begingroup$

I have two functions: $f(x) = x^{2}-3|x-1|$ and $g(x)=2|x-2|$.

I need to find the sum of all integer solutions for the following inequality: $$g[f(x)]\leq 2$$

  • 1
    Do you mean by $[.]$ the floor function or it is just parentheses, $g(f(x))$?2012-11-26
  • 0
    It was not specified in the task, but I guess it's a rather a floor function.2012-11-26
  • 0
    The floor function would make no sense, both because $f$ takes integer values at the integers anyway, and because that would leave $g$ without an argument; so it must be intended as $g(f(x))$.2012-11-26
  • 0
    I get it now. Thanks, @joriki. And so it goes as g(f(x)).2012-11-26

1 Answers 1

1

Presumably by "roots" you mean solutions. (The term "roots" is usually reserved for solutions of equations.)

The inequality is fulfilled if $|f(x)-2|\le1$. Since $f(x)$ takes integer values at the integers, that means $f(x)\in\{1,2,3\}$. Substituting the integers from $-5$ to $5$ shows that the only solution is $x=3$.

  • 0
    That was really helpful, cheers!2012-11-26
  • 0
    @Max: You're welcome!2012-11-26