What's the chemical equation for the lithium iron phosphate battery The title says it all, I'm searching for the chemical equation to the lithium iron phosphate battery.

I know that the cathode is made of $\ce{LiFePO4}$ and that upon discharging, it is transformed to $\ce{FePO4}$. The Anode is made of graphite.

So I think that the reaction on the anode is:
$\ce{LiFePO4 -&gt; FePO4 + Li+ + e-}$

Is this correct? If so, what's happening on the anode?
Close, the cathode reaction is:

$$ \ce{LiFePO4 -&gt; FePO4 + Li^+ + e^-}$$

The anode is:

$$\ce{Li^+ + C6 + e^- -&gt; LiC6}$$

The best description I can give is that the lithium ion intercalates into the graphite and "steals" some electron density from the six-membered conjugated ring.