This is the artanh integral, which shows up pretty often, especially when integrating rational functions:
∫1−x21 dx The canonical method is to use partial fraction decomposition:
=∫(1−x)(1+x)1 dx=∫(1+x)(1−x)1 dx=21∫1+x1+1−x1 dx This then integrates easily via 2 straight-up layer cakes, into a form that happens to collapse to tanh−1(x).
=21[ln(1+x)−ln(1−x)]=21ln(1−x1+x)=tanh−1x+c I’ve found a different route to this result, which came to me while thinking about polynomial division.
Pulling the Power Move
My thought process was this – you’ve got these factors in the denominator, so it’d be great if you could just cancel them with stuff in the numerator.
∫(1−x)(1+x)1 dx Well, the easiest way to do that would be to get a (1+x) in the numerator – so we’ll add (+x−x).
=∫(1−x)(1+x)1+x−x dx Now splitting spits out a nicely integratable layer cake on the left, but the right is still a bit more problematic.
=∫(1−x)(1+x)1+x+(1−x)(1+x)−x dx=∫1−x1+(1−x)(1+x)−x dx What we want is an extra 1 to get (1−x). So… let’s add (+1−1).
=∫1−x1+(1−x)(1+x)−x+1−1 dx=∫1−x1+(1−x)(1+x)1−x+(1−x)(1+x)−1 dx=∫1−x1+1+x1 dx−∫(1−x)(1+x)1 dx What’d’y’know, that’s our original integral! What an incredible duplication we’ve got on our hands. So, moving to the other side, we have
∫(1−x)(1+x)1 dx2∫(1−x)(1+x)1 dx2∫(1−x)(1+x)1 dx∫(1−x)(1+x)1 dx=∫1−x1+1+x1 dx−∫(1−x)(1+x)1 dx=∫1−x1+1+x1 dx=−ln(1−x)+ln(1+x)=21ln(1−x1+x)+c The Original Power Move
That’s a nice way of seeing how you could’ve derived it through problem-solving. I actually got there more through instinct/intuition – after staring at my phone for a couple seconds and pondering the possibility, I realised we could get the extra 1 we needed by multiplying by 2 at the start.
= ∫(1−x)(1+x)1 dx 21∫(1−x)(1+x)2 dx Then you pull the power move, and the split is now strategical:
=21∫(1−x)(1+x)2+x−x dx=21∫(1−x)(1+x)1+x+(1−x)(1+x)1+x dx=21∫1−x1+1+x1 dx Just works ;)
Does It Generalise?
Of course if you know the artanh integral it’s a bit of a waste of time to re-derive this relationship every time. But just for enrichment, let’s see if this method generalises.
∫k2−x21 dx How should I put this… yeah, ofc it does lmao. Only needed to stare at the problem for like, 4 seconds. Why did I think it wouldn’t :confused:
=∫(k−x)(k+x)1 dx=2k1∫(k−x)(k+x)2k dx=2k1∫(k−x)(k+x)2k+x−x dx=2k1∫(k−x)(k+x)k+x+(k−x)(k+x)k−x dx=2k1∫k−x1+k+x1 dx Love to see it!