1 Introduction

The problem of finding a Riemannian metric from various pieces of information is of interest from both theoretical and practical point of view. Papers by many authors are devoted to the possibility of finding the metric from the curvature tensor, [7, p. 135–136], or prove existence of metrics with the prescribed Ricci tensor, [2] etc. In general, to solve the problem means to solve a relatively complicated non-linear system of partial differential equations, the coefficients of which are expressed through the components of the Riemannian curvature tensor. One possibility how to simplify the situation is to find a convenient coordinate system with respect to which the system of equations is simplified considerably. Our aim is to present and use such preferable coordinates.

In [6], in a neighborhood of a (positive definite) Riemannian space in which special, semigeodesic, coordinates are given, the metric tensor is calculated from its values on a suitable hypersurface and some of components of the curvature tensor of type (1, 3) in the coordinate domain. Semigeodesic coordinates are a generalization of the well-known Fermi coordinates.

In the present paper, we consider a more general situation. We introduce special pre-semigeodesic charts characterized both geometrically and in terms of the connection. Then we apply a version of the Peano’s–Picard’s-Cauchy theorem on existence and uniqueness of solutions of the initial values problems for systems of first-order ODEs (ordinary differential equations). We use the apparatus in a fixed pre-semigeodesic chart of a manifold equipped with the symmetric affine connection. Our aim is to reconstruct, or construct, the symmetric affine connection in some neighborhood from the knowledge of the “initial conditions”: the restriction of the connection to a fixed \((n-1)\)-dimensional surface S and some of the components of the curvature tensor R in the ambient space (coordinate domain). By analogous methods, we retrieve (or construct) the metric tensor of type (0, 4) of a pseudo-Riemannian manifold in a domain of semigeodesic coordinates from the known restriction of the metric to some non-isotropic hypersurface and some of the components of the curvature tensor in the ambient space. In comparison to the authors of [6], we give shorter proofs of constructive character based on classical results on first-order ODEs.

Recall the so-called Fermi coordinates, named after the Italian physicist Enrico Fermi [3], which were widely used in Minkowskian space, e.g. [9], and play an important role in mechanics, physics, [1, 10], and in differential geometry of Riemannian spaces in general. Suppose \(\gamma :I\rightarrow M\) is a geodesic on an n-dimensional Riemannian manifold M, and p a point on \(\gamma \). Then there exist local coordinates \((t,x^2,\dots ,x^n)\) around p such that for small t, \(\gamma (t,0,\dots ,0)\) represents the geodesic near p. The metric tensor is the Euclidean metric along \(\gamma \), and again (only) along \(\gamma \), all Christoffel symbols vanish (all the above properties are only valid along the distinguished geodesic). We will consider here a generalization of Fermi coordinates, namely pre-semigeodesic and semigeodesic coordinates, which bring, at the same time, special parametrization for all canonical geodesics in some tubular neighborhood. The celebrated Fermi coordinates can be considered as a particular case.

2 Pre-semigeodesic Chart

Let \((M,\nabla )\) be a (differentiable or smooth) n-dimensional manifold M equipped with a symmetric linear connection \(\nabla \). Let \({\Gamma }^h_{ij}\) denote components of the connection \(\nabla \) in a fixed chart \((U,\varphi =(x^1,\dots ,x^n))\) in M; \(U\subseteq M\) open.

If in the chart \((U,(x^i))\) of M, \({\Gamma }^h_{11}(x)=0\) is valid for all \(h=1,\dots ,n\), we say that \((U,(x^i))\) is a pre-semigeodesic chart Footnote 1 related to the coordinate \(x^1\) with respect to the connection \(\nabla \) or, that \(x^1\) is a geodesic coordinate in U. Obviously, it is quite natural to prefer the first coordinate, and it means no loss of generality.

Let us give a geometric interpretation of the pre-semigeodesic charts. Recall that the equations \(\nabla _{\dot{c}}\dot{c}=0\) for canonically paramerized geodesics \(c:I\rightarrow U\) of the connection \(\nabla \vert U\) in local coordinates read (\(k=2,\dots ,n\))

$$\begin{aligned} \begin{aligned}&\frac{\mathrm{d}^2c^1}{\mathrm{d}s^2}+{\Gamma }^1_{11}\left( \frac{\mathrm{d}c^1}{\mathrm{d}s}\right) ^2 +{\sum }_{j=2}^{n}{\Gamma }^1_{1j}\frac{\mathrm{d}c^1}{\mathrm{d}s}\frac{\mathrm{d}c^j}{\mathrm{d}s} +{\sum }_{i,j=2}^{n}{\Gamma }^1_{ij}\frac{\mathrm{d}c^i}{\mathrm{d}s}\frac{\mathrm{d}c^j}{\mathrm{d}s}=0,\\&\frac{\mathrm{d}^2c^k}{\mathrm{d}s^2}+{\Gamma }^k_{11}\left( \frac{\mathrm{d}c^1}{\mathrm{d}s}\right) ^2 +{\sum }_{j=2}^{n}{\Gamma }^k_{1j}\frac{\mathrm{d}c^1}{\mathrm{d}s}\frac{\mathrm{d}c^j}{\mathrm{d}s} +{\sum }_{i,j=2}^{n}{\Gamma }^k_{ij}\frac{\mathrm{d}c^i}{\mathrm{d}s}\frac{\mathrm{d}c^j}{\mathrm{d}s}=0. \end{aligned} \end{aligned}$$
(1)

Lemma 1

The conditions \({\Gamma }^h_{11}=0\), \(h=1,\dots ,n,\) are satisfied in U if and only if the parametrized curves

$$\begin{aligned} c:I\rightarrow U,\quad c(s)=(s,a_2,\dots ,a_n),\quad s\in I,\ a_i\in {\mathbb {R}},\ \ i=2,\dots ,n, \end{aligned}$$
(2)

are canonically parametrized geodesics of \(\nabla \vert U\) (I is some interval, \(a_k\) are suitable constants chosen so that \(c(I)\subset U\)).

Proof

Let \({\Gamma }^h_{11}=0\) hold for \(h=1,\dots ,n\). Then the local curves with parametrizations (2) satisfy

$$\begin{aligned} \frac{\mathrm{d}c(s)}{\mathrm{d}s}=\left( \frac{\partial }{\partial x^1}\right) _{c(s)}, \quad \frac{\mathrm{d}^2c(s)}{\mathrm{d}s^2}=0, \end{aligned}$$
(3)

therefore are solutions to the system (1). Conversely, if the curves (2) are among solutions to (1) then due to (3), we get \({\Gamma }^h_{11}=0\) from (1).\(\square \)

Hence the pre-semigeodesic chart is fully characterized by the condition that the curves \(x^1=s\), \(x^i=\mathrm{const}\), \(i=2,\dots n\) belong to the geodesics of the given connection in the coordinate neighborhood. The definition domain U of such a chart is “tubular”, a tube along geodesics.

3 Reconstruction of Connection

Our aim is to show that a symmetric linear connection in a pre-semigeodesic coordinate domain U (related to \(x^1\)) can be uniquely constructed, or retrieved, in some subdomain of U if we know the restrictions \({\tilde{\Gamma }}^h_{ij}(\tilde{x})\), \(\tilde{x}\in S\) of the connection to the surface S defined by \(x^1=0\) and prescribed components \(R^h_{i1k}\) of the curvature tensor in the given tubular domain U. First recall that the components \({R}^h_{ijk}\) of the curvature tensor are related to the components \({\Gamma }^h_{ij}\) of the connection by the classical formula

$$\begin{aligned} R^h_{ijk}={\partial }_j{\Gamma }^h_{ik}-{\partial }_k{\Gamma }^h_{ij} +{\Gamma }^m_{ik}{\Gamma }^h_{mj}-{\Gamma }^m_{ij}{\Gamma }^h_{mk}. \end{aligned}$$
(4)

Now suppose that \({\Gamma }^h_{11}(x)=0\) is satisfied. Particularly, setting \(i=j=1\) in (4) we get under this assumption

$$\begin{aligned} \frac{\partial }{\partial x^1}{\Gamma }^h_{1k}+\sum _{m}{\Gamma }^m_{1k} {\Gamma }^h_{1m}-R^h_{11k}=0 \end{aligned}$$
(5)

and plugging \(j=1\) in (4) we get, for each of the indices \(i=2,\dots ,n\), the system

$$\begin{aligned} \frac{\partial }{\partial x^1}{\Gamma }^h_{ik}+\sum _{m}{\Gamma }^m_{ik}{\Gamma }^h_{m1}-\sum _{m} {\Gamma }^m_{i1}{\Gamma }^h_{mk}- \frac{\partial }{\partial x^k}{\Gamma }^h_{i1} -R^h_{i1k}=0. \end{aligned}$$
(6)

In \({\mathbb {R}}^n\) with standard coordinates \((x^1,x^2,\dots ,x^n)\), let us identify the linear subspace (hypersurface) defined by \(x^1=0\) with the space \({\mathbb {R}}^{n-1}\), i.e. \((\tilde{x})=(x^2,\dots ,x^n)\) are standard coordinates in \({{\mathbb {R}}}^{n-1}\). Let \({\mathcal J}=(0,1)\) be the open unit interval and denote by \(K_{m}={\mathcal J}^{m}\) the open standard m-cube. Denote

$$\begin{aligned} D_{n}(\delta )=\{x=(x^1,\dots , x^n)\in {\mathbb {R}}^{n}\mid 0\le x^1\le \delta , \,\, \ 0<x^i<1, \,\, \ i=2,\dots ,n\}. \end{aligned}$$

Hereafter we will deal with the pre-semigeodesic coordinate system in the domain \(D_{n}(\delta )\). The open \((n-1)\)-cube \(K_{n-1}={\mathcal J}^{n-1}\), viewed as

$$\begin{aligned} K_{n-1}=\{\tilde{x}=(x^2,\dots , x^n)\in {\mathbb {R}}^{n-1}\mid 0<x^i<1, \,\, \ i=2,\dots ,n\}\subset {\mathbb {R}}^{n-1}, \end{aligned}$$

will be identified with a hypersurface S in \(D_{n}(\delta )\) determined by \(x^1=0\).

So in what follows let S be a hypersurface in \(D_{n}(\delta )\) defined by \(x^1=0\). Now let us modify for our purpose the Theorem on existence and uniqueness of solutions of systems of ODEs:

Theorem 1

Let \(\tilde{\nabla }\) be a torsion-free linear connection in S (of the class at least \(C^2\)) with components \({\tilde{\Gamma }}^h_{ij}(\tilde{x})\), \(\tilde{x}\in S\), \(h,i,j\in \{2,\dots ,n\}\), let \({\tilde{\Gamma }}^h_{1j}(\tilde{x})\) be functions in S (at least \(C^2\)), \(h,j\in \{1,\dots ,n\}\), where \({\tilde{\Gamma }}^h_{11}(\tilde{x})=0\) for \(h\in \{1,\dots ,n\}\). Let \(A^h_{ij}\), \(h,i,j\in \{1,\dots ,n\}\) be functions (at least \(C^0\)) in \(D_{n}(\delta )\) such that each \(A^h_{1k}\) is at least \(C^1\) in each of the variables \(x^2,\dots ,x^n\) and at least \(C^0\) in \(x^1\). Moreover let the curvature tensor \(\tilde{R}\) of \(\tilde{\nabla }\) satisfy \({\tilde{R}}^h_{i1k}(\tilde{x})=A^h_{ik}(\tilde{x})\) in S. Then there exists a real number \(\hat{\delta }\), \(0<\hat{\delta }\le \delta \) and there is a unique torsion-free linear connection \(\nabla \) in the neighborhood \(D_{n}(\hat{\delta })\) with components \({\Gamma }^h_{ij}\) such that the following holds: \({\Gamma }^h_{11}(x)=0\) in \(D_{n}(\hat{\delta })\) for \(h=1,\dots ,n\) (i.e. the coordinates are pre-semigeodesic), \({\Gamma }^h_{ij}(0,\tilde{x})={\tilde{\Gamma }}^h_{ij}(\tilde{x})\) for \(\tilde{x}\in S\), \(h,i,j\in \{1,\dots ,n\}\) (hence \(\nabla \vert S=\tilde{\nabla }\)) and \({R}^h_{i1k}={A}^h_{ik}\) for all \(x\in D_{n}(\hat{\delta })\) where \(h,i,k=1,\dots ,n\).

Proof

Let the assumptions be satisfied. Analyzing the system (4) and the consequences mentioned above we find that we can proceed step by step. In three main steps, we find functions \({\Gamma }^h_{ij}\) in a certain subdomain of \(D_{n}(\delta )\) such that \({\Gamma }^h_{ij}={\Gamma }^h_{ji}\) and the conclusion of Theorem 1 is satisfied.

Step (1) Let us define \({\Gamma }^h_{11}(x)=0\) for \(x\in D_{n}(\delta )\), \(h=1,\dots ,n\).

Step (2) Let us solve the system

$$\begin{aligned} \frac{\partial }{\partial x^1}\Gamma ^h_{1k}(x)=-\sum _{m}\Gamma ^m_{1k}(x)\Gamma ^h_{1m}(x)+A^h_{1k}(x) \end{aligned}$$
(7)

for unknown functions \({\Gamma }^h_{1k}\), \(h=1,\dots ,n\), \(k=2,\dots ,n\) which we assume as a system of ordinary differential equations of one variable \(x^1\) (while the remaining coordinates \((\tilde{x})=(x^2,\dots ,x^n)\in K_{n-1}=S\) are considered as parameters) for the initial data

$$\begin{aligned} {\Gamma }^h_{1k}(0,x^2,\dots ,x^n)={\tilde{\Gamma }}^h_{1k}(x^2,\dots ,x^n) \quad \text{ for } \quad (x^2,\dots ,x^n)\in S. \end{aligned}$$

According to the theory, there exists \(\delta _1\), \(0<\delta _1\le \delta \), and there are uniquely determined functions \({\Gamma }^h_{1k}(x^1,\dots ,x^n)\) of the class at least \(C^1\) in the domain \(D_{n}(\delta _1)\) such that

$$\begin{aligned} {\Gamma }^h_{1k}(0,\tilde{x})={\tilde{\Gamma }}^h_{1k}(\tilde{x}),\quad \tilde{x}\in S. \end{aligned}$$
(8)

These functions together with their derivatives will be used in what follows.

Step (3) Now consider the system

$$\begin{aligned} \frac{\partial }{\partial x^1}{\Gamma }^h_{ik}=-\sum _{m}{\Gamma }^m_{ik}{\Gamma }^h_{m1}+\sum _{m}{\Gamma }^m_{i1}{\Gamma }^h_{mk}+ \frac{\partial }{\partial x^k}{\Gamma }^h_{i1} +A^h_{ik}=0, \end{aligned}$$
(9)

where we plugged for \({\Gamma }^h_{i1}\) from the above; \(h=1,\dots ,n\),  \(i,k=2,\dots ,n\). We have again a system of ordinary differential equations of one variable \(x^1\). According to the existence and uniqueness theorem on systems of ODEs there is \(\hat{\delta }\), \(0<\hat{\delta }\le \delta _1\) and there are uniquely determined functions \({\Gamma }^h_{ik}(x^1,\dots ,x^n)\) of the class at least \(C^1\), \(i\ne 1\ne k\) in the domain \(D_{n}(\hat{\delta })\) which satisfy the initial conditions

$$\begin{aligned} {\Gamma }^h_{ik}(0,x^2,\dots ,x^n)={\tilde{\Gamma }}^h_{ik}(x^2,\dots ,x^n),\quad (x^2,\dots ,x^n)\in S. \end{aligned}$$
(10)

Moreover, comparing (5) and (7), (6) and (9) we can see that

$$\begin{aligned} {R}^h_{i1k}( x)={A}^h_{ik}( x),\quad x\in D_{n}(\hat{\delta }), \quad \ h,i,k=1,\dots ,n, \end{aligned}$$
(11)

holds as required, and \({\Gamma }^h_{ik}\) are components of a connection of the above properties.\(\square \)

As a consequence, if we use prolongation of the solution, we obtain:

Theorem 2

Let \((U,\varphi =(x^1,\dots ,x^n))\) be a chart in M. Let \(S\subset U\) be a submanifold in U defined by \(x^1=0\). Let \(\tilde{\nabla }\) be a torsion-free linear connection in S of the class at least \(C^2\) with the components \({\tilde{\Gamma }}^h_{ij}\) and the curvature tensor \(\tilde{R}\), and let \(A^h_{ij}\) be functions in U such that \({\tilde{R}}^h_{i1k}=A^h_{ik}\) in S, \(A^h_{ik}\), \(i=2,\dots ,n,\) are of the class at least \(C^0\), \(A^h_{1k}\) are continuous in \(x^1\), and \(A^h_{1k}\) are at least \(C^1\) in the remaining variables \(x^2,\dots ,x^n\). Then there is a unique symmetric linear connection \(\nabla \) in U with components satisfying \(\Gamma ^h_{11}=0\) for \(h=1,\dots ,n\) (i.e. the given chart is pre-semigeodesic w.r.t. \(\nabla \)) such that \(\nabla \vert S=\tilde{\nabla }\), and \({R}^h_{j1k}={A}^h_{jk}\) in U.

4 Reconstruction of Metric

4.1 Semigeodesic Coordinates

For our purpose, we say that a chart \((U,(x^i))\) of a pseudo-Riemannian manifold (Mg) is semigeodesic (or that \((x^i)\) are semigeodesic coordinates) if in this chart, the metric tensor has the coordinate expression

$$\begin{aligned} g=e\mathrm{d}x^1\otimes \mathrm{d}x^1+{\tilde{g}}_{ij}(x^1, x^2,\dots ,x^n) \mathrm{d}x^i\otimes \mathrm{d}x^j,\quad i,j=2,\dots ,n, \end{aligned}$$
(12)

where \(e=\pm 1\) (the plus or minus sign is connected with the square of the integral of the tangent vector to the \(x^1\)-coordinate line).

The geometric interpretation is as follows, [12, p. 55].

Lemma 2

Local coordinates \((x^i)\) in a pseudo-Riemannian manifold are semigeodesic if and only if the 1-net of \(x^1\)-coordinate lines is formed by arclength parametrized geodesics which are orthogonal to a non-isotropic hypersurface defined by \(x^1=\mathrm{const}\).

Note that coordinate hyperplanes defined by \(x^j=\mathrm{const}\) are orthogonal to the distinguished system of geodesics. Obviously, semigeodesic coordinates are pre-semigeodesic.

Semigeodesic coordinates can be introduced in a sufficiently small neighborhood of any point of an arbitrary (positive) Riemannian manifold, and is fully characterized by the coordinate form of the metric:

$$\begin{aligned} g_{ij}=\mathrm{d}x^1\otimes \mathrm{d}x^1+{\tilde{g}}_{ij}(x^1, x^2,\dots ,x^n) \mathrm{d}x^i\otimes \mathrm{d}x^j,\quad i,j=2,\dots ,n. \end{aligned}$$
(13)

E.g. on a cylinder, semigeodesic coordinates can be introduced globally.

Advantages of such coordinates are known since Gauss ([8, p. 201], “Geodätische Parallelkoordinaten”), and are widely used in the two-dimensional case, particularly in applications, [11] and the references therein, [13] etc. Note that geodesic polar coordinates (“Geodätische Polarkoordinaten,” [8, pp. 197–204]) can be interpreted as a “limit case” of semigeodesic coordinates (all geodesic coordinate lines \(\phi =x^2=\mathrm{const}\) pass through one point called the pole, corresponding to \(r=x^1=0\), while \(r=x^1=\mathrm{const}\) are the geodesic circles).

4.2 Reconstruction of Metric in Semigeodesic Coordinates

Recall that the components of the curvature tensor R (in type (0, 4)) of the semi-Riemannian manifold \(V_n=(M,g)\) are related to the components of the metric by

$$\begin{aligned} R_{hijk}=\frac{1}{2}\big ({\partial }_{ij}g_{hk} +{\partial }_{hk}g_{ij} -{\partial }_{ik}g_{hj} -{\partial }_{ij}g_{hk}\big ) +g^{rs}\big ({\Gamma }_{hkr}{\Gamma }_{ijs}-{\Gamma }_{hjr}{\Gamma }_{kjs}\big ), \end{aligned}$$
(14)

where \({\Gamma }_{ijk}=\frac{1}{2}({\partial }_{i}g_{jk} +{\partial }_{j}g_{ik} -{\partial }_{k}g_{ij})\) are Christoffel symbols of the first type in \(V_n\), and \(g^{rs}\) are components of the dual tensor to g. Hence \(g^{ij}\) are functions rational in components \(g_{ij}\) of the metric.Footnote 2

Now suppose that components of the metric satisfy \(g_{11}=e\), \(g_{1j}=0\). Under these assumptions, setting \(h=k=1\) we obtain from (14)

$$\begin{aligned} R_{1ij1}=\frac{1}{2}{\partial }_{11}g_{ij} -\frac{1}{4}{g}^{rs}{\partial }_{1}g_{ir}{\partial }_{1}g_{js}. \end{aligned}$$
(15)

Here we can suppose that the indices satisfy \(i,j,r,s>1\). Plugging

$$\begin{aligned} G_{ij}={\partial }_{1}g_{ij}, \end{aligned}$$
(16)

we can write (15) as

$$\begin{aligned} a_{ij}(x)=R_{1ij1}=\frac{1}{2}{\partial }_{1}G_{ij} -\frac{1}{4}{g}^{rs}G_{ir}G_{\!js}. \end{aligned}$$
(17)

Now we can prove the following.

Theorem 3

Let \(a_{ij}\) be (at least) continuous functions in \(D_{n}(\delta )\), let \({\tilde{g}}_{ij}\) be functions of the class (at least) \(C^2\) in \(K_{n-1}\) and \({\tilde{G}}_{ij}\) functions of the class (at least) \(C^1\) in \(K_{n-1}\), \(i,j=2,\dots ,n,\) such that the matrices \(({\tilde{g}}_{ij})\) and \(({\tilde{G}}_{ij})\) are symmetricFootnote 3 and \(\det ({\tilde{g}}_{ij})\ne 0\) in \(K_{n-1}\). Fix an element \(e\in \{-1,1\}\). Then there is \(\hat{\delta }\), \(0<\hat{\delta }\le \delta \) and there exists exactly one non-degenerate metric tensorFootnote 4 g of the class (at least) \(C^2\) in \(D_{n}(\hat{\delta })\) with components \(g_{11}=e\), \(g_{1j}=0\), \(j=2,\dots ,n,\) such that for \(i,j=2,\dots ,n\),

$$\begin{aligned} g_{ij}(0,\tilde{x})={\tilde{g}}_{ij}(\tilde{x}), \quad \frac{\partial ^+}{\partial x^1}\,g_{ij}(0,\tilde{x})={\tilde{G}}_{ij}(\tilde{x}), \quad \tilde{x}\in K_{n-1} \end{aligned}$$
(18)

where \(\frac{\partial ^+}{\partial x^1}\) means the partial derivative from the right, and

$$\begin{aligned} a_{ij}( x)={R}_{1ij1}(x), \quad x\in D_{n}(\hat{\delta }). \end{aligned}$$
(19)

Proof

Step (1) Let us define \(g_{11}=e\), \(g_{1j}=0\) in \(D_{n}(\delta )\), \(j=2,\dots ,n\).

Step (2) Let us solve the system

$$\begin{aligned} \displaystyle \begin{aligned} {\partial }_{1}g_{ij}&=G_{ij},\\ {\partial }_{1}G_{ij}&=\frac{1}{2}{g}^{rs}G_{ir}G_{js}+2a_{ij} \end{aligned} \end{aligned}$$
(20)

under the initial values

$$\begin{aligned} g_{ij}(0,\tilde{x})={\tilde{g}}_{ij}(\tilde{x}), \quad \frac{\partial ^+}{\partial x^1}\,g_{ij}(0,\tilde{x})={\tilde{G}}_{ij}(\tilde{x}),\quad \tilde{x}\in K_{n-1}, \ i,j=2,\dots ,n. \end{aligned}$$
(21)

Note that since the determinant as well as the algebraic complements are continuous functions in the entries \(g_{ij}\), and we demand \(\det ({\tilde{g}}_{ij})(0,\tilde{x}) =\det ({\tilde{g}}_{ij})(\tilde{x})\ne 0\), it is guaranteed that \({g}^{rs}\) will be well-defined and well-behaved functions of \({g}^{ij}\), similarly as in [6]. So (20) can be considered as a system of first-order ordinary differential equations in the variable \(x^1\) for the unknown functions \(g_{ij}\) and \(G_{ij}\) with the initial values (21); the remaining coordinates \(x^2,\dots ,x^n\in K_{n-1}\) are supposed to be parameters. The right sides in (20) satisfy the conditions of the existence and uniqueness theorem [4, p. 263] in the domain \(D_n(\tilde{\delta })\) and have continuous derivatives with respect to \(g_{ij}\) and \(G_{ij}\). The initial value problem (20) and (21) has precisely one solution \(g_{ij}(x)\). The functions \(g_{ij}\) are components of a metric tensor in \(D_n(\tilde{\delta })\), and comparing (20) and (17) we find easily that the components of its curvature tensor satisfy \(R_{1ij1}(x)=a_{ij}(x)\) as required.

Since the matrices \((g_{ij})\) and \((G_{ij})\) are symmetric we may assume \(i\le j\) in (20) and (21). As a consequence, we get

Theorem 4

Let \(a_{ij}\) be continuous functions in some coordinate neighborhood U, \({\tilde{g}}_{ij}\;C^2\)-functions in \(\tilde{S}=U\cap S\) where S is the hypersurface \(S:x^1=0\) in \(R^n\), and \({\tilde{G}}_{ij}\;C^1\)-functions in \(\tilde{S}\), \(i,j=2,\dots ,n\) such that the matrices \(({\tilde{g}}_{ij})\) and \(({\tilde{G}}_{ij})\) are symmetric and \(\det ({\tilde{g}}_{ij})\ne 0\) in \(\tilde{S}\). Fix an element \(e\in \{-1,1\}\). Then there is \(\hat{\delta }>0\) and there exists precisely one non-degenerate metric tensor g, \(\det ({g}_{ij})\ne 0\), of the class \(C^2\) in \(\tilde{U}=\langle -\hat{\delta }, \hat{\delta }\rangle \times \tilde{S} \) with components \(g_{11}=e\), \(g_{1j}=0\), \(j=2,\dots ,n\) (i.e. \(\tilde{U}\) is semigeodesic) such that for \(i,j=2,\dots ,n\),

$$\begin{aligned} g_{ij}(0,\tilde{x})={\tilde{g}}_{ij}(\tilde{x}), \quad {\frac{\partial ^{+}}{\partial x^1}}\,g_{ij}(0,\tilde{x})={\tilde{G}}_{ij}(\tilde{x}),\quad \tilde{x}\in \tilde{S} \end{aligned}$$
(22)

and

$$\begin{aligned} a_{ij}( x)={R}_{1ij1}(x), \quad x\in \tilde{U}. \end{aligned}$$
(23)

Provided \(a_{ij}(x)=R_{1ij1}(x)\) the solution of the system (20) answers the problem of finding the metrics with the prescribed components \(R_{1ij1}(x)\) of the (0, 4)-Riemannian curvature tensor. Substituting the obtained components of metric we get the relationship to the components of the (1, 3)-curvature as follows:

$$\begin{aligned} R_{1ij1}=e R^1_{ij1}=-eR^1_{i1j}=g_{im}R^m_{11j}=-g_{im}R^m_{1j1}. \end{aligned}$$
(24)

Hence our results generalize the results of [5, 6].