For $A$, a commutative ring with identity, show $J(A)=\{x\in A:xy-1 \in A^\times, \forall y \in A\}$, $J(A)$ being the Jacobson radical. I should add here that the Jacobson radical is the intersection of all the maximal ideals of $A$.
Firstly, $J(A)$ is itself an ideal (proof omitted).
Now, assume $x \in J(A)$, and consider the natural map $\phi:A \to A/J(A)$, where $x$ is mapped to the zero element in the quotient ring. Now, supposed $y$ is any element from $A$. Then $$\phi(xy-1)=\phi(x)\phi(y)-1=-1=\phi(-1)$$ So, $xy-1=-1$ in $A$, so $xy-1$ is a unit in $A$.
Now, for the other direction ( this is where I am having trouble ). Lets, assume that $ x\in A:xy-1 \in A^\times, \forall y \in A$. Now supposed that $x \notin J(A)$ and consider the same map as above. Then we must have that, $$\phi((xy-1)(xy-1)^{-1})=(\phi(x)\phi(y)-\phi(1))\phi(xy-1)^{-1}=1$$ $$\iff \phi(x)\phi(y)\phi(xy-1)^{-1}-\phi(xy-1)^{-1}=1$$ This needs to be true for all $y$, so I take $y=1$, so the expression reduces to $$\iff \phi(x)\phi(x-1)^{-1}-\phi(x-1)^{-1}=1$$ I think this should lead to a contradiction, since we can see that $x\ne1$, or that would imply $1=0$. But I cannot see how to conclude that this always is a contradiction? Am I on the right track here?
Update
After reviewing and thinking a little more, I don't seem to be using any specific properties of the Jacobson radical. I am thinking I must need to use the property of $J(A)$ being a maximal ideal itself in a commutative ring, so $J(A)$ would be a prime ideal. This would imply that $A/J(A)$ is a field. Still now quite sure how to use this.