# Video: Using Integration by Substitution to Evaluate the Integral of a Rational Function

Find ∫ (cos 𝑥)/(1 + sin² 𝑥) d𝑥.

01:34

### Video Transcript

Find the integral of cos of 𝑥 over one plus sin squared of 𝑥 with respect to 𝑥.

Now, this isn’t a particularly nice integral. But if we look carefully, we can see that the numerator of our fraction is equal to the derivative of part of the denominator. And this means we need to use integration by substitution to evaluate our integral. We’re going to choose our substitution to be equal to sin 𝑥. And this is because if we let 𝑢 be equal to sin 𝑥 and we differentiate 𝑢 with respect to 𝑥, we get cos of 𝑥, which is the numerator of our fraction. And then we can rewrite this slightly.

Now, d𝑢 by d𝑥 isn’t a fraction. But whilst doing integration by substitution, we treat it a little like one. And we can say that d𝑢 is equal to cos of 𝑥 d𝑥. We’re then able to replace sin of 𝑥 with 𝑢. So the denominator of our fraction becomes one plus 𝑢 squared. We can also replace cos of 𝑥 d𝑥 with d𝑢. And we see that we’re looking to integrate one over one plus 𝑢 squared with respect to 𝑢. Now, whilst this doesn’t look particularly nice, we can quote a general result. And that is the derivative of the inverse tan of 𝑥 is equal to one over one plus 𝑥 squared.

And so this means the antiderivative of one over one plus 𝑢 squared must be the inverse tan or the arc tan of 𝑢. And so when we integrate one over one plus 𝑢 squared, we get the arc tan or inverse tan of 𝑢 plus some constant of integration 𝑐. But remember, we defined 𝑢 to be equal to sin of 𝑥. And since we’re differentiating with respect to 𝑥, it’s common practice to leave our answer in terms of 𝑥. And so we replace 𝑢 with sin of 𝑥. And we find at the interval of cos 𝑥 over one plus sin squared 𝑥 with respect to 𝑥 is the inverse tan of sin 𝑥 plus 𝑐.