# Solving Integral for Cam Follower Friction | MATLAB Help for Simpson's 3/8 Rule

• MATLAB
• arslan894
In summary, The conversation is about creating a MATLAB model for measuring friction and needing help with solving an integral with limits -b to b and a value of b=3. The use of the int function in MATLAB did not provide an explicit answer, so the speaker suggests using the erf function or numerical integration instead.

#### arslan894

i am making a MATLAB model of cam follower interaction for measureing friction but need help with this integral
f(x) = ∫e^(1-(x^2)/(b^2))dx the limits are -b to b , take the value of b = 3
when i used the ( int )function in MATLAB it tells that the explicit answer doesn't exist ,so how to solve this in MATLAB ?
i used simpsons 3 8 rule to find the answer on paper but how to find it in MATLAB ?

Last edited by a moderator:

## What is an integral?

An integral is a mathematical tool used to find the area under a curve in a graph. It is also used to calculate the total change in a function over a given interval.

## What is the purpose of finding an integral?

The purpose of finding an integral is to solve real-world problems that involve calculating area, volume, distance, and other quantities that can be represented by a function.

## What are the different types of integrals?

The two main types of integrals are definite integrals and indefinite integrals. Definite integrals have specific limits of integration, while indefinite integrals do not have any limits and are represented by the symbol ∫.

## What is the process for solving an integral?

The process for solving an integral involves using integration techniques such as substitution, integration by parts, and partial fractions to simplify the integral and then using mathematical rules to evaluate the integral.

## What are some common applications of integrals in science?

Integrals are commonly used in physics to calculate the work done by a force, in chemistry to calculate the rate of a reaction, and in biology to model population growth and decay. They are also used in many other scientific fields to solve a wide range of problems.