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

Market, what is market,what is marketing

what is market,what is marketing

Quantitative Techniques, The following table given the these scores and sal...

The following table given the these scores and sales be nine salesman during last one year in a certain firm: text scores sales (in 000''rupees) 14 31 19

How many relations are possible from a set, How many relations are possible...

How many relations are possible from a set A of 'm' elements to another set B of 'n' elements?     Ans: A relation R from a set A to other set B is specified as any subset of A

Determine the equation of plane - three dimensional space, Determine the eq...

Determine the equation of the plane that consists of the points P = (1, -2, 0), Q = (3, 1, 4) and R = (0, -1, 2). Solution To write down the equation of plane there is a re

Find the quadratic polynomial, Find the Quadratic polynomial whose sum and ...

Find the Quadratic polynomial whose sum and product of zeros are √2 + 1, 1/ √2 + 1 Ans:    sum = 2  √2 Product = 1 Q.P = X 2 - (sum) x + Product ∴ x 2 - (2 √2 )

Geometry help, One of two complementary angles is 80& of the other. What is...

One of two complementary angles is 80& of the other. What is the degree measure of the smaller angle?

Shares and dividend, want to make an assignment on shares and dividend for ...

want to make an assignment on shares and dividend for class 10

Trapezoid rule - approximating definite integrals, Trapezoid Rule - Approxi...

Trapezoid Rule - Approximating Definite Integrals For this rule we will do similar set up as for the Midpoint Rule. We will break up the interval [a, b] into n subintervals of

Mensuration, A palm tree of heights 25m is broken by storm in such a way th...

A palm tree of heights 25m is broken by storm in such a way that its top touches the ground at a distance of 5m from its root,but is not separated from the tree.Find the height at

Find the largest possible positive integer, Find the largest possible posit...

Find the largest possible positive integer that will divide 398, 436, and 542 leaving remainder 7, 11, 15 respectively. (Ans: 17) Ans: The required number is the HCF of the n

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