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

X and Y Intercepts, Find the x and y intercepts for the following equations...

Find the x and y intercepts for the following equations: 3y=3x -y=-x-4 2x+3y=6 y=5

Algebraic number, prove that every non-trivial ingetral solution (x,y,z)of ...

prove that every non-trivial ingetral solution (x,y,z)of the diophantine equation Xsquare +Ysquare=Zsquare satisfies gcd(x,y)=gcd(x,z)=gcd(y,z)

Definition of differential equation, The first definition which we must cov...

The first definition which we must cover is that of differential equation. A differential equation is any equation that comprises derivatives, either partial derivatives or ordinar

LASPEYRES AND PAASCHE, advantages and disadvantages of laspeyres and paasch...

advantages and disadvantages of laspeyres and paasche

Longer- term forecasting, Longer- Term Forecasting Moving averages, ex...

Longer- Term Forecasting Moving averages, exponential smoothing and decomposition methods tend to be utilized for short to medium term forecasting. Longer term forecasting is

Inductive reasoning.., 2, -8, 32, -128, ?, ?, ?, what are these next 3?

2, -8, 32, -128, ?, ?, ?, what are these next 3?

Times, teach me how to o times 7s

teach me how to o times 7s

Multiple, what number does not belong 43,47,53,59,65,67

what number does not belong 43,47,53,59,65,67

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