The question is missing some parts. Here is the complete question.
A finite rod of length L has a total charge q, distributed uniformly along its length. The rod lies on the x-axis and is centered at the origin. Thus one endpoint is located at (L/2) and the other is located at (L/2). Define the electrical potential to be zero at an infinite distance away from the rod. Throughout this problem, you may use the constant k in place of the expression 1 / 
Part A (image 1): What is VA, the electric potential at point A (see figure below), is located a distance d above the midpoint of the rod on the y-axis? Express your answer in terms of L, d, q and k.
Part B (image 2): What is VB, the electric potential at point B, located at distance d form one end of the rod (on the x-axis)? give your answer in terms of L, d, q and k.
Answer:
Part A: ![V = \frac{kq}{L}[ln(\frac{L/2+\sqrt{(L/2)^{2}+y^{2}} }{-L/2+\sqrt{(-L/2)^{2}+y^{2}} }) ]](https://tex.z-dn.net/?f=V%20%3D%20%5Cfrac%7Bkq%7D%7BL%7D%5Bln%28%5Cfrac%7BL%2F2%2B%5Csqrt%7B%28L%2F2%29%5E%7B2%7D%2By%5E%7B2%7D%7D%20%7D%7B-L%2F2%2B%5Csqrt%7B%28-L%2F2%29%5E%7B2%7D%2By%5E%7B2%7D%7D%20%7D%29%20%5D)
Part B: 
Explanation: <u>Electric</u> <u>Potential</u> (V) is the amount of work done per unit charge to move a charge from point A to B.
For a finite rod with charge uniformly distributed along its length

where
λ is charge density and, in this case, is constant: 
dl is differential of the rod
r is the distance the point is from the rod
Part A:





At a point located at y-axis, electric potential is 
Part B: r = x




At a point d from one end, electric potential is 