(Note: highly related, but different: How to compute final aircraft attitude, if we know starting attitude and degrees of rotation around each axis? (Specific example))
I'm flying due north (000 degrees heading), with bank angle of 0 degrees and a pitch attitude of 0 degrees.
I roll the airplane 30 degrees to the right, rotating only around the aircraft's roll axis (longitudinal axis).
Then I pitch the aircraft up through 45 degrees of rotation around the aircraft's pitch axis (lateral axis), with no rotation around the airplane's yaw axis (sometimes called the "directional" axis), but rotating as needed around the aircraft's roll axis (longitudinal axis) to hold the bank angle constant.
At the instant the pitch rotation is finished, what is the airplane's heading and pitch attitude? And what are the relevant formulae?
Note that -- just as in the related question linked above -- no information is given about the instantaneous direction of the flight path at any point in the maneuver. We could imagine that the angle-of-attack remains constant, in which case large variations in thrust and in airspeed would be required to fly the maneuver. Or we could imagine that the maneuver involves a very large change in angle-of-attack and minimal change in the direction of the flight path, at least as seen in side view, resembling some sort of modified version of the famous "Cobra" maneuver. Or we could imagine that the maneuver is being flown by a hovering "Harrier"-type VTOL airplane, or a helicopter, with zero airspeed. Or we could imagine the maneuver being flown in some hypothetical way that would never be possible in reality (at least in a fixed-wing aircraft)-- e.g. the flight path is completely horizontal and linear throughout the maneuver, with substantial airspeed, and during the maneuver the aircraft develops an extreme sideslip ("yaw") angle as well as an extreme angle-of-attack. Those details shouldn't affect the answer -- it appears that all these cases boil down to the same problem in spherical geometry.
In fact, it might not actually be possible to fly this maneuver at all in any conventional fixed-wing aircraft in a way that exactly meets all the constraints of the problem, including zero rotation about the yaw axis. It appears that it would be possible to fly the maneuver in some helicopters, or a Harrier-type VTOL aircraft operating with zero airspeed, or in some as-yet-unbuilt future derivations of such aircraft. The point being, this is not a question about the flight dynamics of any particular aircraft. It's a question about how to compute the final bank angle, final pitch attitude, and delta heading, from a known initial attitude and a prescribed series of rotations about the various axes of the aircraft.