But we know that the ratio between sinx and cos x determine the tangent function.

tg x -1 =0

We'll move the free term in the right side of the equal sign, like this:

tg x = 1

x= arctg 1 + k*pi

x = pi/4 + k*pi

pi/4=45 degrees.

We could also make the note that if the ratio sin x / cos x=1, it means that the terms from the ratio are equal

=> sin x = cosx!

If sin x = cos x => the angles of the triangle are equal, too, so, in a right angle triangle, the angles could only be = 45 degrees (the conclusion is based on fact that in a triangle, the sum of angles is 180 degrees, and one of them is 90 degrees and the other 2 are equals, so