# Two trig integrals

• Sep 17th 2008, 05:56 PM
symstar
Two trig integrals
First:
$\int \sin^3x \cos^3x dx$

I used $u=\cos x \text{ }du=-\sin x dx$

My answer was : $=\tfrac{1}{6}cos^{6} x-\tfrac{1}{4}\cos^{4} x + C$

Apparently, the answer given was with $u=\sin x$ which gives the answer: $=\tfrac{1}{4}\sin^4x-\tfrac{1}{6}\sin^6x + C$

So, are these answers the same or was I just wrong?

Second:
$\int^1_{-1} \frac{(x+2)^2}{x^2+1}dx$
$x=\tan\theta \text{ }dx=\sec^2\theta d\theta$
$=\int^1_{-1} \tan^2\theta d\theta + 4\int^1_{-1} \tan\theta d\theta + 4\int^1_{-1} d\theta$
$=\int^1_{-1}\frac{\sin^2\theta}{\cos^2\theta} d\theta + 4*\ln{\left|\sec\theta\right| \Big|^1_{-1}} + 4*\theta \Big|^1_{-1}$
$=\int^1_{-1}\frac{1-cos^2\theta}{cos^2\theta}d\theta + 4*\ln{(\sqrt{x^2+1})\Big|^1_{-1}} + 4*\tan^{-1}x\Big|^1_{-1}$
$=\int^1_{-1}\sec^2\theta d\theta - \int^1_{-1} d\theta + 4(\ln{(\sqrt{2})}-\ln{(\sqrt{2})}) + 4(\tan^{-1}(1)-\tan^{-1}(-1))$
$=\tan\theta\Big|^1_{-1} - \theta \Big|^1_{-1} + 4(\tfrac{\pi}{4}-\tfrac{3\pi}{4})$
$=2-(\tfrac{\pi}{4}-\tfrac{3\pi}{4}) + 4(-\tfrac{\pi}{2})$
$=2-\tfrac{3\pi}{2}$

The answer given is: $=2+\tfrac{3\pi}{2}$

Where did the sign change come from or is the given answer wrong?
• Sep 17th 2008, 06:27 PM
skeeter
for the 1st problem, you're ok ... the two expressions only differ by a constant.

$\int_{-1}^1 \frac{x^2 + 2x + 4}{x^2 + 1} dx =$

$\int_{-1}^1 \frac{x^2}{x^2+1} + \frac{2x}{x^2+1} + \frac{4}{x^2 + 1} dx =
$

$\int_{-1}^1 1 - \frac{1}{x^2+1} + \frac{2x}{x^2+1} + \frac{4}{x^2+1} \, dx =$

$\int_{-1}^1 1 + \frac{2x}{x^2+1} + \frac{3}{x^2+1} \, dx =$

$[x]_{-1}^1 + [\ln(x^2+1)]_{-1}^1 + 3[\arctan{x}]_{-1}^1 =$

$2 + \frac{3\pi}{2}$
• Sep 17th 2008, 06:29 PM
Chop Suey
The first one is correct. As for the second one, I can't really check your work but perhaps you should re-evaluate it. Alternatively, if you expand the numerator and use polynomial division, you will get a much simpler integral to evaluate (and the answer would be the one given in the book).
• Sep 17th 2008, 06:46 PM
symstar
Yeah, but where's the sport in doing it the easy way (Smirk).
• Sep 17th 2008, 06:50 PM
skeeter
"sport" only counts when chasing members of the opposite sex.

(Wink)
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 21, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/calculus/49535-two-trig-integrals-print.html", "fetch_time": 1516342982000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-05/segments/1516084887746.35/warc/CC-MAIN-20180119045937-20180119065937-00599.warc.gz", "warc_record_offset": 242071635, "warc_record_length": 3421, "token_count": 1001, "char_count": 2219, "score": 4.09375, "int_score": 4, "crawl": "CC-MAIN-2018-05", "snapshot_type": "longest", "language": "en", "language_score": 0.6747907996177673, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00011-of-00064.parquet"}