The manipulations you've done there are all fine. You just need to obey the rules of algebra. Algebra doesn't go away when you start studying calculus - indeed, calculus packs down your algebra!

The manipulations you've done there are all fine. You just need to obey the rules of algebra. Algebra doesn't go away when you start studying calculus - indeed, calculus packs down your algebra!