Given:
[tex]y=-x^2+5x+14[/tex]
To find:
The interval on which the given function is positive.
Solution:
We have,
[tex]y=-x^2+5x+14[/tex]
Splitting the middle term, we get
[tex]y=-x^2+7x-2x+14[/tex]
[tex]y=-x(x-7)-2(x-7)[/tex]
[tex]y=(x-7)(-x-2)[/tex]
[tex]y=-(x-7)(x+2)[/tex]
Using zero product property, we get
[tex]x-7=0\text{ and }x+2=0[/tex]
[tex]x=7\text{ and }x=-2[/tex]
-2 and 7 divide the number line is three interval.
Interval Signs of [tex]y=-(x-7)(x+2)[/tex] Result
(-∞,-2) (-)(-)(-) Negative
(-2,7) (-)(-)(+) Positive
(7,∞) (-)(+)(+) Negative
So, the function is positive for the interval (-2,7), i.e., -2 < x < 7.
Therefore, the correct option is D.