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

The definite integral- area under a curve, The Definite Integ...

The Definite Integral Area under a Curve If there exists an irregularly shaped curve, y = f(x) then there is no formula to find out

Technical Mathematic, Convert or Reduce Reduce 4,500 micrograms to grams

Convert or Reduce Reduce 4,500 micrograms to grams

All subjects, I need help. Is there anyone there to help me?

I need help. Is there anyone there to help me?

Find the distance between these two cities, Memphis, Tennessee, and New Orl...

Memphis, Tennessee, and New Orleans, Louisiana, lie approximately on the same meridian. Memphis has latitude 35°N and New Orleans has latitude 30°N. Find the distance between these

Prove that abc=60 degree, ABC is a right triangle right-angled at C and AC=...

ABC is a right triangle right-angled at C and AC=√3 BC. Prove that ∠ABC=60 o . Ans:    Tan B = AC/BC Tan B = √3 BC/BC Tan B =√3 ⇒ Tan B = Tan 60 ⇒ B = 60

base - 10 block math, there are 5 small cubes and it reads the 5 small cub...

there are 5 small cubes and it reads the 5 small cubes is 1/100, then what is the ONE?

MAT201, #There is a balance of $1,234 and this person receive a refund chec...

#There is a balance of $1,234 and this person receive a refund check in the amount of $25 with her paycheck that was deposited into her account for $1500 which made her balance $27

Determine the displacement, Example: A 16 lb object stretches a spring 8/9...

Example: A 16 lb object stretches a spring 8/9 ft by itself. Here is no damping as well as no external forces acting on the system. The spring is firstly displaced 6 inches upward

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