# adjugate function

Adjugate of a square matrix: the transpose of its cofactors.

## How to write it

### adjugate(matrix)

**matrix**

A square matrix. Takes a matrix, written as a list of rows.

## Examples

- $\displaystyle \operatorname{adjugate}\left(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\right) = \begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix}$

  `adjugate([[1, 2], [3, 4]])`

  In the solver, `adjugate([[1, 2], [3, 4]])` gives `[[4, -2], [-3, 1]]`.

  [Open in the solver](https://hilberon.com/?q=adjugate%28%5B%5B1%2C%202%5D%2C%20%5B3%2C%204%5D%5D%29)

## Related functions

- [characteristic_polynomial](https://hilberon.com/library/characteristic_polynomial)

  Characteristic polynomial of a square matrix in a variable.
- [upper_triangularize](https://hilberon.com/library/upper_triangularize)

  A matrix with the entries below the diagonal set to zero.
- [cholesky_decomposition](https://hilberon.com/library/cholesky_decomposition)

  Cholesky decomposition of a symmetric positive definite matrix.
- [transpose](https://hilberon.com/library/transpose)

  Transpose of a matrix: its rows become its columns.
- [cross](https://hilberon.com/library/cross)

  Cross product of two vectors in three dimensions.
- [trace](https://hilberon.com/library/trace)

  Trace of a square matrix: the sum of its diagonal.

---
Source: https://hilberon.com/library/adjugate
