Docsity

Problem Set 1 Solutions - Probability with Engineering Applications | ECE 313, Assignments of Statistics

Toggle sidebar
bg1
University Problem Set #1: Solutions ECE 313
of Illinois Page 1 of 3 Spring 2002
1.(a) For x ∈ (0, ∞), ln x = ∫
0
x
1
t dt is a monotone increasing function of x (because the Fundamental Theorem of
Calculus tells us that the derivative of ln x is 1/x which is positive for all x ∈ (0, ∞)).
Hence, ln e = 1 > 0 = ln 1 ⇒ e > 1 ⇒ e–1 < 1.
(b) exp(–1) = exp(–12) = exp(0 – 12) = 0.3678… on my calculator
(c) Excel calculates the values to be e–1, e, and e–1 respectively. If you actually RTFM, you will find that
according to Microsoft, the – in EXP(–1^2) is a unary operator that has priority over the exponentiation
operator, that is, –12 means (–1)2. On the other hand, the – in EXP(0–1^2) is an ordinary binary
subtraction operator that, according to PEMDAS, has lower priority than the exponentiation operator.
Later on, when teaching you about Gaussian random variables, I will be writing exp(–x2) a lot, so be sure to
remember that I mean exp(–(x2)) and not exp((–x)2) = exp(x2)! Also, be very careful if and when you use Microsoft
Excel in statistical applications!
(d) Yes, ordinary multiplication by hand shows that 1111111112 = 12345678987654321. What does this have
to do with the pictures shown below?
*=
ECE 210 ECE 310
*=
(e) True: 1
–α ± β
= 1
–α ± β
• –α +
– β
–α +
– β
= –α +
– β
α2 – β
2 showing that 1
–b ± b2 - 4ac = –b +
– b2 - 4ac
4ac
It follows that the given expression simplifies to the more familiar –b ± b2 - 4ac
2a .
2.(a) You were not asked to provide a proof that the answer to part (a) is 3, but here is one for anyone interested.
cos(a–b) + cos(a+b) = 2 cos a cos b, while cos (a–b) – cos (a+b) = 2 sin a sin b.
Also, cos 4x = 8 cos4x – 8 cos2x + 1, and cos 3x = 4 cos3x – 3 cos x.
Hence, cot(10)cot(30)cot(50)cot(70) = (cos 80 + cos 60)(cos 80 + cos 20)
(cos 80 – cos 60)(cos 80 – cos 20).
Let cos 20 = y. Since cos 60 = 1/2, we know that 4y3–3y = 1/2, and that cos 80 = 8y4 – 8y2 + 1
= 2y(4y3 – 3y) – 2y2 + 1 = 1 + y – 2y2. Thus, the above fraction equals
(3/2 + y – 2y2)(1 + 2y – 2y2)
(1/2 + y – 2y2)(1 – 2y2) = 3/2 + 4y – 3y2 – 6y3 + 4y4
1/2 + y – 3y2 – 2y3 + 4y4 = 3/4
1/4 = 3
on substituting y3 = (3/4)y + 1/8 and 4y4= 3y2 +y/2.
(b) For any x, 0 ≤ x < 90, cot(x) = tan(90–x) and cot(x) = 1/tan(x). Hence, tan(80)tan(60)tan(40)tan(20) = 3,
and, on replacing all the tans by 1/cots, we deduce that cot(20)cot(40)cot(60)cot(80) = 1/3. Note that it is
easy to show that cot(45–y)cot(45–x)cot(45+x)cot(45+y) = 1. It is not quite as easy to find such formulas
if the RHS is required to be an integer other than 1 (as in the surprising result of part (a)).
(c) Since 1
n+1 + n = 1
n+1 + n • n+1 – n
n+1 – n = n+1 – n
(n+1) – (n) = n+1 – n, the sum “telescopes”
to 100 – 1 = 9. Look, Ma! No calculator.
3.(a) 7. (b) My cheap calculator gives 0 as the answer in all cases. This seems reasonable because
sin x ≈ x for small x, and thus the function should have value nearly 0 as x approaches 0. However, the
answers that you get will depend on the number of digits of precision used by your calculating device as
well as the algorithm it uses to compute sin(x). For example, at x = 10–7, the Unix high-precision
calculator utility bc gives the following values: ≈ 109 using 20 digits; ≈ 103 using 25 digits, ≈ 0.34 using
30 digits and ≈ 0.33333333333334 using 45 or more digits. Thus, it would appear that the limit might be
1/3. For the formal proof, note sin x = x – x3/3! + x5/5! – … ≈ x – x3/6 for small x. Hence, for small x,
1
[sin x]2 – 1
x2 ≈ 1
x2
1
(1 – x2/6)2 – 1 = 1
x2[ ]
1 + 2x2/6 + 3(x2/6)2 + … – 1 = 1
3 + 3x2
36 …
pf3

