Question

In: Advanced Math

This is a engineering analysis hw question please show your work I will use it to...

This is a engineering analysis hw question please show your work I will use it to study

PROBLEM 1 (20PT) Perform the following tasks for the function, f(x), shown below.   

f(x) := x*cos(pie*x/2.4)-3*x2+ex/1.5 (use this function to answer the following parts a, b, c . there is no figure given) (the work you give me I will use to plug it into Mathcad which is the program we use to show our work) (if you feel like you are unfamiliar with the Taylor series process please pass this question on to someone who does. thanks)


(a) Use a Taylor series expansion, keeping up to the third derivative term, to approximate the function about the point xo = 2. Plot the function, f(x), and the approximated Taylor Series function, fTay(x), in a single graph. Display x-axis from -2 to 8. Show a marker at x = xo.   

(b) Re-do the Taylor series expansion, fTay2(x), to show an expansion up to the third derivative term about the point xo = 4. Show the function, f(x), and the approximated function, fTay2(x) on a new plot. Display x-axis from -2 to 8. Show a marker at x = xo.   

(c) Do the Maclaurin series expansion, fTay3(x), to show an expansion up to the third derivative term. Show the function, f(x), and the approximated function, fTay3(x) on a new plot. Display xaxis from -2 to 8. Show a marker at x = xo.

Solutions

Expert Solution


%%Matlab code for Taylor series
clear all
close all

%function for Tylor series
f=@(x) x.*cos(pi.*x/2.4)-3.*x.^2+exp(x)./1.5;
fprintf('function for Taylor series f(x)=')
disp(f)

xx=linspace(-2,8);
yy=f(xx);
figure(1)
hold on
plot(xx,yy)

figure(2)
hold on
plot(xx,yy)

figure(3)
hold on
plot(xx,yy)
syms x

%Question 1.
tty=taylor(f,2,3);
fprintf('\n\tTaylor series for x0=2\n')
disp(vpa(tty,2))
yy1=double(tty(xx));
figure(1)
plot(xx,yy1)
plot(2,f(2),'r*')
hold off
box on; grid on
legend('Actual','Taylor series','x0=2')

%Question 2.
tty=taylor(f,4,3);
fprintf('\n\tTaylor series for x0=4\n')
disp(vpa(tty,2))
yy1=double(tty(xx));
figure(2)
plot(xx,yy1)
plot(4,f(4),'r*')
hold off
box on; grid on
legend('Actual','Taylor series','x0=4')

%Question 3.
tty=taylor(f,0,3);
fprintf('\n\tTaylor series for x0=0\n')
disp(vpa(tty,2))
yy1=double(tty(xx));
figure(3)
plot(xx,yy1)
plot(0,f(0),'r*')
hold off
box on; grid on
legend('Actual','Taylor series','x0=0')

%Matlab function for Taylor polynomial for any function
function tty=taylor(f,a,N)
  
    %Taylor polynomial of log(1-x)
    %here x is number of terms
    %here N is total number of Taylor sum
    %loop for taylor sum
    syms x
    val=f(a);
    for k=1:N
        ff(x)=diff(f,x,k);
        ff_val=(ff(a))/factorial(k);
        val=val+ff_val*(x-a)^k;
    end
    tty(x)=val;
  
end

%%%%%%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%%%


Related Solutions

Please use excel and show all work and formulas. (I will give your work a like...
Please use excel and show all work and formulas. (I will give your work a like if you do this) Size (1000s sq. ft) Selling Price ($1000s) 1.26 117.5 3.02 299.9 1.99 139.0 0.91 45.6 1.87 129.9 2.63 274.9 2.60 259.9 2.27 177.0 2.30 175.0 2.08 189.9 1.12 95.0 1.38 82.1 1.80 169.0 1.57 96.5 1.45 114.9 What are the p-values of the t test (for the slope estimate) and F test? What is the coefficient of determination? What is...
Please Use Excel to Show All Work, I will like your answer :) 15.54 The Tire...
Please Use Excel to Show All Work, I will like your answer :) 15.54 The Tire Rack, America’s leading online distributor of tires and wheels, conducts extensive testing to provide customers with products that are right for their vehicle, driving style, and driving conditions. In addition, the Tire Rack maintains an independent consumer survey to help drivers help each other by sharing their long-term tire experiences. The following data show survey ratings (1 to 10 scale with 10 the highest...
Please Use Excel To Show All Work, I will like your asnwer if you do this...
Please Use Excel To Show All Work, I will like your asnwer if you do this :) 15.35 Refer to the Johnson Filtration problem introduced in this section. Suppose that in addition to information on the number of months since the machine was serviced and whether a mechanical or an electrical repair was necessary, the managers obtained a list showing which repairperson performed the service. The revised data follow. Repair Time in Hours Months Since Last Service Type of Repair...
QUESTION (please show your work so that I may understand how to do the problem) thanks...
QUESTION (please show your work so that I may understand how to do the problem) thanks Before you can calculate your test statistic, you’ll have to calculate the SEM. Use the formula in the book/lecture to calculate the SEM. Put your value below. Remember that you will need to calculate the population standard deviation first (remember to use n rather than n-1 for the population standard deviation calculation). Round your response out to two decimal places, if you give more...
REAL ANALYSIS I Prove the following exercises (please show all your work)- Exercise 1.1.2: Let S...
REAL ANALYSIS I Prove the following exercises (please show all your work)- Exercise 1.1.2: Let S be an ordered set. Let A ⊂ S be a nonempty finite subset. Then A is bounded. Furthermore, inf A exists and is in A and sup A exists and is in A. Hint: Use induction. Exercise 1.1.9: Let S be an ordered set and A is a nonempty subset such that sup A exists. Suppose there is a B ⊂ A such that...
Please show all work and formulas Please use the following information to answer this question. State    ...
Please show all work and formulas Please use the following information to answer this question. State     Probability       A                     B                      C Boom   .3                     -10%                5%                   0% Normal            .4                     5                      3                      2                      Bust     .3                     10                    -5                     2 Find the expected return and variance of the portfolio if an investor spent $5000 on A, $8000 on B and $7000 on C.
Please show all work and formulas Please use the following information to answer this question. State    ...
Please show all work and formulas Please use the following information to answer this question. State     Probability       A                     B                      C Boom   .3                     -10%                5%                   0% Normal            .4                     5                      3                      2                      Bust     .3                     10                    -5                     2 Find the expected return and variance of the portfolio if an investor spent $5000 on A, $8000 on B and $7000 on C.
I am struggling with figureing this out as a practicing question! Please show me the work...
I am struggling with figureing this out as a practicing question! Please show me the work for how to get the correct answers! ABC Company produces two separate products, product A and product B.  Information on product A and B is reported below: Product A                                Product B Sales Price:                  $1,000                                     $1,800 Direct Materials          $100                                        $500 Direct Labor                $250                                        $600 Variable Overhead      $50                                          $400 Commissions:             $25                                          $40 Company information: Fixed Manufacturing overhead:          $400,000 per year Fixed Administrative Expenses:          $375,000 per year Tax rate:                                              25% ABC Company has to decide which of the following sales mixes will...
Use the following information to answer the questions in this quiz. Please show your work by...
Use the following information to answer the questions in this quiz. Please show your work by submitting a Word, Excel, or JPEG file in the "Project 2 Drop Box". INFORMATION OLD MACHINE: Original Purchase Price $     550,000.00 Original Life 10 YEARS Remaining Life 5 YEARS Straight line depreciation in use Salvage Value $      50,000.00 Current Fair Market Value $     260,000.00 INFORMATION NEW MACHINE A: Purchase Price      $895,000.00 Estimated Life 5 YEARS Use Straight Line Depreciation Method Estimated Salvage Value...
Please show all your work if you use the Calculator. If done in Excel, please send...
Please show all your work if you use the Calculator. If done in Excel, please send me the spreadsheet / workbook. What is the market value of the following bond? Coupon 8% Maturity date 2038 Interest paid semiannually Par Value $1000 Market interest rate 10% What is the market value of the following bond? Coupon 9% Maturity date 2028 Interest paid semiannually Par Value $1000 Market interest rate 8% What is the yield to maturity of the following bond? Coupon...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT