Next Article in Journal
Multiple Solutions for Double-Phase Elliptic Problem with NonLocal Interaction
Previous Article in Journal
A Novel Approach to Evaluating Industrial Spatial Structure Upgrading: Evidence from 284 Cities and 96 Sub-Industries in China (1978–2022)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Algorithm for Improving the Condition Number of Matrices and Its Application for Solving the Inverse Problems of Gravimetry and Magnetometry

1
Department of High Mathematics, National Research Nuclear University MEPhI, Moscow 115409, Russia
2
Department of Mathematics, Faculty of Physics, Lomonosov Moscow State University, Moscow 119991, Russia
3
Innovation Academy for Earth Science, Chinese Academy of Sciences, Beijing 100029, China
4
Key Laboratory of Petroleum Resources Research, Institute of Geology and Geophysics, Chinese Academy of Sciences, Beijing 100029, China
5
University of Chinese Academy of Sciences, Beijing 100049, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(8), 1280; https://doi.org/10.3390/math13081280
Submission received: 16 February 2025 / Revised: 2 April 2025 / Accepted: 10 April 2025 / Published: 13 April 2025
(This article belongs to the Section E: Applied Mathematics)

Abstract

:
The paper considers one of the possible statements of inverse problems in gravimetric and magnetometric remote sensing, proposes a new approach to its solution and formulates algorithms that implement this approach. The problem under consideration consists of finding hypothetical sources of the corresponding potential fields at a given depth based on these fields measured on the Earth’s surface. The problem is reduced to solving systems of linear algebraic equations (SLAE) with ill-conditioned matrices. The proposed approach to the numerical solution is based on improving the condition number of the SLAE’s matrix. A numerical algorithm implementing the proposed approach that is applicable to the stable solution of degenerate and ill-conditioned SLAEs with an approximately given right-hand side is formulated in general form. The algorithm uses the SVD decomposition of the SLAE’s matrix and constructs a new matrix close to the original one with a better (smaller) condition number. An approximate solution to the original SLAE is calculated using the pseudoinverse of the new matrix. The results of a theoretical study of the algorithm are presented and the main properties of the new matrix are given. In particular, the reduction of its condition number is estimated. Several implementations of this algorithm are considered, in particular, the MPMI method, which is based on the use of so-called minimal pseudoinverse matrices. For the model problem, the advantage of the MPMI method over a number of other common methods is shown. The MPMI method is applied to solve the considered problems of gravity exploration and magnetic exploration both in the separate solution of these inverse problems and in their joint solution when processing geophysical data for the Kathu region, in the Northern Cape area of South Africa.

1. Introduction

In geophysics, when processing gravimetric and magnetometric measurements, mathematical methods are often used that are associated with solving the inverse problem for the Poisson equation. In general, this problem is formulated as follows: based on measurements of the potential field in a region on/above the Earth’s surface, it is necessary to find the sources of this field in a given region beneath the surface. Simple examples can easily show that such a problem is uniquely solvable. Moreover, it has infinitely many solutions that are equivalent in the generated field. A very subtle study of this ambiguity is given in [1]. Therefore, in order to obtain an unambiguous solution, additional restrictions of a physical, geological, geometric and other nature are introduced into the methods for solving inverse problems of this kind. Specific formulations and restrictions in these inverse problems often depend on the equipment, methodology, structure and type of measurement results. All this can be seen in numerous works, of which, for the sake of brevity, we will highlight only a few that are close in aim to our research: [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16].
In some cases, when analyzing three-dimensional geophysical anomalies, it is difficult to specify suitable constraints or such constraints are algorithmically difficult to implement. In this case, the approach proposed in [15] is often used. Instead of searching for three-dimensional volumetric sources of potential fields that cannot be found uniquely, we limit ourselves to searching for the distribution of sources of a given type on a given two-dimensional manifold (for example, on a part of a plane) under the Earth’s surface. Such an inverse problem has a unique solution with an appropriate choice in the type of sources and manifold, if we use field measurements in a three-dimensional region (see [17]). Finding solutions of this kind for planes lying at different depths, we can use these results to interpret geological structures. Examples of such an approach are given in the works [11,12,13,14,15], where the so-called method of integral representations is developed from the work [17].
All the methods from these works, presented in discrete form, are reduced to solving systems of linear algebraic equations (SLAE) and are actually associated with the inversion of some matrices, which we will call inverse problem matrices. Very often, such matrices turn out to be ill-conditioned or even singular. In this connection, the problem of stability of solutions obtained by inverting such matrices arises. It is solved differently in different works. Thus, many authors apply the regularization method of A. N. Tikhonov [18,19] in its various modifications. It is also possible to use algorithms similar to the well-known TSVD method [20,21]. The stability of the linear inverse problem being solved can also be increased by replacing its matrix with a “close” one, but having a better (smaller) condition number. This is the approach that will be used in our work to solve some inverse problems of gravimetric and magnetometric remote sensing.
Thus, the structure of this work is as follows. The formulation of the inverse problems of gravity and magnetometry is given in Section 2. In Section 3, the uniqueness of the solution of the inverse problems under consideration is noted and their discretization is given. Section 4 identifies the main problems that arise when solving SLAEs with singular and ill-conditioned matrices. We schematically, using an example, explain the possibility of improving the condition number of the inverse problem matrix. Further, Section 5 presents, in a general form, an algorithm for improving the condition number of the inverse problem matrix. In the following Section 6, various modifications of the algorithm are considered and compared. From numerical experiments, it is concluded that the best of these modifications is the MPMI method. This method uses the so-called minimal pseudoinverse matrices with improved condition numbers. In Section 7, the MPMI method is used to separately solve the inverse gravity and magnetometry problems with data for the Kathu region, Northern Cape, South Africa. In Section 8, these problems are solved jointly with the same data. The conclusions from these numerical experiments are presented in Section 9.

2. Formulation of Inverse Problems of Gravimetry and Magnetometry

We will solve the inverse problems of gravimetry and magnetometry in the following formulation. We assume that the measurements of the corresponding potential fields are carried out on the Earth’s surface with a known relief (height) z = z 0 ( x , y ) 0 , ( x , y ) D , where D is the study area with a piecewise smooth boundary. In more detail, the measurements are carried out in a three-dimensional area of the form T = { ( x , y , z ) : z 0 ( x , y ) z z 1 ( x , y ) , ( x , y ) D } . The functions z 0 ( x , y ) , z 1 ( x , y ) are considered piecewise smooth. We are interested in the following problems.
Problem 1.
On a given piecewise smooth surface H = H ( x , y ) < 0 , ( x , y ) D , find the number N, the locations ( x k , y k , H ( x k , y k ) ) , k = 1 , N ¯ , and the masses g = [ g k ] k = 1 N of point gravity sources that create a gravity field with a vertical component G z ( x , y , z ) measured in the domain T.
This problem is reduced to solving the following equation:
γ k = 1 N ( z H ( x k , y k ) ) g k ( x x k ) 2 + ( y y k ) 2 + ( z H ( x k , y k ) ) 2 3 / 2 = G z ( x , y , z ) , ( x , y , z ) T ,
with respect to the quantities N, ( x k , y k ) , g k , k = 1 , N ¯ . The coefficient γ is the known gravitational constant. In vector form, the equation is
γ k = 1 N K g ( r r k ) g k = G z ( r ) , r T ,
where
K g ( r r k ) = ( r r k , n ) | r r k | 3 ,
and r = ( x , y , z ) , r k = ( x k , y k , H ( x k , y k ) ) , n = ( 0 , 0 , 1 ) .
Problem 2.
On a given piecewise smooth surface H = H ( x , y ) < 0 , ( x , y ) D , find the number N of locations ( x k , y k , H ( x k , y k ) ) , k = 1 , N ¯ , and the vertical components m = m k k = 1 N of the magnetization vectors of point magnetic dipoles that create a magnetic induction field with a vertical component B z ( x , y , z ) measured in T.
The problem comes down to solving the equation
μ 0 k = 1 N K m ( r r k ) m k = B z ( r ) , r T .
relative to unknowns N, ( x k , y k ) , m k , k = 1 , N ¯ . Here, μ 0 is the known magnetic constant, and 
K m ( r r ) = 3 ( r r , n ) 2 | r r | 5 1 | r r | 3 .

3. On the Uniqueness of Solutions to Problems (1), (3) and Their Discretization

The inverse problems (1) and (3) can be written in a uniform form as follows: find a number N N , coordinates r k = ( x k , y k , z k ) Σ , k = 1 , N ¯ , and numbers X k , such that the following equality is true:
k = 1 N K r r k X k = Y ( r ) , r T .
Here, Σ is a given piecewise smooth surface lying in the half-space z < 0 , and the value Y ( r ) , r T is known. An abstract problem of this type may have no solution; if its solution exists, it may not be unique. However, in the cases (1), (3), and some other cases, the uniqueness of solutions can be guaranteed due to specific properties of the function K r r k .
To describe the uniqueness conditions, we introduce the domain T H = { ( x , y , z ) : H ( x , y ) < z < z 1 ( x , y ) , ( x , y ) D } . From the conditions on the functions z 0 ( x , y ) , H ( x , y ) , it is clear that T T H . We will also assume that the surface Σ is defined by the equation z = H ( x , y ) , ( x , y ) D .
Theorem 1.
Let r k Σ for every k N , and let the function K r be harmonic in the variables r = ( x , y , z ) everywhere for | r | > 0 , and let K r for | r | 0 . Then, the problem (5) with given Y ( r ) , r T , cannot have more than one solution N N , X k , r k Σ , k = 1 , N ¯ .
The proof is given in the paper [17].
Note that the conditions of the theorem are satisfied for the functions K g and K m from Problems 1 and 2, so that the latter have no more than one solution.
The data G z ( x , y , z ) , B z ( x , y , z ) in problems (1) and (3) are measured, as a rule, at a finite number of points on the relief z = z 0 ( x , y ) 0 , ( x , y ) D , or near it. In addition, in these problems, the positions of the sources are often specified as r k = ( x k , y k , H ( x k , y k ) ) , for example, on some grids. Therefore, in what follows, we will consider the following discrete versions of the problems (1) and (3): for given observation points r i = ( x i , y i , z 0 ( x i , y i ) ) , i = 1 , M ¯ , and given source locations r k = ( x k , y k , H ( x k , y k ) ) , k = 1 , N ¯ , find solutions g = { g k } , m = { m k } of each of the systems of linear algebraic equations
k = 1 N K g ( r i r k ) g k = G z ( r i ) , k = 1 N K m ( r i r k ) m k = B z ( r i ) , i = 1 , M ¯ .
Each of these SLAEs can be formally written as A ¯ X = Y , where A ¯ is the matrix of the corresponding problem, and Y is its right-hand side. Note that the matrices of the systems, A ¯ , are given exactly by the Formulas (2) and (4).

4. Problems Arising in Solving SLAE and the Essence of the Proposed Approach

Theoretically, the SLAE A ¯ X = Y may not have a conventional solution when the models under consideration are not adequate to the experimental data. But it always has a solution in the sense of the least squares method (LSM), i.e., there always exists a solution to the system A ¯ T A ¯ X = A ¯ T Y . The matrix A ¯ may be ill-conditioned or even singular. Therefore, in contrast to the problem statements from Section 2, the discrete problem may be uniquely solvable. Another reason for the ambiguity is the use of measurements of the potential field in a two-dimensional domain T instead of measurements in a three-dimensional one. In this regard, for definiteness, we will seek a normal pseudo-solution X ¯ of the SLAE, i.e., its solution by the least squares method that has a minimal norm. From here on, all norms will be Euclidean. In the case of unique solvability of the SLAE under consideration, X ¯ coincides with the usual solution. The data for finding X ¯ are the quantities A ¯ , Y . For these exact data, the problem is formally solved using the pseudoinverse matrix A + : X ¯ = A ¯ + Y .
In practice, the right-hand sides of the SLAE are generally specified approximately with a measurement error δ . Then, instead of Y, the approximate right-hand side Y δ is known such that Y Y δ δ . Then, the vector X δ = A ¯ + Y δ is a stable approximation to X ¯ : X δ X ¯ in R N for δ 0 .
An estimate of the accuracy of such an approximate solution is known (see, for example, [22]):
X δ X ¯ X ¯ ν ( A ¯ ) Y δ Y Y , ν ( A ¯ ) = A ¯ A ¯ + .
This estimate shows the important role of the condition number ν ( A ¯ ) of the matrix for solving the SLAE. The smaller the condition number, the higher the accuracy of the approximate solutions of the SLAE.
The matrix A ¯ + is usually calculated approximately using various types of computing equipment that has a finite bit grid. In this case, in the known pseudoinversion procedures (see, for example, [22]), due to rounding, instead of A ¯ , a very close matrix A h is actually used with a known (estimated) perturbation level h : A ¯ A h h . As a result, we calculate A h + , not A ¯ + , and in fact, instead of X ¯ we obtain an approximate solution X h δ = A h + Y δ . For singular and ill-conditioned matrices A ¯ , many pseudoinversion procedures are numerically unstable with respect to matrix perturbations. As a consequence, approximations X h δ , even for small errors h, can be arbitrarily “far” from the exact normal pseudo-solution X ¯ . Thus, the discrete versions of the problems (1) and (3) under consideration are generally ill-posed, and special methods—regularization methods (see [18,19,20] and others)—must be used to solve them. Special stable methods for the approximate determination of A ¯ + from perturbed data have also been developed (see, for example, [18,20,21] and others). We propose the following new approach.
In some practical cases, including ours, the SLAE matrix is known exactly, often in the form of an analytical expression (see Section 2). Let the singular value decomposition (SVD, see, for example, [22]) of this exact matrix be known (pre-computed): A ¯ = U R ¯ V T , where U , V are orthogonal matrices of size m × m and n × n , respectively, and  R ¯ is a diagonal matrix of size m × n , containing the singular values of matrix A ¯ , ordered in non-increasing order:
R ¯ = diag ρ ¯ 1 , ρ ¯ 2 , , ρ ¯ r ¯ , 0 , , 0 , ρ ¯ 1 ρ ¯ 2 , ρ ¯ r ¯ > 0 .
Here r ¯ = rank A ¯ M = min ( m , n ) . In what follows, we will use the spectral condition number of the matrix A ¯ : ν s ( A ¯ ) = ρ ¯ 1 / ρ ¯ r ¯ .
As already mentioned, the matrix A ¯ can be ill-conditioned or even singular. We propose to replace it with a close matrix A ( h ) , A ¯ A ( h ) h , so that A ( h ) has a better (smaller) condition number, and use it instead of A ¯ . Here, h is a given small level of matrix perturbation. This procedure can be illustrated by the following example.
Example 1.
TSVD method with matrix conditioning improvement.
Consider the SLAE matrix arising in the two-dimensional analogue of Problem 1:
A ¯ = ( H 0 H ) Δ y ( ( x i y j ) 2 + ( H 0 H ) ) 3 / 2 i , j = 1 m , n ,
where { x i } , { y j } are uniform grids on the interval [ 1 , 1 ] . For  m = 1991 ,   n = 2001 , Δ y = 0.001 and H = 0 ,   H 0 = 0.1 , the matrix has the condition number ν s 2.55 · 10 19 , i.e., it is extremely ill-conditioned. This is due to the specific (exponential) order of decreasing singular values of the matrix (see Figure 1a). By applying the TSVD method to the matrix, i.e., for example, by replacing its singular values that satisfy the condition ρ ¯ k < h with zeros, it is possible to improve the condition number with an adequate choice of the value h. Thus, for  h = 10 8 , we obtain the matrix A ( h ) with the best condition number ν s 1.78 · 10 9 . Accordingly, the stability of numerical solutions of SLAE with such a matrix is improved. However, it is not clear how to constructively find h, since the estimate h of the admissible proximity of matrices in the considered formulation is unknown.
Developing this approach, we propose a new algorithm for solving the inverse problems under consideration.

5. Algorithm for Improving the Condition Number of Problem Matrices

