MTHA4008B Probability and Multivariable
Calculus
Coursework Submission
Joseph Connolly
10 February 2025
Course Code: MTHT4008B
Submission Code: 005
Coursework Number: 4
Coursework Organiser: Prof. Shaun Stevens
Date of Submission: May 13, 2025
1
Coursework Submission 2
Contents
1 Line Integrals 3
Coursework Submission 3
1 Line Integrals
Question 1: Line Integrals
Question 1: Evaluate the following line integrals:
i) Z
(x + y 2 )dx
c
2
where c is given by (y − 1) = x from (4, −1) to (1, 2).
ii) I
(2y dy − yx3 dx)
c
where C is the contour in the first quadrant made up of the straight edges from
the origin to (0, 1) and (1, 0), together with the arc of the circle with centre the
origin which joins (0, 1) to (1, 0).
i.
Firstly, we need to parametrize the curve c. The curve is given by (y − 1)2 = x, let
y = t, then we have:
(t − 1)2 = x =⇒ x = (t − 1)2
The limits for t are from −1 to 2 since the curve goes from (4, −1) to (1, 2). Now
we can express the integral as:
Z Z 2
2 dx
(x + y )dx = ((t − 1)2 + t2 ) dt
c −1 dt
dx
where dt
= 2(t − 1). Thus, we have:
Z 2
((t − 1)2 + t2 )2(t − 1)dt
−1
Z 2
2(2t2 − 2t + 1)(t − 1)dt
−1
Z 2
2 (2t2 − 2t + 1)(t − 1)dt
−1
Z 2
=2 2t3 − 2t2 + t − 2t2 + 2t − 1dt
−1
Z 2
=2 2t3 − 4t2 + 3t − 1dt
−1
2
t4 4t3 3t2
=2 − + −t = −6
2 3 2 −1
−6
Coursework Submission 4
ii. Split into three segments:
• C1 : from (0, 0) to (0, 1),
• C2 : quarter circle x2 + y 2 = 1 from (0, 1) to (1, 0),
• C3 : from (1, 0) to (0, 0).
Segment C1 : Parametrize x = 0, y = t, t ∈ [0, 1]. Then dx = 0, dy = dt,
Z Z 1
3
(2y dy − yx dx) = 2t dt = 1.
C1 0
Segment C2 : Use polar param. x = sin t, y = cos t, t ∈ [0, π2 ],
dx = cos t dt, dy = − sin t dt,
Z Z π/2
3 17 17
−2 sin t cos t − cos2 t sin3 t dt = −1 −
(2y dy − yx dx) = =−
C2 0 15 15
The first integral is 1 and the second integral is 83 . Thus,
Z
3 5
(2y dy − yx3 dx) = 1 − = .
C2 8 8
Segment C3 : Parametrize x = 1 − t, y = 0, t ∈ [0, 1]. Then dx = −dt, dy = 0,
Z Z 1
3
(2y dy − yx dx) = 0dt = 0.
C3 0
Total Integral:
Z Z Z Z
3 17 2
(2y dy − yx dx) = + + =1− +0=− .
C C1 C2 C3 15 15
2
−
15
Coursework Submission 5
Question 2: Integration
Question 2.
(i) By reversing the order of integration, evaluate the double integral
√ √
Z π Z π
sin(x2 ) dx dy.
0 y
(ii) Suppose that x and y are related to u and v by
u=x−y and v = x + y.
(a) Calculate the absolute value of the Jacobian
∂(x, y)
.
∂(u, v)
(b) Let S be the region bounded by the lines
y = x, y = x − 2, y = −x, and y = −x + 3.
Sketch the region S in the x-y plane and the corresponding transformed
region T in the u-v plane.
(c) Hence, or otherwise, evaluate the integral
ZZ
2 2
(x + y)ex −y dx dy.
S
(i)
√ √
Z y= π Z x= π
sin(x2 ) dx dy.
y=0 x=y
√ √ √
The region of integration is a triangle with vertices at (0, 0), ( π, 0), and ( π, π).
√ √
The limits of integration for x are from y to π, and for y from 0 to π.
The new limits of integration are:
√
Z x= π Z y=x
sin(x2 ) dy dx.
x=0 y=0
Coursework Submission 6
To evaluate the integral, we first integrate with respect to y:
Z y=x
sin(x2 ) dy
y=0
x
= y × sin(x2 ) = sin(x2 ) × x.
0
Now we can integrate with respect to x:
√
Z x= π
x sin(x2 ) dx.
x=0
To evaluate this integral, we can use the substitution u = x2 , which gives us du =
2x dx or dx = du
2x
. The limits of integration change from 0 to π:
Z u=π
1
sin(u) du.
u=0 2
Now we can evaluate the integral:
1 u=π
Z
1 1 1
sin(u) du = [− cos(u)]π0 = [− cos(π) + cos(0)] = [1 + 1] = 1.
2 u=0 2 2 2
Thus, the value of the double integral is:
√ √
Z π Z π
sin(x2 ) dx dy = 1.
0 y
(ii)
(a)
The Jacobian is given by:
∂x ∂x 1 1
∂(x, y) ∂u ∂v
1 1 1 1 1 1 1
= ∂y ∂y = 2
1
2 = ·− − · =− − =− .
∂(u, v) ∂u ∂v 2
− 12 2 2 2 2 4 4 2
Thus, the absolute value of the Jacobian is:
∂(x, y) 1
= .
∂(u, v) 2
1
2
(b)
Coursework Submission 7
(c)
We rewrite the integrand:
2 −y 2
(x + y)ex = veuv
So the integral becomes:
ZZ Z 2 Z 3
uv 1 1
ve · du dv = veuv dv du
T 2 2 0 0
We compute the inner integral: Z 3
veuv dv
0
Let u be constant. Using integration by parts we find:
Z 3 h v i3 Z 3 1
uv 3 1
ve dv = euv − euv dv = e3u − 2 (e3u − 1)
0 u 0 0 u u u
Then integrate with respect to u from 0 to 2. The final result is:
−1.75 + 0.25e6