Observe the diagram:
\Consider the angle
.
Law of Sines for
is :
.
Consider 
Substitute
and
and
.




or
.
or
.
The sum of angles in triangle is
.
Sustitute
and
.

.
Sustitute
and
.

.
Consider the distance from the piston
to the the center of the crankshaft
is
.
Consider
.



.




.
Therefore,the distance from the piston
to the the center of the crankshaft
is
or
.
The distance from the piston
to the the center of the crankshaft
is
or
.