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

Close Figure, What is a close figure in plane?

What is a close figure in plane?

Shares, a person having rs.10 shares of value rs.6000 in a company which pa...

a person having rs.10 shares of value rs.6000 in a company which pays a 7% dividend invested the money gained by selling those shares and bought rs.25 shares at rs.24 per share in

Estimate the total cost of the books, Frederick bought six books which cost...

Frederick bought six books which cost d dollars each. What is the total cost of the books? Frederick would multiply the number of books, 6, through how much each one costs, d.

Series is converges or diverges - limit comparison test, Determine if the f...

Determine if the following series converges or diverges by using limit comparison test. Solution To make use of the limit comparison test we require to find out a seco

Nonhomogeneous differential equations, Let's here start thinking regarding ...

Let's here start thinking regarding that how to solve nonhomogeneous differential equations.  A second order, linear non-homogeneous differential equation is as y′′ + p (t) y′ +

Functions of several variables - three dimensional space, Functions of Seve...

Functions of Several Variables - Three Dimensional Space In this part we want to go over a few of the basic ideas about functions of much more than one variable. Very first

Explain adding and subtracting in scientific notation, Explain Adding and S...

Explain Adding and Subtracting in Scientific Notation? To add or subtract numbers in scientific notation, the numbers must be expressed so that they have the same exponent.

The quotient of 3d3 and 9d5 is, The quotient of 3d 3 and 9d 5 is The ...

The quotient of 3d 3 and 9d 5 is The key word quotient means division so the problem becomes 1d 3 -5/ 5. Divide the coef?cients:  1d 3 /3d-5 . While dividing like bases, subt

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