Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

methodology of integration by parts ($e^{ax}\cos (bx+c)\mathrm dx$)

+0
−0

I was doing Integration by parts. I found an example which looks like : $$e^{ax}\cos (bx+c)\mathrm dx$$

While I was integrating it by parts. I noticed it is repeating. When it repeated first moment my book wrote $I$ instead of above equation where $I=e^{ax}\cos (bx+c)\mathrm dx$. The same value is repeating all the time that's why my book didn't work further. They had did something else. They had found an equation for $I\cdot a^2$. Another equation for $I(a^2+b^2)$. Then, they had sent $a^2+b^2$ to RHS. Then, they had took $a=r\sin \theta$, $b=r\cos\theta$, $r^2=a^2+b^2$ and, $\tan\theta=\frac{b}{a}$ or, $\theta=\tan^{-1}\frac{b}{a}$. Then, they had put these values in those earlier equations(which derived from first equation(which I wrote at first or, in title) ).

$$\int uv\mathrm dx=u\int vdx-\int[\mathrm {\frac{du}{dx}}\cdot \int v\mathrm dx]\mathrm dx$$ They took $u=\cos (bx+c)$ and, $v=e^{ax}$

  • Could you please describe integration by parts to me? (I can solve normal problems but, when it came to this one it was little bit looking harder to me. Even, I wasn't able to understand integration of it.)
  • Why they had took (found) different equations?

If steps are needed than, I can add steps also..

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+2
−0

I haven't seen integration by parts written that way before, and the derivation you describe seems overly complicated, albeit not for the $I$ stuff. In particular, I don't understand the purpose of the trigonometric substitutions as the integral should be solvable already without them. Maybe there was a reason in context. I assume the book had some reason for using that derivation.

Anyways, I've usually seen integration by parts written $$\big[uv\big]_{x=t_0}^{x=t} = \int_{t_0}^t u dv + \int_{t_0}^t v du$$ and usually solved for one of the integrals, e.g. $$\int_{t_0}^t v du = \big[uv\big]_{x=t_0}^{x=t} - \int_{t_0}^t u dv$$ where $\big[uv\big]_{x=t_0}^{x=t}$ means evaluate $uv$ at $t$ and subtract $uv$ evaluated at $t_0$, i.e. $\big[f(x)\big]_{x=t_0}^{x=t} = f(t) - f(t_0)$. (This operation can actually be understood as a $0$-dimensional contour integral.) I'll abbreviate this as $\big[f(x)]_{t_0}^t$.

The derivation of this is quite simple by integrating the product rule, i.e. we have $$\frac{d(uv)}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}$$ or often written $$d(uv) = udv + vdu$$ Integrating and applying the fundamental theorem of calculus gives you integration by parts as I've written it above.

For your specific example, I (personally) would choose $du = e^{ax}dx$ and $v = \cos(bx + c)$. (The other choice is equally valid, though in many cases one choice is significantly easier than the other. Here, it doesn't make that much of a difference.) I'll also set $t_0 = 0$ as it only affects the result by a constant term. This gives $$\int_0^t e^{ax}\cos(bx + c)dx = \left[\frac{1}{a}e^{ax}\cos(bx + c)\right]_0^t + \frac{b}{a}\int_0^t e^{ax}\sin(bx+c)dx$$

We now apply integration by parts again to the second integral and again choosing $du = e^{ax}dx$ and $v = \sin(bx + c)$ producing $$\int_0^t e^{ax}\sin(bx+c)dx = \left[\frac{1}{a}e^{ax}\sin(bx + c)\right]_0^t - \frac{b}{a}\int_0^t e^{ax}\cos(bx + c)dx$$ We see have reproduced the integral we were originally trying to solve. This is a common pattern and usually a good thing. Sometimes the integral might be one of the intermediate steps. The important point is once we're in this situation, we now have an "algebraic" equation. This is indeed made clearer by naming the integral $I$, i.e. setting $I=\int_0^t e^{ax}\cos(bx + c)dx$. Substituting this second integration by parts back into the first and using this substitution, we get $$I = \left[\frac{1}{a}e^{ax}\cos(bx + c)\right]_0^t + \frac{b}{a}\left(\left[\frac{1}{a}e^{ax}\sin(bx + c)\right]_0^t - \frac{b}{a}I\right)$$

The important point here is that, as an equation in $I$, this no longer involves any integration. Distributing the $\frac{b}{a}$ and multiplying the whole equation by $a^2$ gives $$a^2I = \left[ae^{ax}\cos(bx + c)\right]_0^t + b\left[e^{ax}\sin(bx + c)\right]_0^t - b^2I$$ We can easily solve for $I$ (the original integral) by adding $b^2I$ to both sides then dividing by $a^2 + b^2$. $$I = \frac{\left[ae^{ax}\cos(bx + c)\right]_0^t + b\left[e^{ax}\sin(bx + c)\right]_0^t}{a^2 + b^2}$$ Simplifying a bit produces $$I = \frac{ae^{at}\cos(bt + c) - a\cos(c) + be^{at}\sin(bt + c) - b\sin(c)}{a^2 + b^2}$$ The correctness of this expression can be verified by differentiating with respect to $t$ and evaluating at $t=0$ which should result in $0$.

(Connecting to your other question, we could rewrite $\cos(bx + c)$ as $(e^{i(bx + c)} + e^{-i(bx + c)})/2$ and the integral would split into two straightforward integrals of exponential functions.)

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

No! (2 comments)

Sign up to answer this question »