SlideShare a Scribd company logo
1 of 87
Download to read offline
Binary Operations
2021
Binary Operations
Take the multiplication
operation on the set of integers,
Z = {0, ±1, ±2, ±3,…}:
x = +3 and y = +4
x × y = +12
(x, y) ∈ Z × Z and x × y ∈ Z
We write *: Z × Z → Z; (x, y) → x × y
Binary Operations
Take the addition operation
on the set of integers, Z =
{0, ±1, ±2, ±3,…}:
x = +3 and y = -4
x + y = +3 + (-4) = -1∈ Z
(x, y) ∈ Z × Z and x + y ∈ Z
We write *: Z × Z → Z; (x, y) → x + y
Binary Operation:
: (x, y ) → f(x, y)
That is a calculation that combines two elements
of the set (called operands) to produce another
element of the set. It maps elements of the
Cartesian product A × A into A itself. i.e. f: A × A
→ A. We call the operation multiplication!
Binary Operation notation
• We usually write binary operations
infix that is, between their arguments,
rather than prefix, before their
arguments.
• Also, the symbols chosen for binary
operations are usually reminiscent of
+ or × rather than letters.
Examples: Infix notation
Note the infix positioning of the operation
characteristic of binary operations.
Binary operations on Z
Given the set of integers X, we normally call the
operation “multiplication” and denote it by * even
though we can define the operations in many ways:
• x * y = x + 2y + 3
• x * y = 1 + xy
• x * y = 3x + y
or even
• x * y = x + y
Binary Operation Examples
Binary Operations Examples
Binary Operations Examples
Are these binary operations?
1. a * b = a + b – 1
2. a * b = 1 – 2ab
3. a * b = a/b
4. a * b = a/b on Z {0}
5. For a, b ∈ A, a * b = a + b where A is the set A
= {1, 2, 3, 4}.
Given a, b ∈ Z. Consider the operations *: Z × Z → Z
as follows:
Example: Closure
Some interesting questions?
• Commutativity: does the order in which we
perform the operation matter?
• Associativity: does it matter how we group the
operands?
• Identity: is there are element which when used
as an operand with another object returns the
same object?
Binary
Operati
on
Definitions:
Addition: +: R × R → R; (x, y) → x + y
Multiplication:*: R × R → R; (x, y)→ x × y
Multiplication:*: R × R → R; (x, y)→ x × y
Subtraction: *: R × R → R; (x, y) → x - y
Subtraction: *: R × R → R; (x, y) → x - y
Division: *: R{0} × R{0} → R{0}; (x, y) → x / y
Division: *: R{0} × R{0} → R{0}; (x, y) → x / y
Define an identity element for a binary operation.
Binary
Operati
on
Identity Element
RTP: The Identity Element is Unique
The identity element e of a binary
operation  is unique.
Suppose that e and e’ are two
identities of *.
Then, e * e’ = e since e’ is an
identity and also e * e’ = e’ since e
is an identity and hence e = e’ and
the identities are unique. ■
Identity Element
Is there an identity element for
this binary operation?
• Let * be the binary operation on S
= {1, -1, i, -i} with i2 = -1 defined
by a * b = a x b.
• Is there an identity element for *?
* 1 -1 i -i
1 1 -1 i -i
-1 -1 1 -i i
i i -i -1 1
-i -i i 1 -1
Binary
Operati
on
Identity Element
• For the set Z, the integer 1 is an identity w. r. t.
“”, but not w. r. t. “+”.
• The number 0 is an identity w. r. t. “+”.
Binary
Operati
on
Identity Element
Let “” be the operation defined on Z, x  y = x +
y  1. Then is there an identity?
Identity Element
Let “∆” be the operation defined on Z, x ∆ y = 1 + xy.
Then the operation has no identity element in Z
Hint: Assume there is an identity element e, then
x ∆ e = 1 + xe = x
What does that give us?
SOLUTION
Let “∆” be the operation defined on Z, x ∆ y = 1 + xy.
Then the operation has no identity element in Z.
SOLUTION
Assume there is an identity element e, then
x ∆ e = 1 + xe = x
⇒ xe = x - 1
⇒ e = (x – 1)/x = 1 - 1/x ∉ Z
A binary operation which is NOT commutative?
A binary operation which is NOT associative?
Explanation
Using a table to represent a Binary operation
• Consider the set A = {-1, 1} under the usual
multiplication as we know it. We can think of x, and y
as the elements of this set. Let us compute all the
products for the elements of this set.
• This produces the results:
1 * 1 = 1 × 1 = 1
1 * -1 = 1 × -1 = -1
-1 * 1 = -1 × 1 = -1
-1 * -1 = -1 × -1 = 1
Summarising, in a table we have…
• Consider the set A = {-1, 1} under the usual
multiplication as we know it. We can think of x, and y
as the elements of this set. Let us compute all the
products for the elements of this set.
• This produces the results:
1 * 1 = 1 × 1 = 1
1 * -1 = 1 × -1 = -1
-1 * 1 = -1 × 1 = -1
-1 * -1 = -1 × -1 = 1
* 1 -1
1 1 -1
-1 -1 1
Cayley Table
When we are given a binary
operation on a finite set, it is common
to specify it in tabular form,
sometimes called a Cayley table.
Arthur Cayley
Born: 16 Aug 1821 Died: 26 Jan 1895
• In 1863 Cayley was appointed Sadleirian
professor of Pure Mathematics at Cambridge.
• He published over 900 papers and notes
covering nearly every aspect of modern
mathematics.
Arthur Cayley
The most important of his work was
developing the algebra of matrices, work in
non-Euclidean geometry and n-dimensional
geometry.
As early as 1849 Cayley wrote a paper
linking his ideas on permutations with
Cauchy's.
 In 1854 Cayley wrote two papers which are
remarkable for the insight they have of
abstract groups.
Arthur Cayley
At that time the only known groups were
permutation groups and even this was a
radically new area, yet Cayley defines an
abstract group and gives a table to display the
group multiplication.
These tables become known as Cayley Tables.
Arthur Cayley
He gives the 'Cayley tables' of some special
permutation groups but, much more
significantly for the introduction of the
abstract group concept, he realised that
matrices were groups .
Arthur Cayley
Cayley Table
• Take * to be the binary
operation on S = {1, -1, i, -
i} with i2 = -1 defined by a *
b = a × b the corresponding
Cayley table is:
• Here is another example of a Cayley table.
* 1 -1 i -i
1 1 -1 i -i
-1 -1 1 -i i
i i -i -1 1
-i -i i 1 -1
Let “” be the operation defined as x  y = x + y  1 on
Z, show that “” is both commutative and associative.
SOLUTION
Let “” be the operation defined as x  y = x + y  1 on Z,
then “” is both commutative and associative.
Proof: Commutative:
x * y = x + y – 1 = y + x – 1 = y * x
Associative:
x * (y * z) = x * (y + z – 1)
= x + (y + z – 1) -1
= (x + y – 1) * z = (x * y) * z
Thus, * is both commutative and associative on Z.
Let *: Z × Z → Z; (x, y) →1 + xy. Show
that * is commutative but not associative.
Show: x  y = x + 2y. This operation is neither
commutative, nor associative.
Show: x  y = x + 2y. This operation is neither
commutative, nor associative.
• Commutative:
x * y = x + 2y ≠ y + 2x = y * x
So, it is not commutative.
• Associative:
x * (y * z) = x * (y + 2z)
= x + 2(y + 2z) = x + 2y + 4z
(x * y) * z = (x + 2y) * z = x + 2y + 2z
So, * is not associative
Consider the Binary Operation * as given by…
Find the answer to:
1) a * (b * c)
2) (a * b) * c
3) a * (b * (c * d))
Consider the Binary Operation * as given by…
On what set is the operation *
defined?
Is the operation * closed?
Is there an element e such
that a * e = a = e * a?
Inverses
Inverses
• Is this a binary operation?
• Is there an identity element?
• Is there an element x-1 such
that for every x we have x *
x-1 = e = x-1 * x?
Let * be an associative binary operation on a set A with identity
e. If x has an inverse, show that this inverse is unique.
Let y and z be inverses of x then
Hence y = z.
Thus, if x has an inverse, that inverse is unique.
Let * be an associative binary operation on a set A with identity
e. If x has an inverse, show that this inverse is unique.
Let y and z be inverses of x then
y = y * e By the property of identity
= y * (x * z) Since z is an inverse of x
= (y * x) * z Since * is associative
= e * z Since y is an inverse of x
= z By the property of identity
Hence y = z.
Thus, if x has an inverse, that inverse is unique.
Inverses
2 x 2 Matrices with real coefficients
under component wise addition
Consider the set of 2 x 2 matrices with real
coefficients under component wise addition…
• Is this a binary operation?
• Is the operation commutative and associative?
• What is the identity for the operation?
• Do the elements have inverses?
2 x 2 Matrices with real coefficients
under component wise addition
Consider the set of 2 x 2 matrices with real
coefficients under component wise addition…
Do inverses exist?
• Consider the set of 2 x 2 matrices over the field
of real numbers. Is multiplication a binary
operation?
• Is there an identity element?
• Do all 2 x 2 matrices have inverses?
Do inverses exist?
• Recall that the inverse of a matrix is A-1 = adj
A/det A. i.e. the matrix of cofactors divided by
the determinant of the matrix.
• For a 2 x 2 matrix to have an inverse, we must
have det A ≠ 0.
• Thus all 2 x 2 matrices do not have inverses
under multiplication.
• Thus, all elements are not invertible.
Complex Numbers
• Consider * to be the binary
operation on S = {1, -1, i, -i} with i2
= -1 defined by a * b = a x b.
• The corresponding Cayley table is:
• Is this binary operation closed,
commutative, associative?
• Is there an identity?
• Are there inverses?
* 1 -1 i -i
1 1 -1 i -i
-1 -1 1 -i i
i i -i -1 1
-i -i i 1 -1
Is there a way we can check for commutativity
quickly from the Cayley table?…
How would you check for associativity?…
Closed?
Commutative?
Associative?
Identity element?
Example – Power Set
• The intersection and union of two subsets of a set A are
both binary operations on the power set of A, P(A).
• If A = {1, 2} what would be the identity element for
each of these operations?
Example – Power Set
• The intersection and union of two subsets of a set A are both
binary operations on the power set of A, P(A).
• If A = {1, 2} what would be the identity element for each of these
operations?
SOLUTION
A= {1, 2} and P(A) = {{}, {1}, {2}, {1, 2}}
• Intersection: ∩: P(A) × P(A) → P(A)
– {1} ∩ {1, 2} = {1} ∈ P(A)
Symmetric Difference
Symmetric Difference
Does this remind us of the Exclusive OR in
propositional logic?
Given sets A, B and C. Show that ∆ is associative…
Similarly,
Some Past Paper Questions
Given a binary operation x  y = x + 2y.This
operation has no identity, thus no inverse.
Try…
x * e =
e * x =
Do you get two different values for the identity?
Given a binary operation x  y = x + 2y.This
operation has no identity, thus no inverse.
Consider:
x * e = x + 2e = x ⇒ e = 0
e * x = e + 2x = x ⇒ e = -x
But we know that the identity is unique. Thus, the
operation * has no identity and hence no inverse.
Question
Question May 2017
a) Commutative:
• 3 * 4 = 3 × 3 + 4 × 4 – 3 × 4 = 25 – 12 = 13
• 4 * 3 = 3 × 4 + 4 × 3 – 4 × 3 = 24 – 12 = 12
So it is not commutative.
b) Identity: If there is an identity e, then n * e = n = e * n ⇒ 3n + 4e – ne = n
then 2n = e(4 – n) and e = 2n/(4 – n). Now for n = 1 e = 2/3 ∉ Z and hence this
operation does not have an identity element. Also 4e + 3n – en = 3e + 4n – ne
So 3n + 4e = 3e + 4n and n = e but the identity is unique so there is no identity.
c) Inverse: Since it does not have an identity, it has no inverses.
Past Paper Question
Questions

