Case:1
Suppose l have one DFA which accepts the set of all strings over {a, b} which starts with aand it's complement is not starts with a.
From the above image we see that in the second diagram represents the DFA which accepts the strings which belong to complement of the language accepted by first DFA.
Case:2
Now consider the DFA which accepts set of all strings over {a, b} in which every a is followed by b. And the language should be
L={$\epsilon$,ab,abab,....b,bb,...bab,bbab,babbbbab,....}
Now consider the DFA which accepts set of all strings over {a, b} in which every a should never followed by b(which is the complement of DFA which accepts set of all strings over {a, b} in which every a is followed by b.).
And the language should be
L'={$\epsilon$,a,aa,aaa,......b,bb,....ba,bba,bbba,....}
See the complement of L which is L':
In the last diagram we see that the DFA which accepts the strings like aab, aba etc which shows that language don't complemented of L properly.
My question is that in case:1 language, DFA and it's correspondence complement works properly. But in second case after complimenting DFA we don't get complimented language. Where did I mistaken to understand DFA and it's complement? Actually be L' represents the complement of L or not in case:2?

