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

Find the original average of boys and girls in the class, When 6 boys were ...

When 6 boys were admitted & 6 girls left the percentage of boys increased from 60% to 75%. Find the original no. of boys and girls in the class. Ans: Let the no. of Boys be x

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

Evaluate of the largest angle, The measures of the angles of a triangle are...

The measures of the angles of a triangle are in the ratio of 3:4:5. Evaluate of the largest angle. a. 75° b. 37.5° c. 45° d. 60° a. The addition of the measures of t

Matrices, Consider the following linear equations. x1-3x2+x3+x4-x5=8 -2x1+...

Consider the following linear equations. x1-3x2+x3+x4-x5=8 -2x1+6x2+x3-2x4-4x5=-1 3x1-9x2+8x3+4x4-13x5=49

Series solutions to differential equations, Before searching at series solu...

Before searching at series solutions to a differential equation we will initially require to do a cursory review of power series. So, a power series is a series in the form, .

What''s my balance, I should have an account balance for $50.96. You took o...

I should have an account balance for $50.96. You took out $50.96 for a product on 6/18 which was NOT downloaded or delivered as it not available in the time frame I needed it. I am

Alphabet is any arrangement , A word on an alphabet is any arrangement of t...

A word on an alphabet is any arrangement of the letters in the alphabet. For example,ODD, DOD, DOO, DDD are three-letter words on the alphabet {D,O}. How many four-letter words are

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