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

How long will it take the light to blink 405 times, The light on a lighthou...

The light on a lighthouse blinks 45 times a minute. How long will it take the light to blink 405 times? Divide 405 by 45 to get 9 minutes.

Kotler, Marketing management,Analysis,planning and implementation

Marketing management,Analysis,planning and implementation

Area of an ellipse, You know the experation for the area of a circle of rad...

You know the experation for the area of a circle of radius R. It is Pi*R 2 . But what about the formula for the area of an ellipse of semi-minor axis of length A and semi-major

Calculus, application of radious of curvatur

application of radious of curvatur

Multiplication of two matrices, Need assignment help, Explain Multiplicatio...

Need assignment help, Explain Multiplication of two Matrices.

Sequences and series - calculus, Sequences and Series In this section ...

Sequences and Series In this section we will be taking a look at sequences and infinite series.  In fact, this section will deal approximately exclusively with series.  Though

Infinite series, all properties, formulas of infinite series

all properties, formulas of infinite series

Marginal probability, Marginal Probability Probability of event A happe...

Marginal Probability Probability of event A happening, denoted by P(A), is called single probability, marginal or unconditional probability. Marginal or Uncondi

Statistics, what is meant by "measure of location"

what is meant by "measure of location"

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