Given:

It has a local maximum at the point (1,6).
To find:
The constants a and b.
Step-by-step explanation:
Since (1, 6) is the local maximum of the function.
So, the function must be passing through the point (0, 6).
Substituting x = 1, and y = 6, we get

Since (1, 6) is the local maximum of the function.
So, x = 1 must be one of its critical points.
Let us find the derivative of the function.

Subtracting (1) from (2), we get

Substituting a = -3 in the equation (1) we get,

Therefore, the constants are

Final answer:
The constants are
