Now since you have seen the three cases, you have an idea of what will be the solution of many differential equations. But let us take the real reason why the solution to
dx2d2X=k2X is
X(x)=Aekx+Be−kx.
Imagine we have only this differential equation:
X′′=X
Think about it. What function if you differentiate it twice gives you itself. An educated guess, tells you:
X(x)=ex
And if you think a little you will notice:
X(x)=e−x is also a solution.
So by inspection, they found the solutions to that differential equation! All remains is just to check if they are linearly independent solutions. And here comes the Wronskian.
If Wronskian of
ex and
e−x=0, then the two solutions are linearly independent and we can write them as
X(x)=c1ex+c2e−x
The Wronskian is:
W(ex,e−x)=[exexe−x−e−x]=−exe−x−exe−x=−1−1=−2=0
Then the two solutions are linearly independent and the solution to the differential equation is their combination:
X(x)=c1ex+c2e−x
And if you want to go deeper, you can derive the characteristic equation from the first solution if it is written like this
X(x)=erx.
In General differential equations is a beautiful (and evil) topic and many times you will have to be patient because not everything can be solved quickly, and many differential equations don't have analytical solution, so you will have to approximate their solution by the methods of approximations.