How do i show if this is associative or not?

  • Thread starter gavin123
  • Start date
  • Tags
    associative
In summary, the equation x*y=x+2y+4 can be written in two different ways, using the asterisk (*) as an operator and parentheses. The first way is more confusing because it makes it seem like x*y is the same as x+2y+4. The second way is more clear and is equivalent to (x+2y+4)*z.
  • #1
gavin123
10
0

Homework Statement


(x*y)=x+2y+4

Homework Equations

The Attempt at a Solution


first i did this but I'm not sure if it is correct
(x*y)*z=x+2y+4*z=x+2y+4+z+1
x*(y*z)=x*y+2z+4=x+y+2z+4+1
 
Last edited:
Physics news on Phys.org
  • #2
gavin123 said:
first i did this but I'm not sure if it is correct
No, it is not correct. Study the definition closely. Remember that x does not stand for "x", but for "any expression to the left of "*". Vice versa for y.
 
  • #3
I don't understand what you mean?
 
  • #4
I think Svein means that instead of using the notation (x*y) = x + 2y + 4, you should use something like (x⊗y) = x + 2y + 4.

Using '*' as an operator confuses, as we are used to thinking of '*' as indicating multiplication of the quantities x and y.

By using the special ⊗ symbol as an operator, it becomes less confusing.

For example, if we wrote (6⊗y), that would mean 6 + 2y + 4;
likewise (x⊗6) would mean x + 2*6 + 4;
(g⊗x) = g + 2x + 4
 
  • #5
Oh ok then did I write it out correctly
 
  • #6
gavin123 said:
Oh ok then did I write it out correctly
It's not clear what you mean here.

To take one of the items from the OP:
(x ⊗ y) ⊗ z would mean finding out what (x ⊗ y) was first and then combining that quantity with z.

You could re-write the original expression as

(x ⊗ y) ⊗ z = (x ⊗ y) + 2z + 4 and then expand (x ⊗ y) according to the definition.
 
  • #7
gavin123 said:

Homework Statement


(x*y)=x+2y+4

Homework Equations



The Attempt at a Solution


first i did this but I'm not sure if it is correct
(x*y)*z=x+2y+4*z=x+2y+4+z+1
x*(y*z)=x*y+2z+4=x+y+2z+4+1
I don't see any problem in using the asterisk (*) for the operation defined here. Just be sure not to confuse it with traditional multiplication.

When you write:
(x*y)*z = x+2y+4*z ,​
you really should use parentheses,
(x*y)*z = ( x+2y+4 )*z​

What you write after that is incorrect. It should be equal to ( x+2y+4 ) + 2z + 4 , etc.
 
  • #8
Not showing all my steps, NOT associative.
The two sides give x+2y+2z+8 and x+2y+4z+12, so these are unequal.
 
  • #9
so if (x*y)=x+2y-xy Then
x*(y*z)=x+2(y+2z-yz)-x(y+2z-yz) and
(x*y)*z=(x+2y-xy)+2z-(x+2y-xy)z
 
  • #10
gavin123 said:
so if (x*y)=x+2y-xy Then
x*(y*z)=x+2(y+2z-yz)-x(y+2z-yz) and
(x*y)*z=(x+2y-xy)+2z-(x+2y-xy)z
Yes.

But it's not clear, looking at that, whether those two expressions are equivalent.
 
  • #11
they are not the same
 
  • #12
gavin123 said:
they are not the same
i know that, but it's not all that clear from those two expressions.
 

What is associativity?

Associativity is a property that describes how the order in which operations are performed does not affect the final result. In other words, changing the order of operations will not change the outcome of the calculation.

How do I determine if an operation is associative?

To determine if an operation is associative, you can use the associative property test. This test involves performing the operation on three elements, and if the result is the same regardless of the order in which the operation is performed, then the operation is associative.

What are some examples of associative operations?

Some examples of associative operations include addition, multiplication, and matrix multiplication. For example, (1 + 2) + 3 = 1 + (2 + 3) and (2 * 3) * 4 = 2 * (3 * 4), so both addition and multiplication are associative operations.

What are some examples of non-associative operations?

Some examples of non-associative operations include division, subtraction, and exponentiation. For example, (8 / 2) / 4 ≠ 8 / (2 / 4) and (2 - 1) - 3 ≠ 2 - (1 - 3), so both division and subtraction are non-associative operations.

Why is it important to know if an operation is associative or not?

Knowing if an operation is associative or not is important in mathematics because it can help simplify complex calculations and make them easier to understand. It also allows mathematicians to identify patterns and relationships between different operations.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
11
Views
856
  • Precalculus Mathematics Homework Help
Replies
4
Views
655
  • Precalculus Mathematics Homework Help
Replies
5
Views
818
  • Precalculus Mathematics Homework Help
Replies
10
Views
938
  • Precalculus Mathematics Homework Help
Replies
5
Views
756
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
8
Views
424
  • Precalculus Mathematics Homework Help
Replies
10
Views
303
Back
Top