my laptop samsung rv509 is not turning on without plugging to chrger and it switch of when charger is removed

I agree - -- the battery can no longer hold a charge, needs replacing.

You can buy one online but don't go for the cheapest you can find.

Type in to Google Search:

battery for samsung rv509