First, notice that since the point (a,1) belongs to the circumference x^2+y^2=5, then:
Since the point (a,1) is in the second quadrant, then:
Remember that the coordinates of a point on a circle of radius r can be written in terms of the angle as:
The radius of the circle in this case is the square root of 5. Then:
Therefore:
On the other hand, remember the following identity:
Substitute the value for the cosine of θ:
Therefore: