Professional Documents
Culture Documents
FINAL EXAMINATION
June 13, 2016
Duration: 120 minutes
SUBJECT:
CALCULUS 2 for BT
Head of Department of Mathematics Lecturer:
Signature: Signature:
dy 3
ex − ex y = x, y(0) = .
dx 4
Question 3. [20 marks] A factory production line is manufacturing bolts
using three machines A, B, and C. Machine A is responsible for 25%, machine
B for 35%, and machine C for the rest of the total outputs of the company.
It is known from previous experience that with the machines that: 5% of the
outputs from machines A is defective, and the corresponding percentage of
defective outputs from the machines B and C are 4% and 2%, respectively. A
bolt is chosen at random from the production line and found to be defective.
What is the probability that it (the chosen bolt) came from:
(a) machine A,
(b) machine B,
(c) machine C?
1
Hint: Use Bayes’ formula. Let D = { defective bolts }, A = { bolts from machine A }.
To answer (a), calculate P (A|D).
Question 4. [20 marks] Solve the linear system:
dx
= 2x + 3y
dt
dy
= 2x + y. (1)
dt
Question 5. [20 marks]
(a) [10 marks] Use Euler’s method with step size h = 0.1 and n = 5 to
find an approximate solution of the following initial value equation:
dy
= sin(x + y) − ex , y(0) = 4.
dx
(b) [10 marks] Suppose that two fair dice are rolled. Find the probability
of the event: The sum of the result is 11 or the second die shows a
6.
2
Answer key
Final Exam Cal 2 BT, Semester 1, 2015-2016
and we get Z
−x
e y= xe−2x dx.
4
0.25, P (B) = 0.35 and P (C) = 0.4. Also, P (D|A) = 0.05, P (D|B = 0.04), P (D|C) =
0.02. A statement of Bayes’ Theorem for three events is
P (D|A)P (A)
P (A|D) =
P (D|A)P (A) + P (D|B)P (B) + P (D|C)P (C
0.05 × 0.25
= = 0.362
0.05 × 0.25 + 0.04 × 0.35 + 0.02 × 0.0.4
Similarly, P (B|D) = 0.406 and P (C|D) = 0.232).
ANS. Let
2 3 x
A := , X := .
2 1 y
Then the system (2) can be written as dX dt
= AX.
• We first find the eigenvalues of the matrix of coefficients A. They are
solutions of the characteristic equation
2 − λ 3
det(A − λI) = =0
2 1 − λ
5
v
• Let X = P Y = P . Then the system (2) now becomes
w
dv
dY dt −1 −1 0 v
= dw = P AP Y = ,
dt dt
0 4 w
or equivalently,
dv
= −v (2)
dt
dw
= 4w. (3)
dt
which gives (system (2) and (3)) solutions: v = C1 e−t and w = C2 e4t for all
C1 , C2 ∈ R.
• and so, the solution of the system (2) is
C1 e−t
x 1 3
X= = PY =
y −1 2 C2 e4t
C1 e−t + 3C2 e4t
= .
−C1 e−t + 2C2 e4t
Question 5.
(a) [10 marks] Step 1:
Start at initial value (0,4) and calculate the value of the derivative at this
point, we have:
dy
= sin(x + y) − ex = sin(0 + 4) − e0 = −1.7568
dx
Substitute our starting point and the found derivative to receive the next
point along
y(x + h) ≈ y(x) + hf (x, y)
y(0.1) ≈ 4 + 0.1(−1.7568) ≈ 3.8243
Step 2
Now we calculate the value of derivative at this new point (0.1, 3.8243)
dy
= sin(x + y) − ex = sin(0.1 + 3.8243) − e0 .1 = −1.8104
dx
Once again we substitute the current point and the derivative we have just
found to obtain the next point along.
6
y(0.2) ≈ 3.8243 + 0.1(−1.8104) ≈ 3.6432
We proceed for the required number of steps and obtain the values in bellow
table
dy
x y dx
0 4 −1.7568
0.1 3.8243 −1.8104
0.2 3.6433 −1.8669
0.3 3.2639 −1.9269
0.4 3.2634 −1.9907
g(x, y) = sin(x + y) − ex .
One has
xi+1 = xi + h = xi + 0.1, yi+1 = yi + g(xi , yi )h.
Starting from (x0 , y0 ) = (0, 4), we get the table below:
x y
0 4
0.1 3.8243
0.2 3.6433
0.3 3.2639
0.4 3.2634
(b) [10 marks] Suppose that two fair dice are rolled. Find the probability
of the event: The sum of the result is 11 or the second die shows a
6.
ANS. Let A represent the event ”the sum of the result is 11” and B
represent the event ”The second die shows a 6”. We have:
A = {6−5, 5−6}; B = {1−6, 2−6, 3−6, 4−6, 5−6, 6−6}, A∩B = {5−6}.
7
(note that A ∩ B means ”The sum of the result is 11 AND the second die
shows a 6” and A ∪ B means ”The sum of the result is 11 or the second die
shows a 6”).
After all,
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
1 1 1
= + −
18 6 36
7
= .
36
∗ ∗ ∗ END OF Solution ∗ ∗ ∗