Latex superscript subscript

1, subscript with underline a_ B
2, superscript use ^ e.g.: A ^ 2
3, superscript and subscript use together, a_ b^2