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

Approximating definite integrals - integration techniques, Approximating De...

Approximating Definite Integrals - Integration Techniques In this section we have spent quite a bit of time on computing the values of integrals. Though, not all integrals can

To calculate volume of cylinder which formula is used, Mimi is filling a te...

Mimi is filling a tennis ball can along with water. She wants to know the volume of the cylinder shaped can. Which formula will she use? The volume of a cylinder is π times the

Linear programming , Use the simplex method to solve the following LP Probl...

Use the simplex method to solve the following LP Problem. Max Z = 107x1+x2+2x3 Subject to 14x1+x2-6x3+3x4=7 16x1+x2-6x3 3x1-x2-x3 x1,x2,x3,x4 >=0

Exponential and logarithmic fuctions, How long does it take for an amount o...

How long does it take for an amount of money P to double itself if it is invested at 8% interest compounded 4 times a year?

Arithmetic sequence, find a30 given that the first few terms of an arithmet...

find a30 given that the first few terms of an arithmetic sequence are given by 6,12,18...

Repeated roots, Under this section we will be looking at the previous case ...

Under this section we will be looking at the previous case for the constant coefficient and linear and homogeneous second order differential equations.  In this case we need soluti

Jason 10 two-point or 2 three-point how many points score, Jason made 10 tw...

Jason made 10 two-point baskets and 2 three-point baskets within Friday's basketball game. He did not score any other points. How many points did he score? Find out the number

Maths For Fun, Ask Suppose I offer you a loan to start a safety matchstick ...

Ask Suppose I offer you a loan to start a safety matchstick production unit on the following terms: I shall first advance you Rs.50,000/- to set up your unit, and wait for 3 month

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