More Related Content

What's hot

PPt on Functions
PPt on FunctionsPPt on Functions
PPt on Functionscoolhanddav
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Mohd. Noor Abdul Hamid
 
2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functionssmiller5
 
Simplification of Fractions and Operations on Fractions
Simplification of Fractions and Operations on FractionsSimplification of Fractions and Operations on Fractions
Simplification of Fractions and Operations on FractionsVer Louie Gautani
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting PrincipleRon Eick
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical InductionEdelyn Cagas
 
Inverse functions
Inverse functionsInverse functions
Inverse functionsPLeach
 
Relations and functions
Relations and functions Relations and functions
Relations and functions Leslie Amoguis
 
Adding and subtracting polynomials
Adding and subtracting polynomialsAdding and subtracting polynomials
Adding and subtracting polynomialschrystal_brinson
 
3.1 derivative of a function
3.1 derivative of a function3.1 derivative of a function
3.1 derivative of a functionbtmathematics
 
Binary Operations.pptx
Binary Operations.pptxBinary Operations.pptx
Binary Operations.pptxSoyaMathew1
 
Graphs of the Sine and Cosine Functions Lecture
Graphs of the Sine and Cosine Functions LectureGraphs of the Sine and Cosine Functions Lecture
Graphs of the Sine and Cosine Functions LectureFroyd Wess
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Lineseltzermath
 
