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

The hurwiz method, The Hurwiz method Hurwiz method was the concept of c...

The Hurwiz method Hurwiz method was the concept of coefficient of optimism or pessimism introduced by L. Hurwicz. The decision maker takes into account both the minimum and max

MENSURATION, HOW TO FIND THE HEIGHT OF A CYLINDER I NEED IT FOR ASSIGNMENT ...

HOW TO FIND THE HEIGHT OF A CYLINDER I NEED IT FOR ASSIGNMENT TO BE SUBMITTED BY 8;00 AM

What is the probability that |x| < 2 , A number x is chosen at random ...

A number x is chosen at random from the numbers -3, -2, -1, 0 1, 2, 3. What is the probability that  | x| Ans :    x  can take 7 values To get |x| Probability (| x |

Tangents, two circle of radius of 2cm &3cm &diameter of 8cm dram common tan...

two circle of radius of 2cm &3cm &diameter of 8cm dram common tangent

What is the maximum number calories which consume from fats, Josephine is o...

Josephine is on an 1,800 calorie per day diet. She tries to remain her intake of fat to no more than 30% of her overall calories. Based on an 1,800 calorie a day diet, what is the

Determine a trigonometric function, At rest, the human heart beats once eve...

At rest, the human heart beats once every second. At the strongest part of the beat, a person's blood pressure peaks at 120mmHg. At the most relaxed part of the beat, a person's bl

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