Integration by Parts versus the Power Rule

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
Mandelbroth
Messages
610
Reaction score
23
Recently, a friend of mine asked for help on their calculus homework. The problem was to find [itex]\int cos(ln \ x) \ dx[/itex]. However, I've never gotten around to memorizing the derivatives and integrals of the trig functions.

I know that you can do it using integration by parts, with [itex]\int cos(ln \ x) \ dx = x \ cos(ln \ x) + \int sin(ln \ x) \ dx = x \ cos(ln \ x) + x \ sin(ln \ x) - \int cos(ln \ x) \ dx[/itex], implying that [itex]2\int cos(ln \ x) \ dx = x \ cos(ln \ x) + x \ sin(ln \ x)[/itex], and thus that [itex]\int cos(ln \ x) \ dx = \frac{x}{2}(cos(ln \ x) + sin(ln \ x)) + C[/itex].

However, I used the power rule for integration (I think the technical name is Cavalieri's quadrature formula). [itex]\int cos(ln \ x) \ dx = \int \frac{e^{i \ lnx}+e^{-i \ lnx}}{2} \ dx = \int \frac{x^{i}+x^{-i}}{2} \ dx = \frac{1}{2}(\frac{x^{i+1}}{i+1}+\frac{x^{1-i}}{1-i}) + C = \frac{x}{2}(\frac{x^{i}}{i+1}+\frac{x^{-i}}{1-i}) + C = \frac{x}{2}(\frac{x^{i}(1-i)+x^{-i}(1+i)}{2}) + C[/itex], which is obviously equivalent to the previous answer.

Can I take it from this problem that the process of using the complex number definitions of the trig functions is valid for all such integrals? That is, does Cavalieri's quadrature formula ALWAYS work for complex numbers (aside from the obvious of x-1, which is why I am asking...)?
 
on Phys.org
Indeed, there is great interconnection between real and complex analysis. In fact, there is a rigorous method to calculate real integrals using complex analysis (using Cauchy's residue theorem).