Pretty self-explanatory but if I found a transformer large enough, could I plug it directly in to the laptop and power it safely or is the adapter necessary?
You need either to run the laptop on its internal battery or feed it the power it expects. This is typically a regulated DC voltage (often 14 to 18v) with a maximum current of perhaps 4 amps.
A simple transformer puts out AC, which few laptops would like. Significant problems are likely if the power you supply isn’t what the laptop needs.
Correct.
To elaborate, “significant problems” including smoking your laptop. Don’t try this unless you know exactly what you are doing.
Also, while on the subject, even if it is the proper type and has the right connector for the laptop you have it may work in all scenarios. I took a small targus travel adapter with me on a business trip last week (the factory one’s literally a brick) and found the its rated wattage was to low to boot my Dell M90. I had to remove the adapter and boot off of the battery. When my battery ran very low I plugged the adapter back in and it ran for days (but would not recharge the battery). Unexpected strangeness.
In some cases, the laptop is tightly coupled to an adapter in the sense that the internal resistance of the adapter must match as well. Too high or low and one or the other of the devices goes up in smoke.
I do a lot of adapter substitution (and repair) when playing with 2nd hand electronics. But I would never dream of using a built-your-own adapter for a computer.