This question is a simplification of a previously asked question: Polylogarithmic integrals
Consider the following type of function: \begin{equation} \int \frac{\prod_{i=1}^N \log(x-\beta_i)}{x-\alpha} dx \end{equation}
For the simple case of $N=2$ we have the following integral, \begin{equation} \int \frac{\log(x-B) \log(x-C)}{x-A} dx \end{equation} the result of which is already highly complicated. See for example the way the Risch algorithm in Wolfram Alpha tackles it: link. The dream is to generalise this $N=2$ result, but I can't seem to find information, references or some other canonical answer for the result shown in Wolfram Alpha/Mathematica/RUBI. Needless to say, my own efforts to derive the result have failed identically.
Sadly, for the case for $N=3$ logarithms under the integral, Wolfram Alpha and related methods do not even have any answer ready. From what I can see, Wolfram uses a lookup table to determine what the resulting integrand will look like for $N=2$, and there is no $N=3$ entry in the table.
The most verbose "step-by-step" derivation I have found was through RUBI, where RUBI rule 2485 appears to be invoked. This lead me to page 36 in this pdf, which appears to hint at some obscure sequence of integration by parts and substitutions, but I have found nothing that results in the expressions shown in that PDF.
Since I would like to somehow find a structure for higher $N$ of the above more general integral: does anyone have a reference for how to derive the ($N=2$) result shown in Wolfram Alpha or Mathematica? Or perhaps give a derivation of the result themselves? I'm aware I can take the derivative of the Wolfram Alpha result, but this will not give me new information on how to solve when $N=3$, so solutions going from the original integral to the result, as if there is no prior knowledge of the result, are the only ones I can accept.