Let $A=\{-1, 0, 1, 2\}$ and $B=\{-4, -2, 0, 2\}$. Let $f, g: A \rightarrow B$ be functions defined by $f(x)=x^{2}-x$ for $x \in A$ and $g(x)=2\left|x-\frac{1}{2}\right|-1$ for $x \in A$. Are $f$ and $g$ equal? Justify your answer.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
Two functions $f$ and $g$ are equal if $f(a) = g(a)$ for all $a \in A$.
For $x = -1$:
$f(-1) = (-1)^{2} - (-1) = 1 + 1 = 2$
$g(-1) = 2\left|-1 - \frac{1}{2}\right| - 1 = 2\left|-\frac{3}{2}\right| - 1 = 2\left(\frac{3}{2}\right) - 1 = 3 - 1 = 2$
So,$f(-1) = g(-1)$.
For $x = 0$:
$f(0) = (0)^{2} - 0 = 0$
$g(0) = 2\left|0 - \frac{1}{2}\right| - 1 = 2\left(\frac{1}{2}\right) - 1 = 1 - 1 = 0$
So,$f(0) = g(0)$.
For $x = 1$:
$f(1) = (1)^{2} - 1 = 0$
$g(1) = 2\left|1 - \frac{1}{2}\right| - 1 = 2\left(\frac{1}{2}\right) - 1 = 1 - 1 = 0$
So,$f(1) = g(1)$.
For $x = 2$:
$f(2) = (2)^{2} - 2 = 4 - 2 = 2$
$g(2) = 2\left|2 - \frac{1}{2}\right| - 1 = 2\left(\frac{3}{2}\right) - 1 = 3 - 1 = 2$
So,$f(2) = g(2)$.
Since $f(a) = g(a)$ for all $a \in A$,the functions $f$ and $g$ are equal.

Explore More

Similar Questions

Let $f: R \rightarrow R$ be defined by $f(x)=2x+3$. If $\alpha$ and $\beta$ are the roots of the equation $f(x^2)-2f(\frac{x}{2})-1=0$,then $\alpha^2+\beta^2=$

The function $y = \frac{2x - 1}{x - 2}$ $(x \neq 2)$:

Let $f : R \to R$ be a function defined by $f(x) = - \frac{|x|^3 + |x|}{1 + x^2}$; then the graph of $f(x)$ lies in the :-

Let $f: X \rightarrow Y$ be a function and $A, B$ be non-void subsets of $Y$. Which of the following is true?

Let $f(x) = [x]^2 - [x+3] - 3, x \in \mathbb{R}$, where $[\bullet]$ is the greatest integer function. Then:

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo