I am given a language $L \subseteq \Sigma^*$ and symbol $a \in \Sigma$. Let $a/L= \{ w \in \Sigma^*~|~ wa \in L \}$ ex. String that end in $a$ but with that last $a$ removed. I am trying to prove that for any $L$ and $a$, if $L$ is regular then $a/L$ is also regular by giving a DFA
So what I have tried is creating a DFA for $L$ (if $L$ is regular there exists a DFA for it) and $M = (Q,\Sigma,\delta,q_0,F)$. To show $a/L$ is regular I create a DFA $M' = (Q',\Sigma',\delta',q_0',F')$ and $Q' = Q$, $\delta' = \delta$, $q_0' = \delta(a, q_0)$, $F' = F$. And the starting state for $M'$ is the state of $M$ after receiving a as its last input.
I am not sure if this is the right approach? Did I construct my $M'$ DFA correctly?
I'm not sure about your notations, but it seems you changed the initial state of the automata, while the only thing you have to change is the set of final states of $M$ : the final states of $M'$ will be the subset of $Q$ defined by