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 many points did he score during his senior year, Michael scored 260 poi...

Michael scored 260 points during his junior year on the school basketball team. He scored 20% more points during his senior year. How many points did he score during his senior yea

Mathematical statements are unambiguous- nature of math, Mathematical State...

Mathematical Statements Are Unambiguous :  Consider any mathematical concept that you're familiar with, say, a sphere. The definition of a sphere is clear and precise. Given any o

Trignometry, Sin3x ? Solution) THE FORMULA IS RIGHT ,SO sin3x=3sin...

Sin3x ? Solution) THE FORMULA IS RIGHT ,SO sin3x=3sinx-4sin 3 x

Metric space, Assume that (X, d) is a metric space and let (x1, : : : , x n...

Assume that (X, d) is a metric space and let (x1, : : : , x n ) be a nite set of pointsof X. Elustrate , using only the de nition of open, that the set X\(x1, : : : , x n ) obtain

Probability, There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs ...

There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs are choosen at random then what is the probability of there are just 3defective bulbs

Cylinder - three dimensional spaces, Cylinder The below equation is th...

Cylinder The below equation is the common equation of a cylinder. x 2 /a 2 + y 2 /b 2 = 1 This is known as a cylinder whose cross section is an ellipse.  If a = b we

Strategic , Hi need a help for marketing strategic assignment Could you ab...

Hi need a help for marketing strategic assignment Could you able to help me???

Video games, Should video game companies continue to alter their products t...

Should video game companies continue to alter their products to include other functions, such as e-mail

., There are k baskets and n balls. The balls are put into the baskets rand...

There are k baskets and n balls. The balls are put into the baskets randomly. If k

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