Miscellaneous · Q5: Are and equal?
Let , and be functions defined by , and
Are and equal? Justify your answer. (Hint: One may note that two functions and such that , are called equal functions).
Both and have domain and codomain .
So for every .
Yes, and are equal.
Want the reason behind every step, the basics and the checks?
A function is not its formula: it is the assignment of outputs to the inputs in its domain. Two functions with the same domain and codomain are equal when they give the same output at every input, however differently their formulas look. The domain here has only four elements, so the question is settled by computing four values of each function and comparing them.
- Given
- Domain , codomain , and .
- To find
- Whether for every .
- Plan
- (1) State exactly what "equal functions" requires. (2) Compute at each of the four points. (3) Compute at each point, handling the absolute value carefully. (4) Compare all four. (5) Look beyond to see why the answer depends on the domain.
Basics you need
and are equal when for every (the hint in the question). Only the values on the domain matter, not the shape of the formulas. Basics: what a function is
if and if . So is the distance of from 0, and is the distance of from . For example .
In : first the subtraction inside the bars, then the absolute value, then multiply by 2, and subtract 1 last. In : square first, then subtract.
When the domain is finite, "for every " can be proved by checking each element. That is a complete proof, not just an example, because nothing else is in . Basics: proving and disproving
Solution
What we must check
and have the same domain and the same codomain . By the hint, they are equal exactly when
If even one of these failed, and would not be equal.
"Equal functions" is a "for all " statement. Because has exactly four elements, four comparisons cover every case (Basic 4).Compute on
Substitute each element of in turn. Brackets around matter: , and subtracting means adding 1. All four values, 2, 0, 0, 2, lie in , so really is a function from to .and .Compute on
First the distances from :
Then double and subtract 1:
Working out the absolute values first, separately, avoids the usual slip of dropping the bars and getting for . The four values 2, 0, 0, 2 again lie in , so is also a genuine function from to .when , so and (Basic 2).Compare, value by value
2 0 0 2 2 0 0 2 equal? yes yes yes yes for every . Since and also share the domain and codomain , .
All four required equalities from Step 1 hold, and has no other elements, so the definition of equal functions is satisfied completely.Equal functions: same domain, same codomain, same value at every point (Basic 1).Why the answer depends on the domain
The two formulas are not the same on the whole real line. At (not in ), but . So where do the formulas agree? Solve over , splitting on the sign inside the bars:
If : , so the right side is , and
If : , so the right side is , and
All four roots lie in the case they were found in ( and ). So the formulas agree at exactly the four real numbers , which is precisely the set .
The parabola (blue) and the V-shaped graph (gold, dashed) over . They cross at exactly four points, , the elements of . Between those points they differ (at , by ). Restricted to , only the four green points count, and there the two functions coincide. This explains the question: was chosen as exactly the set where the formulas agree. If the domain were , or even (with a codomain such as large enough to hold the new values), the functions would not be equal. Equality of functions is always relative to the domain.Absolute value split: for and for ; a product is zero exactly when a factor is zero.
Yes, and are equal. Both have domain and codomain , and , , , , so for every . (Textbook answer: Yes.) The formulas themselves differ on ; they agree exactly on .
Off the domain the two formulas really do differ: at , but . And at the values are and . The site's verification script recomputes all eight values on exactly with fractions, confirms they lie in , and solves over with a computer algebra system, getting exactly .
- Comparing formulas instead of values. and are different expressions, but that does not make the functions on different.
- Dropping the absolute value bars, for example . That value happens to be in , so the error is not caught by the codomain; it must be avoided by evaluating first.
- Checking only some points. All four elements of must be checked.
- Claiming the functions are equal on . They are equal only as functions on .
- A function is its domain, its codomain and its values; two different formulas can define the same function.
- On a finite domain, checking every element is a complete proof.
- Equality of functions depends on the domain: change the domain and the answer can change.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Equal functions: | Steps 1, 4 | Hint in Miscellaneous Exercise Q5 (Lesson: types of functions) |
| A function, its domain and codomain | Steps 1–4 | Class XI, Relations and Functions; Section 1.3 (Basics: what a function is) |
| Absolute value: for , for | Steps 3, 5 | Definition of absolute value (modulus function, Class XI) |
| , | Step 5 | Factorisation |
| All values, and the solution set over | Steps 2–5, Check | Recomputed exactly (fractions, sympy) in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →