Prove or disprove:
"If $x$ is a rational number, and $y$ is an irrational number then $x^y$ is irrational"
I am stuck with this, these are my steps.
let $x=2$ and $y=\sqrt{2}$
$\implies$ $x^y = 2^{\sqrt{2}} $
now if $x^y = 2^{\sqrt{2}} $ is irrational then we are done. But if this is rational then we can say:
let $x=2^\sqrt{2}$ (since we assume its rational) and let $y=\sqrt{2}$
$\implies$ $x^y = 2^{\sqrt{2}^{\sqrt{2}}} $ $=2^2$
this shows that if $x$ is rational and $y$ is irrational then $x^y$ is rational.
But I know that this is not true. Where did I go wrong in this?
Your "proof" is not really a proof. You pick a particular number, and you claim that if it's irrational then the statement is proved, and in the second part you pick another particular case claiming that it's a counterexample to the statement anyway. But the proof is that every rational number $x$ and irrational number $y$ satisfy this. Not just this particular pair.
In fact, the second part is almost a disproof by itself. It says "If $x$ was rational, then $x^y$ was rational as well", which is exactly what you need to disprove the statement. Although the details of that second part are sketchy, for example if $y=\sqrt2^{\sqrt2}$, then $2^y=2^{\sqrt2^{\sqrt2}}$ is not the same thing as $(2^{\sqrt2})^{\sqrt2}$, which is really what you're looking for.