A second order DE like
dx2d2y+2dxdy+3=0 will always have two, *independent* solutions. This can be proven using techniques not available at A level.
Here "independent" essentially means that one solution is not simply a multiple of the other. So e.g. if you found that
y=e2x is a solution of some second order DE, it would be no good to claim that
y=2e2x is another solution, since that's just a multiple of the first - it's not independent of the first.
If you have a DE whose auxiliary equation has two distinct roots, say 2 and 3, then the independent solutions of the DE are
y1=e2x and
y2=e3x, and the most general solution is a so-called "linear combination" of both i.e it's
y=c1e2x+c2e3x where
c1,c2 are any old numbers you like. (It doesn't matter what you choose; any
c1,c2 will give you a solution - but if you have initial conditions to satisfy too e.g.
y(0)=1,y′(0)=2 or something, then only one specific
c1,c2 pair will work)
Note that
y1=e2x and
y2=e3x are indeed independent - you can't turn
e2x into
e3x by multiplying it by any fixed number. (Try to figure out why).
However, if you have a DE whose auxiliary equation has repeated roots, then you don't have two independent solutions - you will end up with, say,
y1=e2x and
y2=e2x.
But all is not lost: it turns out that some more advanced maths saves us: there is something called Abel's formula, that relates the independent solutions of a DE. Given Abel's formula and one solution of a DE (in this case
y1=e2x), you can write down an equation that
y1,y2 must satisfy, and solve it to find
y2.
In the case where the auxiliary equation gives us
y1=y2=eax, Abel's formula shows us that, in fact, we must have
y2=xeax. But at A level, no one tells you this: you are merely told that for repeated roots, the two independent solutions have the form
y1=eax,y2=xeax and you just have to take it on trust.
(For those interested, Abel's formula is a statement about the Wronskian of the solutions, and for repeated roots, we have that the solutions must satisfy:
W(eax,y2)=e2axwhere
W(y1,y2) is the Wronskian - Google is your friend for details)