Why are $x$ and $y$ such common variables in today's equations? How did their use originate?
This question has been asked previously on MathOverflow, and answered (by Mariano Suárez-Alvarez). You can follow this link, and I quote his response below.
You'll find details on this point (and precise references) in Cajori's History of mathematical notations, ¶340. He credits Descartes in his La Géometrie for the introduction of x, y and z (and more generally, usefully and interestingly, for the use of the first letters of the alphabet for known quantities and the last letters for the unknown quantities) He notes that Descartes used the notation considerably earlier: the book was published in 1637, yet in 1629 he was already using x as an unknown (although in the same place y is a known quantity...); also, he used the notation in manuscripts dated earlier than the book by years.
It is very, very interesting to read through the description Cajori makes of the many, many other alternatives to the notation of quantities, and as one proceeds along the almost 1000 pages of the two volume book, one can very much appreciate how precious are the notations we so much take for granted!
Classically "x" was always used in the sciences for denoting an unknown quantity, e.g. the "X-rays" of Röntgen.
Cajori has a nice discussion in "A History of Mathematical Notations". In brief, Descartes's convention was to use letters from the earlier half (a,b,c...) for known quantities and from the latter half (x,y,z...) for unknowns. This was in the 1600s if I remember correctly.
I read somewhere this convention was started by Rene Descartes. While conceptualizing the coordinate system, he used $x$ and $y$ to denote the axes. It took root from there on and has been used ever since.
I am sorry I can't remember the source now, but I will cite if I do remember later.