Maximum value of a function with 2 variables

maxima-minimaquadratics

Can someone help me finding maximum value of a ratio in quadratic function in 2 variables using proper mathematical methods.?

Question is as below.

If x and y are real numbers such that $x^2 -10x+y^2 +16=0$, determine the maximum value of the ratio $y/x$

I know there is Ramban method to solve this. Taking $y/x=k –> y=kx$ and forming equation in x , then applying $^2 – 4ac >=0$ for max min value of k.

Is there any way to using differentiation ?

Sorry in advance if this is a repeat. I am new to platform.

Best Answer

Note that the equation is a circle with center $O(5,0)$ and radius $3$: $$x^2 -10x+y^2 +16=0 \iff (x-5)^2+y^2=9$$ The objective function is $\frac yx=k \iff y=kx$, whose contour lines will pass through the origin. So you need to find the slope of the tangent to the circle. See the graph:

$\hspace{4cm}$enter image description here

Hence, the slope is $k=\frac 34$, which is the maximum value of $\frac yx$ at $x=\frac{16}{5}$ and $y=\frac{12}{5}$.