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

Linear equation, The ratio between the length and breadth of a rectangular ...

The ratio between the length and breadth of a rectangular field is 11:7. The cost of fencing it is Rs. 75,000. Find the dimensions of the field

Equations, 20 equations that equal 36

20 equations that equal 36

High self-esteem helps learning-how do children learn?, High Self-esteem He...

High Self-esteem Helps Learning :  Consider Ajay, a student of Class 2. He is constantly told by his irritated father, "How stupid you are! You don't even understand this! Even yo

What is a set, A set can define as a precise group of distinct objects. Wel...

A set can define as a precise group of distinct objects. Well-defined group means that there be a principle with the help of which it is probable to tell whether a given object rel

What is the connecticut sales tax on this item, Connecticut state sales tax...

Connecticut state sales tax is 6%. Lucy purchases a picture frame in which costs $10.50 What is the Connecticut sales tax on this item? Find out 6% of $10.50 by multiplying $10

Factorization example, Example  Factorize x 2 - 4x + 4. If ...

Example  Factorize x 2 - 4x + 4. If we substitute x = 1, the value of the expression will be (1) 2 - 4(1) + 4 = 1 If we substitute x = -1, the value o

Money, how do you add 1,ooo and 100?

how do you add 1,ooo and 100?

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