xigoi

The One Rule for manipulating equations

All variables in this article are implicitly universally quantified for brevity.

Manipulating equations is hard, right? There are so many rules to remember…

Wrong. There is actually only one rule, known as the substitution property of equality:

a=b    f(a)=f(b)\boxed{a = b \implies f(a) = f(b)}

That's it. Nobody teaches this in school, they'll teach you “you can multiply both sides of the equation, except by zero” and what not, but in reality, it's that simple.

However, in order to apply the rule correctly, it's crucial to understand the difference between implication and equivalence. The rule works only one way. There's a variant that goes both ways, but it's kind of a tautology, so there isn't really a point in using it:

Theorem. If ff is an injective function, then a=b    f(a)=f(b)a = b \iff f(a) = f(b).
Proof.
()(\Rightarrow) Follows from the substitution property.
()(\Leftarrow) Follows from the definition of an injective function.

Now we can see how all the specific rules easily follow from the substitution property.

Theorem. a=b    a±c=b±ca = b \iff a \pm c = b \pm c
Proof.
()(\Rightarrow) Let f(x)=x±cf(x) = x \pm c and use the substitution property.
()(\Leftarrow) Let f(x)=xcf(x) = x \mp c and use the substitution property.
Theorem. a=b    ac=bca = b \implies a \cdot c = b \cdot c; the implication is an equivalence iff c0c \ne 0
Proof.
()(\Rightarrow) Let f(x)=xcf(x) = x \cdot c and use the substitution property.
()(\Leftarrow) Given that c0c \ne 0, let f(x)=xcf(x) = \frac{x}{c} and use the substitution property.
Theorem. a=b    ac=bca = b \iff \frac{a}{c} = \frac{b}{c}
Proof. Note that cc must not equal 00, otherwise the right-hand side is not defined.
()(\Rightarrow) Let f(x)=xcf(x) = \frac{x}{c} and use the substitution property.
()(\Leftarrow) Let f(x)=xcf(x) = x \cdot c and use the substitution property.
Theorem. a=b    1a=1ba = b \iff \frac{1}{a} = \frac{1}{b}
Proof. Note that a,ba,b must not equal 00, otherwise the right-hand side is not defined.
()(\Rightarrow) Let f(x)=1xf(x) = \frac{1}{x} and use the substitution property.
()(\Leftarrow) Let f(x)=1xf(x) = \frac{1}{x} and use the substitution property.
Theorem. a=b    a2=b2a = b \implies a^2 = b^2; the implication is an equivalence iff there is a guarantee that a0b0a \ge 0 \land b \ge 0
Proof.
()(\Rightarrow) Let f(x)=x2f(x) = x^2 and use the substitution property.
()(\Leftarrow) Given that a0b0a \ge 0 \land b \ge 0, it follows that a=a2b=b2a = \sqrt{a^2} \land b = \sqrt{b^2}. Let f(x)=xf(x) = \sqrt{x} and use the substitution property.
Theorem. a=b    a=ba = b \iff \sqrt{a} = \sqrt{b}
Proof. Note that a,ba,b must be positive, otherwise the expressions are not defined.
()(\Rightarrow) Let f(x)=xf(x) = \sqrt{x} and use the substitution property.
()(\Leftarrow) Let f(x)=x2f(x) = x^2 and use the substitution property.
Theorem. a=b    ca=cba = b \implies c^a = c^b for c>0c > 0. The implication is an equivalence iff c>0c1c > 0 \land c \ne 1
Proof.
()(\Rightarrow) Let f(x)=cxf(x) = c^x and use the substitution property.
()(\Leftarrow) Let f(x)=logc(x)f(x) = \log_c(x) and use the substitution property.
Theorem. a=b    logc(a)=logc(b)a = b \iff \log_c(a) = \log_c(b) for c>0c1c > 0 \land c \ne 1
Proof. Note that a,ba,b must be positive, otherwise the expressions are not defined.
()(\Rightarrow) Let f(x)=logc(x)f(x) = \log_c(x) and use the substitution property.
()(\Leftarrow) Let f(x)=cxf(x) = c^x and use the substitution property.

Notice how all the theorems and proofs look the same, aside from having to be careful about injectivity. Is there really a point in memorizing something so trivial?