The Latin small letter x is used to represent a variable or coefficient. In algebra, x is often used to represent an unknown value. The symbol x is also used to represent the horizontal dimension in the 2D cartesian coordinate system.
The capital Latin letter X is used to represent a random variable in statistics
A variable is a core concept in algebra where a symbol, usualy a lower case latin letter, is used as a placeholder in a math expression.