Lemma › Guides › When to reach for the Ravi substitution (and when not to)
Guide

When to reach for the Ravi substitution (and when not to)

12 September 2026

An inequality in three positive reals is a problem. An inequality in the three sides of a triangle is the same problem carrying three extra constraints that you must use and cannot easily hold on to. That gap is the whole reason the Ravi substitution exists, and it is why knowing the substitution is worth less than knowing the moment to reach for it.

This is not an explanation of what the substitution is. The technique page states it in two lines. This is about the decision: which problems it clears, how to run it without losing marks, and the three situations where reaching for it makes your life worse.

The constraint it deletes

Being the sides of a triangle is a real restriction, not a formality. Take every triple (a,b,c)(a,b,c) with each entry a whole number from 1 to 10. There are 1000 of them, and exactly 505 are triangles. Call it a coin flip. Half of the positive triples you could write down are not admissible, and a proof that never notices the difference is proving something false.

The three inequalities a+b>ca+b>c, b+c>ab+c>a, c+a>bc+a>b carve a cone out of the positive octant. Working inside a cone is awkward: you cannot apply AM-GM to aa, bb, cc directly and expect the equality case to land anywhere meaningful, because the point where all three are equal is interior, and the points where the inequality is tight sit on the boundary you keep forgetting about.

Ravi reparametrises the cone so that it becomes the whole octant. Write a=y+za = y+z, b=z+xb = z+x and c=x+yc = x+y. Then the three triangle conditions become x>0x>0, y>0y>0 and z>0z>0, and that is the entire content of the move: a constrained problem turned into an unconstrained one.

The map runs both ways, which is the part that matters for a write-up. Given a triangle, set x=b+c−a2x = \frac{b+c-a}{2}, y=c+a−b2y = \frac{c+a-b}{2}, z=a+b−c2z = \frac{a+b-c}{2}; these are positive exactly when the triangle inequalities hold. So it is a bijection between triangles and positive triples, not a convenient guess, and saying so out loud is what licenses the phrase "it suffices to prove".

Those three quantities are not arbitrary. If ss is the semiperimeter, then x=s−ax = s-a, y=s−by = s-b and z=s−cz = s-c, so xx, yy, zz are the tangent lengths from the vertices to the incircle. Once you have drawn that picture the substitution stops feeling like a trick.

The signals

Three tells, in descending order of reliability.

The counter-signal is just as useful: if the statement is true for all positive reals, the triangle condition is decoration and substituting only makes the algebra worse. Test a non-triangle triple before you commit. If the claim survives, do not substitute.

Watching it clear a paper

IMO 1964, Problem 2 asks for a2(b+c−a)+b2(c+a−b)+c2(a+b−c)≤3abca^2(b+c-a) + b^2(c+a-b) + c^2(a+b-c) \le 3abc over triangle sides. Signal two fires immediately: all three bracketed factors are the tangent lengths in disguise.

Substitute, and the quantity you actually want to prove non-negative is 3abc−[a2(b+c−a)+b2(c+a−b)+c2(a+b−c)].3abc - \big[a^2(b+c-a) + b^2(c+a-b) + c^2(a+b-c)\big]. Expand it in x,y,zx,y,z and everything collapses to x2y+x2z+y2x+y2z+z2x+z2y−6xyz≥0.x^2y + x^2z + y^2x + y^2z + z^2x + z^2y - 6xyz \ge 0. That is AM-GM on six terms whose product is x6y6z6x^6y^6z^6, so their arithmetic mean is at least xyzxyz. Done, with equality exactly when x=y=zx=y=z, which is the equilateral triangle.

Look at what happened to the difficulty. The original statement is a constrained inequality that resists every standard tool. The substituted one is the first inequality anybody learns, applied to six terms. None of the cleverness is in the finish; all of it was in the change of variables.

When the shape survives, and when it does not

IMO 1983, Problem 6 wants a2b(a−b)+b2c(b−c)+c2a(c−a)≥0a^2b(a-b) + b^2c(b-c) + c^2a(c-a) \ge 0. Substituting turns the left side into 2(x3z+y3x+z3y−xyz(x+y+z)),2\big(x^3z + y^3x + z^3y - xyz(x+y+z)\big), and dividing through by xyzxyz leaves x2y+y2z+z2x≥x+y+z\frac{x^2}{y} + \frac{y^2}{z} + \frac{z^2}{x} \ge x+y+z, which Cauchy-Schwarz in Engel form settles in one line.

But notice what did not change. The original is cyclic, not symmetric: at (a,b,c)=(2,3,4)(a,b,c) = (2,3,4) the expression is 16, and swapping the first two sides to (3,2,4)(3,2,4) gives 34. Ravi preserves that asymmetry exactly, so the substituted problem is cyclic too, and you still may not assume x≥y≥zx \ge y \ge z. People lose this problem by substituting, feeling the relief, and then ordering the variables as if the expression were symmetric.

The same problem shows why the triangle condition cannot be skipped. At (a,b,c)=(1,4,6)(a,b,c) = (1,4,6) the expression is −24-24. Those are not triangle sides, and the statement is simply false off the cone. A solution that never invokes the hypothesis is wrong no matter how clean the algebra looks.

What it costs

Three things, and they are the reason this is a decision rather than a reflex.

  1. Term count. Expanding (y+z)2(y+z)^2 everywhere multiplies the work. A degree-three symmetric expression in a,b,ca,b,c can become a dozen monomials in x,y,zx,y,z, and expansion errors are the single most common way these problems are lost. Expand slowly and check one numeric value at the end.
  2. Geometric meaning. Angles, area and circumradius do not survive into x,y,zx,y,z in any convenient form. If the problem mixes sides with angles, Ravi strips away the half you still need.
  3. Degenerate cases. Ravi as stated gives strictly positive x,y,zx,y,z, so it covers non-degenerate triangles only. If the problem allows a degenerate triangle, you want x,y,z≥0x,y,z \ge 0 and you have to say so.

What to do with this

Run the recognition drill rather than the theory. Take ten inequality problems whose hypothesis mentions a triangle and, for each, write three lines only: does the triangle condition actually matter, are the factors b+c−ab+c-a present, and what does the equality case look like in x,y,zx,y,z. Do not solve them. The decision is the skill you are short of, and it is trainable in a fraction of the time a full solution takes.

Lemma treats this as a named technique with a place in the sequence rather than a trick you meet twice. The Ravi substitution page sits alongside the classical inequalities it hands off to, the problem archive carries both papers above with difficulty and expected time, and the daily problem posts a fresh one every day in three tiers with no account needed.

Train it on Lemma

Every technique here is taught explicitly, in order. 125 lessons, 1206 curated problems and unlimited generated practice at six difficulties. Free to start, no card, and every paid plan opens with 3 free days.

Find your level