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

Steps for radio test - sequences and series, Steps for Radio test Assum...

Steps for Radio test Assume we have the series ∑a n Define, Then, a. If L b. If L>1 the series is divergent. c. If L = 1 the series might be divergent, this i

Formulas, A house painter uses the formula, c = $110.50 + $39.50h, where c ...

A house painter uses the formula, c = $110.50 + $39.50h, where c is the total cost and h is the number of hours he works, to determine how much he charges his customers. How much s

To find out the volume of a cube give formula, To find out the volume of a ...

To find out the volume of a cube which measures 3 cm by 3 cm by 3 cm, what formula would you use? The volume of a cube is the length of the side cubed and the length of the sid

Quadratic equation, If roots of (x-p)(x-q) = c are a and b what will be th...

If roots of (x-p)(x-q) = c are a and b what will be the roots of (x-a)(x-b) = -c    please explain? Ans) (x-p)(x-q)=c x2-(p+q)x-c=0 hence,   a+b=p+q  and      a.b=pq-c

Proof integral function, Proof of: if f(x) > g(x) for a x b th...

Proof of: if f(x) > g(x) for a x b then a ∫ b  f(x) dx > g(x). Because we get f(x) ≥ g(x) then we knows that f(x) - g(x) ≥ 0 on a ≤ x ≤ b and therefore by Prop

How many pages must he read before he takes a break, Joey has 30 pages to r...

Joey has 30 pages to read for history class tonight. He decided in which he would take a break while he finished reading 70% of the pages assigned. How many pages must he read befo

Example of a function - inflection point, 1. (a) Give an example of a funct...

1. (a) Give an example of a function, f(x), that has an inflection point at (1, 4). (b) Give an example of a function, g(x), that has a local maximum at ( -3, 3) and a local min

Line plots, how to you find the difference between different line plots

how to you find the difference between different line plots

Write down two more reasons why division is difficult, Write down two more ...

Write down two more reasons why children consider 'division' difficult. Regarding the first reason given above, one of fie few division related experiences that the child perhaps d

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