---
title: "Solving a Single Equation in Two Real Variables via Square Completion"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-c8-w1-alg-sum-of-squares-zero-two-variables"
board: "CBSE"
grade: "Class 8"
published_at: "2026-11-30T09:00:00+05:30"
---

# Solving a Single Equation in Two Real Variables via Square Completion

If $x$ and $y$ are real numbers satisfying:
$$x^2 + 5y^2 + 4xy - 6y + 9 = 0$$
find the exact value of $x^3 + y^3$.

## Textbook Solution

**Step 1: Split $5y^2$ into $4y^2 + y^2$ to form two perfect squares.**
$$x^2 + 4xy + 4y^2 + y^2 - 6y + 9 = 0$$
$$(x + 2y)^2 + (y - 3)^2 = 0$$

**Step 2: Use the non-negativity of squares of real numbers.**
Since $(x + 2y)^2 \ge 0$ and $(y - 3)^2 \ge 0$ for all real $x, y$, their sum can be $0$ if and only if both terms are simultaneously $0$:
$$y - 3 = 0 \implies y = 3$$
$$x + 2y = 0 \implies x = -2(3) = -6$$

**Step 3: Evaluate $x^3 + y^3$.**
$$x^3 + y^3 = (-6)^3 + 3^3 = -216 + 27 = -189$$

## Vedic Shortcut

**Cross-Term First Splitting:**
Always look at the mixed term $4xy$ first! Because $x^2$ has coefficient $1$, $x^2 + 4xy$ demands $(2y)^2 = 4y^2$.
Subtracting $4y^2$ from $5y^2$ leaves $y^2$, which pairs cleanly with $-6y + 9 = (y-3)^2$. Immediately $y=3, x=-6$, and $(-6)^3 + 3^3 = -189$.

## Common Mistakes

- **Claiming one equation in two variables cannot be solved:** Forgetting that over $\mathbb{R}$, $A^2 + B^2 = 0$ uniquely forces $A = 0$ and $B = 0$.
- **Sign error in $(-6)^3$:** Writing $(-6)^3 = +216$ gives $243$ instead of $-189$.