Rod OA see the figure rotates about the fixed point O so tha
Rod OA (see the figure rotates about the fixed point O so that point A travels on a circle of radius r. Connected to point A is another rod AB of length L > r, and point B is connected to a piston. Show that the distance x between point O and point B is given by x = r cos theta + squareroot r^2 cos^2 theta + L^2 - r^2 where theta is the angle of rotation of rod OA.
Solution
using cosine law which is
a2=b2+c2-2bc cos theta
we get
L2=r2+x2-2*r*x cos theta
L2 - r2= x2-2*r*x cos theta + r2((cos2theta +sin2theta)-1)
L2-r2= x2-2*x*r cos theta +r2cos2theta +r2sin2theta-r2
L2= x2-2*x*r cos theta +r2cos2theta + r2sin2theta
L2= (x- cos theta)2 + r2(1-cos2theta)
L2-r2(1-cos2theta)=(x-r cos theta)2
Taking square root on both sides
x-r cos theta=sqrt(L2-r2(1-cos2theta))
x= r costheta + sqrt(L2-r2+r2cos2theta)
x= r cos theta + sqrt(r2cos2theta + L2 - r2)
