Find. (a) the maximum deflection and (b) the slope at A, both by direct
integration of $EI\,y''=M(x)$.
[Figure not reproduced: Triangularly distributed load and applied end couple on the simply supported beam. See the official exam paper.]
Approach. Find the reactions, write $M(x)$ for the triangular load
plus the jump caused by the applied couple at A, then integrate twice and apply the two zero-
deflection boundary conditions at the supports to solve for both constants of integration.
Reactions. Total triangular load $=\tfrac12(20)(6)=60$ kN, acting
at its centroid $\tfrac23(6)=4$ m from A. Taking moments about A (CCW+, the applied
couple entering directly as +120):
$$R_B(6)-60(4)+120=0 \ \Rightarrow\ R_B=20\text{ kN},\qquad R_A=60-20=40\text{ kN}$$
Bending moment. With load intensity $w(x)=\tfrac{20}{6}x$ and the
applied couple contributing a $-120$ kN·m jump immediately to the right of A:
$$M(x)=R_A x-\frac{w_0}{6L}x^3-120=40x-\frac{20}{36}x^3-120\ \text{kN}\cdot\text{m}$$
Check: $M(0^+)=-120$ kN·m (hogging, consistent with the applied CCW couple);
$M(6)=0$, correctly matching the moment-free roller at B. An independent free body
taken from the right end (unaffected by the applied couple) reproduces this identical
$M(x)$, confirming both the reactions and the sign of the jump term.
Second integration and boundary conditions.
$$EI\,y(x)=\int\!\!\int M(x)\,dx\,dx + C_1x+C_2$$
Applying $y(0)=0$ and $y(6)=0$ (both supports have zero deflection) fixes
$C_1$ and $C_2$ uniquely.
Slope at A (part b). Evaluating $\theta(x)$ at $x=0$:
$$\boxed{\theta_A = 0.0156\text{ rad} = 0.894^\circ}$$
(the beam rotates in the same sense as the applied couple — counterclockwise — at A).
Maximum deflection (part a). Setting $\theta(x)=0$ and scanning the
span for the largest $|y(x)|$ gives the extremum at $x=1.867$ m from A:
$$\boxed{y_{max}=12.49\text{ mm (upward, away from the load), at }x=1.87\text{ m from A}}$$
This upward bulge is the dominant effect of the strong end couple; the deflection remains of this
sign over the region where $M(x)$ is hogging (0 to ≈3.6 m) before the beam curves
back down toward zero at B.
Check: sign convention throughout is the standard $EI y''=M(x)$
with y measured upward and M sagging-positive; the "maximum deflection" reported is the largest
magnitude found by scanning the closed-form $y(x)$, which for this end-loaded case
occurs inside the hogging region rather than under the heaviest part of the distributed load.