How can I check if there is a solution?

  • MHB
  • Thread starter evinda
  • Start date
In summary, the equation $x^2 = -1$ in $\mathbb{Z}_2$ has a solution at $x = 1$. This can be justified by plugging in the elements of $\mathbb{Z}_2$ and verifying that the only solution is $x = 1$. However, when trying to find solutions in $\mathbb{Z}_{2^2}$, we run into a contradiction and therefore there are no solutions for this equation in $\mathbb{Z}_{2^2}$. This also means that Hensel's lemma cannot be applied in this case due to the derivative of $x^2 + 1$ vanishing modulo $2$.
  • #1
evinda
Gold Member
MHB
3,836
0
Hello! (Wave)

I want to check if the equation $x^2=-1$ in $\mathbb{Z}_2$ has a solution.

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\forall p>2: \left ( \frac{1}{p}\right)=1, \text{ so there is a solution.}$$

But, what happens for $p=2$? How can I check if there is a solution?
 
Mathematics news on Phys.org
  • #2
evinda said:
Hello! (Wave)

I want to check if the equation $x^2=-1$ in $\mathbb{Z}_2$ has a solution.

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\forall p>2: \left ( \frac{1}{p}\right)=1, \text{ so there is a solution.}$$

But, what happens for $p=2$? How can I check if there is a solution?

Hi evinda,

Since $1^2 = 1 = -1$ in $\Bbb Z_2$, the equation $x^2 = -1$ has a solution in $\Bbb Z_2$. The Legendre symbol calculation you've made does not relate to the existence of solutions to $x^2 = -1$ over $\Bbb Z_2$.
 
  • #3
Euge said:
Hi evinda,

Since $1^2 = 1 = -1$ in $\Bbb Z_2$, the equation $x^2 = -1$ has a solution in $\Bbb Z_2$. The Legendre symbol calculation you've made does not relate to the existence of solutions to $x^2 = -1$ over $\Bbb Z_2$.

A ok.. We see that a solution is $x=1$, but how can we prove it? (Thinking)
 
  • #4
It's already done; the equations $1^2 = 1 = -1$ show directly that $x^2 = -1$ has a solution at $x = 1$.
 
  • #5
What you have to understand is that there is essentially no class called "-1 modulo 2". Under modulo 2 identifications, it's already identified with the set 1 modulo 2 of $\Bbb N$.

So your equation is essentially $x^2 = 1$ modulo 2, which clearly has solutions ($x = 1$) and the whole solution set itself is 1 modulo 2 as you can see.
 
  • #6
Goodness. By $\Bbb Z_2$ you don't mean 2-adic integers, do you?
 
  • #7
mathbalarka said:
Goodness. By $\Bbb Z_2$ you don't mean 2-adic integers, do you?

If so, what is the difference? (Worried)
 
  • #8
Surely 2-adic integers are not isomorphic to cyclic group of order 2! Please clarify what you mean, $\Bbb Z_2$ or $\mathbf{Z}_2$.
 
  • #9
mathbalarka said:
Surely 2-adic integers are not isomorphic to cyclic group of order 2! Please clarify what you mean, $\Bbb Z_2$ or $\mathbf{Z}_2$.

Now I saw that the equation is also written like that: $x^2 \equiv -1 \pmod 2$..

So, $\mathbb{Z}_2$ is meant, right?

Can I justify that $1$ is the only solution like that?

The only number that satisfies $(a,2)=1$ in $\mathbb{Z}_2$ is the number $1$.
This number satisfies also the equation $x^2 \equiv 1 \pmod 2$, therefore it is the only solution.

(Thinking)
 
  • #10
evinda said:
Can I justify that $1$ is the only solution like that?

I'm not an algebraist but in my opinion the point is that $\mathbb{Z}_2$ is a finite set hence to show that the equation $x^2=-1$ has a solution in $\mathbb{Z}_2$ you just can plug in the elements of $\mathbb{Z}_2$ successively and check if they satisfy the equation which is only true for $x=1$. Therefore $x=1$ is the only solution in $\mathbb{Z}_2$.
 
Last edited:
  • #11
Siron said:
I'm not an algebraist but in my opinion the point is that $\mathbb{Z}_2$ is a finite set hence to show that the equation $x^2=-1$ has a solution in $\mathbb{Z}_2$ you just can plug in the elements of $\mathbb{Z}_2$ successively and check if they satisfy the equation which is only true for $x=1$. Therefore $x=1$ is the only solution in $\mathbb{Z}_2$.

So, can I justify it like that?

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\mathbb{Z}_2=\{0,1 \}$$

For $x=0: x^2 \equiv 1 \pmod 2 \Rightarrow 0 \equiv 1 \pmod 2$, that does not stand.

For $x=1: x^2 \equiv 1 \pmod 2 \Rightarrow 1 \equiv 1 \pmod 2$, that is true.

Therefore, the only solution of the equation is $x=2$.
 
  • #12
Yes, that's it. You can verify like that if $x = 0 \pmod 2$ then $x^2 \not = 1 \pmod 2$ and if $x = 1 \pmod 2$ then $x^2 = 1 \pmod 2$. Thus $x = 1 \pmod 2$ is the only solution to $x^2 = -1 = 1 \pmod 2$
 
  • #13
mathbalarka said:
Yes, that's it. You can verify like that if $x = 0 \pmod 2$ then $x^2 \not = 1 \pmod 2$ and if $x = 1 \pmod 2$ then $x^2 = 1 \pmod 2$. Thus $x = 1 \pmod 2$ is the only solution to $x^2 = -1 = 1 \pmod 2$

Nice, thank you very much! (Smile)

The exercise asks to find the first three positions of the solution, that means that we are looking for a solution $\pmod 2$, one solution $\pmod{2^2}$ and one $\pmod {2^3}$.

That's what I have tried:

$$x_0=1$$

We are looking for a $x_1 \in \mathbb{Z}$ such that:$$x_1^2 \equiv -1 \pmod {2^2} \text{ such that } x_1 \equiv 1 \pmod 2$$

$$x_1 \equiv 1 \pmod 2 \Rightarrow 2 \mid x_1-1 \Rightarrow \exists a_1 \in \mathbb{Z} \text{ such that } x_1=1+2a_1$$

$$x_1^2+1=(1+2a_1)^2+1 \equiv 2 \pmod {2^2}$$

So: $x_1^2+1 \equiv 0 \pmod{2^2} \Leftrightarrow 2 \equiv 0 \pmod {2^2}$, that is a contradiction.Is it right or have I done something wrong? (Thinking)
 
  • #14
$-1 = 3$ is not a quadratic residue modulo $2^2 = 4$. There is no solution to $x^2 = -1 \pmod {2^2}$.
 
  • #15
mathbalarka said:
$-1 = 3$ is not a quadratic residue modulo $2^2 = 4$. There is no solution to $x^2 = -1 \pmod {2^2}$.

So, can we not apply the Hensel Lifting Lemma in this case? (Thinking)
 
  • #16
Derivative of $x^2 + 1$ vanishes modulo $2$. It's not possible to apply Hensel's lemma in this case, yes.
 
  • #17
mathbalarka said:
Derivative of $x^2 + 1$ vanishes modulo $2$. It's not possible to apply Hensel's lemma in this case, yes.

You mean at the first position of the solution? (Thinking)
 
  • #18
Not sure what you mean by that. How would you state Hensel's lemma? If I haven't forgotten all the elementary number theory I did, I trust nonvanishing of $f'(x)$ modulo $p$ is an essential condition.
 
  • #19
mathbalarka said:
Not sure what you mean by that. How would you state Hensel's lemma? If I haven't forgotten all the elementary number theory I did, I trust nonvanishing of $f'(x)$ modulo $p$ is an essential condition.

We haven't done the theory in class, the prof explained it to us, using an example.. So, in this case, there is just the first postion of the solution? :confused:
 
  • #20
If so, how can it be justified? (Worried)
 
  • #21
Is my justification of the post #13, where I found a contradiction, right? (Thinking)
 
  • #22
I don't know what you're trying to justify, but you have just shown that Hensel's lemma cannot be applied to $x^2 + 1$ modulo $2$. Is that what you wanted to show?
 
  • #23
mathbalarka said:
I don't know what you're trying to justify, but you have just shown that Hensel's lemma cannot be applied to $x^2 + 1$ modulo $2$. Is that what you wanted to show?

I wanted to find a solution $\pmod 2$, a solution $\pmod {2^2}$ and a solution $\pmod {2^3}$.

But, since we get to a contradiction, when we want to apply Hensel's lemma, in order to find a solution $\pmod {2^2}$, that means that the equation $x^2=-1$ has not solutions $\pmod {2^n},n>1$, right? (Thinking)
 
  • #24
Yes, that is correct, $x^2 + 1$ has no solution modulo $2^2$. Hensel's lemma fails in this case (the derivative evaluates to 0 modulo $2^2$)
 
  • #25
mathbalarka said:
Yes, that is correct, $x^2 + 1$ has no solution modulo $2^2$. Hensel's lemma fails in this case (the derivative evaluates to 0 modulo $2^2$)

And from this, we also know that it has no solution $\pmod {2^3}$, right? (Thinking)
 
  • #26
Yes, as having a solution modulo 8 automatically implies existence of a solution modulo 4.
 
  • #27
mathbalarka said:
Yes, as having a solution modulo 8 automatically implies existence of a solution modulo 4.

I understand.. thanks a lot! (Smile)
 

FAQ: How can I check if there is a solution?

How can I determine if a problem has a solution?

The first step in checking if there is a solution to a problem is to clearly define the problem and its constraints. Then, you can try to solve the problem using existing methods or techniques. If you are unable to find a solution, it may be necessary to do further research or consult with other experts in the field.

What are some common methods for checking if a problem has a solution?

Some common methods for checking if a problem has a solution include: trial and error, mathematical proofs, computer simulations, and experimentation. Each method has its own strengths and limitations, so it is important to choose the most appropriate method for your specific problem.

Is there a foolproof way to determine if a problem has a solution?

Unfortunately, there is no foolproof way to determine if a problem has a solution. Some problems may have multiple solutions, while others may not have any solutions at all. Additionally, the complexity of a problem can also make it difficult to determine if a solution exists.

Can I use technology to check if there is a solution to a problem?

Yes, technology can be a powerful tool in checking if a problem has a solution. Computer programs, mathematical modeling, and data analysis are just a few examples of how technology can be used to explore and solve problems. However, it is important to use technology in conjunction with other methods to ensure accuracy and reliability.

How can I avoid overlooking a solution to a problem?

To avoid overlooking a solution to a problem, it is important to approach the problem from different perspectives and to think creatively. It can also be helpful to consult with other experts in the field or to seek feedback from others. Additionally, taking breaks and revisiting the problem with a fresh mind can also help in identifying potential solutions.

Similar threads

Replies
2
Views
4K
Replies
3
Views
2K
Replies
4
Views
2K
Replies
1
Views
747
Replies
4
Views
1K
Replies
2
Views
2K
Replies
22
Views
4K
Back
Top