# Looking for irrational Numbers Proof [duplicate]

$a,b,c,~$and $d$ are rational numbers. $b>0$ and $d>0$ the $\sqrt{b}$ and the $\sqrt{d}$ are both irrational.

if $a+\sqrt{b}=c+\sqrt{d}$

show that $a = c$ and $b = d$.

I know that a=c and b=d intuitively, but I'm not sure how to prove it.

## marked as duplicate by egreg, Ross Millikan, Gerry Myerson, user61527, user122283 May 24 '14 at 0:02

$a-c=\sqrt(d)-\sqrt(b)$ If this is true, then that means $\sqrt(d)-\sqrt(b)$ is rational because rational numbers are closed under subtraction. The only way for this to be true is that $\sqrt(d)-\sqrt(b)=0$.
• I don't think it's obvious that $\sqrt{d}-\sqrt{b}=0,~$ in order for it to be rational. For example $x=1+\sqrt{2}$ and $y=\sqrt{2}$ are both irrational, but $x-y=1$. – Peter Woolfitt May 23 '14 at 23:28
• This can be fixed by noticing that $$\sqrt d + \sqrt b = \frac{d^2 - b^2}{a - c}$$ is also rational; now sum some things. – user61527 May 23 '14 at 23:31