Let $R$ be a ring with unity. For $a,b,c\in R$,
$\begin{pmatrix} a & b \\ 0 & c \end{pmatrix}$ has an inverse $\implies a,c$ have inverses?
(an inverse of a matrix $M$ means a matrix $N$ such that $MN=NM=I$.)
I got there exist $x,y\in R$ such that $xa=1,cy=1$. But I am not sure if $ax=1,yc=1$.
It is possible that $a$ and $c$ are not invertible.
HINT:
Consider a invertible linear transformation $\phi$ with an invariant subspace $W$ so that the restriction $\phi_{| W}$ is not invertible. (Clearly $W$ has to have an infinite dimension.) For this, take a bijective map $f$ from $\mathbb{Z}$ to $\mathbb{Z}$ with an invariant subset $M$ so that $f_{|M}$ is not surjective. (Eg: $f(z)=z+1$, $M = \mathbb{N}$).Now linearize everything.
In our example $R$ will be the ring of square matrices $(a_{ij})_{ij \in \mathbb{N}\times \mathbb{N}}$ with entries in $\mathbb{R}$ such that in every column there are finitely many non-zero entries. Therefore, $R$ is isomorphic to ring of linear transformations of $\mathbb{R}^{(\mathbb{N})} $.