My way of solving a 6 DoF Robot. I've done the inverse kinematics for a unique solution which can also be used to make the Jacobian.
Please do watch the part 2 of this video. it contains some corrections as well as a way to implement these in Matlab.