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

Theorem, #question if two angles of a triangle are unequal in measure then ...

#question if two angles of a triangle are unequal in measure then the side opposite to greater angle is longer than the side opposite to the smaller angle

Determine coefficient of traction, Problem 1 Work through TALPAC 10 Bas...

Problem 1 Work through TALPAC 10 Basics (refer to attached handout). Answer the set of questions at the end of tutorial module. Problem 2 Referring to both the haul cyc

Find out general formula for tangent vector and unit vector, Find out the g...

Find out the general formula for the tangent vector and unit tangent vector to the curve specified by r → (t) = t 2 i → + 2 sin t j → + 2 cos t k → . Solution First,

Nonhomogeneous systems, We now require addressing nonhomogeneous systems in...

We now require addressing nonhomogeneous systems in brief. Both of the methods which we looked at back in the second order differential equations section can also be used now.  Sin

How many different words can be formed out from varanasi, Determine how man...

Determine how many different words can be formed out of the letters of the word VARANASI? Ans: 720 different words can be formed out of the letters of the word VARANASI.

What is sherman''s pulse rate in beats per minute, Sherman took his pulse f...

Sherman took his pulse for 10 seconds and counted 11 beats. What is Sherman's pulse rate in beats per minute? A 10 second count is 1/6 of a minute. To find out the number of be

Greatest common factors, Lindy has 48 chocolate chip cookies and 64 vanilla...

Lindy has 48 chocolate chip cookies and 64 vanilla wafers. How many bags can lindy fill if she puts the chocolate chip cookies and the vanilla wafers in the same bags? She plans

Trigonometry.., if b+c=3a then the value of cotB/2.cotC/2 is equal to

if b+c=3a then the value of cotB/2.cotC/2 is equal to

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

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