Bank of America, the largest US lender, said on Friday that it had swung to a profit in the first quarter on the strength of its investment banking business and pointed to a “gradually improving” economy.Net income at BofA was $3.2bn (€2.36bn, £2.07), or 28 cents a share, following a loss of $194m in the previous quarter. Profits were down from a year ago, when the North Carolina-based bank earned $4.2bn, or 44 cents a share.Shares of BofA jumped by 1.64 per cent to $19.80 in pre-market trading, as the results easily beat analysts’ expectations that the bank would earn about 10 cents a share.“With each day that passes, the 2010 story appears to be one of continuing credit recovery, and our results reflect a gradually improving economy,” Brian Moynihan, BofA’s chief executive, said in a statement.The bank said it had benefited from improving credit quality, which allowed it to narrow its provision for credit losses by $3.6bn from a year ago, and stronger capital markets that boosted sales and trading.Stronger investment and brokerage activity helped net income at BofA’s investment management business rise to $497m.Revenue at BofA fell by 11 per cent to $32.3bn. The bank blamed the decline on credit-related gains it received last year from Merrill Lynch and the sale of an equity investment.However, it also noted that mortgage banking income and volumes were down. BofA’s mortgage division, which saw its losses widen to $2.1bn, was the only unit to record a loss.Charge-offs also rose in the first three months of the year. The bank said this was mostly due to new accounting rules that require securitised credit card loans to come back onto its balance sheet.BofA said last month that it was planning to expand its global corporate banking presence, focusing on Europe and Asia.Earlier this week the bank named Charles Noski as its new chief financial officer.BofA’s results follow a strong performance earlier this week from JPMorgan, which saw its net income rise to $3.3bn in the first three months of the year.