By definition the altitude AE is perpendicular to BC.
The slope of BC is -1.
The slope of AE is 1 (negative reciprocal of -1)
Substituting x and y from point A and the slope of 1 you can solve for the y intercept of line AE.
The resulting equation is y = x + 1.
If you would like you can then determine the equation for line BC. Solve the system of equations that represent AE and BC to find the point E. That would be for extra credit.