The value of n such that the conditions are met is:
[tex]n = \frac{2x \pm \sqrt{(-2x) - 4*1*(y + 2)^2} }{2}[/tex]
Where x and y are the coordinates of point P.
We know that:
Now, the distance of P to Q is equal than the distance of P to R, then we have that:
[tex]\sqrt{(x - 0)^2 + (y - y)^2} = \sqrt{(x - n)^2 + (y + 2)^2} \\\\x^2 = (x - n)^2 + (y + 2)^2[/tex]
So we need to solve this for n.
[tex]x^2 = x^2 - 2xn + n^2 + y^2 + 4y + 4\\\\0 = -2xn +n^2 + (y + 2)^2\\\\\\0 = n^2 - (2x)*n + (y + 2)^2[/tex]
Notice that this is a quadratic of n, the two solutions of n will be:
[tex]n = \frac{2x \pm \sqrt{(-2x) - 4*1*(y + 2)^2} }{2}[/tex]
Such that, as you can see, the value of n depends on x and y.
If you want to learn more about quadratic equations, you can read:
https://brainly.com/question/1214333