Well, it is fundamentally a geometry concept so…
A geodesic is the generalization of a straight line in non-Euclidean geometry.
Euclidean geometry is the one we are used to in our everyday day lives. The angles of a triangle sum up to 180°, for a given line and a point off that line, there is a single line that is parallel (and co-planar if in 3D) to the first and includes the point, and parallel lines never intersect.
Turns out this isn’t the only Geometry possible. You can change any and all of these rules and still end up with consistent and useful results.
For example, if you try to do geometry on the surface of a sphere, where you can just ignore the curvature. Or on the surface of a cone. Well… You need different equations and get different results.
Cone is a pretty good example to illustrate how geodesics can appear different from straight lines on a flat surface.
Take a strip and a sheet of paper. Roll the sheet in a cone.
Lay the strip flat around the cone and trace one of its edges.
You’ve just traced a geodesic of the cone. If you unroll the sheet of paper, you will see it doesn’t look like a straight line. But the math behind it preserves the properties of a straight line we actually care about (turns out being straight when we unroll the sheet of paper is not one of them).
Latest Answers