We call $f(x) = \frac{p(x)}{q(x)}$ a rational function if both $p(x)$ and $q(x)$ are polynomials. If the degree of $p(x)$ is less than the degree of $q(x)$, then we call $f(x)$ a proper rational function
If we want to integrate $\frac{2x^2+37x+144}{x^2+13x+40}$, we need to first perform long division to get $2 + \frac{11x+64}{x^2+13x+40}$
Now we need to integrate $\frac{11x+64}{x^2+13x+40}$ by splitting it up into distinct linear factors
If we factor the denominator, we get $\frac{11x+64}{(x+5)(x+8)}$
<aside> 👉 We can always find numbers $A$ and $B$ to make the following split (decomposition) work: $\frac{11x+64}{(x+5)(x+8)} = \frac{A}{x+5} + \frac{B}{x+8}$
</aside>
Now we need to get the coefficients $A$ and $B$ by multiplying by the common denominator, $11x+64 =A(x+8)+B(x+5)$
Rearranging this by powers of $x$, we get $11x+64 = (A+B)x + (8A+5B)$
Comparing powers of $x$, we now have two separate equations that we can solve: $A+B =11$ and $8A+5B = 64$
Now we can integrate the original function
If there are no real solutions to $ax^2 + bx+c = 0$, then it is irreducible. We need a polynomial of degree 1 in the numerator for an irreducible quadratic factor
Let’s try to solve $\int \frac{1}{x(x^2+1)}dx$
Given the polynomial $x^2+1$, we cannot write it as a product of linear factors
We need to write $\frac{1}{x(x^2+1} = \frac{A}{x}+ \frac{Bx+C}{x^2+1)}$
Solving for $A,B$ and $C$, we get $A= 1$, $B=-1$, and $C=0$
Now we can integrate the original function
When we want to simplify a rational function, we…