MATH 231 Exam Review

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Exam Solutions

MATH231

Spring 2022

1 Midterm 1 2

2 Practice midterm 2 5

3 Midterm 2 6

4 Midterm 3 9

5 Final Exam 12

1
Midterm 1

Points indicated in each step are the max points at that step. For example, in Q1: if
1
you reached x arctan x − ln |u| + C, but forgot to substitute back you x, I’ll remove
2
no more than 2 points.

Q1–Q4. Evaluate the following integrals. You may use any method other than the hint.
Z
1. arctan x dx
Z Z
arctan x dx = x arctan x − x d(arctan x)
Z
x
= x arctan(x) − dx (IBP, 4pt)
1 + x2
Z
1 1
= x arctan x − du (Substitution u = 1 + x2 )
2 u
1
= x arctan x − ln |u| + C (2pt)
2
1
= x arctan x − ln(1 + x2 ) + C. (2pt)
2

Z
1
2. √ dx
x2 − 2x

Z Z
1 1
√ dx = √ du
2
x − 2x u2
−1
(Completing the square and substitution u = x − 1, 2pt)
Z
1
= √ d(sec θ)
2
sec θ − 1
π 3π
(Substitution u = sec θ, either 0 < θ < or π < θ < see comment i below)
Z 2 2
sec θ tan θ
= dθ (Absolute value removed since tan θ > 0, 3pt)
| tan θ|
Z
= sec θ dθ (1pt)
p
= ln | sec θ + tan θ| + C = ln |u + u2 − 1| + C
p
= ln |x − 1 + x2 − 2x| + C. (2pt, see comment ii below)

Comment:
i. Strictly speaking, since that square root is the the denominator, we are not allowed
to have tan θ = 0. So θ = 0 (respectively θ = π) is excluded from the range. However,
I will not remove points if you write 0 ≤ θ < π2 or π ≤ θ < 3π2
Z
ii. You need Calc I knowledge to compute sec θ dθ. I didn’t intend to test you on this,
though we go through how to integrate this in a problem session. Hence, removing 2
points is reasonable if you reach that integral but didn’t compute it.

2
Z
5x
3. dx
(x − 2)(x + 3)
5x A B (A + B)x + (3A − 2B)
To decompose, set = + = . (3pt)
(x − 2)(x + 3) x−2 x+3 (x − 2)(x + 3)
Solve for A, B get A = 2, B = 3. (2pt)
Z Z
5x 2 3
dx = + dx
x2 + x − 6 x−2 x+3
Z Z
1 1
=2 d(x − 2) + 3 d(x + 3)
x−2 x+3
= 2 · ln |x − 2| + 3 · ln |x + 3| + C. (3pt)

Absolute value is needed.


Z
4. 16 sin2 x cos4 x dx

Solution 1.
Z Z
2
16 sin x cos x dx = 16 (sin x cos x)2 · cos2 x dx
4

sin2 (2x) 1 + cos(2x)


Z
= 16 · dx (3pt)
4 2
Z Z !
2 2
=2 sin (2x) dx + sin (2x) · cos(2x) dx
!
1 − cos(4x)
Z Z
1
=2 dx + sin2 (2x) d(sin(2x))
2 2
Z Z
= 1 − cos(4x) dx + sin2 (2x) d(sin(2x))

sin(4x) sin3 (2x)


=x− + +C (7pt)
4 3
Solution 2. I actually didn’t expect you to solve it this way. You’ll see why in a second.
Z Z
16 sin2 x cos4 x dx = 16 sin2 x cos2 x cos2 x dx

1 − cos(2x) 1 + cos(2x) 1 + cos(2x)


Z
= 16 · · dx (3pt)
2 2 2
Z    
=2 1 − cos2 (2x) · 1 + cos(2x) dx
(there are different ways to expand this expression, e.g. combine the first two terms)
Z !
1 + cos(4x)  
=2 1− · 1 + cos(2x) dx
2
Z    
= 1 − cos(4x) · 1 + cos(2x) dx
Z
= 1 + cos(2x) − cos(4x) − cos(4x) cos(2x) dx (5pt)

Now you’ll have to use some knowledge from a pre-calculus course. (I’m not assuming
you memorize this by heart, so I only leave 2 points for the rest of the computation.)
One of the product formula for trig functions says
cos(u + v) + cos(u − v)
cos(u) cos(v) = .
2

3
Therefore
Z Z
1
cos(4x) cos(2x) dx = cos(6x) + cos(2x) dx
2
1 1
= sin(6x) + sin(2x) + C̃.
12 4
Final answer:
1 1 1 1
I =x+ sin(2x) − sin(4x) − sin(6x) − sin(2x) + C
2 4 12 4
1 1 1
= x − sin(4x) + sin(2x) − sin(6x) + C
4 4 12
3 sin θ − sin(3θ)
You can check that sin3 θ = . So these two approaches give you the same
4
answer.

Q5–Q6. Improper integrals.

This problem aims to test your specific knowledge of improper integrals. If you didn’t
use the definition in Q5 or the comparison test in Q6 at all, the maximum number
of points you can get is half of the total points assigned to that part.
Z ∞
1
5. Use the definition to show that √ dx diverges.
e x ln x
Z ∞ Z t
1 1
√ = lim √ dx (3pt)
e x ln x t→∞ e x ln x
Z t
1
= lim √ d(ln x) (3pt)
t→∞ e ln x
t

= lim 2 ln x
t→∞
e

s = lim 2 ln t − 2. (diverges, 2pt)
t→∞


x sin2 x + 1
Z
6. Use the comparison test to show dx converges.
π x4
Use integral law
∞ ∞ ∞
x sin2 x + 1 sin2 x
Z Z Z
1
= dx + dx =: I + II. (2pt)
π x4 π x3 π x4

Part II converges because p = 4 > 1. (2pt)


Comparison test for I: Note that 0 ≤ sin2 x ≤ 1. (1pt)

sin2 x 1
≤ 3 =⇒ I converges. (converges by p-test, 3pt)
x3 x

4
Practice midterm 2

2. Compute the surface area generated by rotating the curve y = sin x about the x-axis,
for 0 ≤ x ≤ π 2 .
q
2

1 + sin4x x dx.
p
The infinitesimal line element is given by ds = 1 + (y ′ )2 dx =
Hence, the area integral is

s
Z π2 Z π2
√ sin2 x
A= 2πR ds = 2π sin x · 1 + dx (R = y)
0 0 4x

This integral doesn’t seem to be solvable. Even if it is solvable, that wouldn’t be some-
thing you will be asked to solve during an 45-minute exam.


X ln n
6. Use the integral test to determine if converges or not.
n=1
n
ln x
Consider f (x) = , x ≥ 1. The function is continuous and positive. It is decreasing
x
for x > e, since ln x > 1 implies
1 − ln x
f ′ (x) = < 0.
x2
So we can apply the integral test for n ≥ 3. Consider
Z ∞ Z t t
ln x 1 2
dx = lim u du = lim u = ∞.
3 x t→∞ ln 3 t→∞ 2
ln 3
P∞ ln n
P∞ ln n
By integral test n=3 n diverges, and so n=1 n also diverges.

5
Midterm 2

Similar to midterm 1, points indicated in each step are the max points at that step.

Q1–Q2. Compute the arc length or the surface area given by revolution for the following.

For Q1 and Q2, you don’t have to write down the formula for ds in a separate line.
4 points is given if you correctly set up the integral. the

x2 ln x
1. Arc length of the curve y = − for 1 ≤ x ≤ e.
4 2

s  2 s  2
x dy
1
ds = 1 + dx = 1 + − dx
2 2xdx
s 2  
x 1 x 1
= + dx = + dx. (3pt)
2 2x 2 2x

Z e  
x 1
L= + dx (2pt)
1 2 2x
! e
e
x2
Z
1 1 1
= x+ dx = + ln x

2 1 x 2 2
1
1 1 e2 + 1
= · (e2 − 1) + · (ln e − ln 1) = . (5pt)
4 2 4

p
2. Surface area generated by rotating the curve y = r2 − x2 about the x-axis, where
r > 0 and −r ≤ x ≤ r.

s  2 s  2
dy −2x
ds = 1+ dx = 1+ √ dx
dx 2 r 2 − x2
r r
x2 r2
= 1+ dx = dx. (3pt)
r2 − x2 r2 − x2

r
r
r2
Z Z p
S= 2π · y ds = 2π · r2 − x2 · dx (3pt)
−r r 2 − x2
Z r
= 2π · r dx
−r
= 2πr · x|r−r = 4πr2 . (4pt)

6
Q3–Q6. Sequences and divergence tests.

X √ 1−2n
3. Compute 5 · 2n+2 .
n=0

∞ ∞
X √ 1−2n X √ √ 2 −n n 2
5 · 2n+2 = 5 5 ·2 ·2
n=0 n=0
∞  n
√ X 2
=4 5· (3pt)
n=0
5

√ 1 √ 5 20 5
=4 5· 2 =4 5· = . (3pt)
1− 5
3 3

∞  n
X 1
4. Use the divergence test to determine if 1+ converges or not.
n=1
2n

Q4: 2pt assigned for applying the divergent test; 6pt for computing the limit of
the sequence.
n


1
The series diverges because lim 1 + = e ̸= 0. (2pt)
n→∞ 2n
To compute this limit:  n
1
Method 1: Using the fact that lim 1 + = e. Let m = 2n then (2pt)
n→∞ n
 n m/2

1 1
lim 1+ = lim 1 +
n→∞ 2n m→∞ m
m ! 12


1 1
= lim 1 + = e 2 = e. (4pt)
m→∞ m

Method 2: Compute the limit directly


 n !
1  1 n
lim 1+ = lim exp ln 1 + (exp and ln functions are inverses.)
n→∞ 2n n→∞ 2n
 !
! 1
 1  ln 1 + 2n
= exp lim n ln 1 + = exp lim 1 .
n→∞ 2n n→∞
n

To compute the limit inside exponential, apply L’Hopital’s rule (x is used because we
need the function to be differentiable, but n is discrete)
 
1
ln 1 + 2x − 1+1 1 · 12 x12 1
1
2x 2
lim 1 = lim 1 = lim 1 = 2. (4pt)
x→∞
x
x→∞ − x2
x→∞ 1 + 2x

So the final answer for the limit is e ̸= 0. (2pt)

7

X 2
5. Use the integral test to determine if ne−n converges or not.
n=1

−x2
Let f (x) = xe . Note that f is a positive and continuous function defined on [1, ∞).
Moreover f is decreasing because (2pt)
2
f ′ (x) = e−x (1 − 2x2 ) =⇒ f ′ (x) < 0 when x ≥ 1. (2pt)

The above argument guarantees that we can apply the integral test. Now compute the
improper integral:
Z ∞ Z ∞
1 −x2 1 2 t
2

xe−x dx = e dx2 = − lim e−x
1 1 2 2 t→∞ 1
1 2 1
= − lim e−t − e−1 = < ∞. (4pt)
2 t→∞ 2e
The series converges by integral test. (2pt)


X n
6. Use the comparison test to determine if √ converges or not.
n=1
n6+n
n
Note that √ dominates the sequence. Note that for n ≥ 1,
n6
√ p 1
1
n3 = n6 < n6 + n =⇒ √ <
+n n3
n6
n 1
=⇒ √ < 2. (4pt)
6
n +n n
∞ ∞
X X 1
Apply comparison test with bn = (we know this converges), we conclude the
n=1 n=1
n2
series converges. (2pt)

8
Midterm 3
∞ √
X n
1. Use the limit comparison test to determine if √ converges or diverges.
n=1
n4 + 3n − 1
√ √ √
n n n
Denote an = √ and bn = √ = 2 . Then (3pt)
n4 + 3n − 1 n4 n

√ n
an n4 +3n−1 n2
lim = lim √ = lim √
n→∞ bn n→∞ √n n→∞ n4 + 3n − 1
n4
s
1
= lim = 1. (3pt)
n→∞ 1 + 3/n3 − 1/n4

The limit is finite and not zero, so comparison test applies. Hence
∞ ∞ ∞
X X 1 X
bn = 3/2
converges =⇒ an converges. (2pt)
n=1 n=1
n n=1

Q2–Q4. Determine if the alternating series is absolutely convergent, conditionally convergent


or diverges. You may use any method.

X (−3)n · n2
2.
n=1
(2n)!
Ratio test:

(−3)n+1 (n+1)2
[2(n+1)]! 3(n + 1)2
L = lim (−3)n n2 = lim
2
= 0 < 1.
n→∞
n→∞ n (2n + 2)(2n + 1)

(2n)!

By the ratio test, the series converges absolutely. (8pt)


X (−1)n
3.
n=2
(ln n)n
Root test:
(−1)n 1/n

1
L = lim = lim = 0 < 1.
n→∞ (ln n)n n→∞ ln n

By the root test, the series converges absolutely. (6pt)

9

X (−1)n
4. √ √
n=2
n+1+ n
1 1 1 1 1
Consider |an | = √ √ . Take bn = √ √ = ·√ , then
n+1+ n 4n + n 3 n
X 1
0 < bn < |an |, and bn is divergent as p = .
2
By comparison test the series of absolute value diverges. Hence the alternating series
X∞
an does not converge absolutely. (4pt)
n=1
Now using the alternating series test to check conditional convergence:
• |an | ≥ 0.
1
• lim |an | = lim √ √ = 0.
n→∞ n+1+ n
n→∞
√ √ √

p
(n + 1) + 1 + n + 1 > n + 1 + n for all n implies |an | > |an+1 | for all n. (4pt)

X
By alternating series test, the original series an converges conditionally. (2pt)
n=1


X (x − 2)n
5. Determine the radius of convergence R and interval of convergence I for the series √ .
n=1
(−4)n n
Compute the limit
(x−2)n+1 √

(−4)n+1 √n+1

(x − 2) n |x − 2|
L = lim (x−2)n
= lim √ = .
n→∞
(−4)n √n n→∞ 4 n + 1
4

The inequality L < 1 gives |x − 2| < 4. Hence R = 4 and the series converges when
−2 < x < 6. (3pt)
Now consider the boundary cases: x = −2 and x = 8:
∞ ∞
(−4)n X X 1
• When x = −2, we have n
√ = √ , which is divergent. (3pt)
n=1
(−4) n n=1 n
∞ ∞
X 4n X (−1)n
• When x = 6, we have √ = √ . Apply alternating series test,
n=1
(−4)n n n=1
n
an = √1n is positive, decreasing and its limit is zero. Hence the alternating series is
convergent. (4pt)
This implies I = (−2, 6].

1 there 1 1
are more than one way to choose bn , e.g. √ √ or √
2n + n 2 n+1

10
6. Write f (x) = ln(x + 5) as a power series centered at 0.
There are two possible approaches.

Solution 1.
Z x
1
ln(x + 5) − ln(5 + 0) = dt (FTC, 2pt)
0 5 + t
Z x
1 1
ln(x + 5) =  dt + ln 5 (substitute u = − 5t , 2pt)
5 0 1 − − 5t
Z ∞  n
1 xX t
= − dx
5 0 n=0 5
∞  n Z x
X 1 1
= − tn dt + ln 5
n=0
5 5 0

X (−1)n xn+1
= + ln 5. (2pt)
n=0
5n+1 n + 1

Note that substitution changes


the range whereas integration does not. Here we used
x
u = − x5 . Then |u| = − < 1 gives |x| < 5. So the above expression is valid only for
5
x ∈ (−5, 5).

X (−1)n xn+1
Final answer: ln(x + 5) = + ln 5 when |x| < 5. (2pt)
n=0
5n+1 n + 1

X (−1)n+1 un
Solution 2. We have seen ln(1 + u) = , for |u| < 1 in class. Hence
n=1
n
"  #
x x
ln(x + 5) = ln 5 · 1 + (substitute u = )
5 5
= ln 5 + ln(1 + u)

X (−1)n+1 un
= ln 5 + (Note that n start from 1 here, and |u| < 1.)
n=1
n

X (−1)n+1 xn
= ln 5 +
n=1
5n · n

X (−1)n xn+1
or = ln 5 + when |x| < 5. (Note that n start from 0 here.)
n=0
5n+1 · (n + 1)

11
Final Exam
Q1–Q3. Compute the following integrals. You may use any method.
Z
1. (ln x)2 dx [6pt]

See Homework 1: 3rd question in Q1. Here we have a definite integral, so the final
answer is
(e − 2e + 2e) − 2 = e − 2.

Z p
2. (x − 1)2 1 − (x − 1)2 dx [10pt]

Compare to Homework 1: 4th question in Q3.


π π
Trig substitution x − 1 = sin θ, − ≤ θ ≤ , then the indefinite integral becomes:
2 2
Z Z Z
p 1
sin2 θ 1 − sin2 θ d(sin θ) = sin2 θ cos2 θ dθ = sin2 (2θ) dθ
4
Z
1 1 1
= 1 − cos(4θ) dθ = θ − sin(4θ).
8 8 32
π
Note that when x = sin θ = 0, θ = 0 and x = sin θ = 1, θ = . Hence the definite
2
integral is
1hπ 1 1 i π
− sin(2π) − 0 + sin 0 = .
8 2 4 4 16

Z 1
1
3. √ dx (This is an improper integral.) [8pt]
0 (1 + x) x
Z 1 Z 1
1 1
√ dx = lim √ dx (improper integral)
0 (1 + x) x t→0+ t (1 + x) x
1 √

Z
2 1
= lim+ √ du (u = x, du = d x = √ )
t→0 1 + u2
t 2 x dx
1 √ π
= lim 2 arctan u √ = 2 arctan 1 − lim 2 arctan t = .

t→0+ t t→0+ 2

Q4–Q5. Compute arc length or surface area.


4. Compute the arc length of the curve x = sin3 t, y = 1 − cos3 t for 0 ≤ t ≤ π. [10pt]

s 2 2
Z π  Z π
dx dy
q
L= + dt = (3 sin2 t cos t)2 + (−3 cos2 t sin t)2 dt (4pt)
0 dt dt 0
π Z πr
Z r    
= 9 sin4 t cos2 t + cos4 t sin2 t dt = 3 sin2 t cos2 t sin2 t + cos2 t dt
0 0
Z π
3 π
Z π
3 3
=3 sin t cos t dt = sin(2t) = − cos 2t = .

0 2 0 4 0 2

12
r
x2
5. Compute the surface area of the curve y = 1− rotating about the x-axis, where
2
0 ≤ x ≤ 1. [10pt]

s v  2 2
dy −x
u
u
ds = 1 + dx = t1 + q dx
dx 2 1− x2
2
r r
x2 4 − x2
= 1+ 2
dx = dx. (3pt)
4 − 2x 4 − 2x2
r r
1
x2 4 − x2
Z Z
S= 2π · y ds = 2π · 1− · dx (3pt)
0 2 4 − 2x2
Z 1 r
p 4 − x2
= π · 4 − 2x2 · dx
0 4 − 2x2
Z 1 p
=π 4 − x2 dx
0

There are two solution for the integral above.


Solution 1. Use geometry. This compute the region bounded by x2 + y 2 = 4, y = 0,
x = 0 and x = 1. So the value equals to the area of a sector plus a triangle, which is
π 1
+ .
3 2
π π
Solution 2. Compute directly. Using trig substitution x = 2 sin θ, − ≤ θ ≤ to
2 2
compute this integral
Z 1 p Z 1 p
2
4 − x dx = 4 − 4 sin2 θ d(2 sin θ)
0 0
Z θ1
= 4 cos2 θ dθ (We will determine θ0 and θ1 later.)
θ0
Z θ1
=2 1 + cos(2θ) dθ
θ0
θ1
= (2θ + sin(2θ)) .

θ0
π
Note that when x = 2 sin θ = 0, θ0 = 0; when x = 2 sin θ = 1, θ0 = . So the above is
6
π 1 π 1
+ . Final answer π · + . (4pt)
3 2 3 2

Q6-Q8. Determine if the series is convergent or diverges. You may use any method.

n
X
6. 41− 2 3n+2 [6pt]
n=0

3
Compare to Homework 4: 1st question in Q2. Check that r = so the geometric series
2
diverges.

13

X 3n2 − 7n
7. [6pt]
n=0
n4 − 2n + 1
1
Compare to Homework 5: 1st question in Q2. Limit comparison test with bn = .
n2
Then (2pt)
3n2 −7n
an n4 −2n+1 3n4 − 7n3
lim = lim 1 = lim = lim = 3. (2pt)
n→∞ bn n→∞ n→∞ n4 − 2n + 1 n→∞
n2

The limit is finite and not zero, so comparison test applies. Hence
∞ ∞ ∞
X X 1 X 3n2 − 7n
bn = converges =⇒ converges. (2pt)
n=1 n=1
n2 n=1
n4 − 2n + 1


X (3n − 1)!
8. [6pt]
n=1
(2n)! · 3n
Ratio test:

(3(n+1)−1)!
(2(n+1)!·3n+1 (3n + 2)(3n + 1)n
L = lim (3n−1)! = lim = ∞ > 1.
n→∞ n→∞ (2n + 2)(2n + 1)
(2n)!·3n

By the ratio test, the series diverges.

Q9. Determine if the alternating series is absolutely convergent, conditionally convergent


or diverges. You may use any method.

X (−1)n
9.  n2 [8pt]
n=1 1
1+
n
Root test:
(−1)n 1/n
!
1 1
L = lim = lim n = < 1.

1 + 1  n2 n→∞ 1 + 1 e

n→∞
n n

By the root test, the series converges absolutely.

Q10. Determine the radius of convergence R and interval of convergence I for the following
series.

X (x + 7)n
10. [10pt]
n=2
3n ln n
See Homework 6: 2nd question in Q1. Here the coefficients are changed. You should
replace (x + 2) by (x + 7) and 2n by 3n .

14

X
Q11–Q12. Write the following function as a power series of the form cn (x − a)n .
n=0
Z x
2
11. Find the Maclaurin series of f (x) = dt.
0 (t − 1)(t − 3)
One possible solution is:
Z x Z x
2 1 1
dt = − dt
0 (t − 1)(t − 3) 1 − t 3 − t
Z0 x
1 1 1
= − · t dt
0 1 − t 3 1 − 3
Z xX ∞ ∞
1 X  t n
= tn − dt (Substitution u = 3t so |t| < 3.)
0 n=0 3 n=0 3
∞ Z x ∞ Z
X 1 X x n
= tn dt − n+1 t dt (term by term integration)
n=0 0
3 n=0 0

!
X 1 xn+1
= 1 − n+1 . (vaild when |x| < 3)
n=0
3 n+1

There are other ways to solve the problem.

12. Find the Taylor series of f (x) = cos x centered at π. [10pt]


See Homework 6: 1st question in Q3. Here sin is replaced by cos.

15

You might also like