I completely agree with Paras Khosla's comment. Further, quoting "Calculus" volume 1, 2nd Edition, 1966, page 266 (by Tom Apostol), integrals of the form $\;\int\sqrt{(cx+d)^2 - a^2}\,dx\;$ should be attacked via the substitution $\;cx + d = a \sec t.$
I am (superficially redundantly) answering because on the one hand you showed a good effort but on the other hand (apparently through no fault of your own), you have made a serious workflow mistake. This is not the type of problem whose solution a Calculus student should be attempting to derive from scratch. If you are in a Calculus class, then your class materials (e.g. textbook) should have explicitly provided the information in this answer's first paragraph.
Do not try to attack problems like this on your own. Instead, buy a moderately priced Calculus book. To determine which book to buy, ask your teacher (if available) or heavily research user comments (e.g. Amazon.com's customer reviews).
Buying the right math book can be tricky; it needs to be customized to your experience, goals, and budget. Generically, try to buy one with a lot of exercises, don't be in a hurry, don't skip any exercises, and (for the exercises where you are having trouble) post a query on a math forum like this one (showing heavy preliminary effort, just as you did with this query).
I am upvoting because of the good preliminary (though misguided) effort that you made. Note that the whole issue of when to go for it, as you did is tricky. Math students need to look for a balance between making a reasonable preliminary effort and never trying to re-invent the wheel.
Best Answer
$$ \int \frac{8}{16-e^{4x}} \, dx=\left| u=e^{2x} \atop du=2e^{2x}\,dx=2u\, dx \right| =\int\frac{8}{16-u^2} \cdot \frac{du}{2u} $$ (we assume that $u\in(-4,4)$) $$ =\left| u=4\sin t \atop du=4\cos t\,dt \right|= \int\frac{8}{16-16\sin^2t} \cdot \frac{4\cos t\,dt}{8\sin t} =\frac14 \int \frac{\cos t\,dt}{\cos^2t \sin t} $$ $$ =\frac12 \int \frac{dt}{2\sin t\cos t}= \frac12 \int \frac{dt}{\sin 2t}= \left| z= 2t \atop dz= 2\,dt \right|= $$ $$ =\frac14 \int \frac{dz}{\sin z}= \frac14\ln\left| \tan\left( \frac{z}2 \right) \right|+C =\frac14\ln\left| \tan t \right|+C $$ $$ =\frac14\ln\left| \tan\left( \arcsin\frac{u}4 \right) \right|+C =\frac14\ln\left| \tan\left( \arcsin\frac{e^{2x}}4 \right) \right|+C $$ Since $$ \tan^2(\arcsin x)=\frac1{\cot^2(\arcsin x)}= \frac1{\frac1{\sin^2(\arcsin x)}-1}= \frac1{\frac1{x^2}-1}=\frac{x^2}{1-x^2} $$ and (considering the sign) $$ \tan(\arcsin x)= \frac{x}{\sqrt{1-x^2}} $$ the answer is $$ \frac14\ln\left| \frac{e^{2x}/4}{1-\sqrt{\frac{e^{4x}}{16}}} \right|+C =\frac{x}2-\frac14\ln\left| \sqrt{16-e^{4x}} \right|+C $$ $$ =\frac{x}2-\frac18\ln\left| 16-e^{4x} \right|+C. $$