Partial preview of the text

Download Problem Set 1 Solutions - Probability with Engineering Applications | ECE 313 and more Assignments Statistics in PDF only on Docsity!

of Illinois Page 1 of 3 Spring 2002

1.(a) For x ∈ (0, ∞), ln x =

0

x 1 t dt is a monotone increasing function of x (because the Fundamental Theorem of Calculus tells us that the derivative of ln x is 1/x which is positive for all x ∈ (0, ∞)). Hence, ln e = 1 > 0 = ln 1 ⇒ e > 1 ⇒ e–1^ < 1. (b) exp(–1) = exp(–1^2 ) = exp(0 – 1^2 ) = 0.3678… on my calculator (c) Excel calculates the values to be e–1^ , e, and e–1^ respectively. If you actually RTFM, you will find that according to Microsoft, the – in EXP(–1^2) is a unary operator that has priority over the exponentiation operator, that is, –1^2 means (–1)^2. On the other hand, the – in EXP(0–1^2) is an ordinary binary subtraction operator that, according to PEMDAS, has lower priority than the exponentiation operator. Later on, when teaching you about Gaussian random variables, I will be writing exp(–x^2 ) a lot, so be sure to remember that I mean exp(–(x^2 )) and not exp((–x)^2 ) = exp(x^2 )! Also, be very careful if and when you use Microsoft Excel in statistical applications! (d) Yes, ordinary multiplication by hand shows that 111111111^2 = 12345678987654321. What does this have to do with the pictures shown below?

ECE 210 ECE 310

(e) True: 1

  • α ± β
  • α ± β
    • –α^ +
      • (^) β
  • α +–^ β

= –α^ +

  • (^) β α^2 – β^2

showing that 1

  • b ± b^2 - 4ac

= –b +

  • (^) b^2 - 4ac 4ac

It follows that the given expression simplifies to the more familiar – b ±^ b

(^2) - 4ac 2a.

2.(a) You were not asked to provide a proof that the answer to part (a) is 3, but here is one for anyone interested. cos(a–b) + cos(a+b) = 2 cos a cos b, while cos (a–b) – cos (a+b) = 2 sin a sin b. Also, cos 4x = 8 cos^4 x – 8 cos^2 x + 1, and cos 3x = 4 cos^3 x – 3 cos x. Hence, cot(10)cot(30)cot(50)cot(70) = (cos 80 + cos 60)(cos 80 + cos 20)(cos 80 – cos 60)(cos 80 – cos 20). Let cos 20 = y. Since cos 60 = 1/2, we know that 4y^3 –3y = 1/2, and that cos 80 = 8y^4 – 8y^2 + 1 = 2y(4y^3 – 3y) – 2y^2 + 1 = 1 + y – 2y^2. Thus, the above fraction equals (3/2 + y – 2y^2 )(1 + 2y – 2y^2 ) (1/2 + y – 2y^2 )(1 – 2y^2 )

= 3/2 + 4y – 3y

(^2) – 6y (^3) + 4 y 4 1/2 + y – 3y^2 – 2y^3 + 4 y 4

on substituting y^3 = (3/4)y + 1/8 and 4y^4 = 3y^2 +y/2. (b) For any x, 0 ≤ x < 90, cot(x) = tan(90–x) and cot(x) = 1/tan(x). Hence, tan(80)tan(60)tan(40)tan(20) = 3, and, on replacing all the tans by 1/cots, we deduce that cot(20)cot(40)cot(60)cot(80) = 1/3. Note that it is easy to show that cot(45–y)cot(45–x)cot(45+x)cot(45+y) = 1. It is not quite as easy to find such formulas if the RHS is required to be an integer other than 1 (as in the surprising result of part (a)).

(c) Since 1 n+1 + n

n+1 + n

  • n+1 –^ n n+1 – n

= (^) (n+1) – (n)n+1 –^ n = n+1 – n, the sum “telescopes”

to 100 – 1 = 9. Look, Ma! No calculator. 3.(a) 7. (b) My cheap calculator gives 0 as the answer in all cases. This seems reasonable because sin x ≈ x for small x, and thus the function should have value nearly 0 as x approaches 0. However, the answers that you get will depend on the number of digits of precision used by your calculating device as well as the algorithm it uses to compute sin(x). For example, at x = 10–7^ , the Unix high-precision calculator utility bc gives the following values: ≈ 109 using 20 digits; ≈ 103 using 25 digits, ≈ 0.34 using 30 digits and ≈ 0.33333333333334 using 45 or more digits. Thus, it would appear that the limit might be 1/3. For the formal proof, note sin x = x – x^3 /3! + x^5 /5! – … ≈ x – x^3 /6 for small x. Hence, for small x, 1 [sin x]^2

