Merged binary operations file
Merged binary operations file
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Properties of Binary Operations & Identity Element and Inverse</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1, h2, h3 {
color: #2c3e50;
}
table {
border-collapse: collapse;
width: 100%;
margin-bottom: 1em;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
.example {
background-color: #f0f0f0;
padding: 10px;
margin: 10px 0;
border-left: 5px solid #3498db;
}
</style>
</head>
<body>
<h3>a) Closure</h3>
<p>A binary operation, Δ is closed under a set, A if for all x and y which are
elements of A, xΔy is also in A. For example, the sum of two natural numbers is a
natural number hence it can be said that addition is closed under the set of
Natural numbers, ℕ.</p>
<p>The set of natural numbers is also closed under multiplication and addition
but not closed under subtraction and division. ie when we add or multiply two
natural numbers, the result will always be a natural number, however, when you
subtract or divide two natural numbers, your result will not always be a natural
number.</p>
<h3>Activity 1.2</h3>
<ol>
<li>
<ol type="a">
<li>Choose any two even numbers</li>
<li>Add them up</li>
<li>Is the result an even number?</li>
</ol>
</li>
<li>Repeat the steps above with different even numbers</li>
<li>Is the sum of two even numbers always an even number?</li>
</ol>
<p>Yes! The sum of two even numbers is always an even number. This demonstrates
the closure property of addition with even numbers.</p>
<h3>Activity 1.3</h3>
<ol>
<li>Perform the operations on the set of natural numbers
<ol type="a">
<li>2 + 4 =</li>
<li>2 × 4 =</li>
<li>2 – 4</li>
<li>2 ÷4</li>
</ol>
</li>
<li>Write down the operations whose results were also natural numbers.</li>
<li>Which operations are closed on the set of natural numbers?</li>
</ol>
<p>Can you input real numbers into this example to show that this is true?</p>
<p><strong>Solution</strong></p>
<p>Pick two numbers at a time for all members in the set S, and evaluate them
with the operation Ʌ.</p>
<p>From the solution, the numbers 0, –7, –10, –12, –17, and –24 are not in the
set S; therefore the set S is not closed under the operation Ʌ.</p>
<p><strong>Solution</strong></p>
<p>1 * 1 = (1 + 1) / 2 = 1</p>
<p>1 * 3 = (1 + 3) / 2 = 2</p>
<p>1 * 5 = (1 + 5) / 2 = 3</p>
<p>1 * 7 = (1 + 7) / 2 = 4</p>
<table>
<tr>
<th>*</th><th>1</th><th>3</th><th>5</th><th>7</th>
</tr>
<tr>
<td>1</td><td>1</td><td>2</td><td>3</td><td>4</td>
</tr>
<tr>
<td>3</td><td>2</td><td>3</td><td>4</td><td>5</td>
</tr>
<tr>
<td>5</td><td>3</td><td>4</td><td>5</td><td>6</td>
</tr>
<tr>
<td>7</td><td>4</td><td>5</td><td>6</td><td>7</td>
</tr>
</table>
<p>ii. The operation * is not closed because the numbers {2,4,6} are not
members in the set M.</p>
<ol type="i">
<li>3 * 4</li>
<li>4 * 5</li>
<li>5 * –6</li>
<li>–5 * 7</li>
</ol>
<p><strong>Solution</strong></p>
<ol type="i">
<li>3 * 4 = 4 – 4(3)(4) = – 44</li>
<li>4 * 5 = 5 – 4(4)(5) = –75</li>
<li>5 * –6 = –6 – 4(5)(–6) = 114</li>
<li>–5 * 7 = 7 – 4(–5)(7) = 147</li>
</ol>
<p>The result in each case is a real number, so the operation * is closed under
the set of Real numbers ( ℝ ).</p>
<h2>Identity Element</h2>
<p>An identity element for a binary operation * on a set S is an element e in S
such that for every element a in S, the equation e * a = a * e = a holds. In other
words, the identity element is an element that, when combined with any other
element, leaves that element unchanged.</p>
<div class="example">
<h3>Examples:</h3>
<ul>
<li>For addition of real numbers, the identity element is 0, because a
+ 0 = 0 + a = a for any real number a.</li>
<li>For multiplication of real numbers, the identity element is 1,
because a × 1 = 1 × a = a for any real number a.</li>
</ul>
</div>
<h2>Inverse Element</h2>
<p>For a binary operation * on a set S with identity element e, an inverse of
an element a in S is an element b in S such that a * b = b * a = e. In other words,
the inverse element is an element that, when combined with the original element,
yields the identity element.</p>
<div class="example">
<h3>Examples:</h3>
<ul>
<li>For addition of real numbers, the inverse of a is -a, because a +
(-a) = (-a) + a = 0 (the identity element for addition).</li>
<li>For multiplication of non-zero real numbers, the inverse of a is
1/a, because a × (1/a) = (1/a) × a = 1 (the identity element for
multiplication).</li>
</ul>
</div>
<h2>Worked Example</h2>
<p>Consider the binary operation * defined on the set of real numbers by a * b
= ab + a + b.</p>
<script>
function checkUnderstanding() {
let q1 = prompt("What is the identity element for the operation a * b =
ab + a + b?");
let q2 = prompt("What is the inverse of 2 under the operation a * b =
ab + a + b?");
let score = 0;
if (q1 === "0") score++;
if (q2 === "-2/3") score++;
</body>
</html>