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

Diffrentiation, y=f(a^x)   and f(sinx)=lnx find dy/dx? Solution) dy/dx exi...

y=f(a^x)   and f(sinx)=lnx find dy/dx? Solution) dy/dx exist only when 0 1 as the function y = f(a^x) itself does not exist.

integration: if f(x)+f(x+1/2) =1 find limit 0 to 2, f(x)+f(x+1/2) =1 f(x...

f(x)+f(x+1/2) =1 f(x)=1-f(x+1/2) 0∫2f(x)dx=0∫21-f(x+1/2)dx 0∫2f(x)dx=2-0∫2f(x+1/2)dx take (x+1/2)=v dx=dv 0∫2f(v)dv=2-0∫2f(v)dv 2(0∫2f(v)dv)=2 0∫2f(v)dv=1 0∫2f(x)dx=1

Probability, I have a question that hurts my head to work out. It is really...

I have a question that hurts my head to work out. It is really confusing for me. It sais " By the start of the 21st century, only 1 in 6 babies in America was born with blue eyes.

How much is the volume increased, If the lengths of all sides of a box are ...

If the lengths of all sides of a box are doubled, how much is the volume increased? a. 2 times b. 4 times c. 6 times d. 8 times d. The volume of a box is taken by mu

D, #quwhat is4 5/7 of 2/3estion..

#quwhat is4 5/7 of 2/3estion..

Differential equation, Verify Liouville''''s formula for y "-y" - y'''' + y...

Verify Liouville''''s formula for y "-y" - y'''' + y = 0 in (0, 1)

Example of fractional equations, Example of Fractional Equations: Exa...

Example of Fractional Equations: Example: Solve the fractional equation (3x +8)/x +5 =0 Solution: Multiply both sides of the equation by the LCD (x). (x) ((3x

Which kevin gets paid is represented by x what does paid, Patrick gets paid...

Patrick gets paid three dollars less than four times what Kevin gets paid. If the number of dollars which Kevin gets paid is represented through x, what does Patrick get paid?

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