- #1

k1dd101

- 1

- 0

I have a problem, and I have no idea how to get started. I tried to follow tutorial on their website but it doesn't seems to help.

Here is my problem:

Derive the constant, linear, and quadratic terms in the Maclaurin series of the function f(x,y)= sin(x+y) cos(x-y).

This is what I have done so far:

>> syms x y

>> a=sin(x+y);

>> b=cos(x-y);

>> syms z

>> z=a*b

z = cos(x - y)*sin(x + y)

>> T=taylor(z,3);

---- After this I'm completely lost-----

>> xd=1:.05:3; yd=1:.05:3; zd=subs(a*b,{a,b},{[0 1; -1 0], [1 -1; -2 1]})

zd =

[ 0, -1]

[ 2, 0]

...using MATLAB for the first time.

Thanks in advance!