Given points A(2,1) and B(5,4), find the point on the x-axis P(x,0) in the interval [2,5] that maximizes the angle APB.
How can I devise an optimize equation and a constraint equation out of this?
Given points A(2,1) and B(5,4), find the point on the x-axis P(x,0) in the interval [2,5] that maximizes the angle APB.
How can I devise an optimize equation and a constraint equation out of this?
Consider points A$(2,1)$ and P$(x,0)$ ,
Then, Vector $\vec {PA}$ = $(x-2)\hat{i}+(-1)\hat{j}$
And similarly P$(x,0)$ and B$(5,4)$
Vector $\vec {PB}=(x-5)\hat{i}+(-4)\hat{j}$
And $\cos{\theta}=\large\frac{\vec {PA}.\vec {PB}}{\|PA\|.\|PB\|}$
I assume you can continue from here! Good luck!