# Integration By Parts - Another Problem

1. Sep 21, 2008

### RedBarchetta

1. The problem statement, all variables and given/known data
$$\int {\frac{{\cos ydy}} {{\sin ^2 y + \sin y - 6}} }$$

3. The attempt at a solution
$$\int {\frac{{\cos ydy}} {{\sin ^2 y + \sin y - 6}} = } \int {\frac{{\cos ydy}} {{(\sin y - 2)(\sin y + 3)}}}$$

Now I attempt to split this into partial fractions:

$$\begin{gathered} \frac{{\cos y}} {{(\sin y - 2)(\sin y + 3)}} = \frac{A} {{\sin y - 2}} + \frac{B} {{\sin y + 3}} \hfill \\ \cos y = A(\sin y + 3) + B(\sin y - 2) \hfill \\ \cos y = A\sin y + 3A + B\sin y - 2B \hfill \\ \cos y = (A + B)\sin y + 3A - 2B \hfill \\ \end{gathered}$$

....from here i'm not sure what to do to solve for the coefficients. I can't see any trig identities that would help either. How would you solve for these?

Thank you.

2. Sep 21, 2008

### tiny-tim

Oh, RedBarchetta!

This is screaming out for a substitution!

3. Sep 21, 2008

### RedBarchetta

You're right. :rofl: It just took me a while to notice that. It definitely decreases the difficulty level.

Thanks.