In another question of mine users proposed the LIATE or ILATE rule for partial integration. However, I have encountered a problem:
$$ e^{-x}\cos(x)$$
If I use the rule, I eventually get:
$$ d(\cos(x) \cdot - e^{-x}) + e^{-x} \cdot \cos(x) \cdot d$$
It seems to me as if I use the rule in this situation I will get an infinite loop. Is this true?
My solution to this problem would be to just do it the other way around the second time. If I do this, I won't have wasted time on the problem but I (probably) avoid the infinite loop. Is this correct?