First of all, I am not asking for help with homework - I aced all three semesters of calculus when I took it 120 years ago. It’s just that I haven’t used it since then.
Here’s the problem I’ve been pondering: describing the velocity and acceleration of a piston in a car. Using fairly standard notation, I’ve got a triangle with sides a, b and c; with angles A, B and C opposite the respective sides. “a” represents the rod length, “b” half of the crankshaft stroke, and “c” the position of the piston wrist pin. Angle “A” is the angle of the crankshaft.
The law of cosines says:
a^2 = b^2 + c^2 - 2bc*cosA
Rearranging terms:
0 = c^2 + c*(-2bcosA) + (b^2 - a^2)
Solving the quadratic:
c = ((-(-2bcosA)±((-2bcosA)^2 - 41(b^2 - a^2))^.5)/(2*1)
(provided I got all of the parentheses right), or:
c = bcosA ± (a^2 - b^2 + b^2cosA*cosA)^.5
Taking the derivative with respect to time (indicated by “’”):
c’ = -bsinAA’ ± (.5*(a^2 - b^2 + b^2cosAcosA)^-.5)b^22cosA-sinA*A’
or:
c’ = -bsinAA’ ± b^2*(a^2 - b^2 + b^2cosAcosA)^-.5)cosA-sinA*A’
(Here’s where I get doubtful):
c" = -b*(sinAA" + cosAA’A’) ± b^2((-.5*(a^2 - b^2 + b^2cosAcosA)^-1.5)b^22cosA-sinAA’)cosA-sinAA’ + (a^2 - b^2 + b^2cosAcosA)^-.5)-sinA-sinAA’A’ + (a^2 - b^2 + b^2cosAcosA)^-.5)cosA-cosAA’A’ + (a^2 - b^2 + b^2cosAcosA)^-.5)cosA-sinA*A"
I’m only interested in constant RPM, so A" = 0:
c" = -bcosAA’A’ ± b^2((-.5*(a^2 - b^2 + b^2cosAcosA)^-1.5)b^22cosAcosAsinAsinAA’A’ + ((a^2 - b^2 + b^2cosAcosA)^-.5)sinAsinAA’A’ + ((a^2 - b^2 + b^2cosAcosA)^-.5)cosA-cosA*A’*A’)
Well, did I get it right?