0% found this document useful (0 votes)
23 views

1332PracticeMidterm1 Asolution

1332PracticeMidterm1_aSolution (1)1332PracticeMidterm1_aSolution (1)

Uploaded by

Woo Sol Yoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

1332PracticeMidterm1 Asolution

1332PracticeMidterm1_aSolution (1)1332PracticeMidterm1_aSolution (1)

Uploaded by

Woo Sol Yoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

University of Ottawa

MAT 1332, Practice midterm (longer than the actual midterm)


February 2019

These are questions to help you see the scope of the first midterm exam. The format of
the midterm will be as follows:

• About 33% multiple-choice and short answer; 67% long answer with full justification
required. About 27 points in total; worth 20% of your final grade.

• About 7 questions, some with multiple parts.

• Covering material from : integration: substitution, integration by parts, partial frac-


tions, Riemann sums, improper integrals; differential equations: checking solutions,
solving separable differential equations; autonomous differential equations: equilibria,
phase line diagrams, stability; complex numbers; matrix algebra.

• Expect to be asked to interpret your mathematical analysis in the context of the appli-
cation at hand.

Question A1. Compute the following integrals:


Z 3/2
x − 5x
(a) √ dx
x

x3/2 − 5x √
Z Z
√ dx = x − 5 x dx
x
 
1 2 1 3/2
= x −5 x +c
2 3/2
1 10
= x2 − x3/2 + c
2 3
for c an arbitrary constant.
Z  
2 6x
(b) sin x + 4x − √ 3
dx
x

Z   Z ZZ
2 6x
sin x + 4x − √
3
dx = x2 dx − 6 x2/3 dx
sin(x) dx + 4
x
 
4 3 1 5/3
= − cos(x) + x − 6 x +c
3 5/3
4 18
= − cos(x) + x3 − x5/3 + c
3 5
for c an arbitrary constant.

1
Z
(c) sec2 x tan x dx

Use the substitution u = tan(x), du = sec2 (x) dx. Then we have


Z Z
1 1
sec2 (x) tan(x) dx = u du = u2 + c = tan2 (x) + c
2 2
for c an arbitrary constant.
Z
(d) (x3 + x)10 (3x2 + 1)dx

To avoid multiplying out a horrible expression, we try the substitution u = x3 + x,


du = (3x2 + 1) dx. This works well:
Z Z
1 1
(x + x) (3x + 1) dx = u10 du = u11 + c = (x3 + x)11 + c
3 10 2
11 11
for c an arbitrary constant.
Z
(e) x4 ln xdx

This is a product of two distinct functions, with no obvious composition, so we try


integration by parts.
Let u = ln(x) and dv = x4 dx. Then du = x1 dx and v = 15 x5 . Then we have
Z Z
1 1 1 5
x4 ln x dx = x5 ln(x) − · x dx
5 x 5
Z
1 1
= x5 ln(x) − x4 dx
5 5
 
1 5 1 1 5
= x ln(x) − x +c
5 5 5
1 1
= x5 ln(x) − x5 + c,
5 25
where c is an arbitrary constant.
Z
(f) x sin(x/2)dx

We could do the substitution w = x/2, giving dw = 12 dx. Then since x = 2w and


dx = 2 dw we have
Z Z Z
x sin(x/2) dx = (2w) sin(w) 2 dw = 4 w sin(w) dw.

Now we apply integration by parts, with u = w, dv = sin(w) dw, so that du = dw and


v = − cos(w). This gives
Z Z Z
w sin(w) dw = −w cos(w)− (− cos(w)) dw = −w cos(w)+ cos(w) dw = −w cos(w)+sin(w)+c

2
for c an arbitrary constant. Finally, putting this together we get
Z Z
x sin(x/2) dx = 4 w sin(w) dw = 4(−w cos(w)+sin(w)+c) = −4w cos(x)+4 sin(w)+d

where d is some arbitrary constant (equal to 4c, but c was arbitrary, too).
Z 1/x
e
(g) dx
5x2
We use the substitution u = 1/x = x−1 , du = −x−2 dx. Then (−1) du = 1
x2
dx so

e1/x
Z Z
1 u
dx = e (−1) du
5x2 5
Z
1
=− eu du
5
1
= − eu + c
5
1 1/x
= − e + c,
5
where c is an arbitrary constant.

3
Question A2. Use 5 equal subintervals and (a) left endpoints, (b) midpoints, (c) right end-
points to calculate Riemann sums of f (x) = sin(x) on [0, π/2].

b−a
We are integrating over [a, b] = [0, π/2]. For 5 subintervals we need ∆x = 5 = π/10.
Therefore the endpoints of the subintervals are
π 2π 3π 4π 5π π
x0 = 0, x1 = , x2 = , x3 = , x4 = , x5 = = ,
10 10 10 10 10 2
where we could simplify some of these fractions, of course.
(a) For the left endpoint rule we use
4
X
f (xi )∆x = sin(x0 )∆x + sin(x1 )∆x + sin(x2 )∆x + sin(x3 )∆x + sin(x4 )∆x
i=0
= ∆x(sin(0) + sin(π/10) + sin(π/5) + sin(3π/10) + sin(2π/5))
π
= (2.6569)
10
= 0.8347.

(c) For the right endpoint rule we use


5
X
f (xi )∆x = sin(x1 )∆x + sin(x2 )∆x + sin(x3 )∆x + sin(x4 )∆x + sin(x5 )∆x
i=1
= ∆x(sin(π/10) + sin(π/5) + sin(3π/10) + sin(2π/5) + sin(π/2))
π
= (3.6569)
10
= 1.1488.

(b) To apply the midpoint rule, we need to use the midpoints of each interval, which are
given by 21 (xi + xi+1 ) in each case. This gives

4
X 1 1 1
f ( (xi + xi+1 ))∆x = sin( (x0 + x1 ))∆x + sin( (x1 + x2 ))∆x+
2 2 2
i=0
1 1 1
+ sin( (x2 + x3 ))∆x + sin( (x3 + x4 ))∆x + sin( (x4 + x5 ))∆x
2 2 2
= ∆x(sin(π/20) + sin(3π/20) + sin(5π/20) + sin(7π/20) + sin(9π/20))
π
= (3.1962)
10
= 1.0041.

We can also integrate exactly in this case and deduce that the exact answer is 1.

4
Question A3. A population grows according to the differential equation

dN e− t/2
=2 √
dt t
.
Determine the net change of this population between t = 4 and t = 16.

A) 32 (e−2 − e−20 ) B) 8(e−1 − e−2 ) C) 8(e−4 − e−16 )


D) 6(e−1 − e−2 ) E) 35 (1 − e−15 ) F) 0
Z 16
dN
The net change from 4 to 16 is the definite integral dt. We compute the indefinite
4 dt
integral first. √
Use the substitution u = − 21 t, so that du = − 14 t−1/2 dt. Then 1

t
dt = −4 du so

e− t/2
Z Z
2 √ dt = 2 eu (−4) du
t
Z
= −8 eu du

= −8eu + c

= −8e− t/2
+ c,

for c an arbitrary constant. √


Now evaluate the definite integral using the choice −8e− t/2 of antiderivative:

16
e− t/2 √
Z h i16
2 √ dt = −8e− t/2
4 t 4
√ √
= −8e− 16/2
− (−8)e− 4/2

= −8e−2 + 8e−1
= 8(e−1 − e−2 ).

5
Question A4. Consider the rational function

x2 − 4x
f (x) = .
x2 − 3x + 2

(a) Decompose f as a sum of proper fractions. R


(b) Use this to determine the indefinite integral f (x) dx.

(a) We do long division:


1
x2 x2

− 3x + 2 − 4x
− x2 + 3x − 2
−x−2
which says that
x2 − 4x −x − 2
2
=1+ 2 .
x − 3x + 2 x − 3x + 2
Now we factor the denominator x2 − 3x + 2 = (x − 1)(x − 2) and solve

−x − 2 A B
= + .
x2 − 3x + 2 x−1 x−2
Multiplying this out gives the equation

−x − 2 A(x − 2) + B(x − 1)
=
x2 − 3x + 2 x2 − 3x + 2
so by considering the numerators alone, plugging in x = 2 gives B = −4 and x = 1 gives
−A = −3 or A = 3. Thus we have

x2 − 4x 3 −4
2
=1+ + .
x − 3x + 2 x−1 x−2
(b) We integrate

x2 − 4x
Z  
−4
Z
3
dx = 1+ + dx
x2 − 3x + 2 x−1 x−2
= x + 3 ln |x − 1| − 4 ln |x − 2| + c.

6
Question A5. The dynamics of a population of fish in a lake follows a logistic model, to
which we have added a negative factor owing to predation; this gives the following model
dN
= 0.15N (400 − N ) − 0.3N
dt
where N (t) is the number of fish at time t, and t is measured in weeks.
(a) Find all biologically relevant equilibria.
(b) State and apply the Stability theorem to determine the stability of each of the equilibria.
(c) Draw the phase line diagram for this model.

(a) We have to solve the equation 0.15N (400−N )−0.3N = 0. Clearly N = 0 is a solution.
To find others we divide by N to get

0.15(400 − N ) − 0.3 = 0 ⇔ 60 − 0.15N − 0.3 = 0 ⇔ 0.15N = 59.7 ⇔ N = 398.

So there are two equilibria, 0 and 398; both are biologically relevant.
(b) The Stability Theorem states that if N 0 = f (N ) is a differential equation and N ∗ is
an equilibrium, then (a) if f 0 (N ∗ ) < 0 then N ∗ is stable and (b) if f 0 (N ∗ ) > 0 then N ∗ is
unstable.
Here, f (N ) = 0.15N (400 − N ) − 0.3N so

f 0 (N ) = 0.15(400 − N ) − 0.15N − 0.3 = 59.7 − 0.3N.

Since f 0 (0) = 59.7 > 0, the equilibrium N ∗ = 0 is unstable. Since f 0 (398) = −59.7 < 0, the
equilibrium N ∗ = 398 is stable.
(c) The points on the phase line are 0 and 398. Since this is a population model, we only
draw the positive phase line, because negative values of N are not meaningful. Between 0 and
398, we see that f (N ) = 0.15N (400 − N ) − 0.3N > 0 (by plugging in N = 1, for example), so
the arrow points to the right. For N > 398 we see that f (N ) < 0 (by plugging in N = 1000,
for example); so the arrow points to the left.
(insert picture here)

7
Question A6. Consider the following integral:
Z 2
2xdx
2 1/3
0 (x − 1)

(a) Explain why this integral is improper.


(b) Study its convergence or divergence. If it converges give its value.

(a) The integrand is undefined at x = ±1. In particular it is not defined on the entire
interval [0, 2] since it has a vertical asymptote at x = 1, and is thus an improper integral.
(b) Let us first find the indefinite integral. We use the substitution u = x2 − 1 so du = 2x.
Then
Z Z Z
2x dx 1 3 3
2 1/3
= 1/3
du = u−1/3 du = u2/3 + c = (x2 − 1)2/3 + c.
(x − 1) u 2 2

Therefore
Z T  T
2x dx 3 2 2/3
lim = lim (x − 1)
T →1− 0 (x2 − 1)1/3 T →1− 2 0
 
3 2 2/3 3
= lim (T − 1) − (−1)
T →1− 2 2
3 3
= (12 − 1)2/3 − (−1)
2 2
3
=
2
R1
which implies that the integral 0 (x22x dx
−1)1/3
dx converges, to 23 .
We next check
Z 0  2
2x dx 3 2 2/3
lim = lim (x − 1)
T →1+ T (x2 − 1)1/3 T →1+ 2 T
 
3 2/3 3 2 2/3
= lim (3) − (T − 1)
T →1+ 2 2
3 2/3 3 2
= 3 − (1 − 1)2/3
2 2
3 2/3
= 3
2
R2
which implies that the integral 1 (x22x dx
1/3 dx also converges, to 2 3
3 2/3
.
R 2 2x dx −1)
Therefore the integral 0 (x2 −1)1/3 dx converges to

3 3 2/3
+ 3 .
2 2

8
Question A7. (a) Solve the following initial value problem:
xy sin(x)
y0 =
y+1
where y(0) = 1. You may leave your answer as an implicit equation of x and y.

This is a separable differential equation.


y+1 0
y = x sin(x)
y
Z Z
y+1
dy = x sin(x) dx
y
Z   Z
1
1+ dy = x sin(x) dx.
y
We solved the integral on the right in Question A1(f) so it is not recopied here. We get

y + ln |y| = sin(x) − x cos(x) + c.

The initial value gives the equation

1 + ln(1) = sin(0) − 0 cos(0) + c ⇔ c = 1.

So our solution is
y + ln |y| = sin(x) − x cos(x) + 1.
In this case we cannot solve for y, so the solution is defined implicitly.
(b) Solve the following initial value problem:

x0 = x sec2 (t)

with x(0) = 5.

This is a separable differential equation.


1 0
x = sec2 (t)
Z x Z
1
dx = sec2 (t) dt
x
ln |x| = tan(t) + c
|x| = etan(t)+c
x = ±ec etan(t) = Aetan(t)

where A is an arbitrary constant. Then x(0) = 5 means 5 = Aetan(0) = A so the solution is

x(t) = 5etan(t) .

You should solve for the state variable in your solution whenever this is possible.

9
Question A8. Using Euler’s method, estimate the value of y(1) if y(x) is the solution of the
differential equation
y 0 = xy − x2
satisfying initial condition y(0) = 1. Use a step size of ∆x = 0.2.

We use the formula

yn+1 = yn + f (xn , yn )∆x = yn + (xn yn − x2n )∆x

and make a table starting with initial conditions x0 = 0, y0 = 1.


n xn yn xn yn − x2n yn + (xn yn − x2n )∆x
0 0 1 0 1
1 0.2 1 0.16 1.032
2 0.4 1.032 0.2528 1.08256
3 0.6 1.08256 0.289536 1.1404672
4 0.8 1.1404672 0.27237376 1.194941952
5 1 1.194941952
so our estimate is y(1) = 1.194941952.

10
Question A9. Consider the following vectors and matrices.

         
1 −11 −9 2 −7 1 1 0
A= 3 0 10  , B =  8 5  , ~u =  3  , ~v =  5/3  , w
~ =  1/3  .
14 −2 0 0 1 2 0 3/5

Calculate the following, if possible. If not possible, state why.

a) AT ~v + 2B T ~u.
AT ~v + 2B T ~u is not defined since B T ~u is 2 × 1 and AT ~v is 3 × 1.

~v T
b) w~
 
0 1/3 3/5
~T
~v w =  0 5/9 1  .
0 0 0

c) ~v T w
~
We can write a 1 × 1 matrix as a number.
~v T w
~ = 1 × 0 + 5/3 × 1/3 + 0 × 3/5 = 5/9.

d) A~u + 2~v T w
~
A~u + 2~v T w
~ is not defined since AT ~u is a 3 × 1 vector and ~v T w
~ is 1 × 1.

e) AB
 
−86 −71
AB =  6 −11  .
12 −108

f ) B~u
B~u is not defined since B has 2 columns and ~u has 3 rows.

g) BA
BA is not defined since B has 2 columns and A has 3 rows.

h) A2
 
−158 7 −119
A2 =  143 −53 −27  .
8 −154 −146

i) B 2
B 2 is not defined since it is not square. (The first B is 3 × 2, and the second is 3 × 2.)

11
Question A10. Express the following complex number in polar (Euler) form:
z = 1 − 2i.

p √
|z| = 12 + (−2)2 = 5 = r.
Solve
r cos(ϕ) = 1, r sin(ϕ) = −2.
Therefore
1
cos(ϕ) = √ =⇒ ϕ = 1.107 or − 1.107 radians.
5
√ 0, we deduce the correct answer is ϕ = −1.107 and check that indeed
Since sin(ϕ) <
sin(ϕ) = −2/ 5.
So the polar form of z is √ −1.107i
z= 5e .

|u|2
Question A11. Given u = 3 + 2i, v = −1 + 4i, compute uv + .
v
u = 3 − 2i, |u|2 = 32 + 22 = 13, |v|2 = (−1)2 + 16 = 17. So
uv = (3 − 2i)(−1 + 4i) = −3 + 12i + 2i − 8i2 = 5 + 14i
and
|u|2 |u|2 13 13 52
= 2 v = (−1 − 4i) = − − i.
v |v| 17 17 17
Thus
|u|2
 
13 52 72 186
uv + = 5 + 14i + − − i = + i.
v 17 17 17 17

Question A12. For which value(s) of r is y = xr ln(x) a solution of the differential


equation  
0 y 3 ln(x) + 1
y = ?
x ln(x)
If y = xr ln(x) then
1
y 0 = rxr−1 ln(x) + xr = xr−1 (r ln(x) + 1)
x
whereas
xr ln(x)
   
y 3 ln(x) + 1 3 ln(x) + 1
= = xr−1 (3 ln(x) + 1).
x ln(x) x ln(x)
Comparing these answers reveals that in order to solve the given differential equation,
we must have r = 3.

12

You might also like