Tom K. answered 10/08/20
Knowledgeable and Friendly Math and Statistics Tutor
The obvious choice would be an odd function which is periodic, which makes sin the obvious choice. Recall that sin has a max at π/2 and min at -π/2. We change this to 3 and -3 by changing the period appropriately.
sin((π/2)/3 x) = sin(π/6 x)
Note that, when x = 3, sin(π/6 x) = sin(π/6 * 3) = sin(π/2) = 1, the max of the sin function, and
when x = -3, sin(π/6 (-3)) = sin(-π/2) = -1, the minimum of the sin function.
If this were a trig class, I would simply note that, as this is the sin cycle, it is decreasing from -9 to -3, and -5 is in this interval. In Calculus, we might prefer to take the derivative, and sin(π/6 x)' = π/6 cos(π/6 x), so the derivative at -5 will be π/6 cos(π/6 (-5)) = π/6 cos(-5π/6) = π/6 cos(-5π/6) (cos is even) = π/6 cos(150°) = -√3π/12 is negative, or decreasing, as the question requires.
Now, if you want to have a polynomial instead, the obvious choice is -(x-3)2(x)(x+3)2
This function has zeroes at -3, 0, and 3, and is positive on (-∞, -3) and (-3, 0) and negative on (0, 3) and (3, ∞) ; the x term was introduced to switch from maxima to minima, and the - sign was introduced to give a maximum at 3. You can calculate a derivative if you must to see that the function is decreasing at -5, but the function is clearly monotone on (-∞, -3) ; in any polynomial with all real zeroes, the function is monotone on the interval < the smallest zero and the interval > the largest zero; in this case, the monotonicity guarantees that it is decreasing on (-∞, -3), as the function is 0 at -3 and positive on the interval, going to ∞ as x goes to -∞.