Lec 30 Integration by Part
Lec 30 Integration by Part
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Lecture 30 18.01 Fall 2006
Integration by Parts
Remember the product rule:
(uv)� = u� v + uv �
We can rewrite that as
uv � = (uv)� − u� v
Integrate this to get the formula for integration by parts:
� �
uv dx = uv − u� v dx
�
�
Example 1. tan−1 x dx.
At first, it’s not clear how integration by parts helps. Write
� � �
tan−1 x dx = tan−1 x(1 · dx) = uv � dx
with
u = tan−1 x and v � = 1.
Therefore,
1
v = x and u� =
1 + x2
Plug all of these into the formula for integration by parts to get:
� � �
1
tan−1 x dx = uv � dx = (tan−1 x)x − (x)dx
1 + x2
1
= x tan−1 x − ln |1 + x2 | + c
2
1
Lecture 30 18.01 Fall 2006
dv = v � dx =⇒ uv � dx = u dv and du = u� dx =⇒ u� v dx = vu� dx = v du
�
Example 2. (ln x)dx
1
u = ln x; du = dx and dv = dx; v = x
x
� � � � �
1
(ln x)dx = x ln x − x dx = x ln x − dx = x ln x − x + c
x
We can also use “advanced guessing” to solve this problem. We know that the derivative of
something equals ln x:
d
(??) = ln x
dx
Let’s try
d 1
(x ln x) = ln x + x · = ln x + 1
dx x
That’s almost it, but not quite. Let’s repair this guess to get:
d
(x ln x − x) = ln x + 1 − 1 = ln x
dx
� � � � 1
n n n−1 1�
�
(ln x) dx = x(ln x) − n(ln x) x � dx
� x
Keep repeating integration by parts to get the full formula: n → (n − 1) → (n − 2) → (n − 3) → etc
�
Example 4. xn ex dx Let’s try:
u = xn =⇒ u� = nxn−1 ; v � = ex =⇒ v = ex
2
Lecture 30 18.01 Fall 2006
Bad news: If you change the integrals just a little bit, they become impossible to evaluate:
�
� −1 �2
tan x dx = impossible
ex
�
dx = also impossible
x
is an answer, not a question. This is the solution– you don’t have to integrate it!
The most important thing is setting up the integral! (Once you’ve done that, you can always
evaluate it numerically on a computer.) So, why bother to evaluate integrals by hand, then? Because
you often get families of related integrals, such as
� ∞ x
e
F (a) = a
dx
1 x
where you want to find how the answer depends on, say, a.
3
Lecture 30 18.01 Fall 2006
Arc Length
This is very useful to know for 18.02 (multi-variable calculus).
ds
y=f(x) dy
dx
ds
dy
dx
In Figures 1 and 2, s denotes arc length and ds = the infinitesmal of arc length.
�
2
�
ds = (dx)2 + (dy)2 = 1 + (dy/dx) dx
Integrating with respect to ds finds the length of a curve between two points (see Figure 3).
To find the length of the curve between P0 and P1 , evaluate:
� P1
ds
P0
4
Lecture 30 18.01 Fall 2006
P₁
P₀
a b
We want to integrate with respect to x, not s, so we do the same algebra as above to find ds in
terms of dx. � �2
(ds)2 (dx)2 (dy)2 dy
= + =1+
(dx)2 (dx)2 (dx)2 dx
Therefore, �
� P1 � b � �2
dy
ds = 1+ dx
P0 a dx
5
Lecture 30 18.01 Fall 2006
�
y= 1 − x2
� �
dy −2x 1 −x
=√ =√
dx 1−x 2 2 1 − x2
� � �2
−x
ds = 1 + √ dx
1 − x2
�2
x2 1 − x2 + x2
�
−x 1
1+ √ =1+ 2
= 2
=
1−x 2 1−x 1−x 1 − x2
�
1
ds = dx
1 − x2
� a ⏐a
dx
s= √ = sin−1 x⏐ = sin−1 a − sin−1 0 = sin−1 a
⏐
1−x 2 0
0
sin s = a
This is illustrated in Figure 6.
6
Lecture 30 18.01 Fall 2006
s
a
a
1
Parametric Equations
Example 6.
x = a cos t
y = a sin t
Ask yourself: what’s constant? What’s varying? Here, t is variable and a is constant.
Is there a relationship between x and y? Yes:
x2 + y 2 = a2 cos2 t + a2 sin2 t = a2
7
Lecture 30 18.01 Fall 2006
t=π/2
(0,a)
(a,0)
t=0
t=0
(0,1)
(2,0)
t=π/2