Defining New Operations Advanced. This lesson goes beyond core Algebra I. You can skip it.

Learning goals

  • Evaluate a new symbol by substituting both inputs, even whole expressions, into its rule
  • Test whether the operation is commutative or associative before assuming either
  • Work nested operations from the innermost pair outward
  • Look for an identity element by solving the defining condition on both sides
  • Turn an equation with the symbol into an ordinary linear or quadratic equation

A made-up symbol stands for a rule

A binary operation takes a pair of inputs and gives one output, as ++ takes 33 and 44 and returns 77. Think of the pair together as the input to a function. Every allowed pair must get exactly one output; restrictions still matter, as they do when division excludes a zero divisor.

A problem can define another operation. For example, the definition

a⋆b=2a+b−1a \star b = 2a + b - 1

gives a rule with two slots. To compute 3⋆53\star5, put the first input, 33, in every aa slot and the second input, 55, in every bb slot:

3⋆5=2(3)+5−1=6+5−1=10.3 \star 5 = 2(3) + 5 - 1 = 6 + 5 - 1 = 10.

Substitute into the defining rule, then use the ordinary order of operations. Here 2(3)2(3) becomes 66 before you add 55 and subtract 11.

A two-input operationThe first input is doubled; the second is added; one is subtracted.inputsa = 3b = 52a + b − 12(3) + 5 − 110output
Put 3 in the first slot a and 5 in the second slot b. The rule doubles the first input, adds the second, then subtracts 1 to give 10.

Worked example 1 Evaluating a custom operation, including negatives

Let a⋆b=2a+b−1a \star b = 2a + b - 1. Compute 4⋆74 \star 7, then (−2)⋆5(-2) \star 5, then 6⋆(−3)6 \star (-3).

For 4⋆74 \star 7, substitute a=4a = 4 and b=7b = 7, and do the multiplication first:

4⋆7=2(4)+7−1=8+7−1=14.4 \star 7 = 2(4) + 7 - 1 = 8 + 7 - 1 = 14.

For (−2)⋆5(-2) \star 5, the first input is negative, so 2a2a becomes 2(−2)=−42(-2) = -4. Keep track of the sign:

(−2)⋆5=2(−2)+5−1=−4+5−1=0.(-2) \star 5 = 2(-2) + 5 - 1 = -4 + 5 - 1 = 0.

For 6⋆(−3)6 \star (-3), the second input is negative, and it lands in the +b+b slot, so you add a negative:

6⋆(−3)=2(6)+(−3)−1=12−3−1=8.6 \star (-3) = 2(6) + (-3) - 1 = 12 - 3 - 1 = 8.

Put each negative input in parentheses when you substitute, so you keep its sign.

Check your understanding

A new operation is defined by a△b=3a−ba \triangle b = 3a - b. What is 4△54 \triangle 5?

Answer choices

When an input is an expression

An input can be a whole expression. Substitute it as one piece, using parentheses when needed. This is the same idea as substituting x+1x+1 into a function, or putting a whole inner rule into an outer rule in composition.

Worked example 2 Substituting an expression into a slot

Let a⋄b=a2−ba \diamond b = a^2 - b. Compute 5⋄25 \diamond 2 and (−4)⋄3(-4) \diamond 3, then simplify (k+1)⋄4(k + 1) \diamond 4.

For 5⋄25 \diamond 2, square the first input before subtracting the second:

5⋄2=52−2=25−2=23.5 \diamond 2 = 5^2 - 2 = 25 - 2 = 23.

For (−4)⋄3(-4) \diamond 3, the first input is negative, and squaring a negative gives a positive:

(−4)⋄3=(−4)2−3=16−3=13.(-4) \diamond 3 = (-4)^2 - 3 = 16 - 3 = 13.

Now let the first input be the expression k+1k + 1. It goes into the a2a^2 slot as a single block, so the whole thing gets squared:

(k+1)⋄4=(k+1)2−4=(k2+2k+1)−4=k2+2k−3.(k + 1) \diamond 4 = (k + 1)^2 - 4 = (k^2 + 2k + 1) - 4 = k^2 + 2k - 3.

The square applies to all of k+1k + 1, not just the kk, which is why the middle term 2k2k appears.

Check your understanding

With a⋄b=a2−ba \diamond b = a^2 - b, what is (m−3)⋄7(m - 3) \diamond 7 after substituting, before simplifying?

Answer choices

The order of the two inputs can matter

Addition gives the same answer in either order: 3+5=5+3=83+5=5+3=8. Test whether the star does too:

3⋆5=2(3)+5−1=10,5⋆3=2(5)+3−1=12.3 \star 5 = 2(3) + 5 - 1 = 10, \qquad 5 \star 3 = 2(5) + 3 - 1 = 12.

The rule doubles only the first input, so swapping 33 and 55 changes the answer from 1010 to 1212. An operation is commutative if swapping the inputs never changes its output. This counterexample shows that the star is not commutative.

Swapping the inputs changes this outputEach card uses the rule 2a plus b minus 1. Three first gives 10; five first gives 12.Rule: 2a + b − 1a = 3, b = 52(3) + 5 − 1= 10a = 5, b = 32(5) + 3 − 1= 1210 ≠ 12
The same rule in two input orders. With 3 first it gives 10; with 5 first it gives 12. These unequal outputs show that the operation is not commutative.

One pair with different outputs in the two orders is enough to show that an operation is not commutative. One pair that matches is not enough to show that it is: to establish commutativity, explain why the two orders agree for every allowed pair.

Worked example 3 One operation that is not commutative, and one that is

Compare the two orders for two different rules.

Earlier in this section, one counterexample showed that the star is not commutative.

Now take a different rule, a⊕b=a+b+aba \oplus b = a + b + ab, and test it on 22 and 77:

2⊕7=2+7+(2)(7)=2+7+14=23,2 \oplus 7 = 2 + 7 + (2)(7) = 2 + 7 + 14 = 23,7⊕2=7+2+(7)(2)=7+2+14=23.7 \oplus 2 = 7 + 2 + (7)(2) = 7 + 2 + 14 = 23.

This time the two orders agree, but that shows only that this one pair matches. The next result gives the general argument for why ⊕\oplus is commutative for every choice of inputs.

The operation a⊕b=a+b+aba \oplus b = a + b + ab is commutative#

First compare inputs 33 and 44. In one order the rule gives 3+4+3⋅43+4+3\cdot4; in the other it gives 4+3+4⋅34+3+4\cdot3. Addition and multiplication allow us to swap their inputs, so both expressions equal 1919. The reason for agreement applies to any two numbers.

For general inputs, the definition gives

a⊕b=a+b+ab,a \oplus b = a + b + ab,b⊕a=b+a+ba.b \oplus a = b + a + ba.

Ordinary addition gives b+a=a+bb+a=a+b, and ordinary multiplication gives ba=abba=ab. Replacing these equal quantities turns the second expression into

b⊕a=a+b+ab,b \oplus a = a + b + ab,

which is exactly a⊕ba\oplus b. The argument holds for every pair, so ⊕\oplus is commutative.

Check your understanding

For the operation a⋄b=a2−ba \diamond b = a^2 - b, which statement is true?

Answer choices

Nested operations: work from the inside out

You can combine three inputs by applying the operation twice, but you need parentheses to say which pair goes first, the same way (1⋆2)⋆3(1 \star 2) \star 3 and 1⋆(2⋆3)1 \star (2 \star 3) are two different plans. Evaluate the innermost parentheses first, turn that result into a single number, and use it as an input for the next step, exactly like nested parentheses in ordinary arithmetic.

Here is how the grouping can change the answer.

Worked example 4 Two groupings, two different answers

Let a⋆b=2a+b−1a \star b = 2a + b - 1. Compute (1⋆2)⋆3(1 \star 2) \star 3 and 1⋆(2⋆3)1 \star (2 \star 3).

For (1⋆2)⋆3(1 \star 2) \star 3, the parentheses on the left go first. Evaluate the inner star, then use its result as the first input of the outer star:

1⋆2=2(1)+2−1=3,3⋆3=2(3)+3−1=8.1 \star 2 = 2(1) + 2 - 1 = 3, \qquad 3 \star 3 = 2(3) + 3 - 1 = 8.

So (1⋆2)⋆3=8(1 \star 2) \star 3 = 8. Now regroup to the right. This time the inner star on 22 and 33 goes first, and its result becomes the second input of the outer star:

2⋆3=2(2)+3−1=6,1⋆6=2(1)+6−1=7.2 \star 3 = 2(2) + 3 - 1 = 6, \qquad 1 \star 6 = 2(1) + 6 - 1 = 7.

So 1⋆(2⋆3)=71 \star (2 \star 3) = 7. The two groupings give 88 and 77, which are not equal.

An operation is associative if regrouping three inputs never changes the output. For example, (2+3)+4(2+3)+4 and 2+(3+4)2+(3+4) both give 99, and addition works in either grouping for every triple. The star fails: the triple above gives 88 in one grouping and 77 in the other.

Commutativity is about the order of the inputs, and associativity is about how they are grouped. Check each one separately. Do not write 1⋆2⋆31\star2\star3 without parentheses: with no grouping convention, its two readings give different answers.

Check your understanding

With a⋄b=a2−ba \diamond b = a^2 - b, compare (1⋄2)⋄3(1 \diamond 2) \diamond 3 with 1⋄(2⋄3)1 \diamond (2 \diamond 3). Is ⋄\diamond associative?

Answer choices

Looking for an identity element

Adding 00 leaves a number unchanged: a+0=0+a=aa+0=0+a=a. Multiplying by 11 does too: a⋅1=1⋅a=aa\cdot1=1\cdot a=a. An identity element is one fixed value that leaves every input unchanged in both positions. For a custom operation, check both a⋆e=aa\star e=a and e⋆a=ae\star a=a. An operation can pass one of these checks and fail the other.

Worked example 5 Finding an identity element

Does a⊕b=a+b+aba \oplus b = a + b + ab have an identity element? If so, find it.

An identity is a fixed value ee that leaves every input unchanged from both sides, meaning a⊕e=aa \oplus e = a and e⊕a=ae \oplus a = a no matter what aa is. Start with the first condition, writing it out with the rule and solving for ee:

a⊕e=a+e+ae=a.a \oplus e = a + e + ae = a.

Subtract aa from both sides to isolate the terms with ee:

e+ae=0⟹e(1+a)=0.e + ae = 0 \quad\Longrightarrow\quad e(1 + a) = 0.

This must hold for every aa. In particular, taking a=0a=0 gives e=0e=0, so no other candidate can work. Now check 00 from both sides for general aa:

a⊕0=a+0+a⋅0=a,0⊕a=0+a+0⋅a=a.a \oplus 0 = a + 0 + a\cdot 0 = a, \qquad 0 \oplus a = 0 + a + 0\cdot a = a.

Both orders return aa, so the identity is 00. This also agrees with the commutativity proved above.

For the star, a⋆e=2a+e−1=aa\star e=2a+e-1=a instead forces e=1−ae=1-a. Input a=0a=0 would require e=1e=1, while input a=1a=1 would require e=0e=0. No single value works for every input even in that position, so the star has no identity.

Check your understanding

With a⊗b=a+2b−aba \otimes b = a + 2b - ab, does ⊗\otimes have an identity element?

Answer choices

Solving an equation that hides a custom operation

Because a defined operation stands for a rule, an equation that contains one is an ordinary equation in disguise. Substitute the definition to remove the new symbol, and you are left with the linear or simple quadratic equations you already solve. The unknown can sit in either slot.

Worked example 6 Solving for an unknown input

Let a⋆b=2a+b−1a \star b = 2a + b - 1. Solve x⋆4=11x \star 4 = 11, then 3⋆x=103 \star x = 10. Finally, with a⋄b=a2−ba \diamond b = a^2 - b, solve x⋄3=22x \diamond 3 = 22.

For x⋆4=11x \star 4 = 11, substitute a=xa = x and b=4b = 4 into the rule to turn the starred equation into a plain one:

2x+4−1=11⟹2x+3=11⟹2x=8⟹x=4.2x + 4 - 1 = 11 \quad\Longrightarrow\quad 2x + 3 = 11 \quad\Longrightarrow\quad 2x = 8 \quad\Longrightarrow\quad x = 4.

For 3⋆x=103 \star x = 10, the unknown is the second input, so substitute a=3a = 3 and b=xb = x:

2(3)+x−1=10⟹x+5=10⟹x=5.2(3) + x - 1 = 10 \quad\Longrightarrow\quad x + 5 = 10 \quad\Longrightarrow\quad x = 5.

For x⋄3=22x \diamond 3 = 22, the rule squares the first input, so substituting gives a simple quadratic:

x2−3=22⟹x2=25⟹x=5  or  x=−5.x^2 - 3 = 22 \quad\Longrightarrow\quad x^2 = 25 \quad\Longrightarrow\quad x = 5 \ \text{ or } \ x = -5.

Squaring produces two solutions, both valid, since 525^2 and (−5)2(-5)^2 each equal 2525.

Check your understanding

With a⋆b=2a+b−1a \star b = 2a + b - 1, solve x⋆5=16x \star 5 = 16 for xx.

Answer choices

Check your understanding

With a⋄b=a2−ba \diamond b = a^2 - b, solve x⋄4=21x \diamond 4 = 21 for xx.

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

Familiar signs once needed introductions too. Johannes Widmann used plus and minus marks in a German arithmetic book printed in 1489. They marked whether boxes or bales weighed more or less than stated, rather than serving as the modern instructions to add or subtract. Later writers used the marks for those operations.

In 1557, the Welsh physician Robert Recorde introduced the equals sign in his English algebra book, The Whetstone of Witte. He chose two parallel lines of equal length because, he explained, nothing could be more equal.

A reader meeting a new sign had to learn its meaning, just as you need the definition a⋆b=2a+b−1a\star b=2a+b-1 before evaluating a star. Once the rule is given, you put the inputs into it and calculate, whatever the sign looks like.

Sources: Jeff Miller on operation signs and his account of Recorde’s equals sign.

Your progress

See all your progress →