```python
from sympy import symbols, integrate, diff
from scipy.integrate import quad

x = symbols('x')

f = 1/x**2
f
```




$\displaystyle \frac{1}{x^{2}}$




```python
F = integrate(f, x)
F
```




$\displaystyle - \frac{1}{x}$




```python
F = lambda x: -1/x
F(2)-F(1)
```




    0.5




```python
f = lambda x: 1/x**2
quad(f, 1, 2)
```




    (0.49999999999999994, 5.551115123125782e-15)




```python
f = 2**x
display(f)
display(diff(f, x))
display(integrate(f, x))
```


$\displaystyle 2^{x}$



$\displaystyle 2^{x} \log{\left(2 \right)}$



$\displaystyle \frac{2^{x}}{\log{\left(2 \right)}}$


172a2667a98515a1d88939ccd357ae393b0b02c6
ipynb
Jupyter Notebook
Integration.ipynb
mfkiwl/GMPE340
3602b8ba859a2c7db2cab96862472597dc1ac793
MIT
2021-09-07T09:36:36.000Z
2021-09-07T09:36:36.000Z
Integration.ipynb
mfkiwl/GMPE340
3602b8ba859a2c7db2cab96862472597dc1ac793
MIT
Integration.ipynb
mfkiwl/GMPE340
3602b8ba859a2c7db2cab96862472597dc1ac793
MIT
2021-09-20T18:48:20.000Z
2021-09-20T18:48:20.000Z
Qwen/Qwen-72B
1. YES
2. YES