Math Formula Reference
Frequently used formulas, grouped by topic.
Products and factoring
Square of a sum
(a + b)2 = a2 + 2ab + b2
Square of a difference
(a − b)2 = a2 − 2ab + b2
Sum times difference
(a + b)(a − b) = a2 − b2
Product (x + a)(x + b)
(x + a)(x + b) = x2 + (a + b)x + ab
Cube of a sum
(a + b)3 = a3 + 3a2b + 3ab2 + b3
Cube of a difference
(a − b)3 = a3 − 3a2b + 3ab2 − b3
Sum of cubes
a3 + b3 = (a + b)(a2 − ab + b2)
Difference of cubes
a3 − b3 = (a − b)(a2 + ab + b2)
To calculate directly, try the Factoring Calculator
Quadratic equations
Quadratic formula
ax2 + bx + c = 0 (a ≠ 0), then
x = (−b ± √(b2 − 4ac)) / 2a
x = (−b ± √(b2 − 4ac)) / 2a
Formula for even b
If b = 2b′, then x = (−b′ ± √(b′2 − ac)) / a
Discriminant
D = b2 − 4ac
D > 0 two distinct real roots · D = 0 a double root · D < 0 two complex roots
D > 0 two distinct real roots · D = 0 a double root · D < 0 two complex roots
Roots and coefficients
If the roots are α and β,
α + β = −b/a, αβ = c/a
α + β = −b/a, αβ = c/a
Cubic: roots and coefficients
ax³ + bx² + cx + d = 0 has roots α, β, γ, then
α + β + γ = −b/a
αβ + βγ + γα = c/a
αβγ = −d/a
α + β + γ = −b/a
αβ + βγ + γα = c/a
αβγ = −d/a
Factor theorem
f(α) = 0 ⟺ f(x) is divisible by (x − α)
Rational root theorem: for a rational root p/q of an integer-coefficient equation, p divides the constant term and q divides the leading coefficient
Rational root theorem: for a rational root p/q of an integer-coefficient equation, p divides the constant term and q divides the leading coefficient
Vertex
y = ax2 + bx + c has its vertex at x = −b / 2a
To solve one yourself, try the Quadratic Equation Calculator · Cubic and Quartic Equation Calculator · Simultaneous Equations Calculator
Exponents and logarithms
Product of powers
am × an = am+n
Quotient of powers
am ÷ an = am−n (a ≠ 0)
Power of a power
(am)n = amn, (ab)n = anbn
Zero and negative exponents
a0 = 1 (a ≠ 0), a−n = 1 / an
Definition of the logarithm
aˣ = N ⟺ x = loga N (a > 0, a ≠ 1, N > 0)
Logarithm of a product and quotient
loga MN = loga M + loga N
loga (M/N) = loga M − loga N
loga (M/N) = loga M − loga N
Logarithm of a power
loga Mk = k loga M
Change of base
loga b = logc b / logc a
Trigonometry
Basic identities
sin2θ + cos2θ = 1
tan θ = sin θ / cos θ
1 + tan2θ = 1 / cos2θ
tan θ = sin θ / cos θ
1 + tan2θ = 1 / cos2θ
Law of sines
a / sin A = b / sin B = c / sin C = 2R (R: circumradius)
Law of cosines
a2 = b2 + c2 − 2bc cos A
Addition formula (sine)
sin(α ± β) = sin α cos β ± cos α sin β
Addition formula (cosine)
cos(α ± β) = cos α cos β ∓ sin α sin β
Double angle
sin 2θ = 2 sin θ cos θ
cos 2θ = cos2θ − sin2θ = 2cos2θ − 1 = 1 − 2sin2θ
cos 2θ = cos2θ − sin2θ = 2cos2θ − 1 = 1 − 2sin2θ
Radians
180° = π radians, 1 radian = 180° / π
Sequences
Arithmetic sequence: general term
an = a + (n − 1)d
Arithmetic sequence: sum
Sn = n{2a + (n − 1)d} / 2 = n(a + l) / 2 (l: last term)
Geometric sequence: general term
an = a·rn−1
Geometric sequence: sum
If r ≠ 1, Sn = a(rn − 1) / (r − 1), if r = 1, Sn = na
Infinite geometric series
If |r| < 1, a + ar + ar2 + … = a / (1 − r)
Sums of powers of natural numbers
Σk = n(n + 1) / 2
Σk2 = n(n + 1)(2n + 1) / 6
Σk3 = {n(n + 1) / 2}2 (k = 1 to n)
Σk2 = n(n + 1)(2n + 1) / 6
Σk3 = {n(n + 1) / 2}2 (k = 1 to n)
To calculate directly, try the Arithmetic and Geometric Sequence Calculator
Calculus
Derivative of a power
(xn)′ = n·xn−1
Derivatives of basic functions
(sin x)′ = cos x, (cos x)′ = −sin x
(eˣ)′ = eˣ, (ln x)′ = 1 / x
(eˣ)′ = eˣ, (ln x)′ = 1 / x
Product rule
(fg)′ = f′g + fg′
Quotient rule
(f/g)′ = (f′g − fg′) / g2
Chain rule
{f(g(x))}′ = f′(g(x))·g′(x)
Integral of a power
∫xn dx = xn+1 / (n + 1) + C (n ≠ −1)
Integrals of basic functions
∫(1/x) dx = ln|x| + C, ∫eˣ dx = eˣ + C
∫sin x dx = −cos x + C, ∫cos x dx = sin x + C
∫sin x dx = −cos x + C, ∫cos x dx = sin x + C
Definite integral
If F′ = f, ∫ab f(x) dx = F(b) − F(a)
Plane geometry
Pythagorean theorem
In a right triangle, a2 + b2 = c2 (c: hypotenuse)
Area of a triangle
S = ½ × base × height
Heron: S = √(s(s − a)(s − b)(s − c)), s = (a + b + c) / 2
Heron: S = √(s(s − a)(s − b)(s − c)), s = (a + b + c) / 2
Area of a parallelogram
S = base × height
Area of a trapezoid
S = ½ × (top + bottom) × height
Circle
Circumference = 2πr, area = πr2
Sector
Arc length l = rθ, area S = ½r2θ = ½rl (θ in radians)
To calculate directly, try the Area and Volume Calculator
Solid geometry
Prism and cylinder
Volume V = base area × height
Cylinder: V = πr2h, surface area = 2πr2 + 2πrh
Cylinder: V = πr2h, surface area = 2πr2 + 2πrh
Pyramid and cone
Volume V = ⅓ × base area × height
Cone: V = ⅓πr2h, surface area = πr2 + πrl (l: slant height)
Cone: V = ⅓πr2h, surface area = πr2 + πrl (l: slant height)
Sphere
Volume V = (4/3)πr3, surface area = 4πr2
Cuboid
V = abc, surface area = 2(ab + bc + ca), diagonal = √(a2 + b2 + c2)
To calculate directly, try the Area and Volume Calculator
Coordinates
Distance between two points
For A(x1, y1) and B(x2, y2),
AB = √((x2 − x1)2 + (y2 − y1)2)
AB = √((x2 − x1)2 + (y2 − y1)2)
Midpoint
((x1 + x2) / 2, (y1 + y2) / 2)
Slope of a line
m = (y2 − y1) / (x2 − x1)
Equation of a line
A line with slope m through the point (x1, y1): y − y1 = m(x − x1)
Distance from a point to a line
For the point (x0, y0) and the line ax + by + c = 0,
d = |ax0 + by0 + c| / √(a2 + b2)
d = |ax0 + by0 + c| / √(a2 + b2)
Equation of a circle
With center (a, b) and radius r: (x − a)2 + (y − b)2 = r2
Counting and probability
Permutation
nPr = n! / (n − r)!
Combination
nCr = n! / (r!(n − r)!), nCr = nCn−r
Sum rule and product rule
If they cannot happen together, m + n; if one follows the other, m × n
Addition rule of probability
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Complement
P(Ac) = 1 − P(A)
Conditional probability
P(B | A) = P(A ∩ B) / P(A)
Mean, variance and standard deviation
Mean m = (x1 + … + xn) / n
Variance = mean of (deviation)2 = mean of x2 − m2
Standard deviation = √variance
Variance = mean of (deviation)2 = mean of x2 − m2
Standard deviation = √variance
To calculate directly, try the Permutation and Combination Calculator · Mean, Variance and Standard Deviation Calculator
Formulas are for reference only and accuracy is not guaranteed. Notation and scope vary by curriculum, so check them against your textbook. Terms & disclaimer