For example, which of the following is correct?
A:
log2 fold change of A is larger than that of B.
B:
Log2 fold change of A is larger than that of B.
I was thinking "log2" is a function name and don't need to be capitalized.
For example, which of the following is correct?
A:
log2 fold change of A is larger than that of B.
B:
Log2 fold change of A is larger than that of B.
I was thinking "log2" is a function name and don't need to be capitalized.
Since you're not using any style guide, you have freedom (just be consistent). I would avoid starting a sentence with log because it's a little weird. Instead, use an apposition:
A good general rule is: never start a sentence with a symbol. If you insist on starting the sentence with a mention of the thing the symbol denotes, put the appropriate word in apposition, thus: “The set X belongs to the class C, . . . ”.
How to write Mathematics
If you're writing a label (as you say you're doing in one comment), I wouldn't capitalize it. The Chicago Manual of Style recommends lowercase in this situation:
Labels, the descriptive items within a chart, are normally lowercased (with the exception of proper nouns or other terms that would be capitalized in running text); if phrases, they may be capitalized sentence-style.
You will rarely find log capitalized, but it is occasionally done.
You can avoid the problem entirely by starting the sentence with another word, i.e., by writing "The log2 fold change of A is larger than that of B."