24

This might be basic, but I'm really bad at basic math. I'm trying to solve the following system of equations: $$\sqrt{x^2+y^2}\cdot \left(x-5\right)=6x+y \tag{1},$$$$\\\sqrt{x^2+y^2}\cdot \left(y-1\right)=6y-x-2 \tag{2}$$ I put them in Wolfram Alpha to test the result, and it yields 3 solutions, which I assume is true. All nice and dandy.

But then I couldn't find out how to move forward. So I decide to divide $(2)$ by $(1)$. which gives: $$\frac{y-1}{x-5}=\frac{6y-x-2}{6x+y} \tag{3}$$

After a few calculations, I figured that this is an equation for a circle. $$y^2+29y=-x^2+9x+10 \tag{4}$$ which implies that there's an infinite number of solutions. Which means that I'm wrong.

So can anybody tell me what I did wrong? And if possible teach me how to solve the system of equations please? Thank you! :D

Kim Dong
  • 715

5 Answers5

39

Dividing (or, in general, "combining") several equations can be used to derive new equations that must necessarily hold, but they are not equivalent to the original system. Consider for example:

$$ \begin{cases} x = 1 \\ y = 1 \end{cases} $$

The above is a well defined system of two equations with two unknowns, and obviously has the unique solution $x=y=1\,$. Dividing the equations, however, gives $\,\dfrac{x}{y}=1 \iff x=y\,$ with infinitely many solutions. But not all of those satisfy the original system, in fact just one does.


[ EDIT ]   About the "how to solve the system" part, the following outlines one possible approach, though the calculations become rather tedious.

Let $\,r=\sqrt{x^2+y^2} \ge0\,$, then the system can be written as:

$$ \begin{cases} \begin{align} r(x-5) &= 6x+y \\ r(y-1) &= 6y-x-2 \end{align} \end{cases} \quad\iff\quad \begin{cases} (r-6)x - y = 5r \\ x + (r-6)y = r - 2 \end{cases} $$

Solving for $\,x,y\,$ gives:

$$ \begin{cases} x = \dfrac{5 r^2 - 29 r - 2}{r^2 - 12 r + 37} \\[10px] y = \dfrac{r^2 - 13 r + 12}{r^2 - 12 r + 37} \end{cases} \tag{*} $$

Substituting the above into $\,r^2=x^2+y^2\,$ then gives, successively:

$$ \begin{alignat}{2} && r^2(r^2 - 12 r + 37)^2 &= (5 r^2 - 29 r - 2)^2 + (r^2 - 13 r + 12)^2 \\ && r^6 - 24 r^5 + 192 r^4 - 572 r^3 + 355 r^2 + 196 r - 148 &= 0 \\ && (r - 1) (r^2 - 12 r + 37) (r^3 - 11 r^2 + 4) &= 0 \end{alignat} $$

The latter factorization gives the root $\,r=1\,$, and the cubic factor gives two more positive real roots. Substituting those back into $\,(*)\,$ gives the solutions in $\,x,y\,$.

dxiv
  • 76,497
  • I noticed that if I both divide and multiply the 2 sides of your equation, it gives $$x=y\x=\frac{1}{y}$$ which yields $x=y=\pm 1$. However, if I do a division and combination $$x=y\x+y=2$$ it gives $x=y=1$ which is consistent with the original one.

    So my question is: what operations I could do to the system to make it consistent with the original system?

    – Kim Dong Jun 30 '18 at 02:43
  • 1
    @J.Doe Technically any transformation that is reversible. For example, it is easy to see that $a=b, c=d \iff a+c=b+d, a-c=b-d$, and this can easily be determined for linear transformations in general. Once you introduce multiplications and divisions, it becomes less obvious. – dxiv Jun 30 '18 at 02:55
  • i like that x=y=1 example. why is dividing two equations not a reversible transformation? what‘s wrong here? – WeSee Jun 30 '18 at 08:59
  • 7
    @WeSee For one thing, it produces only one equation while the original system had two. One equation generally removes one degree of freedom from the in this case original 2 degrees, so you get a 1-dimensional solution set. With two equations, you'd generally get a set of points, which in this case you do. Of course, this glosses over linear dependencies and such, and non-linear operations like taking square roots that make things more complicated. – tomsmeding Jun 30 '18 at 09:50
9

When you divide the two equations, you're producing another consistent equation that must be satisfied (except, perhaps, where a denominator of the resulting equation vanishes, where the division operation entails dividing by zero) but not all solutions of the new equation need be a solution of the original equations.

