---
title: "2"
source: "2.docx"
converted: "2026-10-01 10:25:20 +0800"
converter: "MarkForge (mdconvert)"
engine: "MarkItDown"
---

Development of the Spherical First Order Polarization Tensor Calculator

Nur Izzati Abdul Rahman[[1]](#footnote-1), Nurhazirah Mohamad Yunos[[2]](#footnote-2),3\*, Taufiq Khairi Ahmad Khairuddin4

1Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Negeri Sembilan Branch, Seremban Campus, 70300, Negeri Sembilan, Malaysia.

2,4Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Johor Bahru, Johor, Malaysia.

3Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Johor Branch, Pasir Gudang Campus, 81750 Masai, Johor, Malaysia.

|  |  |  |
| --- | --- | --- |
| ARTICLE INFO |  | ABSTRACT |
| *Article history:*  Received 1 July 2025  Revised 3 December 2025  Accepted 8 December 2025  Online first  Published 1 March 2026 |  | The polarization tensor is implemented in some applications, especially in science and engineering, to identify or characterize objects. An object can be represented as its polarization tensor, and an ellipsoid can have the same polarization tensor as the object. Thus, investigating an ellipsoid with its respective polarization tensor might provide additional information about the real object. Motivated by this research, this study aims to develop a standalone application using a graphical user interface (GUI) in MATLAB, called the Spherical First Order Polarization Tensor Calculator to enhance computation efficiency related to the first order PT for a sphere. This application consists of three main features, which are to calculate the first order PT for sphere, to determine the sphere’s radius, and to illustrate the sphere in a three-dimensional graph. A brief demonstration of each function is provided, and the application’s reliability is also validated. The findings suggest a quicker approach for computing the first order PT related to the sphere, which can serve as a reference for other researchers in the related area. |
| *Keywords:*  Graphical User Interface (GUI)  First Order Polarization Tensor  Radius  Sphere  *DOI:*  [10.24191/jcrinn.v11i1.574](https://10.24191/jcrinn.v11i1.574) |  |

1. INTRODUCTION

The study of polarization tensor (PT) has a crucial role in science and engineering field. It is widely applied in electrical, electromagnetic, and magnetic fields. The application of PT includes metal detection for security screening and landmine clearance (Dekdouk et al., 2014; Marsh et al., 2013). Additionally, PT has been adapted biologically to investigate electro-sensing fish in characterizing and discriminating objects (Khairuddin, 2016). Moreover, in the most recent study, PT is used for the detection of vapes and batteries within an electro-magnetic field using a coil system (Williams et al., 2024). In these applications, PT helps to extract important information about conducting object, including its material characteristics, shape and orientation (Ammari & Kang, 2007).

The most basic form of PT is the first order PT. The formula of the first order PT for ellipsoid was originally given by Ammari and Kang (2007). It was modified by Yunos and Khairuddin (2017) through the implementation of depolarization factors into the original formula. As demonstrated by Khairuddin and Lionheart (2013), the PT for various objects can be expressed through the first order PT for ellipsoids, yet there is still significant interest in studying the first order PT for spheres.

A sphere can be represented by Eq. (1) in Cartesian coordinate system given by

, (1)

where is the radius of the sphere.

Due to the high interest in the PT, many numerical methods have been used by previous researchers in determining the first order PT (such as in Capdeboscq et al., 2012; Lu et al., 2015; Sukri et al., 2021; Sukri et al., 2025) and some research did focus on a sphere as the geometry (such as Sukri et al., 2020). In order to increase the efficiency of calculating the first order PT, a standalone application called Spheroidal First Order PT was developed by Yunos et al. (2023). This application was initially designed to calculate the spheroidal first order PT, mainly for spheroids with certain conditions. Users are required to insert the spheroid’s conductivity, along with its semi axes and . In addition, this application has a function to estimate the spheroid based on the its PT by fixing the conductivity value. Subsequently, Yunos et al. (2024) upgraded the existing application by incorporating new functions. These upgrades include the computation for all types of spheroids. However, these applications were not designed to handle the spherical case, resulting in an important limitation: the first order PT of spheres cannot be computed, analysed, or compared using existing applications.

Therefore, an application named the Spherical First Order Polarization Tensor Calculator is developed to provide easy computation related to the first order PT for sphere. Hence, the objective of this study is to extend the invention of the first order PT calculator for spheres. The functions of the application consist of calculating the first order PT for sphere given that the conductivity and radius are known, computing the radius of sphere given that the conductivity and the PT of the sphere are known as well as visualizing the sphere in three-dimensional space based on its radius.

1. MATHEMATICAL FORMULATION OF THE FIRST ORDER POLARIZATION TENSOR OF A SPHERE

This section reviews the formula of the first order PT, where the analytical solution of the PT for ellipsoid has been described by Ammari and Kang (2007). The formula was then modified by Yunos and Khairuddin (2017) through the implementation of depolarization factors into the formula. The formula can be represented as a diagonal matrix, where the diagonal elements are real number.

Assume the object, is an ellipsoid, the first order PT denoted as is given by

(2)

where is the conductivity of the ellipsoid, while is the volume of the ellipsoid and for are the depolarization factors. These depolarization factors with semi axes , and are given by Milton (2002) and defined as in Eq. (3), Eq. (4) and Eq. (5).

, (3)

, (4)

, (5)

However, when is a sphere, such that it has the same axes that is , the depolarization factors, , , and will have equivalent value which is . As a result, the first order PT in Eq. (2) can be simplified to

, (6)

where

, (7)

such that , where the semi axis is denoted as the radius of the sphere, . Hence, the first order PT of sphere can be computed by using Eq. (6) and Eq. (7). Fig. 1 presents the procedure for calculating the first order PT of a sphere, , given fixed values of and .

Start

Fix radius, and conductivity,

Calculate volume,

Calculate the first order PT,

End

Fig. 1. Flowchart for computing the first order PT of a sphere, at a fixed radius and conductivity

Next, to determine the radius of the sphere, Eq. (7) need to be modified by finding the volume first based on the first order PT and then determining the radius. The derivations are given as follows,

, (8)

. (9)

In order to calculate the radius of the sphere in Eq. (9), the given first order PT is constrained to follow the matrix in Eq. (6), with the condition that or . Thus, based on these conditions, the conductivity can be set to specific values according to the findings by Khairuddin et al. (2017), where a positive definite PT should have a conductivity greater than 1, while a negative definite PT should have a conductivity less than 1 but still positive. Fig. 2 illustrates the flowchart of computing the radius of the sphere.

End

Calculate volume,

Calculate the radius,

Start

If

Fix so that

Fix so that

No

Yes

Given the first order PT,

,

where is non-zero

Fig. 2. Flowchart of computing the radius, from the given first order PT

Hence, the application will implement the algorithms as demonstrated in Fig. 1 and Fig. 2 for computing the spherical first order PT given that the conductivity and radius are known and also for computing the radius given that the PT and the conductivity are known.

1. METHODOLOGY

The concept of graphical user interface (GUI) has progressed significantly, providing a user-friendly platform for an easy way of engaging with the computational tools. MATLAB, a leading software for mathematical computation, assists this advancement through its App Designer, an integrated platform that allows users to design and code interactive applications. App Designer provides a set of pre-built user interface (UI) components which can be easily dragged and arranged into desired design. Additionally, it offers a code view where developers can program these components, enabling seamless integration of user inputs with underlying computational algorithms. For instance, the study from Yunos et al. (2024) developed a GUI for computing the spheroidal first order PT utilizing MATLAB App Designer. The toolkit accelerates complex numerical computations of spheroidal first order PT.

The initial step of developing the Spherical First Order Polarization Tensor Calculator is to design the interface of the desired layout of the application in GUI. The layout is designed suitable for the objectives of this development of application. Next, the codes involved for the computation of the spherical first order PT are programmed. The visualisation of the three-dimensional sphere is also given. Fig. 3 presents the process of developing the Spherical First Order Polarization Tensor Calculator application

* 1. Generalization of graphical user interface (GUI)

The concept of graphical user interface (GUI) has progressed significantly, providing a user-friendly platform for an easy way of engaging with the computational tools. MATLAB, a leading software for mathematical computation, assists this advancement through its App Designer, an integrated platform that allows users to design and code interactive applications. App Designer provides a set of pre-built user interface (UI) components which can be easily dragged and arranged into desired design. Additionally, it offers a code view where developers can program these components, enabling seamless integration of user inputs with underlying computational algorithms. For instance, the study from Yunos et al. (2024) developed a GUI for computing the spheroidal first order PT utilizing MATLAB App Designer. The toolkit accelerates complex numerical computations of spheroidal first order PT.

The initial step of developing the Spherical First Order Polarization Tensor Calculator is to design the interface of the desired layout of the application in GUI. The layout is designed suitable for the objectives of this development of application. Next, the codes involved for the computation of the spherical first order PT are programmed. The visualisation of the three-dimensional sphere is also given. Fig. 3 presents the process of developing the Spherical First Order Polarization Tensor Calculator application.

Based on the algorithm outlined in Fig. 1, the first order PT of a sphere, can be computed when its conductivity, and radius, are specified. Therefore, users need to input the values of and into the application. In order to compute the radius of the sphere, the required inputs are the first order PT, and the conductivity, of the sphere as shown in Fig. 2. Next, the input required to visualize the sphere in three-dimensional space is the radius, of the sphere.

Start

Design the desired layout in GUI

Programming the App Designer

Building the first version

Testing

Making development

Testing and finalise

Deploy GUI to Application

End

Fig. 3. The flowchart of the process of developing the Spherical First Order Polarization Tensor Calculator application

* 1. Features in graphical user interface (GUI)

This application is developed by using the App Designer in MATLAB. The App Designer can be assessed by typing “appdesigner” in the Command Window. Once launched, the App Designer window opens, presenting the options to start a new application. From the App Designer page, the Blank App template is selected to begin developing a new GUI application. A design workspace will appear with a blank canvas and Component Palette on the right-hand side (see Fig. 4).

![C:\Users\IZZATI\Pictures\Screenshots\blankapp.png](data:image/png;base64...)

Fig. 4. The design workspace with a blank canvas and Component Palette

Then, suitable components are selected for the design of the application. In this case, button, edit field (numeric), edit field (text), text area, panel and axes are selected. These components are dragged and dropped onto the canvas and arranged according to the desired application design. After the design is completed, the next step is to write the code that defines the functionality of the components. From the Code View tab, the automatically generated callbacks are used to implement the component functions. For example, the formulas of the volume of the sphere, , the radius of the sphere, and the first order PT of sphere, (shown in Fig. 5).

Once the coding is done, the GUI is tested by pressing the Run button located at the top of the App Designer toolbar. This action opens up the app in a standalone window. The components behavior is verified and any issues in the code are adjusted. Once the GUI is complete and functional, the app is saved as an .mlapp file. The application is then converted into a standalone application that can be installed and accessed by both MATLAB or non-MATLAB users.

![C:\Users\IZZATI\Pictures\Screenshots\codeview.png](data:image/png;base64...)

Fig. 5. The Code View in App Designer

1. RESULTS

In this section, the graphical user interface (GUI) for the Spherical First Order Polarization Tensor Calculator will be presented and demonstrated, design to assist three key calculations for sphere.

* 1. Interface view of spherical first order polarization tensor calculator

The GUI comprises of three main functions:

1. to calculate the first order PT for sphere
2. to calculate the radius of sphere
3. to visualize the sphere in three-dimensional space.

The framework code for the GUI is designed to implement graphical controls in specific positions within the interface. It contains various callbacks, which hold all the additional functions related to the GUI controls.

Fig. 6 displays the complete interface of the Spherical First Order Polarization Tensor Calculator developed in MATLAB App Designer. The interface view begins with a brief description about the application’s functionality. Then, each function is separated into distinct sections using the panel component for a neat and user-friendly design.

![C:\Users\IZZATI\Documents\FYP\GUIAPP.png](data:image/png;base64...)

Fig. 6. The interface view of the Spherical First Order Polarization Tensor Calculator

* 1. Calculate the first order PT for a sphere

The first feature of the application is to compute the first order PT for a sphere. Its core script executes the calculation following the procedure shown in Fig. 1. Fig. 7 shows the interface view for calculating the first order PT for sphere before the calculation is executed. The values of conductivity, k and radius, r must be entered in the designated fields. Once the inputs are inserted, the ‘Calculate’ button should be clicked to execute the programmed calculations. When the ‘Calculate’ button is clicked, the resulting values, which are the volume of the sphere, and the first order PT of the sphere will promptly display in the and box.

![C:\Users\IZZATI\Pictures\Screenshots\Screenshot 2025-01-11 221109.png](data:image/png;base64...)

Fig. 7. The interface view of calculating the first order PT for sphere before calculation is executed

In order to demonstrate the reliability of the application, the first order PT is calculated by considering the values of and . Fig. 8 shows the results obtained.

![C:\Users\IZZATI\Pictures\Screenshots\Screenshot 2025-01-11 221304.png](data:image/png;base64...)

Fig. 8. The interface view of calculating the first order PT for sphere after calculation is executed

Fig. 8 illustrates that for and , the corresponding values are calculated as and .

* 1. Calculate the radius of a sphere

The second function of the application is to calculate the radius of the sphere, . The primary code is executed based on the algorithm in Fig. 2. Fig. 9 shows the layout for calculating the radius of the sphere before calculation is executed. The values of the first order PT, specifically the diagonal element of denoted as and the conductivity, must be entered in the designated fields. After the required inputs have been provided, clicking the ‘Calculate’ button will initiate the built-in computation. Once clicked, the application will promptly display the output values which are the volume of the sphere, and the radius of the sphere in the and box.

![C:\Users\IZZATI\Pictures\Screenshots\Screenshot 2025-01-11 221201.png](data:image/png;base64...)

Fig. 9. The layout of calculating the radius of the sphere before calculation is executed

In order to demonstrate the reliability of the second function of this application, the radius is calculated by considering the values of and . This example is taken from the output in Fig. 8. Fig. 10 shows the results obtained.

![C:\Users\IZZATI\Pictures\Screenshots\Screenshot 2025-01-11 222113.png](data:image/png;base64...)

Fig. 10. The interface view of calculating the radius of the sphere after the calculation is executed

Fig. 10 illustrates that for and , the corresponding values are calculated as and . It is shown that the values of volume, and the radius, obtained are exactly the same as the input and output in Fig. 8, which suggests the errors for both and are zero. Therefore, it can be concluded that the developed application is valid.

* 1. Plot three-dimensional sphere

The last function of the application is visualizing the sphere in three dimensions. The sphere is visualized based on its radius. Fig. 11 shows the layout for visualizing the sphere in three-dimensional space before execution. The radius of the sphere, must be entered in the designated field. Once this input is provided, clicking the ‘Plot’ button will execute the programmed coding. The output comprising the three-dimensional sphere will promptly appear in the graph.

![C:\Users\IZZATI\Pictures\Screenshots\rsphere.png](data:image/png;base64...)

Fig. 11. The interface view for visualizing the sphere in three-dimensional space before execution

In order to demonstrate the reliability of the third function of this application, the radius of the sphere is considered as . Fig. 12 shows the result obtained.

![C:\Users\IZZATI\Pictures\Screenshots\3dsphere.png](data:image/png;base64...)

Fig. 12. The interface view of visualizing the sphere in three-dimensional space after execution

Fig. 12 illustrates the three-dimensional sphere for . The visualization confirms the ability of the application to accurately generate a three-dimensional sphere based on the provided radius, .

1. CONCLUSION

In conclusion, an application named the Spherical First Order Polarization Tensor Calculator is developed using GUI MATLAB based on the developed algorithm. This study provides a quicker way to compute the first order PT for sphere, determine its radius based on its first order PT and visualize the sphere in three-dimensional space with just a single click. In addition, the reliability of this application is also provided through the demonstrations. This user-friendly application simplifies complex calculations, making it an efficient tool for researchers in related fields. For future enhancement, a new feature can be added to the application that focuses on determining the conductivity of the sphere from its first order PT, making the application more comprehensive for analyzing the first order PT of a sphere.

1. Acknowledgements/Funding

The authors would like to express their gratitude to Universiti Teknologi MARA (UiTM) for providing the facilities and support that enabled this study.

1. Conflict of interest statement

The authors declare no conflict of interest.

1. Authors’ contributions

**Nur Izzati Abdul Rahman**:Analysis, software, writing - original draft, visualization; **Nurhazirah Mohamad Yunos**:Conceptualization, methodology, resources, writing – review and editing, supervision; **Taufiq Khairi Ahmad Khairuddin**: Conceptualization, methodology, resources.

1. References

Ammari, H., & Kang, H. (2007). Polarization and moment tensors: With applications to inverse problems and effective medium theory. *Applied Mathematical Sciences*. <https://doi.org/10.1007/978-0-387-71566-7>

Capdeboscq, Y., Karrman, A. B., & Nédélec, J. C. (2012). Numerical computation of approximate generalized polarization tensors. *Applicable Analysis*, 91(6), 1189–1203. <https://doi.org/10.1080/00036811.2011.641175>

Dekdouk, B., Marsh, L. A., Armitage, D. W., & Peyton, A. J. (2014). Estimating magnetic polarizability tensor of buried metallic targets for land mine clearance. In *Ultra-Wideband, Short-Pulse Electromagnetics* (pp. 425–432). [https://doi.org/10.1007/978-1-4614-9500-0\_38](https://doi.org/10.1007/978-1-4614-9500-0_38%20)

Khairuddin, T. K. A. (2016). *Characterization of Objects by Fitting the Polarization Tensor*. [http://eprints.ma.man.ac.uk/2514/](http://eprints.ma.man.ac.uk/2514/%20)

Khairuddin, T. K. A., & Lionheart, W. R. B. (2013). Some properties of the first order polarization tensor for 3-D domains. *Matematika*, *29*, 1–18. <https://research.manchester.ac.uk/en/publications/011ae983-8b19-46de-9c2f-4dec3879f064>

Khairuddin, T. K. A., Yunos, N. M., Aziz, Z. A., Ahmad, T., & Lionheart, W. R. B. (2017). Classification of materials for conducting spheroids based on the first order polarization tensor. *Journal of Physics: Conference Series*, *890*, 012035. [https://doi.org/10.1088/1742-6596/890/1/012035](https://doi.org/10.1088/1742-6596/890/1/012035%20)

Lu, M., Zhao, Q., Hu, P., Yin, W., & Peyton, A. J. (2015). Prediction of the asymptotical magnetic polarization tensors for cylindrical samples using the boundary element method. In *IEEE Sensors Applications Symposium*, *SAS* (pp. 1–4). IEEE. <https://doi.org/10.1109/SAS.2015.7133631>

Marsh, L. A., Ktistis, C., Järvi, A., Armitage, D. W., & Peyton, A. J. (2013). Three-dimensional object location and inversion of the magnetic polarizability tensor at a single frequency using a walk-through metal detector. *Measurement Science and Technology*, *24*(4), 045102. <https://doi.org/10.1088/0957-0233/24/4/045102>

Milton, G. W. (2002). The theory of composites. In *Cambridge University Press eBooks*. <https://doi.org/10.1017/CBO9780511613357>

Sukri, S. A., Hoe, Y. S., & Khairuddin, T. K. A. (2020). Quadratic element integration of approximated first order polarization tensor for sphere. *Malaysian Journal of Fundamental and Applied Sciences*, *16*(5), 560–565. <https://doi.org/10.11113/mjfas.v16n5.1916>

Sukri, S. A., Hoe, Y. S., & Khairuddin, T. K. A. (2021). Study of different order of gaussian quadrature using linear element interpolation in first order polarization tensor. *Malaysian Journal of Fundamental and Applied Sciences*, *17*(4), 343–353. <https://doi.org/10.11113/mjfas.v17n4.2051>

Sukri, S. A., Yeak, S. H., & Khairuddin, T. K. A. (2025). A comparative study of first order polarization in spherical structures: Exploring numerical approaches. *Warisan Journal of Mathematical Sciences and Engineering*, *1*(1), 48–59. <https://doi.org/10.37934/wjmse.1.1.4859>

Williams, K. C., Davidson, J. L., O’Toole, M. D., & Peyton, A. J. (2024). Discrimination of disposable vapes from batteries using the magnetic polarizability tensor. *IEEE Sensors Journal*, *24*(9), 15347–15354. [https://doi.org/10.1109/JSEN.2024.3381716](https://doi.org/10.1109/JSEN.2024.3381716%20)

Yunos, N. M., & Khairuddin, T. K. A. (2017). Adapting depolarization factors in the first order polarization tensor for spheroid. In *Final Year Project Proceeding*, *Department of Mathematical Sciences, UTM JB*, (pp. 383–390).

Yunos, N. M., Khairuddin, T. K. A., Ali, N. M. M., & Sukri, S. A. (2024). Spheroidal first order polarization tensor (SFOPT) toolkit. *Semarak International Journal of Fundamental and Applied Mathematics*, *1*(1), 24–37. <https://doi.org/10.37934/sijfam.1.1.2437>

Yunos, N. M., Khairuddin, T. K. A., Sukri, S. A., & Jamil, N. A. (2023). Spheroidal first order polarization tensor calculator (SFOPT). In *Johor Innovation Invention Competition and Symposium 2023*, *JIICaS 2023* (pp. 308–311).

|  |  |
| --- | --- |
| ![A picture containing text, clipart  Description automatically generated](data:image/png;base64...) | © 2026 by the authors. Submitted for possible open access publication under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). |

1. [↑](#footnote-ref-1)
2. ,3\* Corresponding author. *E-mail address*: nurhazirah12394@uitm.edu.my [↑](#footnote-ref-2)
