You can color dots and lines. 
Imagine you have dots and lines. 
We can count every way to do this. We can use many colors or just a few. A special math rule helps us count them. This rule is called a chromatic polynomial.
George Birkhoff first used this idea. He wanted to solve a big color puzzle. He used math to study how we color shapes.
Imagine you have dots connected by lines. These dots are called vertices. You want to color each dot. If two dots have a line between them, they must have different colors. This is called a proper coloring. 
How many ways can you color these dots? The answer changes based on how many colors you have. Mathematicians use a special tool to find this answer. It is a math rule called a chromatic polynomial. 
George David Birkhoff first used this idea in 1912. He wanted to solve the four color problem. He hoped to use algebra to study coloring. Later, Hassler Whitney expanded this idea. He showed it works for all types of graphs.
Sometimes, two different shapes have the same rule. This means they have the same number of ways to be colored. We call these chromatically equivalent graphs.
One example is a tree. All trees with the same number of dots have the same rule. This shows how math finds patterns in different shapes.
Imagine you have a collection of dots connected by lines. In math, we call these dots vertices and the lines edges. A common puzzle is to color each dot so that no two dots connected by a line share the same color. This is called a proper coloring. The number of ways you can do this changes depending on how many colors you have available. To track these changes, mathematicians use a special tool called a chromatic polynomial. This rule acts like a math machine that takes the number of colors as an input. It then gives you the total number of valid coloring ways as an output. 
This math tool works by looking at the structure of the graph. One way to find the polynomial is through a method called deletion-contraction. This process involves looking at a single edge in your graph. You can either remove the edge entirely or merge the two dots it connects into one. By repeating these steps, you can break a hard graph down into much simpler pieces. Eventually, you end up with very basic shapes where the coloring rules are easy to see. The results from these simple shapes are then combined to build the full polynomial for the original graph. 
History shows us how this idea grew over time. George David Birkhoff introduced the chromatic polynomial in 1912. He was trying to solve a famous puzzle called the four color theorem. He wanted to use algebra to prove that any flat map only needs four colors. Later, in 1932, Hassler Whitney expanded the idea. He showed that the polynomial works for all types of graphs, not just flat ones. In 1968, Ronald C. Read asked new questions about which graphs share the same polynomial. This helped mathematicians understand the deep connections between different shapes.
The chromatic polynomial holds many interesting facts and numbers. For a graph with a certain number of dots, the polynomial will always have that same degree. This means the highest power in the math rule matches the number of vertices. The coefficients, or the numbers in front of the powers, follow a specific pattern. They alternate between positive and negative signs. For example, if you use a graph with three dots in a triangle, the rule is k times k minus one, times k minus two. This formula tells you exactly how many ways to color that specific shape. 
Sometimes, two shapes look very different but share the same rule. We call these chromatically equivalent graphs. For instance, all trees with the same number of dots will have the exact same chromatic polynomial. This means the math rule cannot tell them apart, even if their shapes are unique. However, some special shapes are chromatically unique. This means their math rule is so special that it can only belong to that one specific shape. This study helps us see the hidden patterns that link different parts of the math world together.
{
"text": "In algebraic graph theory, the chromatic polynomial is a vital mathematical tool. It is a polynomial that counts the number of proper vertex colorings for a given graph. A proper coloring occurs when every vertex is assigned a color such that no two adjacent vertices share the same color. The polynomial acts as a function where the input is the number of available colors, denoted as $k$ or $x$. The output is the total number of distinct ways to color the graph properly. This tool allows mathematicians to study the coloring properties of graphs through the lens of algebra and analysis. 

🖼️ Images & Media (3)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.