OU blog

Personal Blogs

Richard Walker

Learning LaTeX and a cool math trick

Visible to anyone in the world
Edited by Richard Walker, Wednesday 24 December 2025 at 11:11

I'm trying to teach myself a bit of LaTeX, which if you don't know is a specialised language that allows a user to enter expressions as plain text and have them rendered as mathematical notation.

For a while I've felt not knowing LaTeX is a gap in my toolkit but the immediate prompt is that I'm writing accessibility guides for a couple of modules and I'm looking how someone who is blind or has low vision can read and write mathematical notation, and LaTeX is one route, especially for anyone planning to go on to study more mathematics. So as an exercise I decided to write a post about a neat mathematical trick I learned recently. 

My Exercise

Suppose we're asked to solve the following quadratic equation by factorisation

x squared minus two times x minus three equals zero

This is not too hard. We just look for a pair of numbers that multiply to give negative three and add to negative two . These are negative three and add to one . So the equation factorises to

left parenthesis x minus three right parenthesis times left parenthesis x plus one right parenthesis equals zero

and the solutions are x equals three and x equals negative one .

But what if the coefficient of x squared is greater than one ? For example we might have

12 times x squared plus 11 times x minus five equals zero

Now we have to consider all the factors of 12 and of negative five and figure out which combination is the correct one and it all gets a bit messy.

Here's a neat trick that makes this equation as easy to solve as the first example. We say 12 times left parenthesis negative five right parenthesis equals negative 60 (first coefficient times last), set the first coefficient to one and form a new equation (but remember that 12 , we will need it later!)

y squared plus 11 times y minus 60 equals zero

This is easy to factorise and we get left parenthesis y plus 15 right parenthesis times left parenthesis y minus four right parenthesis equals zero , so the solutions are y equals negative 15 and y equals four . Of course these are not solutions of the original equation but now we bring that 12 back into play, and divide the two solutions we have just found by it (makes a kind of sense you see, first we multiplied by 12 , now we divide by it).

negative 15 divided by 12 equals negative five divided by four and four divided by 12 equals one divided by three

and, surprise, surprise, these are the solutions to the original equation!

Why does this work?

Multiplying the original equation by 12 will give

12 multiplication 12 times x squared plus 12 multiplication 11 times x minus 12 multiplication five equals zero or left parenthesis 12 times x right parenthesis squared plus 11 times left parenthesis 12 times x right parenthesis minus 60 equals zero .

Now replace 12 times x by y and we get the second equation y squared plus 11 times y minus 60 equals zero and the roots of this must be 12 times those of the original equation.

Permalink
Share post