Find the taylor series for e^x sin x about x=0 in two ways:
(a) By multiplying the taylor series for e^x and that for sinx.
(b) By using the taylor function directly on e^x sin x.
I found this solution, but I’m having trouble implementing it. Can someone break it down or make it simplier for me (what suppose to be in a scrpit file, what suppose to be in the command window, etc.), or if you have a different way of solving it please share. Thanks in advance.
E1= taylor(exp(x), 5);
E2= taylor(sin(x), 6);
E3= collect(taylor(exp(x)*sin(x), 6))
Difference= simplify(E1E2 – E3)