1332PracticeMidterm1 Asolution
1332PracticeMidterm1 Asolution
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.
• Expect to be asked to interpret your mathematical analysis in the context of the appli-
cation at hand.
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
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.
(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.
= −8eu + c
√
= −8e− t/2
+ c,
= −8e−2 + 8e−1
= 8(e−1 − e−2 ).
5
Question A4. Consider the rational function
x2 − 4x
f (x) = .
x2 − 3x + 2
−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
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
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) 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.
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.
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.
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
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
12