Is the Function f(x) = x^2 Injective?

Click For Summary
SUMMARY

The function f: ℝ → ℝ, defined as f(x) = x², is conclusively not injective. This is established by demonstrating that if f(a) = f(b), then a² = b², leading to the solutions a = b or a = -b. The existence of distinct values, such as f(-1) = f(1) while -1 ≠ 1, serves as a counterexample, proving that the function fails the injectivity condition. Thus, the proposition that f is injective is false.

PREREQUISITES
  • Understanding of function definitions and properties, specifically injective functions.
  • Familiarity with basic algebraic manipulation and solving equations.
  • Knowledge of logical implications and truth tables.
  • Ability to interpret and analyze mathematical proofs and counterexamples.
NEXT STEPS
  • Study the properties of injective, surjective, and bijective functions in detail.
  • Learn about counterexamples in mathematical proofs and their significance.
  • Explore the use of truth tables in logical reasoning and implications.
  • Investigate graphical methods for analyzing functions, particularly parabolas and their symmetry.
USEFUL FOR

Mathematics students, educators, and anyone interested in understanding function properties, particularly in the context of algebra and mathematical proofs.

Korisnik
Messages
62
Reaction score
1

Homework Statement


Prove that ##f: \mathbb{R}\to\mathbb{R}, f(x) = x^2## is not injective.

Homework Equations


Definition of an injection: function ##f:A\to B## is an injection if and only if ##\forall a,b \in A, f(a) = f(b) \Rightarrow a = b##.

The Attempt at a Solution


##f: \mathbb{R}\to\mathbb{R}##
Let ##a,b \in \mathscr{D_f}##, suppose ##f(a) = f(b)##, then ##a^2=b^2##. By solving this equation we get ##a=b\ or \ a = -b##.

This is where I'm stuck. How do I prove that (and is the following what I have to prove) ##\forall a,b \in \mathbb{R}, (a = b \vee a=-b) \Rightarrow (a = b) \equiv F##?

By introducing the substitutions ##A := (a =b), B:= (a = -b)##, the proposition is reduced to ##(A \vee B) \Rightarrow A \equiv F##.

Now, what am I looking for in the truth table? The expression is obviously not always false, but for the ##F## to hold I have to find one case where the proposition does not hold and I've proven my hypothesis. From the truth table, if ##B \equiv T, A \equiv F## we get ##T \Rightarrow F##, which is false; consequently, our problem is solved.

Is my approach correct, and is there another approach? Thank you in advance.
 
Physics news on Phys.org
Korisnik said:

Homework Statement


Prove that ##f: \mathbb{R}\to\mathbb{R}, f(x) = x^2## is not injective.

Homework Equations


Definition of an injection: function ##f:A\to B## is an injection if and only if ##\forall a,b \in A, f(a) = f(b) \Rightarrow a = b##.

The Attempt at a Solution


##f: \mathbb{R}\to\mathbb{R}##
Let ##a,b \in \mathscr{D_f}##, suppose ##f(a) = f(b)##, then ##a^2=b^2##. By solving this equation we get ##a=b\ or \ a = -b##.

This is where I'm stuck. How do I prove that (and is the following what I have to prove) ##\forall a,b \in \mathbb{R}, (a = b \vee a=-b) \Rightarrow (a = b) \equiv F##?

By introducing the substitutions ##A := (a =b), B:= (a = -b)##, the proposition is reduced to ##(A \vee B) \Rightarrow A \equiv F##.

Now, what am I looking for in the truth table? The expression is obviously not always false, but for the ##F## to hold I have to find one case where the proposition does not hold and I've proven my hypothesis. From the truth table, if ##B \equiv T, A \equiv F## we get ##T \Rightarrow F##, which is false; consequently, our problem is solved.

Is my approach correct, and is there another approach? Thank you in advance.

It is as simple of finding a counterexample. In this case, there are many.
 
Math_QED said:
It is as simple of finding a counterexample. In this case, there are many.
Thank you. Would you mind addressing my question? So far I've found one "explanation", where the author says that "it is obvious", after finding the solutions to the equation.
 
Korisnik said:
Thank you. Would you mind addressing my question? So far I've found one "explanation", where the author says that "it is obvious", after finding the solutions of the equation.

For example we have:

##f(-1) = f(1)## but ## -1 \neq 1## thus f is not injective
 
Math_QED said:
For example we have:

##f(-1) = f(1)## but ## -1 \neq 1## thus f is not injective
The explanation the book provides is: "The solution of the equation is ##|a| = |b|##, that is, we have 4 solutions in ##\mathbb{R}##, which means that the given implication does not hold because ##a## and ##b## obviously don't have to be equal; consequently, the proposition is false."

I'm intrigued as to how the "obvious" step is performed formally and not intuitively.
 
Korisnik said:
I'm intrigued as to how the "obvious" step is performed formally and not intuitively.

@Math_QED 's answer has been formally!

Math_QED said:
##f(-1) = f(1)## but ##-1 \neq 1## thus f is not injective
... proves ##\exists a,b \in A \, : \, f(a) = f(b) \wedge a \neq b##, which is the negation of ##f## being injective.
 
Korisnik said:
Is my approach correct, and is there another approach? Thank you in advance.
Another approach was to draw a graph of ##y = x^2## and look for two values of ##x## with the same value of ##y##.
 
fresh_42 said:
@Math_QED 's answer has been formally!
...which I could've gotten without the equations obtained by the author of the book. So what is their purpose? I'm not practicing (dis)proving the injectivity, but the logic of proving "obvious" statements formally.
 
Korisnik said:
...which I could've gotten without the equations obtained by the author of the book. So what is their purpose? I'm not practicing (dis)proving the injectivity, but the logic of proving "obvious" statements formally.
In this case it seems, that a feasible solution depends strongly on the rules of logical deviations and and the amount of arithmetic which you regard as being allowed to use. Neither of it is obvious to us, and assuming the usual logic and arithmetic, the given two(!) answers are enough.
In addition we can't say what the equations obtained by the author of the book and their purpose are, since we don't know them. Maybe it is simply to practice the handling of logical terms.

I can't see why an obvious result should be artificially complicated.

A counterexample even holds in the case you are rejecting indirect proofs or proofs by contradiction. The negation of an all-quantifier is simply an existence-quantifier. Otherwise you should explain what "not injective" means.
 
  • Like
Likes   Reactions: Korisnik
  • #10
Korisnik said:
...which I could've gotten without the equations obtained by the author of the book. So what is their purpose? I'm not practicing (dis)proving the injectivity, but the logic of proving "obvious" statements formally.

You're getting confused about what constitutes a proof. To prove for example that not all whole numbers are odd, you only have to find one that is not odd.

To prove this sort of thing requires only a single counterexample, nothing more.

To prove something positive, such as to prove there are infinitely many primes requires a logical proof.
 

Similar threads

Replies
4
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
724
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K