Factorising a Cubic: An Easy Way?

  • Thread starter Thread starter tmonk
  • Start date Start date
  • Tags Tags
    Cubic
Click For Summary
The discussion focuses on deriving the variance formula for a continuous uniform distribution, specifically using the function f(x) defined over the interval [a, b]. The user successfully calculated the variance but struggled with the algebraic division needed to factor a cubic polynomial. They found that the numerator simplifies to (b-a)³, leading to the correct variance formula of (b-a)²/12. While acknowledging that factoring a cubic can be challenging, they sought easier methods for polynomial division. The conversation highlights the complexities of algebraic manipulation in probability calculations.
tmonk
Messages
3
Reaction score
0
I am attempting to derive the formula for the variance of a continuous uniform distribution where f(x) = \left\{ \begin{array}{ll}<br /> \frac{1}{b-a} &amp; \mbox{$a \leq $x$ \leq b$};\\<br /> 0 &amp; \mbox{otherwise}.\end{array} \right.

I was successful, but only after using Wolfram Alpha to factorise the cubic.

By using Var[x] = \int_a^b \! x^{2}f(x)\, \mathrm{d}x - \mu^{2}
I got this:\frac{b^{3} - a^{3} + 3a^{2}b - 3ab^{2}}{12(b-a)}
The numerator just factorises to give (b-a)3, which gives the correct formula of \frac {(b-a)^{2}}{12}

I tried using algebraic division to divide by the common factor of b-a, but I don't think I did it right. Is there an easy way to factorise the cubic?
 
Mathematics news on Phys.org
You should remember the formula

(a+b)^n=\sum_{k=0}^n{\binom{n}{k}a^kb^{n-k}}

well. It will come in handy a lot of time...

That said, it's always possible to factorize a cubic, but it's not always easy. See http://en.wikipedia.org/wiki/Cubic_equation
 
tmonk said:
I tried using algebraic division to divide by the common factor of b-a, but I don't think I did it right. Is there an easy way to factorise the cubic?

Just for fun.
Here's the method to do algebraic division on polynomials. :smile:

Code:
b-a | b[SUP]3[/SUP] - 3ab[SUP]2[/SUP] + 3a[SUP]2[/SUP]b - a[SUP]3[/SUP] | b[SUP]2[/SUP] ...
      b[SUP]3[/SUP] -  ab[SUP]2[/SUP]
      ----------
          -2ab[SUP]2[/SUP] + 3a[SUP]2[/SUP]b
          ...
@MM: Hey ;)
 
Good morning I have been refreshing my memory about Leibniz differentiation of integrals and found some useful videos from digital-university.org on YouTube. Although the audio quality is poor and the speaker proceeds a bit slowly, the explanations and processes are clear. However, it seems that one video in the Leibniz rule series is missing. While the videos are still present on YouTube, the referring website no longer exists but is preserved on the internet archive...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
11K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K