scieee AI-readable full text Open interactive document viewer

Particle in a Box Revisited

Rodrigo Romero, Borja

Abstract

Some important concepts will be introduced on quantum chemistry such as symmetry labels of molecular states by dwelling on the “particle in a box” model. The mathematical models introduced allow understanding orthogonality relationships, expansion of an orbital in a complete set of basis functions, perturbation theory of nondegenerate energy levels, and transition probabilities with some attention to selection rules. This project is developed by means of Mathematica and COMSOL codes in an experimental laboratory

Full text

Jaume I University Chemistry Degree Bachelor’s Degree in Chemistry Higher School of Technology and Experimental Science Department of Physical Chemistry Castellón de la Plana, Spain Particle in a Box Revisited Author: Borja Rodrigo Romero Mentor: Fernando Rajadell July 2018 Index 1. Abstract ......................................................................................................................................... 1 2. Introduction .................................................................................................................................. 1 2.1. Particle in a Box without Potential ......................................................................................... 1 2.1.1. Particle in a One-Dimensional Box ........................................................................ 1 2.1.2. Particle in a Two-Dimensional Box ........................................................................ 4 2.2. Particle in a Box with Potential .............................................................................................. 7 2.2.1. Linear Variations Method ...................................................................................... 7 2.2.2. Nondegenerate Perturbation Theory ..................................................................... 8 2.3. Radiation/Matter Interaction ................................................................................................ 10 3. Results ......................................................................................................................................... 11 3.1. Approximation by Linear Variation Method ......................................................................... 13 3.1.1. Particle in a 1D System with 𝑉≠0 inside the Box ............................................. 13 3.1.2. Particle in a 2D System with 𝑉≠0 inside the Box ............................................. 15 3.2. Approximation by Perturbation Theory Time-Independent .................................................. 17 3.2.1. Particle in a 1D System with Perturbation inside the Box .................................... 17 3.2.2. Particle in a 2D System with Perturbation inside the Box .................................... 18 3.3. Selection Rules of Transitions ............................................................................................ 20 3.4. Comparative Results between approximated Methods and COMSOL ............................... 21 4. Discussion .................................................................................................................................. 23 5. Annexes ....................................................................................................................................... 25 6. References .................................................................................................................................. 77 Physical Chemistry 1 1. Abstract Some important concepts will be introduced on quantum chemistry such as symmetry labels of molecular states by dwelling on the “particle in a box” model. The mathematical models introduced allow understanding orthogonality relationships, expansion of an orbital in a complete set of basis functions, perturbation theory of nondegenerate energy levels, and transition probabilities with some attention to selection rules. This project is developed by means of Mathematica and COMSOL codes in an experimental laboratory. 2. Introduction In the present work we will evaluate the particle in a one-dimensional and two-dimensional box. For both situations we will study the addition of a potential whose effect, on the energy and wave functions, will analyzed by two approximation methods: 1) Linear variation method and 2) Perturbation theory timeindependent. The results obtained will be contrasted with an “exact” numerical method. This method will carried out through COMSOL code in finite elements. We will also make reference, succinctly, to the timeindependent perturbation theory meaning to introduce the transition dipole moment to pay attention to radiation-matter interaction evaluating the probabilities transitions between energy levels of particle in a box. With aim to simplify the algebra of formula used, we will use u.a.(atomic units). 2.1 Particle in a Box without Potential The stationary-state wave functions and energy levels of a one-particle are found by solving the timeindependent Schrödinger equation. The model of the particle in a box has a perfect extension to one, two or three dimensions. 2.1.1 Particle in a One-Dimensional Box This is a simple system model where a particle is subjected to a potential-energy function that is infinite everywhere along the 𝑥 axis except for a line segment of length 𝑎, where the potential energy is zero. In this case, the box is centered at the origin of coordinates. Figure 1. Particle in a one-dimensional box −𝒂/𝟐≤𝒙≤𝒂/𝟐. 𝑉 𝑥 𝑉 𝑥 =0 𝑥=𝑎/2 𝑥=−𝑎/2 𝑥=0 ∞ ∞ Physical Chemistry 2 It has assumed throughout this work that the particle has a mass, m , 1 u.a. The length of the box is from 𝑥=−𝑎/2 to 𝑥=𝑎/2, where 𝑎=1 u.a. As usual, an infinite potential is invoked on the two extremities of the box. Thus, the set of normalized eigenfunctions satisfying the basic axioms of quantum theory are 𝛹𝑛=√2 𝑎 𝑐𝑜𝑠𝑛 𝜋 𝑥 𝑎 𝑛=𝑜𝑑𝑑 1 𝛹𝑛=√2 𝑎 𝑠𝑖𝑛𝑛 𝜋 𝑥 𝑎 𝑛=𝑝𝑎𝑖𝑟 2 where 𝑛=1,2,3… This means that the hamiltonian inside the box is exactly known. Besides, the only contribution to the Hamiltonian will, at this stage, be assumed to be the kinetic energy and is therefore given by 𝐻 =−1 2𝑑2 𝑑𝑥2 3 being the Schrödinger equation for the system 𝐻 𝛹𝑛 𝑥 =𝐸𝑛𝛹𝑛 𝑥 4 The energy that represents the exact energy of the 𝑛th level will be 𝐸𝑛=𝐻 𝛹𝑛 𝛹𝑛 5 The eigenfunctions of the Schrödinger equation form a complete set of orthonormal basis functions. Therefore, <𝛹𝑖|𝛹𝑗> = 𝛿𝑖𝑗 {0 𝑖≠𝑗 1 𝑖=𝑗 6 The Figure 2 shows the graphic representation of functions with their respective values and exact energies of the states. We can observe that the number of nodes (place inside the box where the wave functions dies) is equal to (𝑛-1) where 𝑖 is the quantum number of the state under study. Figure 2. The shapes of the first three exact eigenfunctions of the particle in a onedimensional box model by Mathematica. 𝛹1 𝛹2 𝛹3 𝐸1=4.9348 1.41421cos 3.14159𝑥 𝐸2=19.7392 1.41421sin 6.28319𝑥 𝐸3=44.4132 1.41421cos 9.42478𝑥 Physical Chemistry 3 Thus, for example, the number of nodes in the function corresponding to the third state is equal to 2. The energies presents in the Figure 2 correspond, in a.u., to the exact equation of the energy for a particle in a one-dimensional box that is 𝐸𝑛=𝜋2𝑛2 2𝑎2 7 Now, we will verify the orthogonality by elemental integration techniques. However, orthogonality can be easily established by studying graphical plots of the functions 𝛹𝑖𝛹𝑗 The Figure 3 shows the shapes of the orthogonality basis functions The most relevant we can see in the Figure 3 is that the shapes of the functions, in the graphic plots, are symmetric and present the same areas dimension. The orthogonality of the functions is graphically demonstrated. These functions satisfy the <𝛹𝑖|𝛹𝑗> = 𝛿𝑖𝑗 condition showed above in Eq. (6). Therefore, is demonstrated, at the same time, that the overlap matrix is the unit matrix 𝕊=1. If each of these functions is normalized, then set of functions 𝛹𝑖 is said to form a complete orthonormal set. Any function that satisfies the boundary conditions of the system can be written as a linear combination of this orthonormal basis set. Figure 3. The shape of the functions 𝜳𝒊𝜳𝒋. 𝛹1𝛹2 𝛹1𝛹3 𝛹2𝛹3 Physical Chemistry 4 2.1.2 Particle in a Two-Dimensional Box For the two-dimensional system and following the Eqs. (3) and (4) the Schrödinger equation satisfies −ℏ2 2𝑚(𝜕2 𝜕𝑥2+𝜕2 𝜕𝑦2)𝛹𝑛 𝑥,𝑦 =𝐸𝑛𝛹𝑛 𝑥,𝑦 8 The position in the coordinates is −𝑎/2≤𝑥≤𝑎/2 and −𝑏/2≤𝑦≤𝑏/2 assumed a rectangular box in the case that 𝑎≠𝑏 and a square box if 𝑎=𝑏. Based on the Eq. (8) can be considered 𝐻 𝑥+𝐻 𝑦 (independent operators). Thus, applying the same methodology as in one-dimension, the functions used will be 𝛹𝑛𝑥 𝑥 =√2 𝑎cos(𝑛𝑥𝜋 𝑥 𝑎) 𝛹𝑛𝑥 𝑥 =√2 𝑎sin(𝑛𝑥𝜋 𝑥 𝑎) 𝛹𝑛𝑦 𝑦 =√2 𝑏cos(𝑛𝑦𝜋 𝑦 𝑏) 𝛹𝑛𝑦 𝑦 =√2 𝑏sin(𝑛𝑦𝜋 𝑦 𝑏) So, a complete set of functions used will be 𝛹𝑛𝑥𝑛𝑦 𝑥,𝑦 =𝛹𝑛𝑥 𝑥 𝛹𝑛𝑦 𝑦 11 and the energy 𝐸=𝐸𝑥+𝐸𝑦 12 The values of the exact energy, in a 2D box, are given by 𝐸𝑛𝑥𝑛𝑦=𝜋2 2 𝑛𝑥 2 𝑎2+𝑛𝑦 2 𝑏2 13 𝑛=𝑜𝑑𝑑 (9) 𝑛=𝑝𝑎𝑖𝑟 (10) 𝑏/2 −𝑏/2 𝑎/2 −𝑎/2 𝑥 𝑦 0,0 Figure 4. Particle in a two-dimensional box −𝒂/𝟐≤𝒙≤𝒂/𝟐 and −𝒃/𝟐≤𝒚≤𝒃/𝟐. Physical Chemistry 5 The Figure 5 represents the functions of three states, with the values of exact energies and symmetrical functions (remember Eq. (11)), for a particle in a rectangular box (𝑎≠𝑏), that is to say, both dimensions of the box must not be equal, to avoid degeneracies [3] as would happen in a square box. Figure 5. The shape of the three exact eigenfunctions for a particle in a rectangular box. As we can see in Figure 5, for a 2D box, the nodes are represented by lines where state 12 has one node and state 22 has two nodes. Contrasting Figure 5 and 6 we can see, as 𝑎≠𝑏, the states 𝑛𝑥=1,𝑛𝑦=2 and 𝑛𝑥=2,𝑛𝑦=1 are not degenerated. Thus, the absence of degeneracy is demonstrated for a rectangular box. 𝛹11 𝛹12 𝛹22 𝐸11=8.36175 𝐸12=18,64260 𝐸22=33.44700 1.82574cos 3.14159𝑥 cos 2,61799𝑦 1.82574cos 3.14159𝑥 sin 5.23599𝑦 1.82574sin 6.28319𝑥 sin 5.23599𝑦 𝛹21 𝐸21=23.1662 1.82574cos 2.61799𝑦 sin 6.28319𝑥 Figure 6. The shape of the function 𝜳𝟐𝟏 and exact energy of the corresponding state. Respect to 𝜳𝟏𝟐 it can only observe difference in the position of the function. Physical Chemistry 12 where the potential applied is an exponential potential, for example, 𝑐1ℯ−𝑐2𝑥. The shape of the potential in the graphic plot, shows, clearly, that the potential is a falling exponential curve −𝑥 and, for this reason, completely asymmetric. The shape of the symmetric potentials is: Figure 10. The shape of the symmetric potential 𝑽 𝒙 =𝑹−√𝑹𝟐−𝒙𝟐 in a one-dimensional box. Figure 11. The shape of the symmetric potential 𝑽 𝒙,𝒚 =𝑹−√𝑹𝟐−𝒙𝟐 ∀𝒚 in a two-dimensional box. From graphic plots represented above, we can already observe the clear difference in respect of the symmetry of both potentials. ∞ ∞ Physical Chemistry 13 3.1 Approximation by Linear Variation Method Now, asymmetric and symmetric potential is applied on a particle in a one and two-dimensional box, providing some changes in the system that will be treated to make the corresponding approximations. Firstly, the approximations will be realized by linear variation method chosen 12 basis functions. 3.1.1 Particle in a 1D System with 𝑽≠𝟎 inside the Box A big exponential and symmetric potential were applied. So, the variational functions obtained and the probability densities are showed by Figure 12 Figure 12. The shape of the first three 𝜳𝒊 and |𝜳𝒊|𝟐 with the asymmetric potential 𝑽 𝒙 =𝟒.𝟓𝓮−𝟓.𝟓𝒙 applied in a one-dimensional box. Figure 13. The shape of the first three 𝜳𝒊 and |𝜳𝒊|𝟐 with the symmetric potential 𝑽 𝒙 =𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 applied in a one-dimensional box. Through the Figure 12 and 13, we can observe different effects in the functions, depending on the potential applied. In Figure 12 it is shown the tendency of the functions is go places to the right as consequence of the asymmetric potential applied. However, in Figure 13 the functions do not experiment any distortion due to the symmetric potential distributes the charge density as equal form in both parts of the box. It should be noted that if the asymmetric potential is small, we would not have a clear vision of the distorted functions by plots, because the effect of the potential in the functions is minimal. Now, we will do a numerical comparative through the values of the approximation energies obtained after the potentials. Thus, the energies of the system are: Physical Chemistry 14 𝑺𝒕𝒂𝒕𝒆 𝒊 𝑬𝒊𝒔.𝒂𝒔𝒚𝒎. 𝑬𝒊𝒃.𝒂𝒔𝒚𝒎. 𝑬𝒊𝒔𝒚𝒎. 𝟏 5.08028 10.1026 4.96578 𝟐 19.9168 29.4086 19.80780 𝟑 44.5983 56.1776 44.49080 𝟒 79.1446 91.4510 79.03790 Table 2. The energy values for the first four states provided by 𝑬𝒊𝒔.𝒂𝒔𝒚𝒎. corresponding to a small asymmetric potential 𝑽 𝒙 =𝟎.𝟏𝟐𝓮−𝟑.𝟓𝒙, 𝑬𝒊𝒃.𝒂𝒔𝒚𝒎. corresponding to a big asymmetric potential 𝑽 𝒙 =𝟒.𝟓𝓮−𝟓.𝟓𝒙 and 𝑬𝒊𝒔𝒚𝒎. corresponding to a symmetric potential 𝑽 𝒙 =𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 . As well as the verification of the asymmetric or symmetric distribution of charge density 6 [4] in the momentum space of the variational functions is showed by Table 3 𝝆𝒊𝒔.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒃.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒔𝒚𝒎. 𝑺𝒕𝒂𝒕𝒆 𝒊 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 𝟏 0.495039 0.504961 0.265678 0.734322 0.5 0.5 𝟐 0.502920 0.497080 0.579364 0.420636 0.5 0.5 𝟑 0.499902 0.500098 0.490089 0.509911 0.5 0.5 𝟒 0.50082 0.499180 0.554533 0.445467 0.5 0.5 Table 3. Charge density distribution of variational functions in a 1D box with the same potentials applied above where the simplifications in superscript of 𝝆𝒊 have the same meaning as in Table 2. From the most part of the box subject to a potential charge to the least subject to this potential (since the shape of the potential in Figure 8 implies such a distribution). In this case, logically, the charge density is displaced to the right of the box, as we can observe by the graphic plot in Figure 12. This numeric difference in the Table 3, provides a clear idea about the distorted or displacement that the perturbed functions experience subject to a perturbation. Judging Table 3, if we compare the distributions of charge density in small asymmetric potential case we can observe that the effect in the functions is almost symmetric. However, in the big asymmetric potential case and observing state 1, for example, we have already a clear vision of the charge density distribution to the right which confirms the asymmetric distribution of the functions. For another part, in the symmetric potential case the values of the charge density confirm that the function do not experiment any distortion as we have already commented above. 6 Determining the probability distribution for the particle in state 𝛹𝑖. As just the probability density to find the particle located within the infinitesimal range: 𝜌𝑖=|𝛹𝑖|2. Physical Chemistry 15 3.1.2 Particle in a 2D System with 𝑽≠𝟎 inside the Box The functions obtained and the corresponding density probabilities for a symmetric and asymmetric potential applied in a rectangular box (𝑎=1, 𝑏=1.2), to avoid degeneracies, are: Other shapes to obtain a clear vision of distorted functions in a two-dimensional box as consequence of asymmetric potential applied are showed in Figure 15 Figure 14. The shapes of the first four 𝜳𝒊 and |𝜳𝒊|𝟐 with the asymmetric potential 𝑽 𝒙,𝒚 =𝟒.𝟏𝟓 ∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 applied in a twodimensional box. 𝛹1 𝛹2 𝛹3 𝛹4 |𝛹4|2 |𝛹3|2 |𝛹2|2 |𝛹1|2 𝛹1 𝛹11 ° 𝛹2 𝛹11 ° 𝛹3 𝛹11 ° 𝛹4 𝛹11 ° Figure 15. The contour plot of the first four 𝜳𝒊 with the asymmetric potential 𝑽 𝒙,𝒚 =𝟒.𝟏𝟓∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 applied in a twodimensional box. Physical Chemistry 16 Applying the symmetric potential, the shape of functions obtained were: Analyzing the variations in the energies of the different energetic levels of the two-dimensional system by Table 4 𝑺𝒕𝒂𝒕𝒆 𝒊 𝑬𝒊𝒔.𝒂𝒔𝒚𝒎. 𝑬𝒊𝒃.𝒂𝒔𝒚𝒎. 𝑬𝒊𝒔𝒚𝒎. 𝟏 8.50847 12.0119 8.39785 𝟐 18.8138 23.3302 18.6787 𝟑 23.3024 26.635 23.2469 𝟒 33.9543 37.827 33.5277 Table 4. The energy values for the first four states provided by 𝑬𝒊𝒔.𝒂𝒔𝒚𝒎. corresponding to a small asymmetric potential 𝑽 𝒙,𝒚 =𝟎.𝟏𝟓𝓮−𝟐.𝟓 𝒙+𝟎.𝟐 𝟐+𝒚 , 𝑬𝒊𝒃.𝒂𝒔𝒚𝒎. corresponding to a big asymmetric potential 𝑽 𝒙,𝒚 =𝟒.𝟏𝟓∗ 𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 and 𝑬𝒊𝒔𝒚𝒎. corresponding to a symmetric potential 𝑽 𝒙,𝒚 =𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 ∀𝒚 . And the values of charge density 𝝆𝒊𝒔.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒃.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒔𝒚𝒎. 𝑺𝒕𝒂𝒕𝒆 𝒊 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 𝟏 0.493674 0.506326 0.3499070 0.650093 0.5 0.5 𝟐 0.503698 0.496302 0.5760040 0.423996 0.5 0.5 𝟑 0.494124 0.505876 0.356809 0.643191 0.5 0.5 𝟒 0.503433 0.496567 0.573510 0.426569 0.5 0.5 Table 5. Charge density distribution of variational functions in a 2D box with the potentials used in Table 4. Figure 16. The shapes of the first four 𝜳𝒊 and |𝜳𝒊|𝟐 with the asymmetric potential 𝑽 𝒙,𝒚 =𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 ∀𝒚 . applied in a two-dimensional box. 𝛹1 𝛹11 ° 𝛹2 𝛹3 𝛹4 |𝛹4|2 𝛹11 ° |𝛹3|2 𝛹11 ° |𝛹2|2 𝛹11 ° |𝛹1|2 𝛹11 ° Physical Chemistry 17 Through the results showed in Table 4 we can observe the great effect that big asymmetric potential exercises on functions and energies providing energy values very little approximated to the “exact” energies . However, the effect of the small asymmetric potential is less than the big potential due to the energies are more similar to the “exact” energies of the system. But, realizing the comparative between three potentials, we can say that the most approximated is when symmetric potential is applied, the same for a particle in a one dimensional box.. Table 5 shows the verification of the asymmetric and symmetric charge density distribution of the functions depending of the potential applied. For a small asymmetric potential the probabilities are practically similar in both parts of the box and symmetric potential case the probabilities are equal in two parts. The most clear difference resides in big asymmetric potential where the distribution, numerically and visually, it is demonstrated the distortion to the right of the box as consequence of the asymmetry. 3.2 Approximation by Perturbation Theory Time-Independent In this section, the particle will be evaluated by perturbation theory time-independent, where the perturbation 𝐻 ′ is chosen to be the same potentials applied for a particle studied by linear variation method. We will have a certain number of perturbed states for which other certain number of states will be used to calculate the perturbation. In this case, the number of perturbed states will be 4 and the number of states to calculate this perturbation will be 20. 3.2.1 Particle in a 1D System with Perturbation inside the Box Now, chosen a big and small asymmetric and symmetric potential as perturbation 𝐻 ′ the energies and probabilities density are: 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 4.9348 0.146030 -0.0005511590 5.08028 𝟐 19.7392 0.177568 0.0000624632 19.9168 𝟑 44.4132 0.184966 0.0000934723 44.5983 𝟒 78.9568 0.187702 0.0000707229 79.1446 Table 6. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝒊th Level of the Particle in a 1D Box with 𝑽 𝒙 = 𝟎.𝟏𝟐𝓮−𝟑.𝟓𝒙. 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 4.9348 7.21657 -3.15484 8.99654 𝟐 19.7392 10.6971 -0.421295 30.0150 𝟑 44.4132 11.7462 0.389597 56.5490 𝟒 78.9568 12.1637 0.446217 91.5667 Table 7. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝒊th Level of the Particle in a 1D Box with 𝑽 𝒙 = 𝟒.𝟓𝓮−𝟓.𝟓𝒙. Physical Chemistry 18 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 4.9348 0.0361471 0.0000517133 4.9709 𝟐 19.7392 0.0807531 -0.0000558346 19.8199 𝟑 44.4132 0.0925738 2.31083×10-7 44.5058 𝟒 78.9568 0.0976427 9.74261×10-6 79.0545 Table 8. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝒊th Level of the Particle in a 1D Box with 𝑽 𝒙 = 𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 . 𝝆𝒊𝒔.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒃.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒔𝒚𝒎. 𝑺𝒕𝒂𝒕𝒆 𝒊 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 𝟏 0.495025 0.504975 0.216085 0.783915 0.5 0.5 𝟐 0.502941 0.497059 0.675636 0.324364 0.5 0.5 𝟑 0.499906 0.500094 0.527671 0.472329 0.5 0.5 𝟒 0.500823 0.499177 0.579755 0.420245 0.5 0.5 Table 9. Charge density distribution of perturbed functions in a 1D box with the same potentials used in Table 2. Comparing Table 2 and 6 we can observe the same energy approximation for a small asymmetric potential. But, when the potential is big, though was the same potential applied in linear variation method, the energy are not the same. This fact demonstrate that the linear variation method and perturbation theory do not exercise the same effect in the system for a big asymmetric potentials. In the symmetric potential case, as it is not very big, the perturbed method provides good results (synchronized with linear variation method). By Table 9, perturbed functions, as consequence of the potential applied, undergo a displacement to the right for an asymmetric case. The reason that the perturbed functions are distorted to the right is due to the fact that exponential potential decreases with 𝑥. 3.2.2 Particle in a 2D System with Perturbation inside the Box Applying nondegenerate perturbation theory time-independent for a rectangular box, the energies and probabilities density were: 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 8.36175 0.147369 -0.000645558 8.50847 𝟐 18.6426 0.171208 0.0000223647 18.8138 𝟑 23.1662 0.176495 0.0005036600 23.3024 𝟒 33.447 0.136717 -0.0004683430 33.6059 Table 10. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝒊th Level of the Particle in a 2D Box with 𝑽 𝒙,𝒚 = 𝟎.𝟏𝟓∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 . Physical Chemistry 19 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 8.36175 4.77210 -0.4941390 11.9448 𝟐 18.6426 4.73674 0.0171189 23.3964 𝟑 23.1662 4.88302 0.3855240 26.5902 𝟒 33.447 3.78249 -0.358490 37.8642 Table 11. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝑖th Level of the Particle in a 2D Box with 𝑽 𝒙,𝒚 = 𝟒.𝟏𝟓∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 . 𝒊 𝑬𝒊° 𝑬𝒊 𝟏 𝑬𝒊 𝟐 𝑬𝒕𝒐𝒕 𝟏 8.36175 0.0361471 -0.0000503996 8.39784 𝟐 18.6426 0.0361471 -0.0000503996 18.6787 𝟑 23.1662 0.0361471 -0.0000503996 23.2469 𝟒 33.447 0.0807532 0 33.5277 Table 12. Values of the Exact Energy of the Unperturbed Box 𝑬𝒏 °, the First Order Perturbation Energy 𝑬𝒏 𝟏 , the Second Order Perturbation Energy 𝑬𝒏 𝟐 and the Total Energy 𝑬𝒕𝒐𝒕 for the 𝒊th Level of the Particle in a 2D Box with 𝑽 𝒙,𝒚 = 𝟎.𝟓−√𝟎.𝟐𝟓−𝒙𝟐 ∀𝒚 . 𝝆𝒊𝒔.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒃.𝒂𝒔𝒚𝒎. 𝝆𝒊𝒔𝒚𝒎. 𝑺𝒕𝒂𝒕𝒆 𝒊 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 −𝒂/𝟐≤𝒙≤𝟎 𝟎<𝒙≤𝒂/𝟐 𝟏 0.493650 0.506350 0.334844 0.665156 0.5 0.5 𝟐 0.503734 0.496266 0.599735 0.400265 0.5 0.5 𝟑 0.502624 0.497376 0.568570 0.431430 0.5 0.5 𝟒 0.494112 0.505888 0.348837 0.651163 0.5 0.5 Table 13. Verification of the asymmetric and symmetric distributions of the charge density of the first four perturbed states. The superscripts in 𝝆 refer to the same potentials 𝑽 𝒙,𝒚 used in Table 4. As we can observe, in Tables 10, 11 and 12, the order is aleatory due to the perturbed functions are dispersed in the all range. Using perturbed theory and by Table 12 we have demonstrated that the corrections are, practically, equals between them and, the energies approximated are the same for both method applied except in big asymmetric potential case where the first order correction of energy is very high which thing does not make any sense. Physical Chemistry 20 3.3 Selection Rules of Transitions Now, we are going to study the possible transitions of a system from one quantum state to another. So, for the “exact” model of particle in a one-dimensional box the values of the integral are: 𝒏→𝒎 |𝝁𝒏𝒎| 𝝁𝒏𝒎 𝟐/ 𝝁𝟏,𝟐 𝟐 1→2 0.377256 1 1→3 0 0 1→4 0.0301805 0.0064 1→5 0 0 1→6 0.00831503 0.000485798 Table 14. The values of the |𝟐𝝅 𝟑< 𝜳𝒏 ∗𝒙𝜳𝒎>| and (𝟐𝝅 𝟑< 𝜳𝒏 ∗𝒙𝜳𝒎> 𝟐/ 𝟐𝝅 𝟑< 𝜳𝟏 ∗𝒙𝜳𝟐> 𝟐 when the transition go from 𝒏=𝟏 to 𝒎=𝟐,𝟑,𝟒,𝟓,𝟔. As we can observe the integral is zero if the function 𝛹𝑛∗ 𝑥 𝑥𝛹𝑚 𝑥 is odd and nonzero if the function is even. When 𝛹𝑛 𝑥 and 𝛹𝑚 𝑥 have the same parity, dipole radiation cannot occur, in which case, we are in a forbidden transition. This provides the selection rules where the parity of the state must be change so there is electric dipole radiation. Table 14 shows that the biggest 𝜇𝑛𝑚 value is for transition 1→2 due to from fundamental state to excited state we have the greatest energy transition. This is the reason to do a division of the transition dipole moment between of 1→2 transition’s dipole moment. So, the selection rules establish the useful results: 𝛹𝑜𝑑𝑑→𝛹𝑒𝑣𝑒𝑛 𝛹𝑜𝑑𝑑→𝛹𝑜𝑑𝑑 𝑎𝑙𝑙𝑜𝑤𝑒𝑑 𝑓𝑜𝑟𝑏𝑖𝑑𝑑𝑒𝑛 Physical Chemistry 21 3.4 Comparative Results between approximated Methods and COMSOL With the intention to compare the approximate results obtained by linear variation method and perturbation theory, we require a pattern with which compare. For this reason we have used a numerical integration method based on the finite elements theory. This method is implemented in the COMSOL, and as we can use an excellent discretization, due to the small dimensionality of the problem, it makes these calculations provide quasi-exact results. Thus, the energies obtained in a 1D and 2D box, applying big and small asymmetric potential, through COMSOL were: 𝑺𝒕𝒂𝒕𝒆 𝑬 𝑳𝒊𝒏𝒆𝒂𝒓 𝑽𝒂𝒓𝒊𝒂𝒕𝒊𝒐𝒏 𝑴. 𝑬 𝑷𝒆𝒓𝒕𝒖𝒓𝒃𝒂𝒕𝒊𝒐𝒏 𝑻. 𝑪𝑶𝑴𝑺𝑶𝑳 1 10.1026 8.99654 10.102552 2 29.4086 30.015 29.408563 3 56.1776 56.549 56.177549 4 91.451 91.5667 91.450811 5 136.085 136.112 136.084322 Table 15. The energy values of particle in a One-dimensional box by Linear Variation Method, Nondegenerate Perturbation Theory and COMSOL using 𝑽 𝒙 =𝟒.𝟓𝓮−𝟓.𝟓𝒙. 𝑺𝒕𝒂𝒕𝒆 𝑬 𝑳𝒊𝒏𝒆𝒂𝒓 𝑽𝒂𝒓𝒊𝒂𝒕𝒊𝒐𝒏 𝑴. 𝑬 𝑷𝒆𝒓𝒕𝒖𝒓𝒃𝒂𝒕𝒊𝒐𝒏 𝑻. 𝑪𝑶𝑴𝑺𝑶𝑳 1 5.08028 5.08028 5.080283 2 19.9168 19.9168 19.916837 3 44.5983 44.5983 44.598279 4 79.1446 79.1446 79.144608 5 123.559 123.559 123.559103 Table 16. The energy values of particle in a One-dimensional box by Linear Variation Method, Nondegenerate Perturbation Theory and COMSOL using 𝑽 𝒙 =𝟎.𝟏𝟐𝓮−𝟑.𝟓𝒙. 𝑺𝒕𝒂𝒕𝒆 𝑬 𝑳𝒊𝒏𝒆𝒂𝒓 𝑽𝒂𝒓𝒊𝒂𝒕𝒊𝒐𝒏 𝑴. 𝑬 𝑷𝒆𝒓𝒕𝒖𝒓𝒃𝒂𝒕𝒊𝒐𝒏 𝑻. 𝑪𝑶𝑴𝑺𝑶𝑳 1 12.0119 11.9448 12.011446 2 23.3302 23.3964 23.323711 3 26.6350 26.5902 26.632627 4 37.8270 37.8642 37.815004 5 41.0245 41.0459 40.7339 Table 17. The energy values of particle in a Two-dimensional box by Linear Variation Method, Nondegenerate Perturbation Theory and COMSOL using 𝑽 𝒙,𝒚 =𝟒.𝟏𝟓∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 . 𝑺𝒕𝒂𝒕𝒆 𝑬 𝑳𝒊𝒏𝒆𝒂𝒓 𝑽𝒂𝒓𝒊𝒂𝒕𝒊𝒐𝒏 𝑴. 𝑬 𝑷𝒆𝒓𝒕𝒖𝒓𝒃𝒂𝒕𝒊𝒐𝒏 𝑻. 𝑪𝑶𝑴𝑺𝑶𝑳 1 8.50847 8.50847 8.508472 2 18.8138 18.8138 18.813789 3 23.3024 23.3024 23.3024 4 33.6059 33.6059 33.605828 5 35.9543 35.9543 35.953937 Table 18. The energy values of particle in a Two-dimensional box by Linear Variation Method, Nondegenerate Perturbation Theory and COMSOL using 𝑽 𝒙,𝒚 =𝟎.𝟏𝟓∗𝓮−𝟐.𝟓∗ 𝒙+𝟎.𝟐 𝟐+𝒚 . H*1. Nondegenerate Perturbation Theory Time-Independent applied for a Big Asymmetric Potential applied in a One-dimensional Box *L ClearAll@"Global`*"D; H*The length of the box *L a=1.0; H*'ne' is nth-state perturbed and 'lon' is the number of states used to calculate the perturbation of each state *L ne =5; lon =20; H*Big potential *L pot@x_D:=4.5*[email protected]*xaD; H*Small potential *L H*pot@x_D:=0.12*[email protected]*xaD;*L H*Introducing the general equations of the system *L fx@nx_D:= If@OddQ@nxDTrue, Sqrt@2aD*Cos@nx*Pi*xaD, Sqrt@2aD*Sin@nx*Pi*xaDD; ham@fi_D:= -H12.0L*D@fi, 8x, 2<D; E0@ii_D:=ham@fx@iiDDfx@iiDChop; E1@ii_D:=NIntegrate@fx@iiD*pot@xD*fx@iiD,8x, -a2, a2<DChop; H*The first and second energies corrections *L For@i=1, i £ne, i++, E2@iD=0; For@j=1, j £lon, j++, If@E0@jD¹E0@iD, as =NIntegrate@fx@jD*pot@xD*fx@iD,8x, -a2, a2<DChop; as1 =E0@iD-E0@jD; E2@iD=E2@iD+as^2as1D; D; Print@"nx=", i, " E0@", i, "D=", E0@iD, " E1@", i, "D=", E1@iD, " E2@", i, "D=", E2@iD, " E@", i, "D=", E1@iD+E2@iD+E0@iDD D; nx=1 E0@1D=4.9348 E1@1D=7.21657 E2@1D=-3.15484 E@1D=8.99654 nx=2 E0@2D=19.7392 E1@2D=10.6971 E2@2D=-0.421295 E@2D=30.015 nx=3 E0@3D=44.4132 E1@3D=11.7462 E2@3D=0.389597 E@3D=56.549 nx=4 E0@4D=78.9568 E1@4D=12.1637 E2@4D=0.446217 E@4D=91.5667 nx=5 E0@5D=123.37 E1@5D=12.3672 E2@5D=0.37511 E@5D=136.112 H*Obtaining the First-Order Wave-Functions Corrections *L hij@i_, j_D:=NIntegrate@fx@iD*pot@xD*fx@jD,8x, -a2, a2<DChop; c@kk_, ii_D:=hij@kk, iiDHE0@kkD-E0@iiDL; For@k=1, k £ne, k++, li =k-1; ls =k+1; fk =fx@kD+Sum@c@k, iD*fx@iD,8i, 1, li<D+Sum@c@k, iD*fx@iD,8i, ls, lon<D; cte =1NIntegrate@fk^2, 8x, -a2, 0, a2<D; fun@kD=Sqrt@cteD*fk Expand Chop; D; H*Verifying non orthogonality of the perturbed functions *L solap =Table@0, 8i, ne<,8j, ne<D; For@i=1, i £ne, i++, For@j=i, j £ne, j++, solap@@i, jDD=NIntegrate@fun@iD*fun@jD,8x, -a2, 0, a2<, AccuracyGoal ®8DChop; If@j¹i, solap@@j, iDD=solap@@i, jDDD; D; D; MatrixForm@solapD 1. -0.0254106 0.116032 -0.0465786 -0.0180353 -0.0254106 1. 0.0479004 0.0581195 0.0262925 0.116032 0.0479004 1. -0.036533 0.0358754 -0.0465786 0.0581195 -0.036533 1. 0.025688 -0.0180353 0.0262925 0.0358754 0.025688 1. H*Veryfing the asymmetric distributions of charge density in the perturbed functions *L For@i=1, i £ne, i++, Print@"For fun@", i, "D:Ρbetween -a2 and 0 =", NIntegrate@fun@iD^2, 8x, -a2, 0<D, " and Ρbetween 0 and a2=", NIntegrate@fun@iD^2, 8x, 0, a2<DD; D; H*The shape of the probabilities of the perturbed functions *L Plot@8pot@xD*0.05, fun@1D^2, fun@2D^2, fun@3D^2<,8x, -a2, a2<, PlotRange ®All, PlotStyle ®[email protected], Axes ®8True, False<, AxesStyle ®Directive@Black, [email protected], GridLines ®88-a2, a2<,8<<, GridLinesStyle ®Directive@Black, [email protected], Filling -> Axis, AspectRatio ®0.5D 2 Box1D_Perturb_Pot_NO_Symmetric.nb For fun@1D:Ρbetween -a2 and 0 =0.216085 and Ρbetween 0 and a2=0.783915 For fun@2D:Ρbetween -a2 and 0 =0.675636 and Ρbetween 0 and a2=0.324364 For fun@3D:Ρbetween -a2 and 0 =0.527671 and Ρbetween 0 and a2=0.472329 For fun@4D:Ρbetween -a2 and 0 =0.579755 and Ρbetween 0 and a2=0.420245 For fun@5D:Ρbetween -a2 and 0 =0.515578 and Ρbetween 0 and a2=0.484422 -0.4 -0.2 0.0 0.2 0.4 H*The shape of the perturbed functions with big asymmetric potential applied *L Plot@8pot@xD*0.05, fun@1D, fun@2D, fun@3D<,8x, -a2, a2<, PlotRange ®All, PlotStyle ®[email protected], Axes ®8True, False<, AxesStyle ®Directive@Black, [email protected], GridLines ®88-a2, a2<,8<<, GridLinesStyle ®Directive@Black, [email protected], Filling -> Axis, AspectRatio ®0.5D -0.4 -0.2 0.0 0.2 0.4 Box1D_Perturb_Pot_NO_Symmetric.nb 3 H*2. Linear Variation Method for an Asymmetric Potential applied in a One-dimensional Box *L ClearAll@"Global`*"D; H*Introducing dates and wavefunction equation *L nf =12; a=1.0; fi@nx_D:= If@OddQ@nxDTrue, Sqrt@2aD*Cos@nx*Pi*xaD, Sqrt@2aD*Sin@nx*Pi*xaDD; H*Defining the big asymmetric potential applied *L pot@x_D:=4.5*[email protected]*xaD; H*Defining the big asymmetric potential applied *L H*pot@x_D:=0.12*[email protected]*xaD;*L H*Defining the hamiltonian operator *L ham@fi_D:=H-12.0L*D@fi, 8x, 2<D+pot@xD*fi; H*Building the matrix *L mat =Table@0, 8i, nf<,8j, nf<D; For@i=1, i £nf, i++, For@j=i, j £nf, j++, mat@@i, jDD=NIntegrate@fi@iD*ham@fi@jDD,8x, -a2, 0, a2<, AccuracyGoal ®10D; If@j¹i, mat@@j, iDD=mat@@i, jDDD; D; D; H*Matrix diagonalization *L ene =Eigenvalues@matDChop; vec =Eigenvectors@matDChop; H*Ordering of energies an vectors from lowest to highest *L For@i=1, i £nf -1, i++, For@j=i+1, j £nf, j++, ei =ene@@iDD; ej =ene@@jDD; veci =vec@@iDD; vecj =vec@@jDD; If@ej <ei, ene@@iDD=ej; ene@@jDD=ei; vec@@iDD=vecj; vec@@jDD=veciD; D; D; H*Graphic plot of big asymmetric potential applied *L Plot@pot@xD,8x, -a2, a2<, PlotRange ®All, PlotStyle ®[email protected], Axes ®8True, False<, AxesStyle ®Directive@Black, [email protected], GridLines ®88-a2, a2<,8<<, GridLinesStyle ®Directive@Black, [email protected], Filling -> Axis, AspectRatio ®0.5D ene -0.4 -0.2 0.0 0.2 0.4 810.1026, 29.4086, 56.1776, 91.451, 136.085, 190.43, 254.598, 328.622, 412.516, 506.293, 610.021, 724.353< H*Building a column vector with basis functions *L fbasis =Table@0, 8i, nf<D; For@i=1, i £nf, i++, fbasis@@iDD=fi@iD; D; H*Obtaining the variational functions *LfunV =vec.fbasis; Plot@8funV@@1DD, funV@@2DD, funV@@3DD, pot@xD*0.05<,8x, -a2, a2<, PlotRange ®All, PlotStyle ®[email protected], Axes ®8True, False<, AxesStyle ®Directive@Black, [email protected], GridLines ®88-a2, a2<,8<<, GridLinesStyle ®Directive@Black, [email protected], Filling -> Axis, AspectRatio ®0.5D -0.4 -0.2 0.0 0.2 0.4 H*Verify the asymmetric distribution of charge density of the variational functions as consequence big asymmetric potential applied *L For@i=1, i £6, i++, Print@"For funV@", i, "D:Ρbetween -a2 and 0 =", NIntegrate@funV@@iDD^2, 8x, -a2, 0<D, " and Ρbetween 0 and a2=", NIntegrate@funV@@iDD^2, 8x, 0, a2<DD; D; [email protected]*pot@xD, funV@@1DD^2, funV@@2DD^2, funV@@3DD^2<,8x, -a2, a2<, PlotRange ®All, PlotStyle ®[email protected], Axes ®8True, False<, AxesStyle ®Directive@Black, [email protected], GridLines ®88-a2, a2<,8<<, GridLinesStyle ®Directive@Black, [email protected], Filling -> Axis, AspectRatio ®0.5D 2 Box1D_Variational_Pot_NO_Symmetric.nb For funV@1D:Ρbetween -a2 and 0 =0.265678 and Ρbetween 0 and a2=0.734322 For funV@2D:Ρbetween -a2 and 0 =0.579364 and Ρbetween 0 and a2=0.420636 For funV@3D:Ρbetween -a2 and 0 =0.490089 and Ρbetween 0 and a2=0.509911 For funV@4D:Ρbetween -a2 and 0 =0.554533 and Ρbetween 0 and a2=0.445467 For funV@5D:Ρbetween -a2 and 0 =0.500901 and Ρbetween 0 and a2=0.499099 For funV@6D:Ρbetween -a2 and 0 =0.529013 and Ρbetween 0 and a2=0.470987 -0.4 -0.2 0.0 0.2 0.4 H*Verify the orthonormality of variational functions *L overlap =Table@0, 8i, nf<,8j, nf<D; For@i=1, i £nf, i++, For@j=i, j £nf, j++, overlap@@i, jDD= NIntegrate@funV@@iDD*funV@@jDD,8x, -a2, 0, a2<, AccuracyGoal ®8DChop; If@j¹i, overlap@@j, i DD=overlap@@i, jDDD; D; D; Print@"Overlap Mat variational fun =", MatrixForm@overlapDChopD Overlap Mat variational fun = 1. 0.´10-10 0.´10-10 0. ´10-90.´10-90. ´10-90.´10-9 0.´10-10 1. 0.´10-90. ´10-90.´10-90. ´10-90.´10-9 0.´10-10 0.´10-91. 0. ´10-90.´10-90. ´10-90.´10-9 0.´10-90.´10-90. ´10-91. 0.´10-90. ´10-90.´10-10 0.´10-90.´10-90. ´10-90.´10-91. 0. ´10-10 0.´10-9 0.´10-90.´10-90. ´10-90.´10-90. ´10-10 1. 0.´10-9 0.´10-90.´10-90. ´10-90.´10-10 0. ´10-90.´10-91. 0.´10-90.´10-90. ´10-10 0.´10-90. ´10-90.´10-90.´10-9 0.´10-90.´10-10 0. ´10-90.´10-90. ´10-90.´10-90.´10-9 0.´10-10 0.´10-90. ´10-90.´10-90. ´10-90.´10-90.´10-9 0.´10-90.´10-90. ´10-90.´10-90. ´10-90.´10-90.´10-9 0.´10-90.´10-90. ´10-90.´10-90. ´10-90.´10-90.´10-9 Box1D_Variational_Pot_NO_Symmetric.nb 3 H*3. Nondegenerate Perturbation Theory Time- Independent for a Symmetric Potential applied in a One-dimensional Box *L ClearAll@"Global`*"D; H*The length of the box *L a=1.0; H*ne is nth-state perturbed and lon is the number of states used to calculate the perturbation of each state *L ne =5; lon =20; H*Vmin is the minimum value V0 so R will be greater than a2*L V0 =Input@"Introduce un valor de V0 menor que a2"D; H*For a symmetric pontential regarding the centre of the box *L R=HV0^2 +a^24LH2*V0L; pot@x_D:=R-Sqrt@R^2 -x^2D; H*Introducing the general equations of the system *L fx@nx_D:= If@OddQ@nxDTrue, Sqrt@2aD*Cos@nx*Pi*xaD, Sqrt@2aD*Sin@nx*Pi*xaDD; ham@fi_D:= -H12.0L*D@fi, 8x, 2<D; E0@ii_D:=ham@fx@iiDDfx@iiDChop; E1@ii_D:=NIntegrate@fx@iiD*pot@xD*fx@iiD,8x, -a2, a2<DChop; H*The first and second correction energies *L For@i=1, i £ne, i++, E2@iD=0; For@j=1, j £lon, j++, If@E0@jD¹E0@iD, as =NIntegrate@fx@jD*pot@xD*fx@iD,8x, -a2, a2<DChop; as1 =E0@iD-E0@jD; E2@iD=E2@iD+as^2as1D; D; Print@"nx=", i, " E0@", i, "D=", E0@iD, " E1@", i, "D=", E1@iD, " E2@", i, "D=", E2@iD, " E@", i, "D=", E1@iD+E2@iD+E0@iDD D; nx=1 E0@1D=4.9348 E1@1D=0.0361471 E2@1D=-0.0000517133 E@1D=4.9709 nx=2 E0@2D=19.7392 E1@2D=0.0807531 E2@2D=-0.0000558346 E@2D=19.8199 nx=3 E0@3D=44.4132 E1@3D=0.0925738 E2@3D=2.31083 ´10-7E@3D=44.5058 nx=4 E0@4D=78.9568 E1@4D=0.0976427 E2@4D=9.74261 ´10-6E@4D=79.0545 nx=5 E0@5D=123.37 E1@5D=0.10035 E2@5D=0.0000103024 E@5D=123.47 H*5. Selection Rules of Transitions *L ClearAll@"Global`*"D; H*To hartree from joules *L a=1; fi@nx_D:= If@OddQ@nxDTrue, Sqrt@2aD*Cos@nx*Pi*xaD, Sqrt@2aD*Sin@nx*Pi*xaDD; n=10; ini =1; filas =Sum@n-i, 8i, 1, ini<D; tabla =Table@0, 8i, filas<,8j, 4<D; m12 =H2*Pi3L*Integrate@fi@1D*x*fi@2D,8x, -a2, a2<DNChop; contador =1; For@i=1, i £ini, i++, For@f=i+1, f £n, f += 1, as1 =H2*Pi3L*Integrate@fi@iD*x*fi@fD,8x, -a2, a2<DNChop; as2 =Has1m12L^2; tabla@@contador, 1DD=i; tabla@@contador, 2DD=f; tabla@@contador, 3DD=Abs@as1D; tabla@@contador, 4DD=as2; contador =contador +1; D; D; H*Integral values of <fi@iD*x*fi@fD>*L TableFormAtabla, TableHeadings ®9None, 9"Est i", "Est f", "ÈΜnmÈ", "Μnm2Μ1,22"==, TableAlignments ®LeftE Est i Est f ÈΜnmÈΜnm2Μ1,22 1 2 0.377256 1. 1 3 0 0. 1 4 0.0301805 0.0064 1 5 0 0. 1 6 0.00831503 0.000485798 1 7 0 0. 1 8 0.00342182 0.0000822702 1 9 0 0. 1 10 0.00173212 0.0000210807 6. COMSOL images H∗9. Nondegenerate Perturbation Theory Time−Independent applied for an Asymmetric Potential applied in a Two−dimensional Box ∗L ClearAll@"Global`∗"D; H∗Rectangular box a ≠b, to avoid accidental degeneracies ∗L a=1.0; b=1.2; nn =3; H∗Creating a list of complete set of functions ∗L lista =8<; funlis =8<; H∗Introducing functions of the system ∗L For@i=1, i ≤nn, i++, For@j=1, j ≤nn, j++, lista =AppendTo@lista, 8i, j<D; D; D; lon =Length@listaD; fx@nx_D:= If@OddQ@nxDTrue, Sqrt@2êaD∗Cos@nx ∗Pi ∗xêaD, Sqrt@2êaD∗Sin@nx ∗Pi ∗xêaDD; fy@ny_D:=If@OddQ@nyDTrue, Sqrt@2êbD∗Cos@ny ∗Pi ∗yêbD, Sqrt@2êbD∗Sin@ny ∗Pi ∗yêbDD; fxy@nx_, ny_D:=fx@nxD∗fy@nyD; For@i=1, i ≤lon, i++, funlis =AppendTo@funlis, fxy@lista@@i, 1DD, lista@@i, 2DDDD; D; H∗Introducing the big asymmetric potential ∗L pot@x_, y_D:=4.15 ∗Exp@−2.5 ∗HHx+0.2L^2 +yLD; H∗Introducing the small asymmetric potential ∗L H∗pot@x_,y_D:=0.15∗Exp@−2.5∗HHx+0.2L^2+yLD;∗L H∗The first and second energies corrections ∗L ham@fxy_D:= −H1ê2.0L∗HD@fxy, 8x, 2<D +D@fxy, 8y, 2<DL; E0@ii_D:=ham@funlis@@iiDDD ê funlis@@iiDD êê FullSimplify êê Chop; E1@ii_D:=NIntegrate@Expand@funlis@@iiDD ∗pot@x, yD∗funlis@@iiDDD, 8x, −aê2, 0, a ê2<,8y, −bê2, 0, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D êê Chop; tabla =Table@0, 8i, lon<,8j, 6<D; For@i=1, i ≤lon, i++, E2@iD=0; For@j=1, j ≤lon, j++, If@E0@jD≠E0@iD, as = NIntegrate@funlis@@jDD ∗pot@x, yD∗funlis@@iDD,8x, −aê2, 0, a ê2<,8y, −bê2, 0, bê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D êê Chop; as1 =E0@iD−E0@jD; E2 @ i D =E2 @ i D +as^2 ê as1 D ; D ; Etot @ i D =E1 @ i D +E2 @ i D +E0 @ i D ; tabla @ @ i D D = 8 lista @ @ i, 1 D D , lista @ @ i, 2 D D , E0 @ i D , E1 @ i D , E2 @ i D , Etot @ i D < ; D; H∗Output with the first and second energy corrections and the total energy values of the perturbed functions ∗ L TableForm A tabla, TableAlignments →Left, TableHeadings → 9 None, 9 "nx", "ny", "E H 0 L ", "E H 1 L ", "E H 2 L ", "E" = = E nx ny E H 0 L E H 1 L E H 2 L E 1 1 8.36175 4.07721 −0.494139 11.9448 1 2 18.6426 4.73674 0.0171189 23.3964 1 3 35.7773 4.88302 0.385524 41.0459 2 1 23.1662 3.78249 −0.35849 26.5902 2 2 33.447 4.39435 0.0228341 37.8642 2 3 50.5817 4.53005 0.321246 55.433 3 1 47.8402 3.74184 −0.360941 51.2211 3 2 58.121 4.34712 0.128402 62.5965 3 3 75.2557 4.48136 0.338445 80.0755 H ∗Graphic plot of the pontentual applied ∗ L Plot3D @ pot @ x, y D , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , PlotRange →All, PlotStyle →Thickness @ 0.0045 D , Axes → 8 False, False < , AxesStyle →Directive @ Black, Thickness @ 0.003 D D , Filling −> Axis, AspectRatio →0.5 D 2 Box_Rectang_Perturb_Pot_NO_Symmetric.nb H ∗Obtaining the First−Order Wave− Functions Corrections to first perturbation order ∗L nf =5; hij@i_, j_D:=NIntegrate@funlis@@iDD ∗pot@x, yD∗funlis@@jDD,8x, −aê2, 0, a ê2<, 8y, −bê2, 0, b ê2<, AccuracyGoal →4, PrecisionGoal →6D êê Chop; EE0@ii_D:=ham@funlis@@iiDDD ê funlis@@iiDD êê FullSimplify êê Chop; c@kk_, ii_D:=hij@kk, iiDêHEE0@kkD−EE0@iiDL; For@k=1, k ≤nf, k++, li =k−1; ls =k+1; fk =funlis@@kDD +Sum@c@k, iD∗funlis@@iDD,8i, 1, li<D + Sum@c@k, iD∗funlis@@iDD,8i, ls, lon<D; cte = 1êNIntegrate@fk^2, 8x, −aê2, −aê4, 0, a ê4, a ê2<,8y, −bê2, −bê4, 0, b ê4, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D; fun@kD=Sqrt@cteD∗fk êê Expand êê Chop; D; H∗Verifying non orthogonality of the perturbed functions ∗L solap =Table@0, 8i, nf<,8j, nf<D; For@i=1, i ≤nf, i++, For@j=i, j ≤nf, j++, solap@@i, jDD =NIntegrate@fun@iD∗fun@jD, 8x, −aê2, −aê4, 0, a ê4, a ê2<,8y, −bê2, −bê4, 0, b ê4, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →5D êê Chop; If@j≠i, solap@@j, iDD =solap@@i, jDDD; D ; D ; MatrixForm @ solap D 1. −0.00722722 0.0305527 0.0125515 −0.0142267 −0.00722722 1. −0.00348536 0.0193342 −0.0126473 0.0305527 −0.00348536 1. −0.0187825 −0.014968 0.0125515 0.0193342 −0.0187825 1. −0.00926794 −0.0142267 −0.0126473 −0.014968 −0.00926794 1. For @ i=1, i ≤lon −1, i++, For @ j=i+1, j ≤lon, j++, eni =Etot@iD; enj =Etot@jD; funi =fun@iD; funj =fun@jD; lisi =lista@@iDD; lisj =lista@@jDD; If@enj <eni, Etot@iD=enj; Etot@jD=eni; fun@iD=funj; fun@jD=funi; lista@@iDD =lisj; lista@@jDD =lisiD; D; D; For@i=1, i ≤nf, i++, Print@"nx=", lista@@i, 1DD, " ny=", lista@@i, 2DD, " E @ ", lista @ @ i, 1 D D , ",", lista @ @ i, 2 D D , " D =", Etot @ i D D ; D ; nx=1 ny=1 E @ 1,1 D =11.9448 nx = 1 ny = 2 E @ 1,2 D = 23.3964 nx = 2 ny = 1 E @ 2,1 D = 26.5902 nx=2 ny=2 E @ 2,2 D =37.8642 nx=1 ny=3 E @ 1,3 D =41.0459 Box_Rectang_Perturb_Pot_NO_Symmetric.nb 3 H ∗Veryfying the asymmetric distributions of charge density in the perturbed functions ∗L For@i=1, i ≤nf, i++, Print@"Para fun ", lista@@iDD, ": ρentre −aê2y0=", NIntegrate @ fun @ i D ^2, 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, 0 < D , " y ρentre 0 y a ê 2=", NIntegrate @ fun @ i D ^2, 8 x, −a ê 2, a ê 2 < , 8 y, 0, b ê 2 < D D ; D ; Para fun 8 1, 1 < :ρentre −a ê 2 y 0 =0.334844 y ρentre 0 y a ê 2=0.665156 Para fun 8 1, 2 < : ρ entre − a ê 2 y 0 = 0.599735 y ρ entre 0 y a ê 2 = 0.400265 Para fun 8 2, 1 < : ρ entre − a ê 2 y 0 = 0.348837 y ρ entre 0 y a ê 2 = 0.651163 Para fun 8 2, 2 < :ρentre −a ê 2 y 0 =0.585107 y ρentre 0 y a ê 2=0.414893 Para fun 8 1, 3 < : ρ entre − a ê 2 y 0 = 0.56857 y ρ entre 0 y a ê 2 = 0.43143 H ∗Shape of the probabilities ∗ L Plot3D @ 8 1.0 ∗pot @ x, y D , Etot @ 1 D +fun @ 1 D , Etot @ 2 D +fun @ 2 D , Etot @ 3 D +fun @ 3 D , Etot @ 4 D +fun @ 4 D < , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , PlotRange →All, BoxRatios → 8 1, 1, 4 < , Axes →False D H ∗Other shapes of perturbed functions ∗ L For@i=1, i ≤nf, i++, Print @ "Energia estado ", i, " =", Etot @ i D D Print @ ContourPlot @ fun @ i D , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , AspectRatio →b ê a, BoundaryStyle →Directive @ Red, Thick D D D D ; 4 Box_Rectang_Perturb_Pot_NO_Symmetric.nb Energia estado 1 =11.9448 Energia estado 2 = 23.3964 Energia estado 3 = 26.5902 Box_Rectang_Perturb_Pot_NO_Symmetric.nb 5 In[1]:= H ∗13. Nondegenerate Perturbation Theory Time −Independent applied for a Symmetric Potential applied in a Two−dimensional Box ∗L ClearAll@"Global`∗"D; H∗Rectangular box a ≠b, to avoid accidental degeneracies ∗L a=1.0; b=1.2; nn =3; H∗Creating a list of complete set of functions ∗L lista =8<; funlis =8<; H∗Introducing functions of the system ∗L For@i=1, i ≤nn, i++, For@j=1, j ≤nn, j++, lista =AppendTo@lista, 8i, j<D; D; D; lon =Length@listaD; fx@nx_D:= If@OddQ@nxDTrue, Sqrt@2êaD∗Cos@nx ∗Pi ∗xêaD, Sqrt@2êaD∗Sin@nx ∗Pi ∗xêaDD; fy@ny_D:=If@OddQ@nyDTrue, Sqrt@2êbD∗Cos@ny ∗Pi ∗yêbD, Sqrt@2êbD∗Sin@ny ∗Pi ∗yêbDD; fxy@nx_, ny_D:=fx@nxD∗fy@nyD; For@i=1, i ≤lon, i++, funlis =AppendTo@funlis, fxy@lista@@i, 1DD, lista@@i, 2DDDD; D; H∗Vmin is the minimum value V0 so R will be greater than aê2∗L V0 =Input@"Introduce un valor de V0 menor que aê2"D; H∗For a symmetric pontential regarding the centre of the box ∗L R=HV0^2 +a^2ê4L ê H2∗V0L; pot@x_, y_D:=R−Sqrt@R^2−x^2D; H∗Introducing the general equations of the system ∗L ham@fxy_D:= −H1ê2.0L∗HD@fxy, 8x, 2<D +D@fxy, 8y, 2<DL; E0@ii_D:=ham@funlis@@iiDDD ê funlis@@iiDD êê FullSimplify êê Chop; E1@ii_D:=NIntegrate@Expand@funlis@@iiDD ∗pot@x, yD∗funlis@@iiDDD, 8x, −aê2, 0, a ê2<,8y, −bê2, 0, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D êê Chop; tabla =Table@0, 8i, lon<,8j, 6<D; H∗The first and second correction energies ∗L For@i=1, i ≤lon, i++, E2@iD=0; For@j=1, j ≤lon, j++, If@E0@jD≠E0@iD, as = NIntegrate@funlis@@jDD ∗pot@x, yD∗funlis@@iDD,8x, −aê2, 0, a ê2<,8y, −bê2, 0, b ê 2 < , Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6 D êê Chop; as1 =E0 @ i D −E0 @ j D ; E2 @ i D =E2 @ i D +as^2 ê as1 D ; D D ; Etot@iD=E1@iD+E2@iD+E0@iD; tabla@@iDD =8lista@@i, 1DD, lista@@i, 2DD, E0@iD, E1@iD, Chop@E2@iDD, Etot@iD<; D ; TableForm A tabla, TableAlignments →Left, TableHeadings → 9 None, 9 "nx", "ny", "E H 0 L ", "E H 1 L ", "E H 2 L ", "E" = = E Out[21]//TableForm= nx ny E H 0 L E H 1 L E H 2 L E 1 1 8.36175 0.0361471 −0.0000503998 8.39784 1 2 18.6426 0.0361471 −0.0000503999 18.6787 1 3 35.7773 0.0361471 −0.0000503998 35.8134 2 1 23.1662 0.0807532 0 23.2469 2 2 33.447 0.0807533 0 33.5277 2 3 50.5817 0.0807532 0 50.6625 3 1 47.8402 0.092574 0.0000503998 47.9328 3 2 58.121 0.0925738 0.0000503999 58.2136 3 3 75.2557 0.0925738 0.0000503998 75.3484 In[22]:= Print @ " " D ; Print @ "Perturbación =", pot @ x, y D D ; H ∗Shape of the symmetric potential ∗ L Plot3D @ pot @ x, y D , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , PlotRange →All D Perturbación =0.5 −0.25 −x 2 Out[24]= 2 Box_Rectang_Perturb_Pot_Symmetric.nb In[25]:= H ∗Obtaining the First−Order Wave− Functions Corrections to first perturbation order ∗ L nf =lon; hij@i_, j_D:=NIntegrate@funlis@@iDD ∗pot@x, yD∗funlis@@jDD,8x, −aê2, 0, a ê2<, 8y, −bê2, 0, b ê2<, AccuracyGoal →4, PrecisionGoal →6D êê Chop; EE0@ii_D:=ham@funlis@@iiDDD ê funlis@@iiDD êê FullSimplify êê Chop; c@kk_, ii_D:=hij@kk, iiDêHEE0@kkD−EE0@iiDL; For@k=1, k ≤nf, k++, li =k−1; ls =k+1; fk =funlis@@kDD +Sum@c@k, iD∗funlis@@iDD,8i, 1, li<D + Sum@c@k, iD∗funlis@@iDD,8i, ls, lon<D; cte = 1êNIntegrate@fk^2, 8x, −aê2, −aê4, 0, a ê4, a ê2<,8y, −bê2, −bê4, 0, b ê4, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D; fun@kD=Sqrt@cteD∗fk êê Expand êê Chop; D; H∗Verifying orthogonality of the perturbed functions ∗L solap =Table@0, 8i, lon<,8j, lon<D; For@i=1, i ≤nf, i++, For@j=i, j ≤nf, j++, solap@@i, jDD =NIntegrate@fun@iD∗fun@jD, 8x, −aê2, −aê4, 0, a ê4, a ê2<,8y, −bê2, −bê4, 0, b ê4, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →5D êê Chop; If@j≠i, solap@@j, iDD =solap@@i, jDDD; D ; D ; MatrixForm @ solap D Out[32]//MatrixForm= 1.00000000 01.0000000 0 0 1. 0 0 0 0 0 0 0 0 0 1. 0 0 0 0 0 0 0 0 0 1. 0 0 0 0 0 0 0 0 0 1. 0 0 0 0 0 0 0 0 0 1. 0 0 0 0 0 0 0 0 0 1. 0 000000001. In[33]:= For @ i = 1, i ≤ lon − 1, i ++ , For @ j=i+1, j ≤lon, j++, eni =Etot@iD; enj =Etot@jD; funi =fun@iD; funj =fun@jD; lisi =lista@@iDD; lisj =lista@@jDD; If@enj <eni, Etot@iD=enj; Etot@jD=eni; fun@iD=funj; fun@jD=funi; lista@@iDD =lisj; lista@@jDD =lisiD; D; D; For@i=1, i ≤nf, i++, Print @ "nx=", lista @ @ i, 1 D D , " ny=", lista @ @ i, 2 D D , " E @ ", lista @ @ i, 1 D D , ",", lista @ @ i, 2 D D , " D =", Etot @ i D D ; D ; Box_Rectang_Perturb_Pot_Symmetric.nb 3 nx=1 ny=1 E @ 1,1 D =8.39784 nx=1 ny=2 E @ 1,2 D =18.6787 nx = 2 ny = 1 E @ 2,1 D = 23.2469 nx = 2 ny = 2 E @ 2,2 D = 33.5277 nx=1 ny=3 E @ 1,3 D =35.8134 nx=3 ny=1 E @ 3,1 D =47.9328 nx = 2 ny = 3 E @ 2,3 D = 50.6625 nx = 3 ny = 2 E @ 3,2 D = 58.2136 nx=3 ny=3 E @ 3,3 D =75.3484 In[35]:= H ∗The shape of the probabilities of the perturbed functions and the symmetric distribution of charge density ∗L For@i=1, i ≤nf, i++, Print@"Para fun ", lista@@iDD, ": ρentre −aê2y0=", NIntegrate @ fun @ i D ^2, 8 x, −a ê 2, 0 < , 8 y, −b ê 2, b ê 2 < D , " y ρentre 0 y a ê 2=", NIntegrate @ fun @ i D ^2, 8 x, 0, a ê 2 < , 8 y, −b ê 2, b ê 2 < D D ; D ; Para fun 8 1, 1 < : ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para fun 8 1, 2 < : ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para fun 8 2, 1 < :ρentre −a ê 2 y 0 =0.5 y ρentre 0 y a ê 2=0.5 Para fun 8 2, 2 < :ρentre −a ê 2 y 0 =0.5 y ρentre 0 y a ê 2=0.5 Para fun 8 1, 3 < : ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para fun 8 3, 1 < : ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para fun 8 2, 3 < :ρentre −a ê 2 y 0 =0.5 y ρentre 0 y a ê 2=0.5 Para fun 8 3, 2 < :ρentre −a ê 2 y 0 =0.5 y ρentre 0 y a ê 2=0.5 Para fun 8 3, 3 < : ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 4 Box_Rectang_Perturb_Pot_Symmetric.nb In[36]:= Plot3D @ 8 3∗fun @ 1 D , Etot @ 2 D +fun @ 2 D , Etot @ 3 D +fun @ 3 D , Etot @ 4 D +fun @ 4 D < , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , BoxRatios → 8 2, 2, 5 < , Axes →False D Out[36]= In[37]:= H ∗Other shapes of perturbed functions ∗ L For @ i=1, i ≤nf, i++, Print@"Energia estado ", i, " =", Etot@iDD Print @ ContourPlot @ fun @ i D , 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, b ê 2 < , AspectRatio →b ê a, BoundaryStyle →Directive @ Red, Thick D D D D ; Box_Rectang_Perturb_Pot_Symmetric.nb 5 Energia estado 1 =8.39784 Energia estado 2 = 18.6787 Energia estado 3 =23.2469 6 Box_Rectang_Perturb_Pot_Symmetric.nb H ∗14. Linear Variation Method for a Symmetric Potential applied in a Two−dimensional Box ∗L ClearAll@"Global`∗"D; H∗Dimensions of rectangular box and number of functions ∗L a=1.0; b=1.2; nn =3; H∗Creating a list of complete set of functions ∗L lisfun =8<; H∗Vmin is the minimum value of V0 so R will be greater than aê2∗L V0 =Input@"Introduce un valor de V0 menor que aê2"D; H∗For a symmetric potential regarding to the centre of the box ∗L R=HV0^2 +a^2ê4L ê H2∗V0L; pot@x_, y_D:=R−Sqrt@R^2−x^2D; H∗Introducing the corresponding wave functions for a two −dimensional box and the hamiltonian operator ∗L fx@nx_D:=If@OddQ@nxDTrue, Sqrt@2êaD∗Cos@nx ∗Pi ∗xêaD, Sqrt@2êaD∗Sin@nx ∗Pi ∗xêaDD; fy@ny_D:=If@OddQ@nyDTrue, Sqrt@2êbD∗Cos@ny ∗Pi ∗yêbD, Sqrt@2êbD∗Sin@ny ∗Pi ∗yêbDD; fxy@nx_, ny_D:=fx@nxD∗fy@nyD; ham@fun_D:= −H1ê2.0L∗HD@fun, 8x, 2<D +D@fun, 8y, 2<DL +pot@x, yD∗fun; For@i=1, i ≤nn, i++, For@j=1, j ≤nn, j++, lisfun =AppendTo@lisfun, fxy@i, jDD; D; D; H∗Hamiltonian matrix ∗L lon =Length@lisfunD; mat =Table@0, 8i, lon<,8j, lon<D; For@i=1, i ≤lon, i++, For@j=i, j ≤lon, j++, mat@@i, jDD =NIntegrate@lisfun@@iDD ∗ham@lisfun@@jDDD,8x, −aê2, a ê2<,8y, −bê2, bê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →6D êê Chop; mat@@j, iDD =mat@@i, jDD; D; D; H∗Matrix diagonalization ∗L ene =Eigenvalues@matD; vec =Eigenvectors @ mat D ; For @ i=1, i ≤lon −1, i++, For @ j=i+1, j ≤lon, j++, enei =ene @ @ i D D ; enej =ene @ @ j D D ; veci =vec@@iDD; vecj =vec@@jDD; If@enej <enei, ene@@iDD =enej; ene@@jDD =enei; vec@@iDD =vecj; vec@@jDD =veci; D; D; D; Print@" "D; Print@"Potencial fondo caja"D; H∗Graphic plot of symmetric potential applied ∗L Plot3D@pot@x, yD,8x, −aê2, a ê2<,8y, −bê2, b ê2<, PlotRange →AllD Print@" "D; fun =vec.lisfun; For @ i=1, i ≤lon, i++, Print @ "Energia estado ", i, " =", ene @ @ i D D D D ; Potencial fondo caja Energia estado 1 =8.39674 Energia estado 2 = 18.6776 Energia estado 3 = 23.2442 Energia estado 4 =33.5251 Energia estado 5 = 35.8123 Energia estado 6 = 47.9294 Energia estado 7 = 50.6598 Energia estado 8 =58.2102 Energia estado 9 =75.345 2 Box_Rectang_Variational_Pot_Symmetric.nb H ∗Verify the orthogonality of the first nf functions ∗ L nf =5; solap =Table@0, 8i, nf<,8j, nf<D; For@i=1, i ≤nf, i++, For@j=i, j ≤nf, j++, solap@@i, jDD =NIntegrate@fun@@iDD ∗fun@@jDD, 8x, −aê2, −aê4, 0, a ê4, a ê2<,8y, −bê2, −bê4, 0, b ê4, b ê2<, Method →"LocalAdaptive", AccuracyGoal →6, PrecisionGoal →5D êê Chop; If@j≠i, solap@@j, iDD =solap@@i, jDDD; D ; D ; MatrixForm @ solap D 1. 0 0 0 0 0 1. 0 0 0 0 0 1. 0 0 0 0 0 1. 0 0 0 0 0 1. H ∗Verify the symmetric distribution of charge density of the variational functions as consequence symmetric potential applied ∗L For@i=1, i ≤nf, i++, Print@"Para funcion ", i, ": ρentre −aê2y0=", NIntegrate @ fun @ @ i D D ^2, 8 x, −a ê 2, a ê 2 < , 8 y, −b ê 2, 0 < D , " y ρentre 0 y a ê 2=", NIntegrate @ fun @ @ i D D ^2, 8 x, −a ê 2, a ê 2 < , 8 y, 0, b ê 2 < D D ; D ; Para funcion 1: ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para funcion 2: ρentre −a ê 2 y 0 =0.5 y ρentre 0 y a ê 2=0.5 Para funcion 3: ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para funcion 4: ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Para funcion 5: ρ entre − a ê 2 y 0 = 0.5 y ρ entre 0 y a ê 2 = 0.5 Box_Rectang_Variational_Pot_Symmetric.nb 3