Why can we use geometric proofs in algebra?
For example, whenever I search for a proof of the Pythagorean theorem, I get a drawing of a geometric proof, yet we use the Pythagorean theorem to algebraically compute distance between points in an plane. Likewise sine cosine and tangent have geometric definitions, yet we determine their values not by drawing right triangles and measuring but by plugging angles into a function.
I've read about how Cartesian Geometry combined Geometry and Algebra, but how can we be sure that the two are compatible?
In other words, how do we know that we can just take a theorem like the Pythagorean Theorem, proved Geometrically, in the realm of rulers of compasses, and apply it to Algebra, in the realm of numbers?
Geometry seems too empirical. Why is it that just because we draw something on paper and it roughly works out that we assume it's true?
Thanks!
Why can we use geometric proofs in algebra?
...but how can we be sure that the two are compatible
The reason is this: Euclidean geometry, formulated in full strength as in Hilbert's axioms including the completeness axiom, says that Euclidean geometry in two or three dimensions is exactly coordinate geometry over the field of real numbers. Algebra over the real numbers is, in a sense, interchangeable with this strong form of Euclidean geometry.
You could say that the basic operations in algebra (addition/subtraction/multiplication/divison) are encodings of geometric information. If you have a notion of "Euclidean length," then addition tells us how the lengths of two collinear line segments are related to the total length when placing them end to end. The area of a rectangle is based on multiplication of side-lengths. You can also treat area as an additive quantity (when the areas are disjoint, of course.)
Consider also that the Pythagorean theorem can be formulated purely in terms of real numbers, and purely in terms of geometry. They are statements of the same fact, just interpreted through slightly different languages.
Basically, the real numbers are uniquely suited to idealized measurement. Whether it be length or area, they are the "most complete" field suited for the job.
The "algebra" you mention is not modern, abstract algebra, but algebra as used in secondary school. Geometry is very intuitive, so using it at the secondary school level helps students to understand. That intuition seems to be built into our brains, since babies recognize faces and the like at very young ages.
However, in many higher-level classes, geometry is a result of analysis. For example, the sine and cosine functions are defined by infinite power series. The formula for the distance between two points is a definition, not derived from the Pythagorean theorem. A right angle is defined from the dot product of two vectors. The Pythagorean theorem then results pretty easily.
High school algebra is pretty much simplified analysis. So it is no wonder geometry and algebra are compatible: they both come from analysis, in their foundations if not in their presentation in secondary school.
All this does not answer the questions: why is the geometry we get from analysis such a good match for our intuition? And why is our mathematics such a good match for our universe? In my opinion, these matches are due to the fact that God is a mathematician. "Mathematics is the language with which God has written the universe" (Galileo).
Let me add to the previous answers.
Geometry seems too empirical. Why is it that just because we draw something on paper and it roughly works out that we assume it's true?
We do not. We use axioms to prove theorems in any mathematical theory. Euclid was, as far as I know, the first one to try to build geometry on axiomatic system. This was a huge step, but his work wasn't completely satisfying because there were certain assumptions he made which could not be deduced from the axioms he has given (for example, he uses a fact that two circles of equal radii would intersect if they were close enough to construct equilateral triangle, which seems obvious, but couldn't be deduced from Euclid's axioms). It was Hilbert who was fist to give complete set of axioms of geometry as intended by Euclid and other Greek mathematicians, and that was not before 20th century. With set of axioms, you use deduction to produce theorems, such as Pythagoras theorem. Pictures/sketches are only used as a help to fully understand what is going on, and what do you actually need to prove what you want. If you carry out construction on paper, it is not a proof of the statement, rather you use abstract theory to prove certain construction will always produce what you want.