Question

In: Advanced Math

Given f(x) = sin^2(x) and g(x) = sin^4(x) (give exact answers for all parts): a) Plot...

Given f(x) = sin^2(x) and g(x) = sin^4(x) (give exact answers for all parts): a) Plot the functions on the x-interval [0, π]. Find the volume when the region enclosed by the curve and the x-axis is rotated about the line x = π. b) Find the area of the region. 1?b Aa and y = 1? b 1(f(x)2 −g(x)2)dx. Find the x-coordinate of the center of Aa2 mass of the region. In a print statement, explain why this answer makes sense based on the graph in part a). d) When the region rotates about the line x = π, how far does the center of mass travel? Multiply this value by the area. What do you notice when you compare your answer to part a)?

Python

Solutions

Expert Solution

solution:-

Part A Python Code:

import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import simps

# f(x) = sin^2(x)
x = np.arange(0, np.pi, 0.1)
y = np.sin(x)**2
plt.plot(x, y)

#plt.show(x,y)

# g(x) = sin^4(x)
x = np.arange(0, np.pi, 0.1)
y = np.sin(x)**4
plt.plot(x, y)
plt.show()

def f1(x):
return np.pi*(np.sin(x)**2)**2
def f2(x):
return np.pi*(np.sin(x)**4)**2
x = np.arange(0, np.pi, 0.1)
y1 = f1(x)

I1 = simps(y1, x)
print("Volume of f(x) = sin^2(x), [0,pi]:",I1)

y2 = f2(x)
I2 = simps(y2, x)
print("Volume of f(x) = sin^4(x), [0,pi]:",I2)

Part B Python Code:

import numpy as np
from scipy.integrate import simps

def f1(x):
return np.sin(x)**2
def f2(x):
return np.sin(x)**4
x = np.arange(0, np.pi, 0.1)
y1 = f1(x)

I1 = simps(y1, x)
print("area of f(x) = sin^2(x), [0,pi]:",I1)

y2 = f2(x)
I2 = simps(y2, x)
print("area of f(x) = sin^4(x), [0,pi]:",I2)

// Be Careful while copying and running the Python code it requires indentation.


Related Solutions

For the given function determine the following: f (x) = (sin x + cos x) 2...
For the given function determine the following: f (x) = (sin x + cos x) 2 ; [−π,π] a) Find the intervals where f(x) is increasing, and decreasing b) Find the intervals where f(x) is concave up, and concave down c) Find the x-coordinate of all inflection points
1: Given that f(4) = 6 and f'(x) = 2/x2+9 for all x. a) Use a...
1: Given that f(4) = 6 and f'(x) = 2/x2+9 for all x. a) Use a linear approximation or differentials to estimate f(4.04) b) Is your estimate in part (a) too large or too small? Explain. 2: a) Given f(x) = (x + 3)sinx, find f'(π) using logarithmic differentiation. b) Find the value of h'(0) if h(x)+xsin(h(x))= x2+4x-π/2
(a) Find the Riemann sum for f(x) = 4 sin(x), 0 ≤ x ≤ 3π/2, with...
(a) Find the Riemann sum for f(x) = 4 sin(x), 0 ≤ x ≤ 3π/2, with six terms, taking the sample points to be right endpoints. (Round your answers to six decimal places.) R6 = (b) Repeat part (a) with midpoints as the sample points. M6 = If m ≤ f(x) ≤ M for a ≤ x ≤ b, where m is the absolute minimum and M is the absolute maximum of f on the interval [a, b], then m(b...
Please provide all the calculation steps and answers should either be exact or given to 4...
Please provide all the calculation steps and answers should either be exact or given to 4 decimal places. The ED mointor SO2 emission of XYZ powerplant every hour. Assume the concentration of SO2 from XYZ powerplant is normal distributed. The powerplant claims that the average SO2 emission is 75 ppb (parts per billion) and the standard deviation is 0.75 ppb. The ED set the standard of SO2 concentration for all powerplants is 77 ppb. (a) Find the probability that the...
if f(x) = -5x^2 sin(5x) and g(x) = x^2 -3x +9 are defined over the interval...
if f(x) = -5x^2 sin(5x) and g(x) = x^2 -3x +9 are defined over the interval (2,4) write the full MATLAB commands to plot the two functions above two functions on the same set of axes 2 find the x and y coordinate of all points of intersections (x,y) that you can clearly see between the two graphs. Round up to 4 decimal
Exercise 4: Find all local extrema for f ? = sin^2 ? + cos ? on...
Exercise 4: Find all local extrema for f ? = sin^2 ? + cos ? on the interval [− ?/ 2 , ?/ 2 ]. Verify your answer by graphing.
Hello! Is someone able to solve the integral of the following function? f(x) = x sin(pix/2)/(x^4+4)....
Hello! Is someone able to solve the integral of the following function? f(x) = x sin(pix/2)/(x^4+4). The boundaries are -inf to +inf. Thank you!
Let f(x) = 5x+3 and g(x) =2x-5. Find (f+g)(x),(f-g)(x),(fg)(x), and (f/g) (x). Give the domain of...
Let f(x) = 5x+3 and g(x) =2x-5. Find (f+g)(x),(f-g)(x),(fg)(x), and (f/g) (x). Give the domain of each. (f+g) (x) = (f-g)(x) = (fg)(x) = (f/g)(x) = The domain of f+g is_ The domain of f-g is_ The domain of fg is _ The domain of f/g is _ Please at the end provide showed work.
Given the plot of y=f(x) below, find the plot of y=f−1(x). A coordinate plane has a...
Given the plot of y=f(x) below, find the plot of y=f−1(x). A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. A curve starts at the point left-parenthesis negative 1 comma 0 right-parenthesis, rises at an increasing rate from left to right and passes through left-parenthesis 1 comma 1 right-parenthesis and left-parenthesis 4 comma 6 right-parenthesis. Select the correct...
1) Find the exact absolute max and exact min for f(x)=x^3-3x^2-6x+4 on the closed interval [0,3]...
1) Find the exact absolute max and exact min for f(x)=x^3-3x^2-6x+4 on the closed interval [0,3] 2) Let f be continuously differentiable function on the Reals with the following characteristics: - f(x) is increasing from intervals (0,2) and (4,5) and decreasing everywhere else - f(x) > -1 on the interval (1,3) and f(x) < -1 everywhere else Suppose g(x) = 2f(x) + (f(x))^2. On which interval(s) is g(x) increasing?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT