3

I tried to do that using this method :

let $f(x,y) = x^y$ so now I'm looking for $f(0.93,2.98)$

$\Delta f = f(1,3)-f(0.93,2.98) \approx df = f_xdx+f_ydy$

here $x=1,y=3,dx=-0.07,dy=-0.02$

$f_x=yx^{y-1},f_y=x^y\ln x,f(1,3)=1$

so $$df = 1\cdot(-0.07)+0\cdot(-0.02) = -0.07$$

$$df = -0.07\approx f(1,3)-f(0.93,2.98) \implies 0.93^{2.98} \approx 1.07 $$

but the result I got is a bit far from the real value of $0.93^{2.98}$ ($0.80533$)

my question is : is my reasoning false or is it just a bad approximation ?

the_firehawk
  • 2,425
  • You have $f_x = 1$, but you should have $f_x=3$. This will give you a better approximation of $0.79$ – Alex Jones Apr 13 '17 at 08:40
  • Check value of $f_x$ and also you have sign mistake. – user121049 Apr 13 '17 at 08:41
  • @ AlexanderJ93 my bad I plugged the values into $f(x,y)$ not $f_x$ thanks for noticing @user121049 thanks for answering but I don't see where I did a sign mistake can you please point it out ? – the_firehawk Apr 13 '17 at 08:44
  • @rapidracim I don´t see a sign mistake as well. – callculus42 Apr 13 '17 at 08:49
  • 1
    Well, the "error in sign" is in writing $$f(1,3)-f(0.98,2.93)\approx (0.93-1)\frac{\partial f}{\partial x}(1,3)+(2.98-3)\frac{\partial f}{\partial y}(1,3)$$ Taylor expansion would be either $$f(0.98,2.93)-f(1,3)\approx (0.93-1)\frac{\partial f}{\partial x}(1,3)+(2.98-3)\frac{\partial f}{\partial y}(1,3)$$ or $$f(1,3)-f(0.93,2.98)\approx (1-0.93)\frac{\partial f}{\partial x}(0.93,2.98)+(3-2.98)\frac{\partial f}{\partial y}(0.93,2.98)$$ (of course, the last one is not the one we're looking for) –  Apr 13 '17 at 09:12

1 Answers1

3

The method is fine.

$f_x=yx^{y-1},f_y=x^y\ln x,f(1,3)=1$

You have $f_x(x,y)=yx^{y-1} \implies f_x(1,3)=3 \cdot 1^{2} = 3$; so

$$df = \color{red}{1}\cdot(-0.07)+0\cdot(-0.02) = -0.07$$

should be:

$$df = \color{green}{3}\cdot(-0.07)+0\cdot(-0.02) = \color{blue}{-0.21}$$

which gives:

$$0.93^{2.98} = f(0.93,2.98) \approx f(1,3)\color{blue}{-0.21} = 0.79$$

StackTD
  • 27,903
  • 34
  • 63