Quantum Mechanics: k basis

Homework Statement

write the following in K basis:

A=∫|x><x|dx where the integral limits are from -a to a

The Attempt at a Solution

I tried solving it by inserting the identity
I=∫|k><k|dk where the integral limits are from -∞ to +∞

but then I do not know how to proceed from there. What to do about the two integrals with varying limits!

CompuChip
Homework Helper
Why is it a problem that the integrals have different limits?

<k|x>= exp(-ikx)/(2*pi)^0.5

I am getting a very weird answer.

I introduced the identity twice and on simplifying, I get 1/2pi ∫∫dk dx ??

CompuChip
Homework Helper
If you introduce the identity twice, you should use two different integration variables. So I expect a triple integration, e.g. over x, k and k'.

Yes, I know that. I simplified things and I got that answer.

Could you please solve the solve question and suggest the steps?

CompuChip
$$\int |x\rangle \langle x | \, dx = \iiint |k\rangle \langle k | x\rangle \langle x | |k'\rangle \langle k' | \, dx \, dk \, dk' \propto \iiint e^{-i(k - k')x}|k\rangle \langle k' | \, dx \, dk \, dk'$$
$$\int e^{i(k - k')x} \, dx \propto \delta(k - k')$$