Sorry in advance if this is a really stupid question
In class I've been told that $$\sqrt{-25} = 5j $$ Converting $\sqrt{-25} $ into $5j$ is straightforward for me, but I don't understand how it works
Doesn't the property of $\sqrt{xy} = \sqrt{x}\sqrt{y} $ only hold true for positive real number values of x and y, where $i^2$ is defined to be negative 1?
In the case of $$\sqrt{-25} = 5j $$ Would we treat j= $\sqrt{-1}$ as a positive real number in order to "break" the root using the elementary algebra associated with roots? I don't really understand how this works algebraically.
There's no such thing as a stupid question!
As other people have pointed to, the square-root function isn't really well-defined for all complex numbers. Fix some complex number $z\neq 0$. We can try to solve the quadratic equation $w^2=z$ (that's what a square root seeks to do) and we will find two answers $\pm w$. Which one we call $+w$ and which one we call $-w$ is purely convention. The fact that these answers are negatives of each other comes from $(-w)^2=w^2$, which is really just a dressed-up version of $(-1)^2=1$. The fact that there are always two answers comes from the "Fundamental Theorem of Algebra."
If $z$ is a positive real number, then its square roots are of the form $\pm w$, where $w>0$. Of course, choosing $w>0$ was arbitrary, but it allows us to concretely write $\sqrt{z}$ as another way to denote this positive square-root $w$.
If $z$ is a negative real number, then you can set a similar convention and take its square-roots to be $\pm iw$, where $w>0$. With this, you can write $\sqrt{z}=iw$, although this notation is not always used. This is the same as defining $\sqrt{z}=i\sqrt{-z}$, using the existing convention for positive square roots.
As you've noted, even the very symbol $i$ is only defined up to a factor $\pm 1$, because $i^2=(-i)^2=-1$. This can be phrased by saying that complex conjugation $\overline{a+bi}=a-bi$ is an isomorphism of fields. This is probably getting beyond the scope of what you wanted to know (though I'm happy to answer further questions).