math 109 { homework 2 due friday 26th. handwritten ... · math 109 { homework 2 due friday 26th....

4
MATH 109 – HOMEWORK 2 Due Friday 26th. Handwritten submissions only. The exercises in this homework are worth 16 points. Exercise 1 A logical proposition that is composed from statements A,B,C,... through a combination of negation, disjunction, and conjunction is called in conjunctive normal form if it is the conjunction of disjunctions of terms from A, ¬A, B, ¬B,... . For example, the following proposition is in conjunctive normal form: (C ∨¬A ∨¬B) (¬B A) (¬C B A). For each of the following propositions, find an equivalent proposition in conjunctive normal form: ((A B) ∧¬B) (B ∧¬(A C) ∧¬(A B)) (A B) (¬B A) (¬A) (¬C ∧¬(A B)) •¬((A ∨¬C) (C B) ∧¬(A B ∨¬C)) Solution 1 For the first one, we check that ((A B) ∧¬B) (B ∧¬(A C) ∧¬(A B)) (A B) ⇐⇒ ((A ∧¬B) (B ∧¬B)) (B ∧¬A ∧¬C ∧¬A ∧¬B) (A B) ⇐⇒ ((A ∧¬B) (B ∧¬B)) F (A B) ⇐⇒ ((A ∧¬B) (B ∧¬B)) (A B) ⇐⇒ ((A ∧¬B) F ) (A B) ⇐⇒ (A ∧¬B) (A B) ⇐⇒ A (B ∨¬B) ⇐⇒ A Second, we observe (¬B A) (¬A) (¬C ∧¬(A B)) ⇐⇒ (¬B A) (¬A) (¬C ∧¬A ∧¬B) ⇐⇒ ((¬B ∨¬A) (A ∨¬A)) (¬C ∧¬A ∧¬B) ⇐⇒ ((¬B ∨¬A) T ) (¬C ∧¬A ∧¬B) ⇐⇒ (¬B ∨¬A) (¬C ∧¬A ∧¬B) ⇐⇒ (¬B ∨¬A) (¬C ∧¬A ∧¬B) ⇐⇒ ((¬B ∨¬A) ∨¬C) ((¬B ∨¬A) ∨¬A) ((¬B ∨¬A) ∨¬B) ⇐⇒ (¬B ∨¬A) (¬C ∧¬A ∧¬B) ⇐⇒ (¬B ∨¬A ∨¬C) (¬B ∨¬A ∨¬A) (¬B ∨¬A ∨¬B) ⇐⇒ (¬B ∨¬A ∨¬C) (¬B ∨¬A) (¬B ∨¬A) ⇐⇒ (¬B ∨¬A ∨¬C) (¬B ∨¬A) 1

Upload: hamien

Post on 15-Jul-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten ... · MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten submissions only. The exercises in this homework are worth 16 points

MATH 109 – HOMEWORK 2

Due Friday 26th. Handwritten submissions only.The exercises in this homework are worth 16 points.

Exercise 1A logical proposition that is composed from statements A,B,C, . . . through a combination of negation,disjunction, and conjunction is called in conjunctive normal form if it is the conjunction of disjunctions ofterms from A,¬A,B,¬B, . . . .

For example, the following proposition is in conjunctive normal form:

(C ∨ ¬A ∨ ¬B) ∧ (¬B ∨A) ∧ (¬C ∨B ∨A).

For each of the following propositions, find an equivalent proposition in conjunctive normal form:

• ((A ∨B) ∧ ¬B) ∨ (B ∧ ¬(A ∨ C) ∧ ¬(A ∨B)) ∨ (A ∧B)• (¬B ∧A) ∨ (¬A) ∨ (¬C ∧ ¬(A ∨B))• ¬((A ∨ ¬C) ∧ (C ∧B) ∧ ¬(A ∨B ∨ ¬C))

Solution 1For the first one, we check that

((A ∨B) ∧ ¬B) ∨ (B ∧ ¬(A ∨ C) ∧ ¬(A ∨B)) ∨ (A ∧B)

⇐⇒ ((A ∧ ¬B) ∨ (B ∧ ¬B)) ∨ (B ∧ ¬A ∧ ¬C ∧ ¬A ∧ ¬B) ∨ (A ∧B)

⇐⇒ ((A ∧ ¬B) ∨ (B ∧ ¬B)) ∨ F ∨ (A ∧B)

⇐⇒ ((A ∧ ¬B) ∨ (B ∧ ¬B)) ∨ (A ∧B)

⇐⇒ ((A ∧ ¬B) ∨ F ) ∨ (A ∧B)

⇐⇒ (A ∧ ¬B) ∨ (A ∧B)

⇐⇒ A ∧ (B ∨ ¬B)

⇐⇒ A

Second, we observe

(¬B ∧A) ∨ (¬A) ∨ (¬C ∧ ¬(A ∨B))

⇐⇒ (¬B ∧A) ∨ (¬A) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ ((¬B ∨ ¬A) ∧ (A ∨ ¬A)) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ ((¬B ∨ ¬A) ∧ T ) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ (¬B ∨ ¬A) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ (¬B ∨ ¬A) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ ((¬B ∨ ¬A) ∨ ¬C) ∧ ((¬B ∨ ¬A) ∨ ¬A) ∧ ((¬B ∨ ¬A) ∨ ¬B)

⇐⇒ (¬B ∨ ¬A) ∨ (¬C ∧ ¬A ∧ ¬B)

⇐⇒ (¬B ∨ ¬A ∨ ¬C) ∧ (¬B ∨ ¬A ∨ ¬A) ∧ (¬B ∨ ¬A ∨ ¬B)

⇐⇒ (¬B ∨ ¬A ∨ ¬C) ∧ (¬B ∨ ¬A) ∧ (¬B ∨ ¬A)

⇐⇒ (¬B ∨ ¬A ∨ ¬C) ∧ (¬B ∨ ¬A)

1

Page 2: MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten ... · MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten submissions only. The exercises in this homework are worth 16 points

Third, we observe

¬((A ∨ C) ∧ (C ∧B) ∧ ¬(A ∨B ∨ ¬C))

⇐⇒ ¬(A ∨ C) ∨ ¬(C ∧B) ∨ (A ∨B ∨ ¬C)

⇐⇒ ¬(A ∨ C) ∨ ¬(C ∧B) ∨A ∨B ∨ ¬C⇐⇒ ¬(A ∨ C) ∨ ¬C ∨ ¬B ∨A ∨B ∨ ¬C⇐⇒ ¬(A ∨ C) ∨ ¬C ∨ T ∨A

⇐⇒ T

Exercise 2Assume that we have parametrized statements X(a, b) and Y (a) that satisfy

X(a, b) ⇐⇒ Y (a) ∧ Y (b).

Show that the following equivalence holds:

(X(a, b) ∧ Y (c)) ⇐⇒ ¬(¬Y (a) ∨ ¬X(b, c)).

Solution 2We observe that

(X(a, b) ∧ Y (c)) ⇐⇒ (Y (a) ∧ Y (b) ∧ Y (c)) ⇐⇒ (Y (a) ∧X(b, c)) ⇐⇒ ¬(¬Y (a) ∨ ¬X(b, c)).

Exercise 3Let x, y, z be three irrational numbers. Show that there are two of them whose sum is again irrational.

Solution 3Suppose that this is not the case. Then there exist x, y, z being irrational numbers such that the sums x+y,y + z and z + x are rational numbers. Observe that

x =x + x

2=

x + z − z − y + y + x

2=

x + z

2− z + y

2+

y + x

2.

Since the sums x + y, y + z, and x + z are rational, so are their halves, and hence is the sum of the latter.It follows that x is a rational number, which contradicts x being irrational.

Hence the one of the sums x + y, y + z, and x + z must be irrational.

Exercise 4Find all the pairs of non-zero real numbers (x, y) which satisfy

x +x

y=

8

3, y +

1

x=

5

2.

Solution 4Suppose that x and y are non-zero and satisfy the two equations. We observe that

xy + x =8y

3, xy + 1 =

5x

2.

2

Page 3: MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten ... · MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten submissions only. The exercises in this homework are worth 16 points

Hence

8

3y − x =

5

2x− 1 ⇐⇒ 8

3y =

7

2x− 1

⇐⇒ y =21

16x− 3

8

⇐⇒ 21

16x− 3

8+

1

x=

5

2

⇐⇒ 21

16x +

1

x=

23

8.

Again using that x is non-zero, we find

21

16x +

1

x=

23

8⇐⇒ 21

16x2 + 1 =

23

8x

⇐⇒ x2 +16

21=

16 · 23

21 · 8x

⇐⇒ x2 +16

21=

64

21x

Hence to find the solution we have to find x such that

x2 − 64

21x +

16

21= 0.

Standard techniques for quadratic equations apply.

Exercise 5Find all real numbers x that satisfy the equation

8x + 2 = 4x + 2x+1.

Solution 5Assume that x satisfies this equation. We observe that

8x + 2 = (2x)3 + 2, 4x + 2x+1 = (2x)2 + 2 · 2x

Define y = 2x. From assumptions we get

y3 − y2 − 2y + 2 = y2(y − 1)− 2(y − 1) = (y2 − 2)(y − 1) = 0.

We conclude that y = 1 or y =√

2 or y = −√

2. But by construction y is positive, and thus y = 1 or y =√

2must hold. Now y = 2x implies

x = log2(1) = 0 or x = log2

√2 =

1

2log2(2) =

1

2.

Checking both possible values then verifies that 0 and 12 are exactly the solutions.

Exercise 6Let a be an odd number. Show that there exists an integer k such that a2 = 8k + 1.

Solution 6Let a be a odd, so a = 2b + 1 for some integer b. Hence

a2 = 4b2 + 4b + 1 = 4b(b + 1) + 1.

Let k be the real number such that a2 = 8k + 1. Then

4b(b + 1) + 1 = 8k + 1,

3

Page 4: MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten ... · MATH 109 { HOMEWORK 2 Due Friday 26th. Handwritten submissions only. The exercises in this homework are worth 16 points

and hence

b(b + 1)/2 = k.

Since b(b + 1) is an integer and even, we now see that k is an integer.

4