Introduction to calculus
Introduction to calculusIntroduction to calculus
Introduction to calculussheetslibrary
 
Piecewise function lesson 3
Piecewise function lesson 3Piecewise function lesson 3
Piecewise function lesson 3aksetter
 
General mathematics
General mathematicsGeneral mathematics
General mathematicsBoyet Aluan
 
Mathematical language-and-symbols-including-sets
Mathematical language-and-symbols-including-setsMathematical language-and-symbols-including-sets
Mathematical language-and-symbols-including-setsJutay Nicavera
 

What's hot (20)

PPt on Functions
PPt on FunctionsPPt on Functions
PPt on Functions
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor
 
2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functions
 
Simplification of Fractions and Operations on Fractions
Simplification of Fractions and Operations on FractionsSimplification of Fractions and Operations on Fractions
Simplification of Fractions and Operations on Fractions
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
 
Inverse functions
Inverse functionsInverse functions
Inverse functions
 
Relations and functions
Relations and functions Relations and functions
Relations and functions
 
Adding and subtracting polynomials
Adding and subtracting polynomialsAdding and subtracting polynomials
Adding and subtracting polynomials
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
3.1 derivative of a function
3.1 derivative of a function3.1 derivative of a function
3.1 derivative of a function
 
Binary Operations.pptx
Binary Operations.pptxBinary Operations.pptx
Binary Operations.pptx
 
Graphs of the Sine and Cosine Functions Lecture
Graphs of the Sine and Cosine Functions LectureGraphs of the Sine and Cosine Functions Lecture
Graphs of the Sine and Cosine Functions Lecture
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Line
 
Introduction to calculus
Introduction to calculusIntroduction to calculus
Introduction to calculus
 
Piecewise function lesson 3
Piecewise function lesson 3Piecewise function lesson 3
Piecewise function lesson 3
 
General mathematics
General mathematicsGeneral mathematics
General mathematics
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Mathematical language-and-symbols-including-sets
Mathematical language-and-symbols-including-setsMathematical language-and-symbols-including-sets
Mathematical language-and-symbols-including-sets
 

Similar to Dm2021 binary operations

Exploring Group Theory in Discrete Mathematics
Exploring Group Theory in Discrete MathematicsExploring Group Theory in Discrete Mathematics
Exploring Group Theory in Discrete MathematicsDr Chetan Bawankar
 
Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Ilir Destani
 
119 Powerpoint 2.2
119 Powerpoint 2.2119 Powerpoint 2.2
119 Powerpoint 2.2Jeneva Clark
 
Chapter_2_Boolean_Algebra_and_Logic_Gates.ppt
Chapter_2_Boolean_Algebra_and_Logic_Gates.pptChapter_2_Boolean_Algebra_and_Logic_Gates.ppt
Chapter_2_Boolean_Algebra_and_Logic_Gates.pptMdTahsinAmin2
 
