The problem is trivial yet I got stuck and have a problem with justification of the fact $\text{Isom}(\mathbb{R}^n,g=\sum_{i=1}^n (dx_i)^2)=\mathbb{R}^n \rtimes O(n)$. Suppose $f:\mathbb{R}^n \rightarrow \mathbb{R}^n$ is a diffeomorphis, in order to be isometry it must satysfie $f^*g=g$ which can be translated to: $$[\frac{\partial f_i}{\partial x_j}]_{i,j}^{T}[\frac{\partial f_i}{\partial x_j}]_{i,j}=I_n.$$ Hence derivative must be orthogonal in each point. Yet I don't see why that derivative must be constant?
EDIT: I know it can be done by considering Riemannian manifold as metric space, yet for that purpose one have to develop concept of metric and integration is needed. I would like to be able to do it directly so the above conditions fallow easily from definition of isometry yet I cant finish that. Is that argument with metric really needed here?