This document serves as a test for rendering mathematical formulas in Markdown using $$
delimiters.
Basic Algebra
Let’s start with some fundamental algebraic expressions.
The quadratic formula is given by:
x=2a−b±b2−4acA simple linear equation:
y=mx+cExpansion of a binomial square:
(a+b)2=a2+2ab+b2
Calculus
Here are some common expressions from calculus.
The limit definition of a derivative:
f′(x)=h→0limhf(x+h)−f(x)A definite integral:
∫abf(x)dxThe Taylor series expansion of ex around x=0:
ex=n=0∑∞n!xn=1+x+2!x2+3!x3+⋯
Trigonometry
Some basic trigonometric identities.
Pythagorean identity:
sin2θ+cos2θ=1Angle addition formula for sine:
sin(α+β)=sinαcosβ+cosαsinβEuler’s formula:
eiθ=cosθ+isinθ
Statistics and Probability
Formulas commonly used in statistics and probability.
The formula for the mean (μ) of a set of n numbers x1,x2,…,xn:
μ=n1i=1∑nxiThe probability density function of a normal distribution:
f(x∣μ,σ2)=2πσ21e−2σ2(x−μ)2Bayes’ theorem:
P(A∣B)=P(B)P(B∣A)P(A)
Linear Algebra
Examples from linear algebra.
A 2x2 matrix:
A=(acbd)The determinant of a 2x2 matrix:
det(A)=ad−bcMatrix multiplication of two matrices A and B:
C=AB
Physics
A couple of well-known physics equations.
Einstein’s mass-energy equivalence:
E=mc2Newton’s second law of motion:
F=maThis should provide a good test of how various mathematical formulas are rendered.
Testing Mathematical Formulas in Markdown
周二 5月 31 2022 LaTeX 217 字 · 2 分钟