If you take the derivation of a function you get the slope of the function, so f’(x) of ax3 =3ax2, substituting 1 for x would give 3a, since slope of tangent line =9; 3a = 9 so a=3
My calculus is a bit rusty, not sure why b would equal-6 but checks out when you graph it.