Now that you have solved the problem, attached is my take on it. Certainly not the only way.
A few things to note:
1.) Instead of defining functions with numerical values (either given or calculated), I assign a variable to each piece of information and then use the variable in the function definitions. This is crucial in “real-world” use of Mathcad for adjustability & reusability. Image you’re working on a project where the initial design is as shown in your problem, but then the 1m cantilever is later changed to 1.5m. In your document, you’ll need to go through and make the adjustment in each equation. In my document, you just change one variable.
2.) I used “option 2” to define M(x). See if it makes sense to you. As an added bonus, I showed (on sheets 4-5) how to back-calculate the moment equations for each segment.
3.) Add descriptive text. I was lazy and did not do this in the attached document. However, text is very important to give the reader an explanation of what the equations show.