In this case, you've found a new condition, namely, that all solutions must lie on the circle with the given equation, which may help you in finding the solution(s) of the system.

Travis Willse
  • 99,363
2

From this comment:

it produces only one equation while the original system had two. One equation generally removes one degree of freedom from the in this case original 2 degrees, so you get a 1-dimensional solution set.

Take an easier example:

$$ \begin{cases} x+y = 1 \\ x-y = 1 \end{cases} $$

The only solution is $(x,y)=(1,0)$. Normally you would get to the solution by adding both sides to get

$$ 2x=2 \tag{*}$$

and solve it as

$$ x=1 $$

But then you get back to (the one of) the original equations, substitute $x$ you already know and solve for $y$. This means when writing (*) you do really mean something like:

$$ \begin{cases} x+y = 1 \\ 2x = 2 \end{cases} $$

or

$$ \begin{cases} 2x = 2 \\ x-y = 1 \end{cases} $$

Note if your original system included a parameter $\alpha$ like this

$$ \begin{cases} x+y = 1 +\alpha \\ x-y = 1 -\alpha \end{cases} \tag{**} $$

then you could get the same (*)! When you solve it and get $x=1$, the form may suggest a single solution. But your domain is still two-dimensional and what you really get is

$$1x+0y=1$$

solved by

$$\{(x,y):x=1, y \in R \}$$

(or it may be $C$ instead of $R$ if you allow complex numbers). This is not a single solution. Choose any single solution from within this set and there is a certain value of $\alpha$ that makes the chosen solution solve (**).

In fact (*) aggregates solutions to all possible versions of (**). By going from (**) to (*) and solving the sole latter, you lose the information what $\alpha$ is.

So where is a similar parameter in your case, since you divide your original equations? Here:

$$ \begin{cases} \sqrt{x^2+y^2}\cdot \left(x-5\right)=\left(6x+y\right)\cdot\beta \\ \sqrt{x^2+y^2}\cdot \left(y-1\right)=\left(6y-x-2\right)\cdot\beta \\ \beta\neq0 \end{cases} \tag{***} $$

It leads to the circle you got but the circle doesn't depend on $\beta$. I haven't investigated if every single point of the circle solves (***) for some value of $\beta$ but it seems to me that every solution of (***) for any possible $\beta$ belongs to the circle. The circle aggregates solutions to different systems of equations.

Taking a single point that belongs to the circle, you don't know if it solves (***) for $\beta=1$ (which is your case) until you confront it with something that specifies $\beta=1$ somehow. It may be any of your two original equations, they implicitly set $\beta=1$.

2

Others already gave you the answer on how to solve it, this is an additional remark. Observe the following: Suppose we have the folowing equation, it has a solution set associated (shown on the right):

$$x=\pi \tag*{$S_1=\{\pi\}$}$$

Now what happens when we square both sides?

$$x^2=\pi^2 \tag*{$S_2=\{\pi,-\pi\}$}$$

What if we take the first equation and apply the sine function in both sides?

$$\sin(x)=\sin(\pi)=0 \tag*{$S_3=\{\pi n : n\in \Bbb{Z}\}$}$$

So, applying a function to both sides of the equation can mess up the solutions and come up with more or less solutions: There are $2$ solutions for $S_2$, but infinite solutions for $S_3$. Observe that $3\pi$ won't be a solution to the first equation, nor to the second. You should try "keep track" of the solution set as you transform the equations.

Red Banana
  • 23,956
  • 20
  • 91
  • 192
2

Contrary to your thinking, division is not the guilty. By the way, it doesn't take any division to combine the equations in

$$(6x+y)(y-1)=(6y-x-2)(x-5)$$

which is indeed that of a circle. (You multiply the first by $y-1$ and the second by $x-5$ and equate the LHS.)

But what you forgot is that you have a system of equations and dropping one of them enlarges the solution set. What you should consider is the augmented system

$$\begin{cases}\sqrt{x^2+y^2}\cdot \left(x-5\right)=6x+y ,\\\sqrt{x^2+y^2}\cdot \left(y-1\right)=6y-x-2, \\x^2+y^2-9x+29y-10=0.\end{cases}$$

enter image description here

The two initial curves have three intersection points (two of them are close together, mind the small blue loop). And when you intersect either curve with the circle, you find four intersections. These extra points appear where $y=1$ or $x=5$, which makes one curve equation vanish.