# Homework Help: Integration of trigonometric function

1. Sep 2, 2010

### Agent M27

1. The problem statement, all variables and given/known data

$$\int$$$$\frac{2x}{x^{2}+6x+13}$$dx

2. Relevant equations

$$\int$$$$\frac{1}{u^{2}+a^{2}}$$du = $$\frac{1}{a}$$arctan($$\frac{u}{a}$$+c

$$\int$$$$\frac{du}{u}$$=ln(u) + c

3. The attempt at a solution

u=x+3
2xdu=2x dx
x=u-3

$$\int$$$$\frac{2x}{u^{2}+a^{2}}$$du
=$$\int$$$$\frac{2u-6}{u^{2}+a^{2}}$$du
=$$\int$$$$\frac{2u}{u^{2}+a^{2}}$$du + $$\int$$$$\frac{-6}{u^{2}+a^{2}}$$du

This is where I get stuck because I can only figure out the second integral which turns out to be:
-3arctan($$\frac{x+3}{2}$$+c

Basically for the first integral I want to know if this is allowed?

v=u$$^{2}$$+a$$^{2}$$
dv=2u du

$$\int$$$$\frac{dv}{v}$$=ln(v)

ln(v)=ln(u$$^{2}+a^{2}$$)=ln((x+3)$$^{2}$$+4)+c

So my answer would be the following, which agrees with the book:

ln(x$$^{2}$$+6x+13)-3arctan($$\frac{u}{a}$$+c

2. Sep 2, 2010

### Subdot

Without checking over your work (which I don't have time to do), I can say that yes, that is allowed. You can always substitute as much as you want so long as you give the answer in the desired form in the end.

3. Sep 3, 2010

### rbnphlp

just remeber
$$\int$$$$\frac{f'(x)}{f(x)}dx=lnf(x)$$

4. Sep 3, 2010

### Staff: Mentor

Don't forget the absolute value and the constant of integration.
$$\int\frac{f'(x)}{f(x)}dx=ln|f(x)| + C$$

5. Sep 4, 2010

### rbnphlp

mehh ,whatever