–^1

x^2

x^2 

(1 – x^2 /6)^2

– 1 =^1

x^2

[ 1 + 2x^2 /6 + 3(x^2 /6)^2 + … – 1^ ]=

3x^2 36 …

of Illinois Page 2 of 3 Spring 2002

Here we have used the series: (1 – y)–2^ = 1 + 2y + 3y^2 + … which is valid for |y| < 1. Remember this series; it and the series (1 – y)–1^ = 1 + y + y^2 + y^3 + … will be used many times in the course. Exercise: What do you get when you differentiate both sides of (1 – y)–1^ = 1 + y + y^2 + y^3 + …

Thus, 1 [sin x]^2

–^1

x^2

≈ 1/3 + 3x^2 /36 + … = 1/3 at x = 0, i.e., limx→ 0 1 [sin x]^2

–^1

x^2

=^13

Those who prefer a purer approach should note that 1 [sin x]^2

–^1

x^2

= x

(^2) – sin (^2) x x^2 sin^2 x

is of the form 0/0 at x = 0.

Thus, by (repeated application of) L'Hopital's rule and the identity^ (^) dxdsin^2 x = sin(2x) (huh??), we have

limx→ 0 1 [sin x]^2

–^1

x^2

= limx→ 0 x

(^2) – sin (^2) x x^2 sin^2 x

= limx→ 0 2x – sin(2x) 2xsin^2 x + x 2 sin(2x) = limx→ 0 2 – 2cos(2x) 2sin^2 x + 4xsin(2x) + 2x^2 cos(2x)

= limx→ 0 4sin(2x) 2sin(2x) + 12xcos(2x) – 4x^2 sin(2x) + 4sin(2x) = limx→ (^0) 4cos(2x) + 12cos(2x) + 8cos(2x) + x(some other stuff)^ 8cos(2x) = 24 8 =^13 just as before.

(c) xnexp(–ax) has maximum value (n/a)nexp(–n) at x = n/a. Here n = 25, a = ln 1.00001 giving a maximum value of 0.123365…× 10150 at x = 2,500,012.5…

4.(a) From the picture: ∫

|x|dx = the shaded area = sum of the areas of two triangles

(area = (1/2)×base×altitude, remember?) = (1/2)× 2 ×2 + (1/2)× 1 ×1 = 2.5. |x|

Those who insist on integration should note that |x| = x if x > 0 and |x| = –x if x < 0, and hence ∫

1 |x|dx =

0

–x dx + ∫

0

1 x dx =

–x^2 

0

x^2 

1 0

= 2.5. The answer is NOT ∫

1 |x|dx =

|x|^2 

1

=^1

2 2 –

|–2|^2

It is very important to learn the habit of drawing a sketch before tackling integrals in this course. It will save you from a lot of errors, and in some cases, it will ease your task considerably. The above is an example of this.

Put y = 1 – x. Then, ∫

1

x(1 – x)^19 dx = ∫

3

0

(1 – y)y^19 (–dy) = ∫

0

3 y 19 – y^20 dy =^3

20 20 –

–13× 320

= –323,772,837.2…. Alternatively, integration by parts can be used. Did you get a positive answer? (b) Since an integral is “the area under the curve” the integral of a nonnegative function cannot be negative. A proof of this can be written using (for example) the comparison property (see, e.g. Edwards and Penney). I hope that warning bells will go off in your mind if you ever find the integral of a positive function to be a negative number. These bells will peal out more strongly if your sixth sense is aided by a sketch indicating just which area corresponds to the integral that you are computing. (c) (i) False: the chain rule gives –g(–x) as the derivative. (ii) True as per the chain rule. ( i i i ) False: the chain rule gives exp(f(x^2 ))g(x^2 )2x as the derivative (iv) True. cf. (i) (v) False: the antiderivative of g(x^2 ) need not be related to f(x^2 ) at all! (vi) True only for positive functions f(x).

(d) Since (^) dxdexp(–x^2 /2) = –x•exp(–x^2 /2), (^) ∫ 0

x•exp(–x^2 /2)dx = –exp(–x^2 /2)

5.(a) (^) dxdarctan(x) = 1 1+x^2

. (b) I =

1+x^2

dx = 2•arctan(x)

= 2•[π/4 – (–π/4)] = π.