1050 text-ef
1050 text-ef1050 text-ef
1050 text-efsupoteta
 
complex numbers 1
complex numbers 1complex numbers 1
complex numbers 1youmarks
 
Calculus - 1 Functions, domain and range
Calculus - 1 Functions, domain and rangeCalculus - 1 Functions, domain and range
Calculus - 1 Functions, domain and rangeIdrisJeffreyManguera
 
Complex numbers with matrics
Complex numbers with matricsComplex numbers with matrics
Complex numbers with matricsTarun Gehlot
 
L1 functions, domain & range
L1 functions, domain & rangeL1 functions, domain & range
L1 functions, domain & rangeJames Tagara
 
functions-1.pdf
functions-1.pdffunctions-1.pdf
functions-1.pdfKevalVala4
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxJyothi122118
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxJyothi122118
 

Similar to Dm2021 binary operations (20)

Unary and binary set operations
Unary and binary set operationsUnary and binary set operations
Unary and binary set operations
 
Exploring Group Theory in Discrete Mathematics
Exploring Group Theory in Discrete MathematicsExploring Group Theory in Discrete Mathematics
Exploring Group Theory in Discrete Mathematics
 
Algebraic Structure
Algebraic StructureAlgebraic Structure
Algebraic Structure
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Relation and function pdf
Relation and function pdfRelation and function pdf
Relation and function pdf
 
Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Generating functions (albert r. meyer)
Generating functions (albert r. meyer)
 
119 Powerpoint 2.2
119 Powerpoint 2.2119 Powerpoint 2.2
119 Powerpoint 2.2
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Chapter_2_Boolean_Algebra_and_Logic_Gates.ppt
Chapter_2_Boolean_Algebra_and_Logic_Gates.pptChapter_2_Boolean_Algebra_and_Logic_Gates.ppt
Chapter_2_Boolean_Algebra_and_Logic_Gates.ppt
 
Graph a function
Graph a functionGraph a function
Graph a function
 
1050 text-ef
1050 text-ef1050 text-ef
1050 text-ef
 
complex numbers 1
complex numbers 1complex numbers 1
complex numbers 1
 
Calculus - 1 Functions, domain and range
Calculus - 1 Functions, domain and rangeCalculus - 1 Functions, domain and range
Calculus - 1 Functions, domain and range
 
Forth Lecture
Forth LectureForth Lecture
Forth Lecture
 
Complex numbers with matrics
Complex numbers with matricsComplex numbers with matrics
Complex numbers with matrics
 
L1 functions, domain & range
L1 functions, domain & rangeL1 functions, domain & range
L1 functions, domain & range
 
functions-1.pdf
functions-1.pdffunctions-1.pdf
functions-1.pdf
 
0401 ch 4 day 1
0401 ch 4 day 10401 ch 4 day 1
0401 ch 4 day 1
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 

More from Robert Geofroy

ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptxESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptxRobert Geofroy
 
This is the introductory set of slides for the Basic English course.
This is the introductory set of slides for the Basic English course.This is the introductory set of slides for the Basic English course.
This is the introductory set of slides for the Basic English course.Robert Geofroy
 
Sampling Distribution of Sample proportion
Sampling Distribution of Sample proportionSampling Distribution of Sample proportion
Sampling Distribution of Sample proportionRobert Geofroy
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 
Course project solutions 2018
Course project solutions 2018Course project solutions 2018
Course project solutions 2018Robert Geofroy
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019Robert Geofroy
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proofRobert Geofroy
 
Using sage maths to solve systems of linear equations
Using sage maths to solve systems of linear equationsUsing sage maths to solve systems of linear equations
Using sage maths to solve systems of linear equationsRobert Geofroy
 

More from Robert Geofroy (11)

ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptxESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
 
This is the introductory set of slides for the Basic English course.
This is the introductory set of slides for the Basic English course.This is the introductory set of slides for the Basic English course.
This is the introductory set of slides for the Basic English course.
 
Sampling Distribution of Sample proportion
Sampling Distribution of Sample proportionSampling Distribution of Sample proportion
Sampling Distribution of Sample proportion
 
Set theory
Set theorySet theory
Set theory
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
 
