# Linear Algebra¶

## Basic Concepts¶

### Trace¶

Trace should be calculated using the metric. An example is the trace of Ricci tensor,

Einstein equation is

The trace is

### Determinant¶

Some useful properties of determinant.

Interchange rows (colomns) once will generate a negative sign.

Determinant can be calculated recursively when implemented numerically.

Determinant for block matrix can be expressed using the blocks.

Here is an example of the determinant of block matrix. Suppose our block matrix is

where each block is a square matrix. We calculate the determinant through

This is useful when we have a block diagonalized matrix.

## Technique¶

### Inverse of a matrix¶

Many methods to get the inverse of a matrix. Check wikipedia for Invertible matrix.

Adjugate matrix method for example is here.

in which, \(A^*\) is the adjugate matrix of \(A\).

### Eigenvalues of \(A^\dagger A\)¶

One can prove that the eigenvalues of any matrix \(B\) that can be written as \(A^\dagger A\) are positive semidefinite.

Proof

Suppose the eigenvectors are \(V_i\) with corresponding eigenvalues \(\lambda_i\), i.e.,

We now construct a number

On one hand, we have

where \(V_i^\dagger V_i \geq 0\).

On the other hand,

As long as \(V_i^\dagger V_i \neq 0\), we have

## Tensor Product Space¶

\(\ket{\phi}_1\) and \(\ket{\phi}_2\) are elements of Hilbert space \(H_1\) and \(H_2\). **Tensor Product** of \(\ket{\phi}_1\) and \(\ket{\phi}_2\) is denoted as \(\ket{\phi}_1\otimes \ket{\phi}_2\). This operation is linear and distributive.

**Tensor product space** \(H_1\otimes H_2\) is composed of all the linear combinations of all possible tensor products of elements in \(H_1\) and \(H_2\).

### Inner Product¶

Inner product of two tensor products

### Operators Applied to Tensor Product¶

Two operators \(\hat O_1\) and \(\hat O_2\) works on \(H_1\) and \(H_2\) respectively applied to tensor product

## Solving Linear Equations¶

First of all, write down the augmented matrix for the equation set.

Elementary row operations are allowed on the augmented matrix. Operate on the matrix until one can read out the solutions.