A at disk of material has the same mass as the Earth, 5.98E+24 kg, and has a radius of 6.25 E+07 m. Point A is

located a distance of 5.8E+06 m above the center of the disk. Point B is located right at the center of the disk. Treat all of the mass as if it were located in the x-y plane.
An object of mass 250 kg is located near the disk.
a. Find the gravitational potential energy (J) when the object is at point A.
b. Find the gravitational potential energy (J) when the object is at point B.

Answers:
a)-2.88E+09 (I keep getting 1.59 E+09)
b)-3.19E+09 (I can kinda get this)

I used the Following
a) (-GMm)/x, where I used pythagorean and them to get x based on radius and height

b) (-Gmm)/r and I used (the r given/2)
that seems to work

I am really confused on what I am doing wrong on part A and if any suggetions on how to correct part B so i don't have to fudge it would be wonderful
I am now integrating and I am using the following but
Right and I have two different masses that need to be multiplied. The my r0 is 6.25 E 7, and R is 5.8 E 6, but using these number i am still getting 1.48 E 9 and not 2.88 E 9, so I am not sure, I have tried it different ways, am I missing something obvious here?

To calculate the gravitational potential energy of an object at a certain point, you need to consider the gravitational potential due to the disk. The disk can be divided into infinitesimally small rings, and the gravitational potential at a point is the sum of the contributions from each ring.

a) To find the gravitational potential energy at point A, you need to integrate the gravitational potential due to each ring of the disk.

The gravitational potential due to a thin ring at height h above the center of the disk is given by:
dV = (-G * (dm) * m) / sqrt((r^2) + h^2)

Here, G is the gravitational constant, dm is the mass of a small ring, m is the mass of the object, r is the radius of the ring, and h is the height from the center of the disk to the object (5.8E+06 m).

To integrate the gravitational potentials due to each ring, you need to express dm in terms of the radius r. Since dm = (2πRσ(r)dr), where σ(r) is the surface density of the disk at radius r, you need to find σ(r).

Given that the disk has the same mass as the Earth (5.98E+24 kg) and a radius of 6.25E+07 m, you can calculate the surface density using σ(r) = (M_disk) / (πR^2). Plugging in the values, you get σ(r) = (5.98E+24 kg) / (π(6.25E+07 m)^2).

With σ(r) and dm, you can now integrate the gravitational potentials due to each ring from the radius of the disk to the object's position at point A (r_0 = 6.25E+07 m) using the formula:
V_A = ∫[(2πRσ(r)dr)(-Gm) / sqrt((r^2) + h^2)]

Solving this integral will give you the gravitational potential energy at point A.

b) To find the gravitational potential energy at point B, you can calculate the gravitational potential due to the entire disk using the formula:
V_B = (-G * M_disk * m) / r

Here, M_disk is the mass of the disk (same as the mass of the Earth, 5.98E+24 kg), m is the mass of the object (250 kg), and r is the distance from the object to the center of the disk (0 m at point B).

By plugging in the values, you can calculate the gravitational potential energy at point B.

It's important to ensure consistent units throughout the calculations and double-check all the calculations to make sure no errors are being made.