Basically, I'm writing solution for the exercises on the textbook. And I want something like this:
As you can see, sub-problems are aligned after the problem number and the formulas are aligned after each sub-problems.
I've tried \tabular
but I can't get what I wanted. Any suggestion?
Best Answer
To accomplish a result that is nicely aligned it is easy to use the
align
environment, which is part of theamsmath
package.You can accomplish this with the following code:
The
mathtools
package is used, because it is needed for thedcases
environment in the answer for(a)
. Themathtools
package automatically loads theamsmath
package that you also need.The result looks like this: