← Library

The Number Kingdom

The Equation Engine

The Equation Engine

Book 32 in The Number Kingdom


The Shuddering Palace

Mira was helping Zero count the petals in the palace garden—a task Zero insisted was "meditation" but which Mira suspected was just Zero's way of enjoying the morning—when the ground beneath them gave a violent shudder.

Not an earthquake. Mira had felt those before. This was different. It was a stopping shudder, like a clock that had been running smoothly and suddenly caught on something.

"Right," Mira said, scrambling to her feet. "Let's see what's broken."

She reached into her satchel and pulled out her golden compass. The needle was spinning wildly, pointing in every direction at once before settling—unusually—straight down.

"That's new," Mira said.

Below the garden, deep below, she could hear it: a groaning, grinding sound. The palace's great clock tower began chiming in no particular order. Two chimes. Seven chimes. Five chimes. Then it stopped, mid-chime, as if confused.

The Count appeared at the garden gate, his numeral-covered robes swirling. His face was more serious than Mira had ever seen it.

"The Equation Engine," he said. "It is failing."


The Engine Room

They descended through the palace's deepest passages, past doors that Mira had never seen open. The Count led her down spiral staircases that seemed to fold in on themselves, until they reached a vast chamber beneath the kingdom itself.

At the center of the chamber stood the Equation Engine—a magnificent mechanism of brass and crystal, taller than three houses. It was covered in balances: great golden scales connected by rods and gears, each scale holding mathematical statements on either side.

Mira had heard of the Equation Engine but never seen it. It was the heart of the Number Kingdom. Every law, every structure, every pattern in the land ran through this machine.

And it was sick.

One scale held the equation x + 3 = 7, but the right pan had been weighted down with a large stone inscribed with the number 12. The balance was wildly lopsided.

Another scale showed 2x − 5 = 9, but someone had scratched out the − 5 and replaced it with a + 5. Steam hissed from the joint where the scale connected to the main mechanism.

A third scale displayed x/2 + 1 = 6 with the + 1 missing entirely, while the pan on that side had been filled with loose gears that clattered and jammed.

The whole engine shuddered again. Somewhere above them, Mira heard what sounded like the palace's east wing gently collapsing.

"The Remainder," Mira said.

"Of course," said the Count. "It has unbalanced the key equations. When an equation is unbalanced, the Engine cannot run. And when the Engine cannot run—" He gestured upward, where another shudder rattled the walls. "The kingdom runs erratically."

Something giggled from the shadows. A shape unfolded—half-formed, made of leftover numbers and broken fraction bars.

"Oh, but that's the fun of it!" said the Remainder, appearing on a beam above the largest scale. "Look at this one!" It pointed to x + 3 = 7 with the 12 on the right side. "If x is 9, then 9 plus 3 is 12! It works perfectly! Why should it be 7?"

"Because 9 plus 3 doesn't equal 7," Mira said. "It equals 12."

"Yes, but look at the right side!" The Remainder's eyes sparkled. "The right side says 12! So x is 9! And the equation is balanced! I've made it work, you see. I've made it work differently."

Mira looked at the equation more carefully. The Remainder had changed x + 3 = 7 to x + 3 = 12.

"That's not the same equation," Mira said slowly. "You changed what the equation was asking."

"Changed? I improved! I made it more interesting! More numbers, you see. More to work with!"

"But the Engine needs the original equations," the Count said. "Those are the laws of the kingdom. You cannot simply redefine them."

"Why not?" The Remainder tilted its head, genuinely curious. "Why does 7 have to be 7? What does 7 know that 12 doesn't?"

Mira pulled out her notebook and pencil. "Okay," she said. "Let me think about this."


What an Equation Is

Mira sat on the cold stone floor and looked at the first scale. x + 3 = 7.

"An equation is a balance," she said, more to herself than to anyone else. "It's saying: whatever is on the left side equals whatever is on the right side. Like two pans of a scale with the same weight."

"Precisely," the Count said.

"But here's the thing," Mira continued. "If the scale is balanced now, and I add three apples to the left pan, what happens?"

"It tips," Zero said quietly. It had followed them down and was standing near the scale, perfectly still and patient.

"Right. The left side is heavier. The scale isn't balanced anymore. So to get it balanced again—"

"I add three apples to the right pan," Zero finished. "Or I take three apples off the left."

"Exactly!" Mira said. "Whatever you do to one side, you have to do to the other. That's what keeps the balance."

She stood up and approached the scale with x + 3 = 7 and the wrong 12 on the right side.

"Now, this equation says x plus 3 equals 7. I need to find x. What is x?"

She wrote in her notebook:

x + 3 = 7

"How do I get x by itself?" she asked. "There's a 3 being added to it. So I need to undo the addition."

She looked at the Remainder, who was watching her with intense curiosity.

"If I subtract 3 from both sides," Mira said, "the left side becomes just x. But I have to do the same thing to the right side. Otherwise I'd tip the balance."

She wrote:

x + 3 − 3 = 7 − 3

x = 4

"The 3 and the −3 cancel each other out," Mira said. "They make zero—"

"Zero!" Zero said, with its usual quiet satisfaction.

"—and zero leaves whatever is there unchanged. So x is 4."

She checked: 4 + 3 = 7. The scale's pans began to level out. The crystals in the Engine's housing glowed a little brighter.

"That works," Mira said. "Because 4 plus 3 really does equal 7."

The Remainder frowned. "But this one was just one step," it said. "This one I admit I made simple. The others are much more interesting. You'll have trouble with those."

Mira walked to the second scale. 2x − 5 = 9. Someone—the Remainder, obviously—had changed the −5 to a +5.

"Two-step equation," Mira said. "First, I need to undo what's being done to x."

She thought about it. "2x means 2 times x. And then we're subtracting 5. So to get x alone, I need to undo the subtraction first."

She wrote:

2x − 5 + 5 = 9 + 5

2x = 14

"But wait," she said, looking at the equation on the scale. "The Remainder changed the −5 to a +5. So the equation I'm solving is wrong. I need to fix it back to −5 first."

"That's cheating!" the Remainder protested.

"No, it's not," Mira said. "It's restoring the original equation. The Engine was built with these equations. You changed them."

"Changed them to be more—"

"Wrong," Mira said. "You changed them to be wrong."

She took her pencil and carefully restored the minus sign:

2x − 5 = 9

"Now. First step: add 5 to both sides."

2x − 5 + 5 = 9 + 5

2x = 14

"Second step: 2x means 2 times x. To undo multiplication by 2, I divide by 2. Both sides."

2x ÷ 2 = 14 ÷ 2

x = 7

She checked: 2 × 7 − 5 = 14 − 5 = 9. Yes.

The second scale leveled out. The Engine's groaning eased slightly.

"Check by substitution," Mira murmured, writing in her notebook: 2(7) − 5 = 9 ✓.


The Balance Restored

"Now the hard one," Mira said, approaching the third scale.

x/2 + 1 = 6

The Remainder had removed the +1 entirely. Half of the equation's left side was simply missing. The scale was jammed with loose gears on the right pan.

"First, fix the equation," Mira said. She wrote it correctly:

x/2 + 1 = 6

"Two steps again. There's a +1, and there's division by 2. Which order do I undo them in?"

She paused. "If I were solving this equation the way it's written, I'd start with x, divide it by 2, then add 1. So to undo it, I go in reverse order. Last thing undone first."

She wrote:

x/2 + 1 − 1 = 6 − 1

x/2 = 5

"Now x is being divided by 2. To undo division by 2, I multiply by 2. Both sides."

x/2 × 2 = 5 × 2

x = 10

"Check by substitution: 10 divided by 2 is 5, plus 1 is 6. Yes!"

The third scale leveled out. The Engine let out a deep, satisfied hum. Its crystals blazed brightly, and the steady rhythm of its operation returned—smooth, even, balanced.

Above them, the clock tower resumed its proper chiming. Three chimes for three o'clock, exactly as it should be.

The Remainder clapped slowly. "Well. You've restored the balance. Very neat. Very tidy. Everything resolved."

"Something wrong with that?" Mira asked.

"No, no. It's lovely. But I notice something, you know." The Remainder hopped down from the beam and circled the Engine. "All your solutions—4, 7, 10—they're so certain. The x always turns out to be exactly one number, and everything works."

"That's what equations do," Mira said. "They tell you what x is."

"Yes, when they're balanced they do. But what about equations where there's no answer? What about ones where x can't be found?" The Remainder grinned. "What if I had made the equation x + 3 = x + 5? What then? You'd subtract x from both sides and get 3 = 5. Which is impossible! There's no x that makes that true!"

Mira opened her mouth, then paused. That was... actually a good question.

"You're right," she said. "That equation has no solution. It's impossible."

"And x + 3 = x + 3? Every number works! Any x you choose makes it true!"

Mira nodded slowly. "That's true too. Every number works. There are equations with exactly one answer, equations with no answers, and equations where every answer works."

The Remainder looked delighted. "So you see! Equations aren't always tidy! Sometimes they don't resolve!"

"But they're still true," Mira said. "They're still balanced, or they're not. The math still describes what's real. An equation with no solution is still telling you something true—it's telling you that no x satisfies it."

The Remainder tilted its head. "Hmm. I suppose that's one way to see it."

It dissolved into a wisp of numbers, still thinking about what Mira had said.

Zero drifted over to the Engine's main gear and paused. "You noticed, didn't you, that the three equations you solved all involved zero—the 3 and −3 canceling, the +5 and −5 canceling, the +1 and −1 canceling?"

Mira smiled. "The inverse operations always make zero. The zero is what lets the balance hold."

"No," Zero said, with its quiet dignity. "The balance is what lets the zero happen. They're the same thing." It paused. "Yes. That tends to work."

The Count approached, and Mira could have sworn he was almost smiling. "The Equation Engine is restored. The kingdom runs correctly again."

"Right," Mira said, tucking her notebook back into her satchel. "Let's see what's broken."

The Count raised an eyebrow.

"Second alarm," Mira said. "Your clock tower's been chiming wrong for the last two minutes. I'd say the Engine's fixed, but the clock's still catching up."

The Count's abacus staff clicked once, twice. "You are correct. The clock needs recalibration."

Mira walked toward the stairs, then paused. She looked back at the Equation Engine, with its golden balances gleaming in the light.

"An equation is just a scale," she said softly. "Two things that weigh the same. And as long as you treat both sides fairly, you can always find the answer."

She thought about the Remainder's question—equations with no answer, equations with infinite answers. Maybe not every equation resolved neatly. But that didn't make them less true.

"Or at least," she added, "you can always find out what's true."

She climbed the stairs, and the Equation Engine hummed behind her, steady and balanced at last.


Mira's Math Notes

If x + 3 = 7, subtract 3 from BOTH sides:

x + 3 − 3 = 7 − 3

x = 4

Check: 4 + 3 = 7 ✓

If 2x − 5 = 9, add 5 to BOTH sides:

2x = 14

Then divide BOTH sides by 2:

x = 7

Check: 2(7) − 5 = 9 ✓

If x/2 + 1 = 6, subtract 1 from BOTH sides:

x/2 = 5

Then multiply BOTH sides by 2:

x = 10

Check: 10/2 + 1 = 6 ✓

Whatever you do to one side, do to the other. That's what keeps the equation balanced.