Here is the code.

\title{An Introduction to Matrix}

This is an example.\\
We will talk this in great detail later.
\section{Example Part}
  1 & 2 & -1\\ 
  -2 & 0 & 1\\
 1 & -1 & 0
\section{How to calculate the Inverse of A}

I want to add $A^(-1)$ in \section{How to calculate the Inverse of A}.

  • Welcome! \section{\boldmath How to calculate $A^{-1}$}? – user194703 Feb 4 '20 at 8:00
  • 2
    \section{How to calculate $A^{-1}$} (the symbol for the matrix should be the same as in the text). – egreg Feb 4 '20 at 8:02
  • @Schrödinger'scat Thanks Bro. How can I draw a vertical line within Matrix? – kile Feb 4 '20 at 8:04
  • @egreg No, it should not. kile, see e.g. tex.stackexchange.com/a/33523. – user194703 Feb 4 '20 at 8:06
  • @Schrödinger'scat In mathematics, 𝑨 and 𝐴 generally denote different objects that may or not be related to each other. – egreg Feb 4 '20 at 8:09

Regarding how to type A^1 (or any other math expression) in a section heading, ..., it depends.

For traditional publishers of pure mathematics, the answer is "enter it as ordinary math", or $A^1$. The American Mathematical Society's style guide says this (section 3.1):

Math is always permissible in section heads, but displays are not. Any math in any head appears in math mode; it is not fonted to match the section head.

Translated out of jargon, this means that the font of a math expression is not changed in a bold (or small caps) heading; it should appear exactly as it does in text.

The reason for this is that, rather often, mathematicians use both a lightface and a bold version of the same letter in the same document to mean two different things. (Sometimes, even more variations on a single letter are used!) To embolden a lightface letter (as used in text) could therefore cause confusion, especially among less experienced readers.

That said, the practice is sometimes different in disciplines other than pure math, e.g., physics. In such a case, \boldmath would serve to embolden the expression: \boldmath ... $A^1$.

A comment to the question states that this is the reason why \boldmath was created. Not so. Some fonts used for math are available only in lightface versions, and if a letter or other symbol in such a font is needed in bold form to make a necessary mathematical distinction, \boldmath (or better, \bm applied to only that character`) is a way to make the bold form available.

  • +1: What is a "display" in "but displays are not"? – Dr. Manuel Kuehner Apr 5 '20 at 23:21
  • 1
    @Dr.ManuelKuehner -- a "display" is, by definition, a chunk of math that is separate from the main, inline, text. It is what is wrapped in \[...\], the equation environment, or one of the amsmath multiline structures. – barbara beeton Apr 5 '20 at 23:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.