Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
18 views
Annotated Slides
Uploaded by
chriskathunkumi12
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save annotated_slides For Later
Download
Save
Save annotated_slides For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
18 views
Annotated Slides
Uploaded by
chriskathunkumi12
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save annotated_slides For Later
Carousel Previous
Carousel Next
Save
Save annotated_slides For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 15
Search
Fullscreen
MULTIMEDIA UNIVERSITY DEPARTMENT OF MATHEMATICS SMA 2100: Discrete Mathematics Lecturer: Level and Prog.: Dr. Job Bonyo First Year, +254 726 639 631 First Semester,
[email protected]
BSc ‘These lecture notes were lastly modified on: October 12, 2023Contents 1 Sets 2 Mathematical logic 2.1 Statement forms . . ae 2.1.1 Types of Statement Forms 2.2 Contrapositive and converse 3. Definitions, Theorems and Proofs 4 Writing mathematics 5 Proof Techniques u 15 16About the course Course Description We shalll cover the following topics: 1. Sets: Elements, specification, finite and infinite, universal, empty and disjoint sets; Subsets; Venn diagrams; Operations on sets: union, intersection, complement, dif- ference; number of elements and logical arguments; Set of sets, the power set, and Cartesian product. Mathematical Logic: Statement forms; Contrapositive and Converse; Quantifiers - For all and There exists; Examples and Counterexamples. . Definitions, Theorems and Proofs: Some common terms in mathematics; How to read a definition; How to read a theorem; Paradoxes. . Writing Mathematics: Writing well; Basic rules in writing mathematics; Problem solving. . Proof Techniques: Proof by Contrapositive; Direct proof; Proof by Contradiction; Proof in Cases; Principle of Mathematical induction: Induction applied to divisibil- y, Induction applied to sums, Induction applied to inequalities; Picture proofs. Mode of delivery Lectures, class demonstrations, oral presentations by the students, group discussions and Tutorials: practical exercises Instructional Material/Equipment: Include course notes, black and white board, chalk, white-board marker, duster, computer and projector.Contents Course assessment The course will be assessed in two parts: Coursework (continuous assessment tests) which will normally contribute 30% of the total mark. (Tests 20%, Assignments 10%) Written end of semester examination shall normally contribute 70% of the total mark. Pure mathematics This is a prelude to Kevin Houston’s excellent book, How fo think like a mathematician: A companion to undergraduate mathematics. Mathematics is the most powerful tool we have. It controls our world. We can use it to put men on the moon. We use it to calculate how much insulin a diabetic should take. It is hard to get right. And yet. And yet ... And yet people who use or like mathematics are considered geeks or nerds. And yet mathematics is considered useless by most people - throughout history chil- dren at school have whined ‘When am I ever going to use this?” Why would anyone want to become a mathematician? As mentioned earlier mathematics is a very powerful tool. Jobs that use mathematics are often well-paid and people do tend to be impressed. There are a number of responses from non- mathematicians when meeting a mathematician, the most common being ‘I hated maths at school. I wasn’t any good at it’, but another common response is You must be really clever.’ So cheer up and do mathematics. You are clever.Chapter 1 SetsChapter 2 Mathematical logic Whatis the answer to the following question. Question: How many months have 28 days? Mathematician’s answer: All of them. 2.1 Statement forms Suppose your friend tells you that Dr. Bonyo teaches Mathematics or Geography, and you happen to know that Dr. Bonyo does not teach Geography. Using your powers of reasoning, you decide that Dr. Bonyo teaches Maths. Note that this argument can be generalized because it doesn’t really depend on Dr. Bonyo teaching Maths or Geography. If your friend said that "A or B is true”, and you happened to know that "B is not true,” you would conclude that "A is true”. This is a valid argument. A statement is a sentence that is either true or false (but not both). Example 2.1. "Two is not a prime number” is a false statement. "Do you love me?” is not a statement, but, "John loves Mary” is a statement. Assignment 2.1.1. Which of the following sentences below are statements and which ones are not? (a) It is raining outside. (b) The vice chancellor of this university is a woman. (©) Two plus two is five. (d) x+6=0.2.1. Statement forms (e) Five is a prime number. (f) All odd numbers are prime. (g) This sentence is false. Because English usage and mathematical usage may differ slightly, we must be certain that we understand our statements before we construct arguments. Let the letters P and Q represent statements. Thus P will have two possible truth values; true, denoted T, or false, denoted F. We can negate P or combine it with Q by saying things like: Not P PandQ PorQ If P, then Q. P if and only if Q. Such symbolic sentences are called statement forms. “not”, “and”, “or”, “If..., then ...” and “if and only if”, are calleq 2.1.1 Types of Statement Forms r —N\ ‘7 1. Negation If you have a statement P, the negation of P is the statement form “not P”. We shall use the notation —P for “not P”. If P is true, then —P should be false. If P is false, then —P shoul be true. We summarise all the possibilities in a truth table as follows: | g. P| -P 1 A YH T| F Fl T We now distinguish between the mathematical usage of the word “or” and everyday speech. For example, if we say, “You can have cake or ice cream,” it could be that you can have both. If we say, ’The door is open or closed,” it cannot be that the door is both open and closed. English statements involving the word “or” are often ambiguous; in mathematics, ambiguity is generally removed completely. 2. Disjunction The statement form ”P or Q” is called a disjunction and is denoted PvQ. In mathematics, a disjunction is true when P alone is true, Q is true, or both P and Q are true. Its truth table is2. Mathematical logic 3. Conjunction The statement form ”P and Q” is called a conjunction and is denoted PAQ. This will be true when P and Q are true, and false otherwise. Its truth table is 4. Implication Now, consider the statement form “If P, then Q”. This statement form is called an implication and is often stated as ”P implies Q” and written P == Q. The English usage of the word “implies” may suggest a relationship between P and Q, our analysis of truth tables has assumed no connection at all between P and Q. Here, the statement P is called the antecedent or premise, and Q is called the conclusion. Suppose we say to our son, “Tf you clean your room, then you can go to Rita’s house.” Under what conditions wofgl he feel that we have lied ? > The antecedent, P, is ‘P clean your room”. The conclusion, Q, is “you can go to Rita’s house”. If your son cleans his room, and we let him go to Rita’s house, everyone is happy. That implication should be true. So if P is true and Q is true, the whole statement is true. If he cleans his room and we do not let him to Rita’s house, we lied. So if P is true and Q is false, the implication should be false. Now if he doesn’t clean his room? We never discussed this possibility. So no matter what we decide here, we have not lied. In this situation, the statement is not false; hence we consider it to be true. So if P is false, no matter the truth value is of the conclusion, we will consider the implication to be true. The truth table is thus2.1. Statement forms 5. Equivalence The statement form ”P if and only if Q” is called an equivalence, and we will write this as P <= Q. This is the same as ”(P only if Q) and (P if Q)”. Therefore (P == Q) = (P = Q)A(Q = P). The truth table for equivalence is P|Q|P+Q|Q—P | PQ (PiffQ) T|T T T T T|F F T F F/T T F F FIFE T T T The equivalence is true precisely when P and Q are both true or both false. Assignment 2.1.2, Write out the truth tables for -=(P a Q),-P v =Q, and (=(P 4 Q)) == (—P v =Q). What can you conclude? A statement form for which the final column in the truth table consists of all T’s is called a tautology. A statement form for which the final column in the truth table consists of all F’s is called a contradiction. Two statement forms, P and Q, are said to be (logically) equivalent if P —> Qisa tautology, and two statements are equivalent if they can be obtained from two equivalent statement forms by consistently replacing the letters by English statements. —(P a Q) and =P v —Qare equivalent statement forms. Assignment 2.1.3. Negate the following: (a) If I go to the party, then he is there. (b) If x is even, then x is divisible by 2. (c) If a function is differentiable, then it is continuous. (d) If x is a natural number, then x is even or x is odd. Assignment 2.1.4. Which of the following are equivalent to each other. P= Q, —(PvQ), —(PAQ), Pa-Q, —(P = Q), Py ‘Q, ‘Pv Q, PA QO, —PvQ -—Q = —-P2. Mathematical logic Assignment 2.1.5. Negate the sentences below: (a) I will do my homework and I will pass this class. (b) Seven is an integer and seven is even. (c) If Tis continuous, then T is bounded. (d) I can eat dinner or go to Fresher’s bash. (e) If x is odd, then x is prime. (f) If 1am not home, then Sam will answer the phone and he will tell you how to reach me. (g) If the stars are green or the white horse is shining, then the world is eleven feet wide. 2.2 Contrapositive and converse Let P, Q and R denote statement forms. Then the following are tautologies: De Morgan’s Laws =(Pv Q) = (=P. =Q) A(P.\Q) <= (=P v =Q) Distribute property (Pa (Qv R)) == ((PAQ) v (PAR)) (Pv (QA R)) == (Pv Q)a (Pv R)) Double negation —=(—P) => P Associative property (Pa (QAR)) = ((PAQ)AR) (Pv (Qv R)) == ((Pv Q) vR) Commutative property (PA Q) == (QAP) 102.2. Contrapositive and converse (Pv Q) == (Qv P) You can verify that they are tautologies by constructing truth tables. Assignment 2.2.1. Negate the following: (a) (PQ) v (PAR) (b) P => (QAR) Tautologies allow us to replace one statement by another. Let us compare truth tables of the implications P =» Qand-Q ==> —P. P| Q|-Q|-P|-Q = -P. T|T| FF T T|F| TF F FI|T| F/T T F/F| T/T T So the fact that the last columns of the truth tables are the same tells us that the statement forms are logically equivalent. What this means to us is that if we are tying to prove that an implication (P => Q) is true and we don’t see how to do it, we should consider -Q = > —P. This is called contrapositive. You should not confuse contrapositive and converse. The converse of an implication (P => Q) is the statement form (Q => P). Looking at the truth tables for each of these given below, we see that they are different. Students often confuse them. The inverse of an implication (P => Q) is the statement form (~P => —Q). The converse of “If x is seven then x is prime.” is “If x is prime, then x is seven.” The original sentence is true, but the second sentence is not, since there are some numbers which are prime and are not equal to seven. The contrapositive of the original sentence is: "If x is not prime then x is not seven.” which is true. The inverse of the original sentence is: “If x is not seven then x is not prime.” 112. Mathematical logic Assignment 2.2.2. Consider the sentence “If n is odd, then 1? is even.” (a) State the contrapositive. (b) State the converse. (©) State the inverse. Assignment 2.2.3. Consider the statement, "It snows or it not sunny.” (a) Find a different statement that is equivalent to the given one. (b) Find a different statement that is equivalent to the negation of the given one. 12Chapter 3 Definitions, Theorems and ProofsChapter 4 Writing mathematicsChapter 5 Proof Techniques
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6125)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (932)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8214)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2922)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Tóibín
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2530)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel