Function Equality — When Are Two Functions the Same?
You write f(x) = x * x; your friend writes g(x) = x^2. Same function? Intuitively yes — for every input they give the same output.
But what if your friend's program only works for positive numbers? Then for x=−3 your function gives 9 but theirs crashes. Now they're not the same function, even though the formulas look alike.
That's the core idea: two functions are equal only when they agree on every input they're supposed to handle.
The Precise Definition
Two functions f and g are equal (f=g) if and only if:
They have the same domainD.
For everyx in D, f(x)=g(x).
If either condition fails, the functions are different.
Watch out
A common mistake: thinking f(x)=xx2 and g(x)=x are the same. They are not — f is undefined at x=0, while g is defined everywhere. Different domains → different functions.
Why This Matters
Two expressions can look identical after simplification yet have different domains — that's the exam trap.
Equal:f(x)=x2 and g(x)=∣x∣ — both have domain R, and x2=∣x∣ for every x. So f=g.
Not equal:f(x)=x−1x−1 and g(x)=1 — f has domain R∖{1}, g has domain R. Different domains → f=g, even though f(x)=1 wherever f is defined.
Tip
Always compare domains first. If they differ, stop — the functions are not equal. Only check values if the domains match.
A Quick Test
f(x)=x⋅x, g(x)=x — domain of f is x≥0, domain of g is all reals. Not equal (different domains).
f(x)=sin2x+cos2x, g(x)=1 — both domain R, equal for every x. Equal. …
Q.The domain in which the functions f(x) = 3x² - 2x and g(x) = 3(3x - 2) will be equal is:
OR
Let A = {1, 2, 3} and R be a relation defined on A, such that R = {(1,1), (1,2), (2,1)}; then the relation R will be:
(a) {1, 2/3}
(b) {1, 3}
(c) {2/3, 3}
(d) {2/3, 0}
›Reveal solutionSolution
Set f(x)=g(x), form and solve the resulting quadratic equation — its roots are exactly the domain values where the two functions agree.
Given f(x)=3x2−2x and g(x)=3(3x−2)=9x−6. We need the set of x for which f(x)=g(x).
Set the functions equal:
3x2−2x=9x−6
3x2−2x−9x+6=0
3x2−11x+6=0
Solve using the quadratic formulax=2A−B±B2−4AC with A=3,B=−11,C=6: