Sorry about the confusion!
My second line doesn't follow from the hint. Basically what I was hinting at is that it would be better if you left the terms in the binomial expansion as they were, without simplifying and turning cos into sin and vice versa. It should be more apparent that you get tans if you do it this.
On the other hand, if you do decide to stick with your simplification, you can still get tans. I'll use s, c, t to denote sin(x), cos(x), tan(x), respectively.
tan(3x) = sin(3x)/cos(3x) = (3s - 4s^3)/(4c^3 - 3c)
Now if we divide top and bottom by c^3, we get
(3t/c^2 - 4t^3)/(4 - 3/c^2)
Note that 1/c^2 = sec^2(x) = 1 + tan^2(x) = 1 + t^2. So,
tan(3x) = (3t/c^2 - 4t^3)/(4 - 3/c^2)
= [3t(1+t^2) - 4t^3]/[4 - 3(1+t^2)]
etc.
Hopefully all is clear now.