Find the derivative of $ \sqrt y + \sqrt x = 4 $ at $ ( 0.25 , 0.25 ) $.
Finding derivative, I get $ \frac { \mathrm d y } { \mathrm d x } = - \sqrt { \frac y x } $.
At $ ( 0.25 , 0.25 ) $, the value is $ - 1 $.
But using another method,
$$ \sqrt y = 4 - \sqrt x $$ $$ y = ( 4 - \sqrt x ) ^ 2 $$ $$ \frac { \mathrm d y } { \mathrm d x } = 1 - \frac 4 { \sqrt x } $$ At $ ( 0.25 , 0.25 ) $, the value is $ - 7 $.
Which is the correct answer? Is there any error in this method?
Yes, you are must in error, because $(0.25,0.25)$ is not lie on curve $\sqrt x+\sqrt y=4$, but lie on $\sqrt x+\sqrt y=1$.
In this case, we can calculate it by two way that you show, and it is exactly same number.
Case 1: $\frac{dy}{dx}=-\sqrt{\frac yx}=-1$.
Case 2: $y=(1-\sqrt x)^2=1-2\sqrt x+x$, so $\frac{dy}{dx}=1-\frac1{\sqrt x}=-1$.