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

Velocity problem, Velocity Problem : Let's look briefly at the velocity pr...

Velocity Problem : Let's look briefly at the velocity problem.  Several calculus books will treat it as its own problem.  .  In this problem we are given a position function of an

Calculate values of the derivative, First, see that the right hand side of ...

First, see that the right hand side of equation (2) is a polynomial and thus continuous. This implies that this can only change sign if this firstly goes by zero. Therefore, if the

Sketch the plot first-order integrated rate, Show that the first-order inte...

Show that the first-order integrated rate expression can be written as [A] t = [A] 0 e -n(in)t where n represents the number of elapsed halftimes. Sketch the plot of [A] 1

.., the circumference of a circle C of radius r is given by C=2pR.taking p ...

the circumference of a circle C of radius r is given by C=2pR.taking p to be 22/7 a)find the circumference when the radius is 28 cm b)find the radius when the circumference is 484

Dividing, If I divide any number do I get the manservant 2 times

If I divide any number do I get the manservant 2 times

Characteristics of time series, Characteristics of Time Series Time se...

Characteristics of Time Series Time series has the given characteristics. a) A long term trend (T) -tendency of the whole series to fall and rise. b) Seasonal variati

How are Indian customers visiting Shoppers’ Stop any differe, How are India...

How are Indian customers visiting Shoppers’ Stop any different from customers of developed western countries?

Bob is 2 years from being double as old as ellen, Bob is 2 years from being...

Bob is 2 years from being double as old as Ellen. The sum of twice Bob's age and three times Ellen's age is 66. How old is Ellen? Let x = Ellen's age and let y = Bob's age. Sin

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