$$
y = x^Tx, \quad x \in \mathbb{R}^N
$$

$$
\frac{dy}{dx} =
$$

```
In [ ]:
```

$$ y = tr(AB) \quad A,B \in \mathbb{R}^{N \times N} $$

$$
\frac{dy}{dA} =
$$

```
In [ ]:
```

$$
y = x^TAc , \quad A\in \mathbb{R}^{N \times N}, x\in \mathbb{R}^{N}, c\in \mathbb{R}^{N}
$$

$$
\frac{dy}{dx} =
$$

$$
\frac{dy}{dA} =
$$

Hint for the latter (one of the ways): use *ex. 2* result and the fact
$$
tr(ABC) = tr (CAB)
$$

```
In [ ]:
```

You can use *slightly different techniques* if they suits you. Take a look at this derivation:

```
In [ ]:
```