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

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′ +

Profit and loss, A man sold an item for Rs 6,750 at a loss 25%. What will b...

A man sold an item for Rs 6,750 at a loss 25%. What will be the selling price of same item if he sells it at a profit of 15%?

Ratio, There are only Chinese and Malay pupils in a hall.The ratio of the n...

There are only Chinese and Malay pupils in a hall.The ratio of the number of boys to the number of girls is 2:3.The ratio of the number of Chinese boys to the number of Malay boys

Triangle inequalities, poa is a straight line in circle,wher o is center of...

poa is a straight line in circle,wher o is center of circle,b is any pointjoined with p.prove that pa>pb

Examples of linear equation, Examples of Linear Equation Please provid...

Examples of Linear Equation Please provide me some Examples of Linear Equation?

Differential equation of newton’s law of cooling , 1. A direction ?eld for...

1. A direction ?eld for a differential equation is shown. Draw, with a ruler, the graphs of the Euler approximations to the solution curve that passes through the origin. Use step

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