I have the problem to find $a$ and $b$ given
$f(x)=-x^2-2ax+b, a\neq0$
$f(1)=3$ , and the maximum value of $f(x)$ is $4$
and have they key with the answer $a=-2,b=0$, but which steps do I take to get to that answer?
I have the problem to find $a$ and $b$ given
$f(x)=-x^2-2ax+b, a\neq0$
$f(1)=3$ , and the maximum value of $f(x)$ is $4$
and have they key with the answer $a=-2,b=0$, but which steps do I take to get to that answer?
$$f(1) = -1 - 2a + b = 3 \implies -2a + b = 4$$ and the maximum occurs when $f'(x)=0$, so $$-2x -2a = 0 \implies x = -a$$ We then know that $$ f(-a) = -(-a)^2 -2a(-a)+b=4 \implies a^2+b=4 $$ Equating our two equations, $$a^2+b = 4 = -2a+b \implies a=-2 \implies b=0$$