tan(3x)=tan(2x+x), by using the identity for tan(A+B)=(tan(A)+tan(B))/(1-tan(A)tan(B)),tan(3x)=tan(2x+x)=(tan(2x)+tan(x))/(1-tan(2x)tan(x)), using it again for tan(2x),tan(3x)=tan(2x+x)=([(tan(x)+tan(x))/(1-tan(x)tan(x))]+tan(x))/(1-[(tan(x)+tan(x))/(1-tan(x)tan(x))]tan(x))which simplifies to ([2tan(x)/(1-tan2(x))]+tan(x))/(1-[(2tan(x))/(1-tan2(x))]tan(x))which will further simplify to [(3tan(x)+tan3(x))/(1-tan2(x))]/[(1-3tan2(x))/(1-tan2(x))]which yields [3tan(x)+tan3(x)]/[1-3tan2(x)] which is what we got asked
link to resolution on paper: https://imgur.com/a/YUuaop9