Consider a general SLAE A ¯ X = Y , where X R n , Y R m and dim A ¯ = m × n . According to Section 4, all norms of vectors and matrices are considered Euclidean. We will seek a normal pseudo-solution X ¯ of this SLAE, i.e., its least-squares solution that has the minimum norm.
Due to possible ill-conditioning or degeneracy of the matrix A ¯ , the regularization of the SLAE under consideration is necessary. One of the regularization options is to improve (reduce) the condition number of the matrix by varying it within certain perturbation limits. We will present the corresponding algorithm, assuming that A ¯ 0 and the exact right-hand side of the SLAE is nontrivial: Y 0 .
The singular value decomposition of the matrix A ¯ introduced above will be used: A ¯ = U R ¯ V T , as well as the function θ ( ρ ) = { ρ 1 , ρ > 0 ; 0 , ρ = 0 } .
Algorithm for solving SLAE with data A ¯ , Y δ .
Preliminary step: find the number
μ δ = inf A ¯ X Y δ : X R n = A ¯ A ¯ + Y δ Y δ = ( R ¯ R ¯ + I ) U T Y δ
This is the measure of inconsistency of the solved SLAE. Here, R ¯ + = diag [ ρ ¯ 1 1 , ρ ¯ 2 1 , , ρ ¯ r ¯ 1 , 0 , , 0 ] .
Step (1) Set the number h 0 , h 0 > A ¯ . For each h , 0 h h 0 , we look for approximate matrices in the form A ˜ h = U R ˜ h V T , where
R ˜ h = diag ρ ˜ 1 x 1 ( h ) , ρ ˜ 2 x 2 ( h ) , , ρ ˜ r ¯ x r ¯ ( h ) , 0 , , 0 .
The choice of functions x k ( h ) , k = 1 , , r ¯ will be discussed below.
Step (2) Introduce the function β δ ( h ) = A ¯ A ˜ h + Y δ Y δ = ( R ¯ R ˜ h + I ) U T Y δ , 0 h h 0 and solve the equation β δ 2 ( h ) = δ 2 + μ δ 2 . We denote its solution as h ( δ ) > 0 . The solvability issues of the equation will be considered below.
Step (3) Find the matrix A ˜ h ( δ ) = U R ˜ h ( δ ) V T and use it to calculate the approximate solution of the SLAE: X δ = A ˜ h ( δ ) + Y δ = V R ˜ h ( δ ) + U T Y δ .
Let us make the following assumptions about the functions x k ( h ) : for all k = 1 , , M
(A) 1 < x k ( h ) c k = const for 0 < h h 0 ;
(B) x k ( + 0 ) = x k ( 0 ) = 1 , x k ( h 0 ) = 0 ;
(C) The functions x k ( h ) are left-continuous for h ( 0 , h 0 ] ;
(D) The functions θ [ x k ( h ) ] are monotonically non-increasing for 0 h h 0 ;
The following properties of such an algorithm were established in [23].
Theorem 2.
Let conditions (A)–(D) be satisfied and, in addition, for each δ , 0 < δ < δ 0 = const , the inequality Y δ > μ δ holds. Then
(1) The function β δ ( h ) is monotonically nondecreasing for h [ 0 , h 0 ] and is left-continuous at each point h > 0 ;
(2) β δ 2 ( + 0 ) = μ δ 2 , β δ 2 ( A ¯ ) = u δ 2 ;
(3) The equation β δ 2 ( h ) = δ 2 + μ δ 2 has a generalized solution h ( δ ) > 0 ;
(4) h ( δ ) 0 when δ 0 ;
(5) the approximate solution of the SLAE X δ = A ˜ h ( δ ) + Y δ converges to the normal pseudo-solution X ¯ as δ 0 .
Remark 1.
In item (3), the equation with the monotone function β δ ( h ) is solved. Its generalized solution h ( δ ) is a point for which the inequalities
β δ 2 ( h ( δ ) 0 ) μ δ 2 + δ 2 β δ 2 ( h ( δ ) + 0 )
hold. An example of a solution to such an equation is shown in Figure 1b.
Theorem 3.
Let r ( δ ) be the rank of the matrix A ˜ h ( δ ) . Suppose that x k ( h ) 1 + a k h for h + 0 for each k, 1 k r ¯ , and the numbers a k are such that a 1 < a 2 < < a r ¯ . Then, for δ 0 the estimate ν s ( A ˜ h ( δ ) ) ρ ¯ 1 ρ ¯ r ( δ ) ( 1 h ( δ ) ( a r ( δ ) a 1 ) ) < ν s ( A ¯ ) holds.
Thus, the condition number of the matrix A ˜ h ( δ ) is less than the condition number of the matrix A ¯ at least for “small” δ .

6. Specific Methods Implementing the Proposed Algorithm for Solving SLAE

For simplicity, we assume that the singular values of the matrix A ¯ are prime: ρ ¯ 1 > ρ ¯ 2 > > ρ ¯ r ¯ > 0 .
As a central example, we consider the method using minimal pseudoinverse matrices with conditionality improvement or, briefly, the MPMI method. In this method
x k ( h ) = x ¯ k ( h ) , 0 h h k ; 0 , h > h k
for 1 k r ¯ , where x ¯ k ( h ) is the solution to the equation x ¯ k 4 x ¯ k 3 = h ρ ¯ k 4 , x ¯ k [ 1 , 3 2 ] , and  h k = 27 16 ρ ¯ k 4 . Then
θ x k ( h ) = 1 x ¯ k ( h ) , 0 h h k ; 0 , h > h k .
We also set h 0 > h 1 = 27 16 ρ ¯ 1 4 . The properties of the function x k ( h ) follow directly from the definition: (A) 1 x k ( h ) 3 2 and (B) x k ( 0 ) = x k ( + 0 ) = x ¯ k ( 0 ) = 1 ; (C) x k ( h ) is left-continuous for 0 < h H . Property (D) is also true. It follows from the increase of the function x ¯ k ( h ) as h [ 0 , h k ] (see [19,23,24]). Then, the function θ x k ( h ) = 1 x ¯ k ( h ) > 0 decreases as h [ 0 , h k ] and is zero as h > h k . Analyzing the asymptotics of the functions x k ( h ) as h + 0 , we can verify that x k ( h ) 1 + h ρ ¯ k 4 . This means that the condition of Theorem 4 is satisfied with a k = ρ ¯ k 4 , and  a k = ρ ¯ k 4 < ρ ¯ k + 1 4 = a k + 1 for all admissible k.
Thus, Theorems 2 and 4 are valid, guaranteeing the convergence of the method and the improvement of the condition number. In some cases, this number differs significantly from ν s ( A ¯ ) . For example, the case x r ( δ ) ( h ( δ ) ) = x r ( δ ) ( h r ( δ ) ) = 3 2 is theoretically possible. It is realized when the generalized solution of the equation β δ 2 ( h ) = δ 2 + μ δ 2 is the discontinuity point h r ( δ ) of the function β δ ( h ) (see Figure 1b). Then, as in Theorem 4,
ν s ( A ˜ h ( δ ) ) = 2 3 ρ ¯ 1 x 1 ( h ( δ ) ) ρ ¯ r ( δ ) 2 3 ρ ¯ 1 ρ ¯ r ( δ ) ( 1 h ( δ ) ( ρ ¯ r ( δ ) 4 ρ ¯ k 4 ) ) < 2 3 ρ ¯ 1 ρ ¯ r ( δ ) 2 3 ν s ( A ¯ ) ,
and in this case the condition number of the matrix used to solve the SLAE is improved by at least one and a half times.
For the MPMI method, the influence of data errors on the accuracy of the approximate solution is investigated.
Theorem 4.
Let the SLAE A ¯ X = Y be solvable. Then, for  δ 0 , the asymptotic estimate of the accuracy of the approximate solution X δ = A ˜ h ( δ ) + Y by the MPMI method is valid:
X δ X X ν A ˜ h ( δ ) δ Y + 2 2 h ( δ ) A ¯ +
The proof of this theorem follows from the properties of the minimal pseudoinverse matrix A ¯ h ( δ ) + , proved in [24] (Chapter 5). Details of obtaining a similar accuracy estimate can also be found in [19]. As can be seen from the given estimate, the accuracy of the solution depends significantly on the condition number of the matrix A ¯ h ( δ ) , which is reduced using the algorithm.
TSVD method with conditionality improvement (TSVDI). In this method, instead of A ¯ , we use the matrix A ˜ r ( δ ) = U R ˜ r ( δ ) V T , in which R ˜ r ( δ ) = diag ρ ¯ 1 , ρ ¯ 2 , , ρ ¯ r ( δ ) , 0 , , 0 , and its rank r ( δ ) is found as a solution to the equation β δ 2 ( r ) = μ δ 2 + δ 2 with a monotonically non-decreasing function β δ 2 ( r ) = k = r + 1 m v k 2 . It can be verified that r ( δ ) = r for sufficiently small δ . Thus, the inequality ν s ( A ˜ r ( δ ) ) = ρ ¯ 1 ρ ¯ r ( δ ) ρ ¯ 1 ρ ¯ r = ν s ( A ¯ ) becomes an equality for small δ , and the TSVDI method does not improve the condition number.
Tikhonov regularization (TR). In this method, an approximate solution of SLAE is sought in the form z δ = α ( δ ) I + A ¯ T A ¯ 1 A ¯ T u δ , where the parameter α ( δ ) > 0 is chosen using one of the known methods (see, for example, [19,20,25] and others). In any case, α ( δ ) 0 when δ 0 . Using the singular value decomposition of the matrix A ¯ , we find that z δ = V T δ 1 U T u δ , where
T δ = diag α ( δ ) + ρ ¯ 1 2 ρ ¯ 1 , α ( δ ) + ρ ¯ 2 2 ρ ¯ 2 , , α ( δ ) + ρ ¯ r 2 ρ ¯ r , 0 , , 0 .
Then, for α ( δ ) 0 we obtain the following:
ν s ( T δ ) = ρ ¯ r ( α ( δ ) + ρ ¯ 1 2 ) ρ ¯ 1 ( α ( δ ) + ρ ¯ r 2 ) = ρ ¯ 1 ρ ¯ r ( 1 + α ( δ ) / ρ ¯ 1 2 ) ( 1 + α ( δ ) / ρ ¯ r 2 ) ν s ( A ¯ ) 1 + α ( δ ) ρ ¯ 1 2 1 α ( δ ) ρ ¯ r 2 ν s ( A ¯ ) 1 α ( δ ) 1 ρ ¯ r 2 1 ρ ¯ 1 2 < ν s ( A ¯ ) ,
since ρ 1 > ρ r for r > 1 .
Let us compare these methods by analyzing the improvement of the condition number of the matrix from Example 1. We will solve a model SLAE with an ill-conditioned matrix A ¯ of the form (7) and an exact solution X ¯ = ( ( 1 x 2 ) sin ( 4 π x ) ) , 1 x 1 . The exact right-hand side of this SLAE is calculated as Y ¯ = A ¯ X ¯ and is perturbed by a normally distributed random error with zero mean such that the inequality Y δ Y ¯ δ Y ¯ holds for the approximate right-hand side. The number δ introduced in this way allows us to estimate the error level in percent. To solve such a SLAE with different error levels δ , the MPMI method is used, and for comparison, the TSVDI and TR methods are used with the choice of the regularization parameter α ( δ ) based on the discrepancy principle [25].
Table 1 shows the calculation results: the accuracy Δ = X δ X ¯ X ¯ of the obtained approximate solutions X δ and the condition numbers ν M P M I = ν s ( A ˜ h ( δ ) ) , ν T S V D I = ν s ( A ˜ r ( δ ) ) and ν T R = ν s ( T δ ) .
The table shows that the method with MPMI has the best accuracy for all considered levels of data disturbance. We especially note the fairly high accuracy of this method for large disturbances: δ = 0.1 , 0.2 , 0.3 . The table also clearly shows how much the condition numbers of the matrices of the method with MPMI are smaller than the condition numbers of other methods and, especially, the condition number of the original SLAE matrix: ν s ( A ¯ ) 2.55 · 10 19 . For these reasons, we will use the MPMI method in further calculations.
Note that the main time costs of all the methods considered are associated with the calculation of SVD and the procedure for selecting the regularization parameter. Accordingly, the complexity and limitations of the method are determined by the characteristics of the standard software implementing these procedures. We used standard Python packages (numpy 2.2.1, scipy 1.15.1 and numba 0.60.0). All calculations were performed on a PC with an Intel (R) Core (TM) i7-7700 CPU 3.60 GHz, RAM 16 GB (without parallelization). The solution time for the specified SLAE for one implementation of data using the MPMI method was about 7 s.

7. Separate Solution of Inverse Problems of Gravimetry and Magnetometry for Real Geophysical Data

We consider Problems 1 and 2 in a discrete formulation (6), A X = Y , with practical data Y on gravity and magnetic anomalies, and we will solve these problems using the MPMI algorithm. The algorithm was applied to processing gravimetry and magnetometry data for the region of Kathu, Northern Cape, South Africa, with latitude and longitude ϕ [ 26.5 ° , 29.5 ° ] S = [ 29.5 ° , 26.5 °], λ [ 22 ° , 24.5 ° ] E . All source data, including relief data, and grids were taken from the WGM2012 GLOBAL MODEL [26] (gravity data) and WDMAM [27] (magnetic data) databases. The grids of data and sought solutions were taken to be identical. The problems were solved for different depths H of the plane of sought field sources. Accordingly, for the gravity and magnetic problems, based on the relief, given grids and H value, the matrices A g , A m linking the columns of unknowns and data of these problems were calculated. The matrices have the following dimensions: dim A g = 5776 × 5776 , dim A m = 2601 × 2601 . In all calculations, it was assumed that the gravitational data Y g = G z and magnetic data Y m = B z were measured with a relative error of 0.1 % .
Inverse problem of gravimetry. Figure 2 shows the relief of the corresponding area and the data of the inverse problem of gravimetry G z . Figure 3 shows for comparison the G z data, the solution of the inverse gravimetry problem using the MPMI method for the depth H = 6 km and the solution of the same problem using the matrix inversion method. The latter solution is distinguished by unrealistically large values of the sought function X = g . At the same time, the solution using the MPMI algorithm yields quite realistic values of g .
The next Figure 4 shows the isolines of the G z data and their analogues calculated using the solution of the inverse problem. A comparison of these results is also given. The discrepancy between the exact and calculated data, Y g and A g g , is about 1.7 % . Their isolines are graphically close. Note that similar comparison results, as in Figure 4 and Figure 5, were also obtained for other depths H. For brevity, they are not presented.
However, we will show, in comparison, the solutions of the inverse problem of gravimetry, localized at different depths (Figure 5). We do not set a geological interpretation of these results as our task, but we will note the increasing localization of sources and the increase in their maximum with increasing depth.
Inverse problem of magnetometry. Similar results of magnetometry data processing are shown in Figure 6, Figure 7, Figure 8 and Figure 9. In particular, Figure 9 presents a comparison of solutions of the inverse problem X = m for different depths H. The discrepancy between the exact and calculated data, Y m and A m m , is about 1.1 % here. It turned out that the matrices of this inverse problem are well conditioned for the depths H under consideration. Therefore, the results of the solution by the MPMI method and by means of matrix inversion differ little.

8. Joint Solution of Gravitational and Magnetic Problems

A fairly large number of methods for jointly solving inverse problems of this kind have been developed (see, for example, [4,5,8,16]). Formally, inverse problems of gravimetry and magnetometry in a given region can be solved jointly by combining systems of equations with matrices A g and A m for unknown columns g and m , respectively, into a single SLAE with a column solution X = [ g ; m ] T , a right-hand side Y = [ G z ; B z ] T and a matrix of A = [ A g 0 ; 0 A m ] ; the new system can then be solved:
A X = Y A g 0 0 A m g m = G z B z .
This is the approach we use to illustrate the MPMI algorithm. However, due to the heterogeneity of gravitational and magnetic measurements and data, the scaling of the corresponding quantities is required. We used the following new scaled quantities: A ¯ g = A g A g , A ¯ m = A m A m , G ¯ z = G z G z , B ¯ z = B z B z . Thus, the joint solution of the inverse problems of gravity and magnetic exploration is reduced to solving a SLAE of the form
A ¯ X ¯ = Y ¯ A ¯ g 0 0 A ¯ m g ¯ m ¯ = G ¯ z B ¯ z ,
and the sought quantities are calculated as g = G z A g g ¯ , m = B z A m m ¯ . We solved the (9) system using the MPMI algorithm.
The joint solution of the gravity and magnetic problem was carried out with the data for the region of Kathu, Northern Cape, South Africa, from Section 7. In this case, dim A ¯ = 8377 × 8377 .
Let us see how much the solutions obtained here differ from the solutions found separately. We compare the solutions by calculating the deviations Δ = | | X s e p a r a t e X j o i n t | | | | X s e p a r a t e | | , where X s e p a r a t e is the solution found in separate solving, and X j o i n t is the solution found in joint solving. The deviations of the gravitational and magnetic solutions, Δ g r and Δ m a g , are presented in Table 2 for different depths H. The ranks and condition numbers of the original matrices A ¯ and the corresponding matrices A ˜ h ( δ ) of the MPMI method are also given there.
The table shows a significant improvement in the condition number of the MPMI matrices compared to the original matrices A ¯ . Also note the increase in Δ g r and Δ m a g with increasing depth H.
We have applied the MPMI algorithm to process gravity and magnetometric data for other regions (Kursk Magnetic Anomaly, Boddington region, Australia, etc.). The results of these works will be published separately.

9. Discussion and Conclusions

  • The formulation of inverse problems of gravity and magnetic exploration proposed in this article guarantees the uniqueness of solutions to these problems. However, when discretized, the problems may lose this property, since the SLAEs corresponding to these discrete problems usually have ill-conditioned or even singular matrices. Therefore, regularizing algorithms must be used to solve them.
  • We propose a new approach to the regularization of the SLAE solution. The approach is based on replacing the ill-conditioned matrix of the inverse problem with a new matrix, close to the original one, but having a better (smaller) condition number. The developed algorithm for improving the condition number of matrices has regularizing properties. This has been proven theoretically and confirmed when solving model problems. When comparing various modifications of the algorithm, it has been concluded that the best of them is the MPMI method. This method uses minimal pseudoinverse matrices with improved condition numbers. It enables the discovery of a solution to the posed inverse problems of gravity and magnetic exploration that can be considered both separately and jointly and that is stable with respect to data disturbances.
  • Using the MPMI algorithm, inverse problems were solved for the gravity and magnetic exploration data for the region of Katu, Northern Cape, South Africa, both separately and jointly. The obtained separate and joint approximate solutions turned out to be quite close. Similar calculations were carried out for some other regions.
  • In the future, we intend to use the MPMI algorithm when processing data from larger datasets.

Author Contributions

Conceptualization, A.L.; methodology, A.L., D.L., A.Y. and Y.W.; software, A.L.; validation, A.L., D.L., A.Y. and Y.W.; formal analysis, A.L.; investigation, A.L., D.L., A.Y. and Y.W.; resources, A.L.; data curation, A.L.; writing—original draft preparation, A.L.; writing—review and editing, A.L. and D.L.; visualization, A.L.; supervision, A.L.; project administration, A.L.; funding acquisition, D.L. All authors have read and agreed to the published version of the manuscript.

Funding

Russian Science Foundation (RSF-NSFC project 23-41-00002) and National Science Foundation of China NSFC (NSFC-RSF project 12261131494).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Strakhov, V. Equivalence in an inverse gravimetry problem with a variable mass density. Akad. Nauk SSSR Dokl. 1977, 236, 329–331. [Google Scholar]
  2. Bhattacharyya, B.K. A method for computing the total magnetization vector and the dimensions of a rectangular block-shaped body from magnetic anomalies. Geophysics 1966, 31, 74–96. [Google Scholar] [CrossRef]
  3. Zhdanov, M. Integral Transforms in Geophysics; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  4. Zeyen, H.; Pous, J. 3-D joint inversion of magnetic and gravimetric data with a priori information. Geophys. J. Int. 1993, 112, 244–256. [Google Scholar] [CrossRef]
  5. Haber, E.; Oldenburg, D. Joint inversion: A structural approach. Inverse Probl. 1997, 13, 63. [Google Scholar] [CrossRef]
  6. Li, Y.; Oldenburg, D.W. 3-D inversion of gravity data. Geophysics 1998, 63, 109–119. [Google Scholar] [CrossRef]
  7. Prilepko, A.I.; Orlovsky, D.G.; Vasin, I.A. Methods for Solving Inverse Problems in Mathematical Physics; Marcel Dekker: New York, NY, USA, 2000. [Google Scholar]
  8. Fregoso, E.; Gallardo, L.A. Cross-gradients joint 3D inversion with applications to gravity and magnetic data. Geophysics 2009, 74, L31–L42. [Google Scholar] [CrossRef]
  9. Stepanova, I.; Lukyanenko, D.; Kolotov, I.; Shchepetilov, A.; Yagola, A. On the unique solvability of inverse problems of magnetometry and gravimetry. Mathematics 2023, 11, 3230. [Google Scholar] [CrossRef]
  10. Kolotov, I.I.; Lukyanenko, D.V.; Stepanovaa, I.E.; Shchepetilov, A.V.; Yagola, A.G. On the uniqueness of solution to systems of linear algebraic equations to which the inverse problems of gravimetry and magnetometry are reduced: A regional variant. Comput. Math. Math. Phys. 2023, 63, 1588–1599. [Google Scholar] [CrossRef]
  11. Strakhov, V.; Stepanova, I. The S-approximation method and its application to gravity problems (local version). Izvestiya. Phys. Solid Earth 2002, 38, 91–107. [Google Scholar]
  12. Strakhov, V.; Stepanova, I. Solution of gravity problems by the S-approximation method (regional version). Izvestiya. Phys. Solid Earth 2002, 38, 535–544. [Google Scholar]
  13. Stepanova, I. On the S-approximation of the Earth’s gravity field: Regional version. Inverse Probl. Sci. Eng. 2009, 17, 1095–1111. [Google Scholar] [CrossRef]
  14. Stepanova, I.; Kerimov, I.; Raevskiy, D.; Shchepetilov, A. Combined method of F-, S-, and R-approximations of increased dimensionality in solving the problems of geophysics and geomorphology. Izvestiya. Phys. Solid Earth 2018, 54, 933–948. [Google Scholar] [CrossRef]
  15. Stepanova, I.; Kerimov, I.; Yagola, A. Approximation approach in various modifications of the method of linear integral representations. Izvestiya. Phys. Solid Earth 2019, 55, 218–231. [Google Scholar] [CrossRef]
  16. Bai, Z.; Wang, Y.; Wang, C.; Yu, C.; Lukyanenko, D.; Stepanova, I.; Yagola, A.G. Joint gravity and magnetic inversion using CNNs’ deep learning. Remote Sens. 2024, 16, 1115. [Google Scholar] [CrossRef]
  17. Leonov, A.S.; Lukyanenko, D.V.; Yagola, A.G. Solving some inverse problems of gravimetry and magnetometry using an algorithm that improves matrix conditioning. Comput. Math. Math. Phys. 2024, 64, 2178–2193. [Google Scholar] [CrossRef]
  18. Tikhonov, A.N.; Goncharsky, A.V.; Stepanov, V.V.; Yagola, A.G. Numerical Methods for the Solution of Ill-Posed Problems; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1995. [Google Scholar]
  19. Tikhonov, A.N.; Leonov, A.S.; Yagola, A.G. Nonlinear Ill-Posed Problems; Chapman and Hall: London, UK, 1998. [Google Scholar]
  20. Engl, H.; Hanke, M.; Neubauer, A. Regularization of Inverse Problems; Kluwer: Dordrecht, The Netherlands, 1996. [Google Scholar]
  21. Hansen, P. The Truncated SVD as a Method for Regularization; BIT: Lund, Sweden, 1987. [Google Scholar]
  22. Golub, G.; Van Loan, C. Matrix Computations; The John Hopkins University Press: Baltimore, MD, USA, 1989. [Google Scholar]
  23. Leonov, A.S. Solving ill-conditioned linear algebraic systems using methods that improve conditioning. arXiv 2024, arXiv:2405.04399. [Google Scholar]
  24. Leonov, A.S. The minimum pseudo-inverse matrix method: Theory and numerical implementation. Comput. Math. Math. Phys. 1991, 31, 1–13. [Google Scholar]
  25. Morozov, V. Methods for Solving Incorrectly Posed Problems; Springer: New York, NY, USA, 1984. [Google Scholar]
  26. International Gravimetric Bureau. Available online: https://bgi.obs-mip.fr/data-products/grids-and-models/ (accessed on 8 March 2024).
  27. Wdmam. Available online: http://wdmam.org/download.php (accessed on 2 March 2024).
Figure 1. (a) For Section 4. Singular values of the matrix (7). (b) For Section 5. Solution h ( δ ) of the equation β ¯ δ ( h ) = b δ u ¯ 2 with b δ = μ δ 2 + δ 2 for SLAE with matrix (7).
Figure 1. (a) For Section 4. Singular values of the matrix (7). (b) For Section 5. Solution h ( δ ) of the equation β ¯ δ ( h ) = b δ u ¯ 2 with b δ = μ δ 2 + δ 2 for SLAE with matrix (7).
Mathematics 13 01280 g001
Figure 2. Terrain and G z gravity anomaly data.
Figure 2. Terrain and G z gravity anomaly data.
Mathematics 13 01280 g002
Figure 3. Data G z , solution of the inverse problem by the MPMI method, solution using matrix inversion.
Figure 3. Data G z , solution of the inverse problem by the MPMI method, solution using matrix inversion.
Mathematics 13 01280 g003
Figure 4. Contours of G z data, contours of their analogs calculated using the MPMI method and the comparison of these contours.
Figure 4. Contours of G z data, contours of their analogs calculated using the MPMI method and the comparison of these contours.
Mathematics 13 01280 g004
Figure 5. Solutions of the inverse gravimetry problem under consideration for different plane depth positions sources.
Figure 5. Solutions of the inverse gravimetry problem under consideration for different plane depth positions sources.
Mathematics 13 01280 g005
Figure 6. Terrain and B z magnetic anomaly data.
Figure 6. Terrain and B z magnetic anomaly data.
Mathematics 13 01280 g006
Figure 7. Data B z , solution of the inverse problem by the MPMI method for H = 6 km; solution using matrix inversion.
Figure 7. Data B z , solution of the inverse problem by the MPMI method for H = 6 km; solution using matrix inversion.
Mathematics 13 01280 g007
Figure 8. Contours of B z data, contours of their analogs calculated using the MPMI method; comparison of these contours.
Figure 8. Contours of B z data, contours of their analogs calculated using the MPMI method; comparison of these contours.
Mathematics 13 01280 g008
Figure 9. Solutions of the inverse magnetometry problem under consideration for different plane positions by depth sources.
Figure 9. Solutions of the inverse magnetometry problem under consideration for different plane positions by depth sources.
Mathematics 13 01280 g009
Table 1. Comparison of solution accuracies and condition numbers matrices of MPMI, TSVDI and TR methods.
Table 1. Comparison of solution accuracies and condition numbers matrices of MPMI, TSVDI and TR methods.
δ0.0010.010.050.10.20.3
Δ M P M I 0.00070.00370.01040.01930.03810.0740
Δ T S V D I 0.00090.00440.01200.02390.04760.0814
Δ T R 0.00490.01750.03470.04820.06830.0810
ν M P M I 12.3475.6432.8812.8812.8811.485
ν T S V D I 18.5209.4154.3014.3014.3012.074
ν T R 1.5 · 10 15 4.6 · 10 15 1.0 · 10 16 1.6 · 10 16 2.8 · 10 16 4.1 · 10 16
Table 2. The deviations of the gravitational and magnetic solutions, Δ g r and Δ m a g .
Table 2. The deviations of the gravitational and magnetic solutions, Δ g r and Δ m a g .
H rank ( A ¯ ) rank ( A ˜ h ( δ ) ) ν ( A ¯ ) ν ( A ˜ h ( δ ) ) Δ gr Δ mag
−18377837113.57.70.030.09
−28377804656.219.50.080.12
−483776262106472.20.200.10
−68377479520620126.40.360.10
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Leonov, A.; Lukyanenko, D.; Yagola, A.; Wang, Y. An Algorithm for Improving the Condition Number of Matrices and Its Application for Solving the Inverse Problems of Gravimetry and Magnetometry. Mathematics 2025, 13, 1280. https://doi.org/10.3390/math13081280

AMA Style

Leonov A, Lukyanenko D, Yagola A, Wang Y. An Algorithm for Improving the Condition Number of Matrices and Its Application for Solving the Inverse Problems of Gravimetry and Magnetometry. Mathematics. 2025; 13(8):1280. https://doi.org/10.3390/math13081280

Chicago/Turabian Style

Leonov, Alexander, Dmitry Lukyanenko, Anatoly Yagola, and Yanfei Wang. 2025. "An Algorithm for Improving the Condition Number of Matrices and Its Application for Solving the Inverse Problems of Gravimetry and Magnetometry" Mathematics 13, no. 8: 1280. https://doi.org/10.3390/math13081280

APA Style

Leonov, A., Lukyanenko, D., Yagola, A., & Wang, Y. (2025). An Algorithm for Improving the Condition Number of Matrices and Its Application for Solving the Inverse Problems of Gravimetry and Magnetometry. Mathematics, 13(8), 1280. https://doi.org/10.3390/math13081280

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop