You are on page 1of 3

  Home Study tools

 My courses
 My books My folder Career Life 

Find solutions for your homework Search

home / study / engineering / electrical engineering / electrical engineering questions and answers / 1. consider the following analytic function: f(x)…

Question: 1. Consider the following analytic function: f(x)=x cos(x). a. Plot… Post a question
Answers from our experts for your tough
homework questions

use matlab please


Enter question

Continue to post
14 questions remaining

My Textbook Solutions

Introductio... Elementary... Precalculus


10th Edition
4th Edition 6th Edition

View all solutions

Show transcribed image text

Expert Answer

Anonymous answered this


Was this answer helpful? 0 0
2,872 answers

clear;

clc;

close all;

syms x;

fx = x*cos(x);

xx = -8:0.01:8;

plot(xx,subs(fx,x,xx));

xlabel("x");

ylabel("f(x)");

title("Plot for f(x)");

p1 = taylor(fx, x, 'Order',2);

p3 = taylor(fx, x, 'Order',4);

p5 = taylor(fx, x, 'Order',6);

p7 = taylor(fx, x, 'Order',8);

disp("7th Order Taylor Series Approximation Polynomial is ");

pretty(p7);

figure;

xx = -pi:0.01:pi;

plot(xx,subs(fx,x,xx));

hold on

plot(xx,subs(p1,x,xx));

plot(xx,subs(p3,x,xx));

plot(xx,subs(p5,x,xx));

plot(xx,subs(p7,x,xx));

hold off;

legend("f(x)","1st order","3rd order","5th order","7th


order");

title("Plot for f(x) using different orders of approximation");

As can be seen its ODD symmetry. So in taylor series expansion


all the terms with even powers of x will be
nullified.


Comment

Questions viewed by other students

Q: 4. A very useful formula, used in the complex-domain analysis of linear systems, is Euler's formula which relates the
function eix (here,i=v-1) to sinusoids, according to: eix=cos(x)+i sin(x) Employ the power series representations of ex,
cos(x) and sin(x) to derive Euler's formula. (Side note: For the special case of x = pi, Euler's formula reduces to Euler's
identity: ein+1=0. It...

A: See answer
COMPANY LEGAL & POLICIES CHEGG PRODUCTS AND SERVICES CHEGG NETWORK CUSTOMER SERVICE

About Chegg Advertising Choices Cheap Textbooks Chegg Math Solver EasyBib Customer Service
Chegg For Good Cookie Notice Chegg Coupon Mobile Apps Internships.com Give Us Feedback
College Marketing General Policies Chegg Play Sell Textbooks Thinkful Manage Subscription
Corporate Development Intellectual Property Rights Chegg Study Help Solutions Manual
Investor Relations Terms of Use College Textbooks Study 101
Jobs Global Privacy Policy eTextbooks Textbook Rental
Join Our Affiliate Program DO NOT SELL MY INFO Flashcards Used Textbooks
Media Center Honor Code Learn Digital Access Codes
Site Map Honor Shield Uversity Chegg Life
Chegg Writing

© 2003-2022 Chegg Inc. All rights reserved.

You might also like