The space of all differentiable linear functions is a vector space, and the derivative is a linear operator on that space (so functions and derivatives follow most of the same rules as vectors and matrices). If D is the derivative operator and x is a function of t, the equation x''=x can be written as D^2 * x = x, or 0 = (D^2 - I)x = (D + I)(D - I)x. The dimension of the kernel of (D - I) is 1, and so is the dimension of the kernel of (D + I). So the space of solutions to the original problem has dimension 0, 1, or 2. But you can find two solutions, namely cos(i * t) and sin(i * t). Those solutions are linearly independent, so they span 2 dimensions. So all solutions are going to be of the form A * cos(i * t) + B * sin(i * t). The case for x''=ax is similar.
I haven't studied it well enough to say more than that about it.
It’s been a long time since I’ve studied ODEs and mathematical physics but this solution seems easier than I had guessed (in the sense that it’s accessible to advanced undergrads instead of specialists).
Typically we view pendulums as “simple harmonic oscillators” - basically equivalent to a mass on a spring, only going left-to-right rather than up-to-down.
But this is only an approximation. The differential equation for a simple harmonic oscillator is
x’’ = ax
which has a simple solution - sum of a sine and a cosine, aka a wave. (Here x’’ = second derivative of x with respect to time, or acceleration)
But the equation of motion for a real pendulum (from a free body diagram) is much more complicated and has no exact solution:
x’’ = sin(x)
It’s a very strange function whose second derivative is equal to the sine of the original function, and can’t be expressed in ordinary means. Any high school physics student can derive this equation of motion from Newton’s laws, but you need the assumption sin(x) ~ x to make any progress finding a solution.