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

In sequence to remain the pole perpendicular to the ground, A cable is atta...

A cable is attached to a pole 24 ft above ground and fastened to a stake 10 ft from the base of the pole. In sequence to remain the pole perpendicular to the ground, how long is th

Heat loss in cylindrical pipe, which physics law is used to describe heat l...

which physics law is used to describe heat loss in cylindrical pipe

Ogive, How many types of ogives?

How many types of ogives?

Find the shortest length of wire needed, A 125-foot tower is located on the...

A 125-foot tower is located on the side of a mountain that is inclined at 32° to the horizontal. A guy wire is to be fitted to the top of the tower and anchored at a point 55 feet

How will the decimal point move when 245.398 is multiplied, How will the de...

How will the decimal point move when 245.398 is multiplied by 100? It is moved two places to the right. While multiplying by multiples of 10, the decimal point is moved to the

One-to-one function, One-to-one function: A function is called one-to-one ...

One-to-one function: A function is called one-to-one if not any two values of x produce the same y.  Mathematically specking, this is the same as saying,  f ( x 1 ) ≠ f ( x 2

Find the area of the shaded region, ABC is a right angled triangle in which...

ABC is a right angled triangle in which ∠A = 900. Find the area of the shaded region if AB = 6 cm, BC=10cm & I is the centre of the Incircle of ?ABC. Ans: ∠A =90 0 BC

Brad class collected 320 cans of food how many did required, Brad's class c...

Brad's class collected 320 cans of food. They boxed them in boxes of 40 cans each. How many boxes did they required? To find the number of boxes required, you should divide the

Algebra, 25 algebraic equations that equal 36

25 algebraic equations that equal 36

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