Datasets
DatasetsDatasets
Datasets
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Course project solutions 2018
Course project solutions 2018Course project solutions 2018
Course project solutions 2018
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
 
Using sage maths to solve systems of linear equations
Using sage maths to solve systems of linear equationsUsing sage maths to solve systems of linear equations
Using sage maths to solve systems of linear equations
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 

Dm2021 binary operations

  • 2. Binary Operations Take the multiplication operation on the set of integers, Z = {0, ±1, ±2, ±3,…}: x = +3 and y = +4 x × y = +12 (x, y) ∈ Z × Z and x × y ∈ Z We write *: Z × Z → Z; (x, y) → x × y
  • 3. Binary Operations Take the addition operation on the set of integers, Z = {0, ±1, ±2, ±3,…}: x = +3 and y = -4 x + y = +3 + (-4) = -1∈ Z (x, y) ∈ Z × Z and x + y ∈ Z We write *: Z × Z → Z; (x, y) → x + y
  • 4. Binary Operation: : (x, y ) → f(x, y) That is a calculation that combines two elements of the set (called operands) to produce another element of the set. It maps elements of the Cartesian product A × A into A itself. i.e. f: A × A → A. We call the operation multiplication!
  • 5. Binary Operation notation • We usually write binary operations infix that is, between their arguments, rather than prefix, before their arguments. • Also, the symbols chosen for binary operations are usually reminiscent of + or × rather than letters.
  • 6. Examples: Infix notation Note the infix positioning of the operation characteristic of binary operations.
  • 7. Binary operations on Z Given the set of integers X, we normally call the operation “multiplication” and denote it by * even though we can define the operations in many ways: • x * y = x + 2y + 3 • x * y = 1 + xy • x * y = 3x + y or even • x * y = x + y
  • 11. Are these binary operations? 1. a * b = a + b – 1 2. a * b = 1 – 2ab 3. a * b = a/b 4. a * b = a/b on Z {0} 5. For a, b ∈ A, a * b = a + b where A is the set A = {1, 2, 3, 4}. Given a, b ∈ Z. Consider the operations *: Z × Z → Z as follows:
  • 13. Some interesting questions? • Commutativity: does the order in which we perform the operation matter? • Associativity: does it matter how we group the operands? • Identity: is there are element which when used as an operand with another object returns the same object?
  • 15. Addition: +: R × R → R; (x, y) → x + y
  • 16. Multiplication:*: R × R → R; (x, y)→ x × y
  • 17. Multiplication:*: R × R → R; (x, y)→ x × y
  • 18. Subtraction: *: R × R → R; (x, y) → x - y
  • 19. Subtraction: *: R × R → R; (x, y) → x - y
  • 20. Division: *: R{0} × R{0} → R{0}; (x, y) → x / y
  • 21. Division: *: R{0} × R{0} → R{0}; (x, y) → x / y
  • 22. Define an identity element for a binary operation.
  • 24. RTP: The Identity Element is Unique
  • 25. The identity element e of a binary operation  is unique. Suppose that e and e’ are two identities of *. Then, e * e’ = e since e’ is an identity and also e * e’ = e’ since e is an identity and hence e = e’ and the identities are unique. ■
  • 27. Is there an identity element for this binary operation? • Let * be the binary operation on S = {1, -1, i, -i} with i2 = -1 defined by a * b = a x b. • Is there an identity element for *? * 1 -1 i -i 1 1 -1 i -i -1 -1 1 -i i i i -i -1 1 -i -i i 1 -1
  • 28. Binary Operati on Identity Element • For the set Z, the integer 1 is an identity w. r. t. “”, but not w. r. t. “+”. • The number 0 is an identity w. r. t. “+”.
  • 29. Binary Operati on Identity Element Let “” be the operation defined on Z, x  y = x + y  1. Then is there an identity?
  • 31. Let “∆” be the operation defined on Z, x ∆ y = 1 + xy. Then the operation has no identity element in Z Hint: Assume there is an identity element e, then x ∆ e = 1 + xe = x What does that give us?
  • 32. SOLUTION Let “∆” be the operation defined on Z, x ∆ y = 1 + xy. Then the operation has no identity element in Z. SOLUTION Assume there is an identity element e, then x ∆ e = 1 + xe = x ⇒ xe = x - 1 ⇒ e = (x – 1)/x = 1 - 1/x ∉ Z
  • 33. A binary operation which is NOT commutative?
  • 34. A binary operation which is NOT associative?
  • 36.
  • 37. Using a table to represent a Binary operation • Consider the set A = {-1, 1} under the usual multiplication as we know it. We can think of x, and y as the elements of this set. Let us compute all the products for the elements of this set. • This produces the results: 1 * 1 = 1 × 1 = 1 1 * -1 = 1 × -1 = -1 -1 * 1 = -1 × 1 = -1 -1 * -1 = -1 × -1 = 1
  • 38. Summarising, in a table we have… • Consider the set A = {-1, 1} under the usual multiplication as we know it. We can think of x, and y as the elements of this set. Let us compute all the products for the elements of this set. • This produces the results: 1 * 1 = 1 × 1 = 1 1 * -1 = 1 × -1 = -1 -1 * 1 = -1 × 1 = -1 -1 * -1 = -1 × -1 = 1 * 1 -1 1 1 -1 -1 -1 1
  • 39. Cayley Table When we are given a binary operation on a finite set, it is common to specify it in tabular form, sometimes called a Cayley table.
  • 40. Arthur Cayley Born: 16 Aug 1821 Died: 26 Jan 1895
  • 41. • In 1863 Cayley was appointed Sadleirian professor of Pure Mathematics at Cambridge. • He published over 900 papers and notes covering nearly every aspect of modern mathematics. Arthur Cayley
  • 42. The most important of his work was developing the algebra of matrices, work in non-Euclidean geometry and n-dimensional geometry. As early as 1849 Cayley wrote a paper linking his ideas on permutations with Cauchy's.  In 1854 Cayley wrote two papers which are remarkable for the insight they have of abstract groups. Arthur Cayley
  • 43. At that time the only known groups were permutation groups and even this was a radically new area, yet Cayley defines an abstract group and gives a table to display the group multiplication. These tables become known as Cayley Tables. Arthur Cayley
  • 44. He gives the 'Cayley tables' of some special permutation groups but, much more significantly for the introduction of the abstract group concept, he realised that matrices were groups . Arthur Cayley
  • 45. Cayley Table • Take * to be the binary operation on S = {1, -1, i, - i} with i2 = -1 defined by a * b = a × b the corresponding Cayley table is: • Here is another example of a Cayley table. * 1 -1 i -i 1 1 -1 i -i -1 -1 1 -i i i i -i -1 1 -i -i i 1 -1
  • 46. Let “” be the operation defined as x  y = x + y  1 on Z, show that “” is both commutative and associative.
  • 47. SOLUTION Let “” be the operation defined as x  y = x + y  1 on Z, then “” is both commutative and associative. Proof: Commutative: x * y = x + y – 1 = y + x – 1 = y * x Associative: x * (y * z) = x * (y + z – 1) = x + (y + z – 1) -1 = (x + y – 1) * z = (x * y) * z Thus, * is both commutative and associative on Z.
  • 48. Let *: Z × Z → Z; (x, y) →1 + xy. Show that * is commutative but not associative.
  • 49. Show: x  y = x + 2y. This operation is neither commutative, nor associative.
  • 50. Show: x  y = x + 2y. This operation is neither commutative, nor associative. • Commutative: x * y = x + 2y ≠ y + 2x = y * x So, it is not commutative. • Associative: x * (y * z) = x * (y + 2z) = x + 2(y + 2z) = x + 2y + 4z (x * y) * z = (x + 2y) * z = x + 2y + 2z So, * is not associative
  • 51. Consider the Binary Operation * as given by… Find the answer to: 1) a * (b * c) 2) (a * b) * c 3) a * (b * (c * d))
  • 52. Consider the Binary Operation * as given by… On what set is the operation * defined? Is the operation * closed? Is there an element e such that a * e = a = e * a?
  • 54. Inverses • Is this a binary operation? • Is there an identity element? • Is there an element x-1 such that for every x we have x * x-1 = e = x-1 * x?
  • 55. Let * be an associative binary operation on a set A with identity e. If x has an inverse, show that this inverse is unique. Let y and z be inverses of x then Hence y = z. Thus, if x has an inverse, that inverse is unique.
  • 56. Let * be an associative binary operation on a set A with identity e. If x has an inverse, show that this inverse is unique. Let y and z be inverses of x then y = y * e By the property of identity = y * (x * z) Since z is an inverse of x = (y * x) * z Since * is associative = e * z Since y is an inverse of x = z By the property of identity Hence y = z. Thus, if x has an inverse, that inverse is unique.
  • 58. 2 x 2 Matrices with real coefficients under component wise addition Consider the set of 2 x 2 matrices with real coefficients under component wise addition… • Is this a binary operation? • Is the operation commutative and associative? • What is the identity for the operation? • Do the elements have inverses?
  • 59. 2 x 2 Matrices with real coefficients under component wise addition Consider the set of 2 x 2 matrices with real coefficients under component wise addition…
  • 60. Do inverses exist? • Consider the set of 2 x 2 matrices over the field of real numbers. Is multiplication a binary operation? • Is there an identity element? • Do all 2 x 2 matrices have inverses?
  • 61. Do inverses exist? • Recall that the inverse of a matrix is A-1 = adj A/det A. i.e. the matrix of cofactors divided by the determinant of the matrix. • For a 2 x 2 matrix to have an inverse, we must have det A ≠ 0. • Thus all 2 x 2 matrices do not have inverses under multiplication. • Thus, all elements are not invertible.
  • 62.
  • 63.
  • 64. Complex Numbers • Consider * to be the binary operation on S = {1, -1, i, -i} with i2 = -1 defined by a * b = a x b. • The corresponding Cayley table is: • Is this binary operation closed, commutative, associative? • Is there an identity? • Are there inverses? * 1 -1 i -i 1 1 -1 i -i -1 -1 1 -i i i i -i -1 1 -i -i i 1 -1
  • 65. Is there a way we can check for commutativity quickly from the Cayley table?…
  • 66. How would you check for associativity?…
  • 71. Example – Power Set • The intersection and union of two subsets of a set A are both binary operations on the power set of A, P(A). • If A = {1, 2} what would be the identity element for each of these operations?
  • 72. Example – Power Set • The intersection and union of two subsets of a set A are both binary operations on the power set of A, P(A). • If A = {1, 2} what would be the identity element for each of these operations? SOLUTION A= {1, 2} and P(A) = {{}, {1}, {2}, {1, 2}} • Intersection: ∩: P(A) × P(A) → P(A) – {1} ∩ {1, 2} = {1} ∈ P(A)
  • 74.
  • 76. Does this remind us of the Exclusive OR in propositional logic?
  • 77.
  • 78. Given sets A, B and C. Show that ∆ is associative… Similarly,
  • 79.
  • 80.
  • 81. Some Past Paper Questions
  • 82. Given a binary operation x  y = x + 2y.This operation has no identity, thus no inverse. Try… x * e = e * x = Do you get two different values for the identity?
  • 83. Given a binary operation x  y = x + 2y.This operation has no identity, thus no inverse. Consider: x * e = x + 2e = x ⇒ e = 0 e * x = e + 2x = x ⇒ e = -x But we know that the identity is unique. Thus, the operation * has no identity and hence no inverse.
  • 85. Question May 2017 a) Commutative: • 3 * 4 = 3 × 3 + 4 × 4 – 3 × 4 = 25 – 12 = 13 • 4 * 3 = 3 × 4 + 4 × 3 – 4 × 3 = 24 – 12 = 12 So it is not commutative. b) Identity: If there is an identity e, then n * e = n = e * n ⇒ 3n + 4e – ne = n then 2n = e(4 – n) and e = 2n/(4 – n). Now for n = 1 e = 2/3 ∉ Z and hence this operation does not have an identity element. Also 4e + 3n – en = 3e + 4n – ne So 3n + 4e = 3e + 4n and n = e but the identity is unique so there is no identity. c) Inverse: Since it does not have an identity, it has no inverses.