Questions about quadratic formula

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
69 replies · 9K views
agentredlum
Messages
484
Reaction score
0
I have 2 questions about -b and - 4ac in the formula...

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

If you are given 2nd degree equations at random (that can be solved using above formula)

Question1: What percent of the equations given would you expect to compute a double negative for -b?

Question2: What percent of the equations given would you expect to compute a triple negative for - 4ac?

For instance if b is -5 then -(-5) must be evaluated, how often would you expect to see 2 negatives?

If a is -2 and c is -3 then - 4(-2)(-3) must be evaluated, how often would you expect to see 3 negatives?
 
Mathematics news on Phys.org
LOL, what are you talking about? 'Percent of equations'?!
 
Dickfore said:
LOL, what are you talking about? 'Percent of equations'?!

Suppose you are given 1000 random equations, how many of them would require computing double negatives? How many would require computing triple negatives?
 
Define random in this context.
 
Dickfore said:
Define random in this context.

Random real numbers for the coefficients a, b, c
 
'Random real number' is a contradictio in adjecto. If you meant they are random variables, you must say something about their distribution.
 
disregardthat said:
You will probably get into difficulties defining a random polynomial of second degree the way you want.

How so?
 
disregardthat said:
You tell me, what is your distribution of the random variables a, b and c?

I just want to explore the signs of a, b, c. The signs should have equal probability distribution, like flipping a fair coin for each sign, say tails=negative, heads=positive.
 
Then solve a problem in combinatorics.
 
Well, there's the problem. If you have only a finite number of possible outcomes, then it is perfectly reasonable to say "random" meaning "equally likely" (well, maybe not "reasonable" but commonly done!), the "uniform" distribution. However, the set of real numbers in any interval is not finite and there is no "equally likely" or "uniform" distribution. Until you specify a probability distribution for your coefficients, your question has no answer.
 
Dickfore,
Don't be ungracious.

agentredlum,
The range of possible equations is an infinite set so you cannot really talk about percentages. You can however consider regions of types by plotting the parameters.

First consider the original equation [itex]ax^2 + bx + c = 0[/itex] and notice that multiplying the equation by a constant doesn't change its solutions. So really you have two free parameters defining which equation (and likewise two solutions).
Consider the equation of the form [itex]x^2 + Bx + C = 0[/itex] where B=b/a and C = c/a.
The solutions are: [itex]x = \frac{-B \pm \sqrt{B^2 - 4C}}{2}[/itex]
Now consider the range of solutions by plotting the points (B,C) in the Cartesian plane.

First graph the curve [itex]B^2 - 4C = 0[/itex] or [itex]C = \frac{1}{4}B^2[/itex] which is a parabola with vertex (0,0) and passing through the points (2,1) and (-2,1).
  • Above this parabola C is too big so you have no real solutions.
  • Along the parabola the discriminant is 0 so you have one repeated solution.
  • Below the parabola you have two distinct real solutions.

As to the signs of the solutions start by considering the case of one solution. Notice that with zero radical the sign of the solution is opposite the sign of B so cut the parabola in two halves the left half for positive repeated solutions and the right half for negative repeated solutions.

For the region below the parabola where there are two distinct solutions you have to consider the boundary case where one of the two solutions is zero.
That occurs when [itex]-B = \pm\sqrt{B^2 - 4C}[/itex] or squaring the equation where:
[itex]B^2 = B^2 - 4C[/itex], or where C = 0 (the B axis).

Testing points between these curves you get the full range of cases. Here is a picture:
attachment.php?attachmentid=38547&stc=1&d=1315139361.gif
 

Attachments

  • QuadraticRoots.gif
    QuadraticRoots.gif
    8.8 KB · Views: 916
He is saying that a, b and c can have a probability of 1/2 for either sign independently of one another if I am not mistaken. The problem becomes that of elementary probability theory involving combinatorics.
 
HallsofIvy said:
Until you specify a probability distribution for your coefficients, your question has no answer.

How do i do that? Can you provide some examples?
 
jambaugh said:
Dickfore,
Don't be ungracious.

agentredlum,
The range of possible equations is an infinite set so you cannot really talk about percentages. You can however consider regions of types by plotting the parameters.

First consider the original equation [itex]ax^2 + bx + c = 0[/itex] and notice that multiplying the equation by a constant doesn't change its solutions. So really you have two free parameters defining which equation (and likewise two solutions).
Consider the equation of the form [itex]x^2 + Bx + C = 0[/itex] where B=b/a and C = c/a.
The solutions are: [itex]x = \frac{-B \pm \sqrt{B^2 - 4C}}{2}[/itex]
Now consider the range of solutions by plotting the points (B,C) in the Cartesian plane.

First graph the curve [itex]B^2 - 4C = 0[/itex] or [itex]C = \frac{1}{4}B^2[/itex] which is a parabola with vertex (0,0) and passing through the points (2,1) and (-2,1).
  • Above this parabola C is too big so you have no real solutions.
  • Along the parabola the discriminant is 0 so you have one repeated solution.
  • Below the parabola you have two distinct real solutions.

As to the signs of the solutions start by considering the case of one solution. Notice that with zero radical the sign of the solution is opposite the sign of B so cut the parabola in two halves the left half for positive repeated solutions and the right half for negative repeated solutions.

For the region below the parabola where there are two distinct solutions you have to consider the boundary case where one of the two solutions is zero.
That occurs when [itex]-B = \pm\sqrt{B^2 - 4C}[/itex] or squaring the equation where:
[itex]B^2 = B^2 - 4C[/itex], or where C = 0 (the B axis).

Testing points between these curves you get the full range of cases. Here is a picture:
attachment.php?attachmentid=38547&stc=1&d=1315139361.gif

This is not what the OP had asked. He is only interested in 'double' and 'triple' negative occurrences as defined in his op.
 
Dickfore said:
This is not what the OP had asked. He is only interested in 'double' and 'triple' negative occurrences as defined in his op.

Oops! All that work with the graph and I should have read the post more carefully. My Bad!
 
jambaugh said:
Dickfore,
Don't be ungracious.

agentredlum,
The range of possible equations is an infinite set so you cannot really talk about percentages. You can however consider regions of types by plotting the parameters.

First consider the original equation [itex]ax^2 + bx + c = 0[/itex] and notice that multiplying the equation by a constant doesn't change its solutions. So really you have two free parameters defining which equation (and likewise two solutions).
Consider the equation of the form [itex]x^2 + Bx + C = 0[/itex] where B=b/a and C = c/a.
The solutions are: [itex]x = \frac{-B \pm \sqrt{B^2 - 4C}}{2}[/itex]
Now consider the range of solutions by plotting the points (B,C) in the Cartesian plane.

First graph the curve [itex]B^2 - 4C = 0[/itex] or [itex]C = \frac{1}{4}B^2[/itex] which is a parabola with vertex (0,0) and passing through the points (2,1) and (-2,1).
  • Above this parabola C is too big so you have no real solutions.
  • Along the parabola the discriminant is 0 so you have one repeated solution.
  • Below the parabola you have two distinct real solutions.

As to the signs of the solutions start by considering the case of one solution. Notice that with zero radical the sign of the solution is opposite the sign of B so cut the parabola in two halves the left half for positive repeated solutions and the right half for negative repeated solutions.

For the region below the parabola where there are two distinct solutions you have to consider the boundary case where one of the two solutions is zero.
That occurs when [itex]-B = \pm\sqrt{B^2 - 4C}[/itex] or squaring the equation where:
[itex]B^2 = B^2 - 4C[/itex], or where C = 0 (the B axis).

Testing points between these curves you get the full range of cases. Here is a picture:
attachment.php?attachmentid=38547&stc=1&d=1315139361.gif

This is an amazing post. How did you construct it so quickly? there's a lot of useful information in your post
jambaugh, I'm not sure how it is going to answer my questions?

I am interested in the signs of a, b, c, not in the nature of the solutions.

EDIT: Didn't see dickfore post.
 
Dickfore said:
He is saying that a, b and c can have a probability of 1/2 for either sign independently of one another if I am not mistaken. The problem becomes that of elementary probability theory involving combinatorics.

Yes, this is what i am asking.
 
agentredlum said:
Yes, this is what i am asking.

Cool, now provide your attempt at a solution.
 
Well if we are only interested in the sign of the parameters, there are eight combinations in total: a can positive or negative, b can be positive or negative, and c can be positive or negative.

agentredlum said:
Question1: What percent of the equations given would you expect to compute a double negative for -b?

Well this is easy. b has a 50% per cent chance of being negative. We don't need to consider the other parameters.

Question2: What percent of the equations given would you expect to compute a triple negative for - 4ac?

So we need a negative and c negative. b can be either. So 2 / 8 = 25%.
 
These are correct solutions.
 
agentredlum said:
Yes, this is what i am asking.

Hiii agentredlum !

Yes b will have 0.5 probability to be either negative or positive .
Triple negatives occurrence i.e. (-4)(-a)(-c) will have 0.25 probability .

So , I think that all you are doing is to prove your formula in thread : https://www.physicsforums.com/showthread.php?t=510105 to be simplified version of treating such situations , right ?


[BTW see your last private message which I had sent]
 
Dickfore said:
Cool, now provide your attempt at a solution.

O-K, it's not a homework question but i will show my attempt as requested.

There are 3 positions where signs can change so there are a total of 8 possible configurations listed below
a, b, c
a, b, -c
a, -b, c
a, -b, -c
-a, b, c
-a, b, -c
-a, -b, c
-a, -b, -c

4 of these have -b so i would expect to compute a double negative, -(-b), half of the time.

2 of them have -a, -c so i would expect to compute a triple negative, -4(-a)(-c), a quarter of the time.

EDIT:Didn't see other posts.
 
Last edited:
It would really help if you could extend your work to the http://planetmath.org/encyclopedia/QuarticFormula.html .
 
Last edited by a moderator:
And I assume that the point of this is to show us that your "trick" is worthwhile?
 
So 5 out of 8 times you are performing an un-necessary operation, because you have been taught a myth.

That's 62.5%