Actually the question is, in some sense, wrong. What you should be doing
(I hope you will consider this as constructive) is look for integrands of the form
constant* f(u)^p*du.
That includes 3*(4+5*x)^6 but also 7*(8+9*x^2)^p * x
and even (1+2*sin(x))^p*cos(x).
this is one part of a "derivative-divides" integration system.
You can look for a product where there is a power of a function of x, f(x)^p.
See if diff(f(x),x) divides the rest of the product evenly [giving you the constant].
and then you know the integral is f(x)^(p+1)/(p+1) times the constant.
(special case for p=-1 is log...)
This is so much more powerful, and yet easy to explain, and probably
no harder to program, that you should be doing this instead.
If you want to see how to do this, in a half-page of code, and much much
more in 2 pages, see this..
and read the documentation, in a link on line 5 of that.
RJF