1. Consider the following function 2sin(x+), x20 ex√3 x ≤0 (a) Plot both f(x) and f'(x) for x € [-1, 1]. Include enough points so that the curve you plot appears smooth. Use different colors and separate label to represent the function and its derivative respectively. Label the axes x and y, and use grid. You must use Sympy and Matplotlib. Manual differentiation is not allowed. f(x) = (b) Using numerical method (trapezoid or rectangular rule), evaluate the following integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy) [ f(x)dx
1. Consider the following function 2sin(x+), x20 ex√3 x ≤0 (a) Plot both f(x) and f'(x) for x € [-1, 1]. Include enough points so that the curve you plot appears smooth. Use different colors and separate label to represent the function and its derivative respectively. Label the axes x and y, and use grid. You must use Sympy and Matplotlib. Manual differentiation is not allowed. f(x) = (b) Using numerical method (trapezoid or rectangular rule), evaluate the following integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy) [ f(x)dx
Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section12.5: Random Variables, Mean, Variance, And Covariance
Problem 5P
Related questions
Question
![1. Consider the following function
f(x)
2sin(x+), x ≥0
ex√3
x ≤ 0
(a) Plot both f(x) and f'(x) for x = [-1, 1]. Include enough points so that the curve
you plot appears smooth. Use different colors and separate label to represent
the function and its derivative respectively. Label the axes x and y, and use
grid. You must use Sympy and Matplotlib. Manual differentiation is
not allowed.
(b) Using numerical method (trapezoid or rectangular rule), evaluate the following
integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy)
L', f(x) dx](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2a322f55-28f6-4834-bc7c-5f004fcf73dd%2Fbeb739ba-abbd-4181-8b22-bd99dd1f6fe2%2F1avcsq2_processed.jpeg&w=3840&q=75)
Transcribed Image Text:1. Consider the following function
f(x)
2sin(x+), x ≥0
ex√3
x ≤ 0
(a) Plot both f(x) and f'(x) for x = [-1, 1]. Include enough points so that the curve
you plot appears smooth. Use different colors and separate label to represent
the function and its derivative respectively. Label the axes x and y, and use
grid. You must use Sympy and Matplotlib. Manual differentiation is
not allowed.
(b) Using numerical method (trapezoid or rectangular rule), evaluate the following
integral accurate upto 3 decimal points. (You cannot use SymPy or SciPy)
L', f(x) dx
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage