Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Triangulos rectangulos y no rectangulos, el extremo de un poste que partió ...

el extremo de un poste que partió 8.45 metros de la base del poste y forma con el suelo un angulo de 40 grados 28 minutos.hallar la altura original del poste

Linear probability model, Pepsi:               A dummy variable where 1 den...

Pepsi:               A dummy variable where 1 denotes choice of Pepsi by the i-th customer and 0 otherwise Price_P:           The price of a 2-liter bottle of Pepsi at the time

Payoff Matrix, A farmer grows apples on her 400-acre farm and must cope wit...

A farmer grows apples on her 400-acre farm and must cope with occasional infestations of worms. If she refrains from using pesticides, she can get a premium for "organically grown"

Developing an understanding of subtraction, DEVELOPING AN UNDERSTANDING O...

DEVELOPING AN UNDERSTANDING OF SUBTRACTION :  The process of subtraction is the reverse of that of addition. Adding more to a collection to make it bigger is just the reverse

Comparison test for improper integrals - integration, Comparison Test for I...

Comparison Test for Improper Integrals Here now that we've seen how to actually calculate improper integrals we should to address one more topic about them.  Frequently we ar

DIFFERENTIAL EQUATION, Find an integrating factor for the linear differenti...

Find an integrating factor for the linear differential equation and hence Önd its general solution: SOLVE T^ 2 DY DX+T2

What is the surface area of a ball with a diameter of 6 inch, The formula f...

The formula for the surface area of a sphere is 4πr 2 . What is the surface area of a ball with a diameter of 6 inches? Round to the nearest inch. (π = 3.14) If the diameter  o

Determine the size of the proposed repayments, Five years ago a business bo...

Five years ago a business borrowed $100,000 agreeing to repay the principal and all accumulated interest at 8% pa compounded quarterly, 8 years from the loan date. Two years after

Proof by Condratiction, "Prove by contradiction that no root of the equatio...

"Prove by contradiction that no root of the equation x^18 -2x^13 + x^5 -3x^3 + x - 2 = 0 is an integer divisible by 3" Any help would be very much appreciated!

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd