Stick Triangle - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

Stick Triangle

Main Concept

Suppose you break a stick into three pieces and try to assemble them into a triangle. If you choose the two breaking points at random points in the interval, the theoretical probability that the pieces are able to form a triangle is 14 or 25%.  To see how well this theoretical probability works in practice, select two points on the line below at random by clicking on the image then click 'Assemble Triangle' to see if a triangle can be made out of those pieces. To try to make another triangle yourself, click 'Start a new triangle' and select new breaking points. You can also let Maple generate random sets of breaking points.


Explanation of probability

Assume the endpoints of the stick are at the points 0 and 1.

Let x and y be the two breaking points, chosen at random from the values in the interval 0, 1.

Let us assume at first that y> x. The three sides of the triangle have lengths x, yx, and 1y. The three conditions that must be satisfied for a triangle to be formed are thus:


x+yx > 1y,

yx+1y > x,

1y +  x> yx.

Simplifying these inequalities gives us:

x < 12, y &gt; 12, and yx < 12.

We can rearrange this to give:

x < 12,  12 < y < 12&plus;x.

The total probability for this case can thus be given by the integral:

P&equals;0121212&plus;x &DifferentialD;y&DifferentialD;x&equals;012x &DifferentialD;x  &equals; 18.

Considering that the other case (that y < x) is equally likely, the total probability that a triangle can be formed is 18&plus;18&equals; 14.









 n =




More MathApps