```python
import numpy as np
from sympy import *
init_printing(use_latex='mathjax')
```


```python
x, y = symbols('x y')
g = x*x + 3*(y+1)**2 - 1
```


```python
diff(g, x)
```




$$2 x$$




```python
diff(g, y)
```




$$6 y + 6$$




```python
f = - exp(x - y ** 2 + x * y)
```


```python
diff(f, x)
```




$$- \left(y + 1\right) e^{x y + x - y^{2}}$$




```python
diff(f, y)
```




$$- \left(x - 2 y\right) e^{x y + x - y^{2}}$$




```python
g = cosh(y) + x - 2
```


```python
diff(g, x)
```




$$1$$




```python
diff(g, y)
```




$$\sinh{\left (y \right )}$$




```python

```

583d760ffc1ad01e2e261284b9699211b3d26851
ipynb
Jupyter Notebook
Certification 2/Week5.2 - quick diff.ipynb
The-Brains/MathForMachineLearning
5cbd9006f166059efaa2f312b741e64ce584aa1f
MIT
2018-04-16T02:53:59.000Z
2021-05-16T06:51:57.000Z
Certification 2/Week5.2 - quick diff.ipynb
The-Brains/MathForMachineLearning
5cbd9006f166059efaa2f312b741e64ce584aa1f
MIT
Certification 2/Week5.2 - quick diff.ipynb
The-Brains/MathForMachineLearning
5cbd9006f166059efaa2f312b741e64ce584aa1f
MIT
2019-05-20T02:06:55.000Z
2020-05-18T06:21:41.000Z
Qwen/Qwen-72B
1. YES
2. YES