Given the circumference of a circle having equation $$ x^2+y^2-4x-8y+16=0 $$ consider a straight line that passes through the origin and intersects the circumference at the points $P$ and $Q$. Find the slope so that the area of the $APQ$ triangle is maximum. Point $A$ is $(0;4)$.
I know that I should use the derivative in order to determine the maximum area of the triangle, but I don't know how to approach the problem.
Let $m$ be the slope of the line through the origin. Find the coordinates of $P$ and $Q$ as a function of $m$, then find the area of the triangle as a function of $m$. Differentiate, set to zero ....