Defining New Operations Advanced. This lesson goes beyond core Algebra I. You can skip it.
Progress can't be saved in this browser, so this lesson's status can't be set.
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 and and returns . 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
gives a rule with two slots. To compute , put the first input, , in every slot and the second input, , in every slot:
Substitute into the defining rule, then use the ordinary order of operations. Here becomes before you add and subtract .
Worked example 1 Evaluating a custom operation, including negatives
Let . Compute , then , then .
For , substitute and , and do the multiplication first:
For , the first input is negative, so becomes . Keep track of the sign:
For , the second input is negative, and it lands in the slot, so you add a negative:
Put each negative input in parentheses when you substitute, so you keep its sign.
Check your understanding
A new operation is defined by . What is ?
Substitute and into the rule, multiplying before subtracting.
The triangle is a made-up name for the rule , so evaluating it is ordinary arithmetic once the inputs are in place.
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 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 . Compute and , then simplify .
For , square the first input before subtracting the second:
For , the first input is negative, and squaring a negative gives a positive:
Now let the first input be the expression . It goes into the slot as a single block, so the whole thing gets squared:
The square applies to all of , not just the , which is why the middle term appears.
Check your understanding
With , what is after substituting, before simplifying?
The whole expression is the first input, so it drops into the slot as one block and gets squared as a unit.
Squaring only the and leaving the outside the square is the mistake this checks for.
The order of the two inputs can matter
Addition gives the same answer in either order: . Test whether the star does too:
The rule doubles only the first input, so swapping and changes the answer from to . An operation is commutative if swapping the inputs never changes its output. This counterexample shows that the star 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, , and test it on and :
This time the two orders agree, but that shows only that this one pair matches. The next result gives the general argument for why is commutative for every choice of inputs.
The operation is commutative#
First compare inputs and . In one order the rule gives ; in the other it gives . Addition and multiplication allow us to swap their inputs, so both expressions equal . The reason for agreement applies to any two numbers.
For general inputs, the definition gives
Ordinary addition gives , and ordinary multiplication gives . Replacing these equal quantities turns the second expression into
which is exactly . The argument holds for every pair, so is commutative.
Check your understanding
For the operation , which statement is true?
Test the two orders on the inputs and .
Since , the operation gives different answers in the two orders, so and is not commutative.
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 and 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 . Compute and .
For , the parentheses on the left go first. Evaluate the inner star, then use its result as the first input of the outer star:
So . Now regroup to the right. This time the inner star on and goes first, and its result becomes the second input of the outer star:
So . The two groupings give and , which are not equal.
An operation is associative if regrouping three inputs never changes the output. For example, and both give , and addition works in either grouping for every triple. The star fails: the triple above gives in one grouping and 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 without parentheses: with no grouping convention, its two readings give different answers.
Check your understanding
With , compare with . Is associative?
Evaluate each grouping from the inside out.
Since , the two groupings disagree, so is not associative either.
Looking for an identity element
Adding leaves a number unchanged: . Multiplying by does too: . An identity element is one fixed value that leaves every input unchanged in both positions. For a custom operation, check both and . An operation can pass one of these checks and fail the other.
Worked example 5 Finding an identity element
Does have an identity element? If so, find it.
An identity is a fixed value that leaves every input unchanged from both sides, meaning and no matter what is. Start with the first condition, writing it out with the rule and solving for :
Subtract from both sides to isolate the terms with :
This must hold for every . In particular, taking gives , so no other candidate can work. Now check from both sides for general :
Both orders return , so the identity is . This also agrees with the commutativity proved above.
For the star, instead forces . Input would require , while input would require . No single value works for every input even in that position, so the star has no identity.
Check your understanding
With , does have an identity element?
Solve the first condition, with in the second slot.
For this to hold for every , the only candidate is , and it does satisfy that condition for every : . But an identity must work from both sides, so we must also check in the first slot.
Since except when , the candidate fails in the first slot, so no value is a two-sided identity: has no identity element.
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 . Solve , then . Finally, with , solve .
For , substitute and into the rule to turn the starred equation into a plain one:
For , the unknown is the second input, so substitute and :
For , the rule squares the first input, so substituting gives a simple quadratic:
Squaring produces two solutions, both valid, since and each equal .
Check your understanding
With , solve for .
Substitute and into the rule to get an ordinary equation.
A check confirms it: .
Check your understanding
With , solve for .
Substitute and into the rule. Squaring the unknown turns this into a quadratic equation instead of a linear one.
Both values check: and . Here has two solutions because and both square to .