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

Right angle triangle, If the points for a right angle triangle are XYZ wher...

If the points for a right angle triangle are XYZ where do I mark the points?

Set, What is the definition of Set?

What is the definition of Set?

Fractions, how to divide fractions?

how to divide fractions?

Geometry, A closed conical vessel of radius 36 cm and height 60 cm, has som...

A closed conical vessel of radius 36 cm and height 60 cm, has some water. When vertex is down then the height of water is 12 cm. What is the height of water when vertex is up?

Initial value problems, Write a Matlab function MyIVP that solves an initia...

Write a Matlab function MyIVP that solves an initial-value problem (IVP) for a system of ordinary differential equations (ODEs) of the form x ?(t) = f (t, x(t)), where f : R × Rn ?

Quadratic Equation, Short Cuts for solving quadratic equations

Short Cuts for solving quadratic equations

Differentiate hyperbolic functions, Differentiate following functions. (...

Differentiate following functions. (a)  f ( x ) = 2 x 5 cosh x (b) h (t ) = sinh t / t + 1 Solution (a) f ′ ( x ) = 10x 4 cosh x + 2x 5 sinh x (b) h′ (t ) = (t

The normal approximation to the binomial , A certain flight arrives on time...

A certain flight arrives on time 78% of the time. Suppose 1000 flights are randomly selected. Use the normal approximation to the binomial to approximate the probability that

The low temperature in Achorage, The low temperature in Anchorage, Alaska t...

The low temperature in Anchorage, Alaska today was negative four degrees. The low temperature in Los Angeles, California was sixty-three degreees. What is the difference in the two

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