Together with Max Martin , he wrote `` So What '' and `` Raise Your Glass '' by Pink , `` If U Seek Amy '' and `` 3 '' by Britney Spears , `` DJ Got Us Fallin ' in Love '' by Usher featuring Pitbull , and `` Whataya Want from Me '' by Adam Lambert .
Together with Max Martin he is the co-writer of `` So What '' and `` Raise Your Glass '' by Pink , `` If U Seek Amy '' and `` 3 '' by Britney Spears , `` DJ Got Us Fallin ' in Love '' by Usher featuring Pitbull , and `` Whataya Want from Me '' by Adam Lambert .