The function given is:
And has a local maximum at (1, 6). Since it has a local extrema in x = 1, this means that the derivative of f(x) at x = 1 is 0:
Since we know that the point (1, 6) lies in the graph of the function, we can write:
We have an equation that relates a and b, we need to find another one. Let's differentiate f(x):
Thus:
We know that f'(1) = 0, thus:
Now, we have a system of two linear equations:
We can subtract the second equation to the first one, to solve by elimination:
And solve:
We have found the value of a = -3. Now, we can find b, using the first equation:
Thus, the answer is:
a = -3
b = 9
We can also check if the result we get is correct:
And we should get f(1) = 6 and f'(1) = 0:
The values we got are correct.