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

Homomorphism, Let G be a group acting on a set X. The action is called fait...

Let G be a group acting on a set X. The action is called faithful if for any g ≠ 1 ∈ G there exists an x ∈ X such that gx ≠ x. That is, only the identity fi xes everything. Prov

Constant aceleration formulae, a car comes to a stop from a speed of 30m/s ...

a car comes to a stop from a speed of 30m/s in a distance of 804m. The driver brakes so as to produce a decelration of 1/2m per sec sqaured to begin withand then brakes harder to p

Prove the parallelogram circumscribing a circle is rhombus, Prove that the ...

Prove that the parallelogram circumscribing a circle is rhombus. Ans   Given : ABCD is a parallelogram circumscribing a circle. To prove : - ABCD is a rhombus or AB

Equivalent fractions and area models, Need two equal fractions multiply an...

Need two equal fractions multiply and divide 1/6 3/4 5/15 2/7 20/25 24/36 4/9

Bisection method and the newton method, 1. Write two m-files, one for the b...

1. Write two m-files, one for the bisection method and another for Newton's method. 2. Using both the Bisection method and the Newton method answer the following: Include th

Duality., advanteges of duality

advanteges of duality

Geomartry, how to find volume of a cone in cubic units when the radius is 5...

how to find volume of a cone in cubic units when the radius is 5 and height is 11

Arc length with parametric equations, Arc Length with Parametric Equations ...

Arc Length with Parametric Equations In the earlier sections we have looked at a couple of Calculus I topics in terms of parametric equations.  We now require to look at a para

Net Present Value, A business has the opportunity to expand by purchasing ...

A business has the opportunity to expand by purchasing a machine at a cost of £80,000. The machine has an estimated life of 5 years and is projected to generate a cashflow of £20,0

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