```python
from sympy import *
import math
```


```python
x,y,z = symbols("x,y,z,")
```


```python
fxyz = x**2*y*z
fxyz
```




$\displaystyle x^{2} y z$




```python
f_x =diff(fxyz,x)
f_x
```




$\displaystyle 2 x y z$




```python
f_y = diff(fxyz,y)
f_y
```




$\displaystyle x^{2} z$




```python
f_z = diff(fxyz,z)
f_z
```




$\displaystyle x^{2} y$




```python
jacobian = Matrix([[f_x,f_y,f_z]])
jacobian
```




$\displaystyle \left[\begin{matrix}2 x y z & x^{2} z & x^{2} y\end{matrix}\right]$




```python
jx_x = diff(f_x,x)
jx_x
```




$\displaystyle 2 y z$




```python
jx_y = diff(f_x,y)
jx_y
```




$\displaystyle 2 x z$




```python
jx_z = diff(f_x,z)
jx_z
```




$\displaystyle 2 x y$




```python
jy_x = diff(f_y,x)
jy_x
```




$\displaystyle 2 x z$




```python
jy_y = diff(f_y,y)
jy_y
```




$\displaystyle 0$




```python
jy_z = diff(f_y,z)
jy_z
```




$\displaystyle x^{2}$




```python
jz_x = diff(f_z,x)
jz_x
```




$\displaystyle 2 x y$




```python
jz_y = diff(f_z,y)
jz_y
```




$\displaystyle x^{2}$




```python
jz_z = diff(f_z,z)
jz_z
```




$\displaystyle 0$




```python
hessian = Matrix([[jx_x,jx_y,jx_z],
                 [jy_x,jy_y,jy_z],
                 [jz_x,jz_y,jz_z]])
hessian
```




$\displaystyle \left[\begin{matrix}2 y z & 2 x z & 2 x y\\2 x z & 0 & x^{2}\\2 x y & x^{2} & 0\end{matrix}\right]$




```python
fxy = x**3*y+x+2*y
fxy
```




$\displaystyle x^{3} y + x + 2 y$




```python
fxy_x = diff(fxy,x)
fxy_x
```




$\displaystyle 3 x^{2} y + 1$




```python
fxy_y = diff(fxy,y)
fxy_y
```




$\displaystyle x^{3} + 2$




```python
jacobian = Matrix([[fxy_x,fxy_y]])
jacobian
```




$\displaystyle \left[\begin{matrix}3 x^{2} y + 1 & x^{3} + 2\end{matrix}\right]$




```python
jx_x = diff(fxy_x,x)
jx_x
```




$\displaystyle 6 x y$




```python
jx_y = diff(fxy_x,y)
jx_y
```




$\displaystyle 3 x^{2}$




```python
jy_x = diff(fxy_y,x)
jy_x
```




$\displaystyle 3 x^{2}$




```python
jy_y = diff(fxy_y,y)
jy_y
```




$\displaystyle 0$




```python
hessian = Matrix([[jx_x, jx_y],
                 [jy_x,jy_y]])
hessian
```




$\displaystyle \left[\begin{matrix}6 x y & 3 x^{2}\\3 x^{2} & 0\end{matrix}\right]$




```python

```

5a13b0066ae0db46031766c900f8416ec5790d97
ipynb
Jupyter Notebook
Groups/Group_ID_13/HessCCAimplementation.ipynb
aryapushpa/DataScience
89ba01c18d3ed36942ffdf3e1f3c68fd08b05324
MIT
2020-12-13T07:53:22.000Z
2020-12-20T18:49:27.000Z
Groups/Group_ID_13/HessCCAimplementation.ipynb
Gulnaz-Tabassum/DataScience
1fd771f873a9bc0800458fd7c05e228bb6c4e8a0
MIT
Groups/Group_ID_13/HessCCAimplementation.ipynb
Gulnaz-Tabassum/DataScience
1fd771f873a9bc0800458fd7c05e228bb6c4e8a0
MIT
2020-12-12T11:23:28.000Z
2021-10-04T13:09:38.000Z
Qwen/Qwen-72B
1. YES
2. YES