# Stark effect calculations
Demonstrate the calculation of the Stark effect for the lowest few states of hydrogen, and the resulting UV/VIS spectrum


```python
from sympy import * # use sympy math library
init_printing()
```


```python
n, l, m = symbols('n, l, m', integer=True)
```


```python
n_max = 3 # highest value of n to use in the calculation
```


```python
from sympy.physics.hydrogen import *
```


```python
r, th, ph = symbols('r, th, ph')
```


```python
n, l, m = symbols('n,l,m')
```


```python
integrate(Psi_nlm(3,2,0,r,ph,th)*r*cos(th)*Psi_nlm(3,1,0,r,ph,th)*r**2*sin(th),(ph,0,2*pi),(th,0,pi),(r,0,oo))
```


```python
integrate(Psi_nlm(3,1,0,r,ph,th)*r*cos(th)*Psi_nlm(3,0,0,r,ph,th)*r**2*sin(th),(ph,0,2*pi),(th,0,pi),(r,0,oo))
```

Using the rule $Y_{\ell,m}^* = -Y_{\ell,-m} $:


```python
integrate(-Psi_nlm(3,2,-1,r,ph,th)*r*cos(th)*Psi_nlm(3,1,1,r,ph,th)*r**2*sin(th),(ph,0,2*pi),(th,0,pi),(r,0,oo))
```


```python
integrate(-Psi_nlm(3,2,1,r,ph,th)*r*cos(th)*Psi_nlm(3,1,-1,r,ph,th)*r**2*sin(th),(ph,0,2*pi),(th,0,pi),(r,0,oo))
```


```python

```

b6fc15fa3426f7ac70feb2487007e390236f22cc
ipynb
Jupyter Notebook
StarkEffect.ipynb
corcoted/Phys475
8fc0ee6bccda19e5afff14f0e8fda6aef7ee6d66
MIT
2021-03-10T04:30:46.000Z
2021-07-12T09:20:43.000Z
StarkEffect.ipynb
corcoted/Phys475
8fc0ee6bccda19e5afff14f0e8fda6aef7ee6d66
MIT
StarkEffect.ipynb
corcoted/Phys475
8fc0ee6bccda19e5afff14f0e8fda6aef7ee6d66
MIT
Qwen/Qwen-72B
1. YES
2. YES