how i solve this f(x)=0.3582*x^2 - 3.3833 * x + 9.0748 by matlab
in Other Math Topics by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

2 Answers

how i solve this f(x)=0.3582*x^2 - 3.3833 * x + 9.0748

When asked to solve f(x) = 0, that means find the value(s) of x that, when substituted into the expression for f(x) will make it equal to zero.

So, to find f(x) = 0, then we set 0.3582*x^2 - 3.3833 * x + 9.0748 = 0.

This is a quadratic equation, of the form ax^2 + bx + c = 0, with a = 0.3582, b = - 3.3833 and c = 9.0748.

We use the quadratic formula to solve quadratic equations. This is,

x = {-b +/- sqrt(b^2 - 4ac)} / (2a)

substituting for the values given for a, b and c,

x = {3.3833 +/- sqrt((-3.3833)^2 - 4*(0.3582)*(9.0748))} / (2*0.3582)

x = {3.3833 +/- sqrt(11.4467 - 13.0024)} / (0.7164)

x = {3.3833 +/- sqrt(-1.55565)} / (0.7164)

Since the discriminant is negative (-1.55565), that means that we have no real values for x.

The expression, 0.3582*x^2 - 3.3833 * x + 9.0748, is a polynomial of 2nd degree. If you were to plot this curve you would get a parabola (U-shaped upwards) and its vertex would be above the x-axis. That means the curve never crosses the x-axis, which is why there is no (real) solution.

Our solution(s) then are complex numbers, made up of real and imaginary parts.

We write the square root part as:  sqrt(-1.55565) = sqrt(1.55565) * sqrt(-1) = sqrt(1.55565)}*i,

where i = sqrt(-1).

So now we have,

x = {3.3833 +/- sqrt(1.55565)*i} / (0.7164)

x = {3.3833 +/- 1.24726*i} / (0.7164)

x = 4.72264 +/- 1.741*i

by Level 11 User (81.5k points)
When I first "answered" this question, I thought you were signing off your question with your username, matlab.

Rod spotted that you actually wanted to know how to use mMatlab to solve the problem, and his code for Matlab is spot on.

The only thing I can add is the solve function to use and that is roots(p) where p is the polynomial function that needs to be solved.

The full code to solve the problem would be.

>> p=[0.3582, -3.3833, 9.0748];
>> x=0:0.1:8;

>> f=polyval(p,x);
>> plot(x,f)
>> grid on
>> roots(p)

ans =

   4.7226 + 1.7410i
   4.7226 - 1.7410i

>>

Unfortunately, I do not have MATLAB, but here is a graph of the function in which you can see the shape of the parabolic curve, the vertex (minimum value) and the y intercept. You can also see that, because the graph does not intercept the x axis, there are no real roots. If I were to guess at the Matlab code, it would be something like:

% First, define the polynomial:

p = [ 0.3582, -3.3833, 9.0748 ];

% This range for x comfortably shows the graph and its key elements:

x = -2 : 0.1 : 8; 

% Plot the graph:

f = polyval (p ,x);

plot (x,f)

grid on

by Top Rated User (1.2m points)

Related questions

0 answers
1 answer
0 answers
0 answers
1 answer
asked Dec 5, 2014 in Statistics Answers by raj | 778 views
0 answers
asked May 17, 2013 in Geometry Answers by anonymous | 511 views
0 answers
asked May 7, 2013 in Word Problem Answers by anonymous | 777 views
0 answers
asked May 7, 2013 in Word Problem Answers by anonymous | 458 views
0 answers
asked May 6, 2013 in Calculus Answers by anonymous | 840 views
0 answers
asked May 6, 2013 in Trigonometry Answers by anonymous | 478 views
0 answers
0 answers
asked Apr 5, 2013 in Algebra 1 Answers by anonymous | 471 views
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
87,516 questions
100,285 answers
2,420 comments
736,113 users