Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i have to right a code that will calculate the area of the function below, f 1 (

ID: 2971055 • Letter: I

Question

i have to right a code that will calculate the area of the function below,


f1(x) = 2 + AxB[2+sin(wx)]CeDx


from x1 to x2 using the mid Riemann summation


A,B,C,D,w,x1,x2 , deltax are constants and they will be entered by a user.


i just need to know how this mid Riemann summation work for this case , ( math wise not programming) please do as it a normal hw problem

like how would u solve it if u have the constants ?

lets say

a = 1

b=2

c=3

d=4

w = 6

x1=1

x2=3

delta x = 2


please show all steps because i really have no idea to do it.


i will rate you right away . and please show all steps since i have to include everything in my program .


i appreciate it

i have to right a code that will calculate the area of the function below, f1(x) = 2 + AxB[2+sin(wx)]CeDx from x1 to x2 using the mid Riemann summation A,B,C,D,w,x1,x2 , deltax are constants and they will be entered by a user. i just need to know how this mid Riemann summation work for this case , ( math wise not programming) please do as it a normal hw problem like how would u solve it if u have the constants ? lets say a = 1 b=2 c=3 d=4 w = 6 x1=1 x2=3 delta x = 2 please show all steps because i really have no idea to do it. i will rate you right away . and please show all steps since i have to include everything in my program.

Explanation / Answer

f(x) = 2 + (x^2)*(2 + sin(6x))^3*e^(4x)

Int{1 to 3}(f(x)dx)

delta_x = (x2 - x1)/n, n = number of division you want to split in the x-axis

Since delta_x is given 2, we get n = 1

f(x2) = f(3) = 2 + (3^2)*(2 + sin(6*3))^3*e^(4*3)

Sum = f(x2)*delta_x = (2 + (3^2)*(2 + sin(6*3))^3*e^(4*3))*2

More number of n's you take more will be the accuracy.