how to find out maxima of function 3acos3theta

the max is |3a| since you have (3a)(cosθ) and max of cosθ = 1.