Application of tensor theory in physics