Question 1
We are given the following:
with the following D–H Parameters:
The transformation matrices are given as:
Part a
Generalized Coordinates
For this RP manipulator: 
 is the revolute joint angle is the prismatic joint extension
Position Analysis
From the given transformation matrices, the key positions are:
End-effector position:
Center of mass of link (at distance 
Velocity Analysis
Taking time derivatives:
End-effector velocity:
Center of mass velocity:
Kinetic Energy Calculation:
Translational kinetic energy of the distributed link:
Rotational kinetic energy of the link:
Kinetic energy of point mass:
Total kinetic energy:
Potential Energy
Since gravity acts along the 
Lagrangian and Equations of Motion
The Lagrangian is: 
Applying the Euler-Lagrange equations from Equation 
For 
For 
Final Matrix Form
Following the standard form from Equation 
We get:
Part b
We are given:
where 
a. Determine 
For this RP manipulator, from the transformation matrices we see that the gripper moves in the 
For the gripper’s motion to begin and end with zero velocity and acceleration, we have the following constraints:
Position constraints:
Velocity constraints:
 (zero initial velocity) (zero final velocity)
Acceleration constraints:
 (zero initial acceleration) (zero final acceleration)
With 
b. Compute coefficients 
The polynomial is:
where 
Applying constraints:
From 
From 
Solving: 
Final polynomial:
c. Expressions for 
Position:
Velocity:
Acceleration:
where:
d. Joint values, velocities, and accelerations
From the position analysis, the gripper position is:
Joint values (Inverse Kinematics):
Joint velocities:
Using the chain rule and the Jacobian relationship:
Joint accelerations:
e. Generalized forces
Using our solution from Part a:
where:
Explicitly:
