Often I am dealing with an integral of let's say:
$$\int\frac{dt}{(t-2)(t+3)}$$
or
$$\int \frac{dt}{t(t-4)}$$
or to make this a more general case in which I am interested the most:
$$\int \frac{dt}{(t+\alpha)(t+\beta)} \quad \quad \alpha, \beta \in \mathbb{R}$$
Basically any integral with decomposed polynomial of second degree in the denominator. Obviously this leads to sum of two natural logarithms.
What I do is write down partial fractions equation and then solve system of linear equations (2 variables here):
$$\frac{1}{(t+\alpha)(t+\beta)} = \frac{A}{t+\alpha} + \frac{B}{t+\beta}$$
After solving this I end up with some $A, B$ coefficients and I can solve the integral.
Is there faster way to find $A, B$ ? Some algorithm or anything that I can follow and would always work for such case? Surely, solving that does not take much time but I just wonder if it could be done even faster.
(bonus question: what if there were more variables, like 3 variables?)
I would greatly appreciate all feedback as it could help me save countless number of minutes in the future.