my hp 15 r245tx motherboard is faulty can i upgrade it with i5 5200u having same motherboard number?

If the motherboard is for the same model laptop and the motherboard model is also the same, then you can use one with a different CPU than what yours came with.