81.4k views
5 votes
Given the following function

f(x) = x² eˣ- 5x³
Establish the symbolic variable and then compute the:
(a) integral
(b) first derivative
(c) second derivative
Hint Review online the MATLAB functions: "syms", "int", "diff", "exp"

User MLS
by
8.6k points

1 Answer

5 votes

Final answer:

To compute the integral, use the 'int' function. To find the first and second derivatives, use the 'diff' function.

Step-by-step explanation:

To compute the integral, first, we need to define the symbolic variable 'x'. In MATLAB, this can be done using the 'syms' function: syms x. Next, we can compute the integral of the function 'f(x)' using the 'int' function: integral = int(x^2 * exp(x) - 5*x^3, x). This will give us the integral of the function.

To find the first derivative of the function, we can use the 'diff' function in MATLAB: derivative = diff(x^2 * exp(x) - 5*x^3, x). This will give us the first derivative of the function.

To find the second derivative, we can again use the 'diff' function on the first derivative: second_derivative = diff(derivative, x).

User Chris Ryding
by
7.5k points